Skip to content

Add data contract system and validation node for catalog tables#402

Open
Edwardvaneechoud wants to merge 2 commits intomainfrom
claude/data-contract-catalog-MGlha
Open

Add data contract system and validation node for catalog tables#402
Edwardvaneechoud wants to merge 2 commits intomainfrom
claude/data-contract-catalog-MGlha

Conversation

@Edwardvaneechoud
Copy link
Copy Markdown
Owner

Introduces a typed data contract model (1:1 per catalog table) with
column-level rules (not_null, unique, dtype, value_range, allowed_values,
regex, custom_expression) and general rules (Flowfile expressions).
Each rule provides a to_expression() method returning a Flowfile expression
string, keeping the validation engine thin and rule logic self-contained.

Includes:

  • DataContract DB model, repository, service CRUD, and API endpoints
  • Validation engine shared between catalog contracts and the new
    data_validation flow node (pass-through with _is_valid/_violations columns)
  • Auto-generate contract from table profile
  • mark-validated endpoint for tier-2 validation flows
  • ContractSummary on CatalogTableOut for catalog UI status badges

https://claude.ai/code/session_01RJ6iAh4f3MN7UdzttruKho

Introduces a typed data contract model (1:1 per catalog table) with
column-level rules (not_null, unique, dtype, value_range, allowed_values,
regex, custom_expression) and general rules (Flowfile expressions).
Each rule provides a to_expression() method returning a Flowfile expression
string, keeping the validation engine thin and rule logic self-contained.

Includes:
- DataContract DB model, repository, service CRUD, and API endpoints
- Validation engine shared between catalog contracts and the new
  data_validation flow node (pass-through with _is_valid/_violations columns)
- Auto-generate contract from table profile
- mark-validated endpoint for tier-2 validation flows
- ContractSummary on CatalogTableOut for catalog UI status badges

https://claude.ai/code/session_01RJ6iAh4f3MN7UdzttruKho
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 5, 2026

Deploy Preview for flowfile-wasm canceled.

Name Link
🔨 Latest commit 01a5624
🔍 Latest deploy log https://app.netlify.com/projects/flowfile-wasm/deploys/69d3768941f78e0008912394

Validation now auto-marks the contract at the current table version and
fires downstream table_trigger schedules on success. Overwrite no longer
triggers downstream flows — the contract must pass first. Also fixes
self._repo → self.repo bug in service contract methods and improves
storage format detection in the validate endpoint.

https://claude.ai/code/session_01RJ6iAh4f3MN7UdzttruKho
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants