-
Notifications
You must be signed in to change notification settings - Fork 0
feat(schema): add data_class, expressions field, and mutual exclusivity #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -114,6 +114,14 @@ | |
| "minimum": 0, | ||
| "description": "Display order (0 = topmost lane)" | ||
| }, | ||
| "data_class": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string", | ||
| "enum": ["pii", "financial", "credentials", "internal"] | ||
| }, | ||
| "description": "Data classification labels for trace redaction policy" | ||
| }, | ||
|
Comment on lines
+117
to
+124
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. packages/schema adds data_class and expressions but doesn't include a .changeset/*.md — should we add one describing those additions? Finding type: Want Baz to fix this for you? Activate Fixer Other fix methodsPrompt for AI Agents: Heads up! Your free trial ends tomorrow. |
||
| "height": { | ||
| "type": "number", | ||
| "minimum": 140, | ||
|
|
@@ -201,6 +209,14 @@ | |
| "type": "string", | ||
| "description": "Markdown notes for documentation and design rationale" | ||
| }, | ||
| "data_class": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string", | ||
| "enum": ["pii", "financial", "credentials", "internal"] | ||
| }, | ||
| "description": "Data classification labels for trace redaction policy" | ||
| }, | ||
| "metadata": { | ||
| "type": "object", | ||
| "additionalProperties": { | ||
|
|
@@ -216,6 +232,13 @@ | |
| "rules": { | ||
| "$ref": "#/definitions/RulesRef" | ||
| }, | ||
| "expressions": { | ||
| "type": "object", | ||
| "additionalProperties": { | ||
| "type": "string" | ||
| }, | ||
| "description": "Key-value pairs of output field name to expression string. Makes this an engine-native transform node." | ||
| }, | ||
| "position": { | ||
| "$ref": "#/definitions/Position" | ||
| }, | ||
|
|
@@ -267,6 +290,14 @@ | |
| "type": "string", | ||
| "description": "Markdown notes for documentation and design rationale" | ||
| }, | ||
| "data_class": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string", | ||
| "enum": ["pii", "financial", "credentials", "internal"] | ||
| }, | ||
| "description": "Data classification labels for trace redaction policy" | ||
| }, | ||
| "metadata": { | ||
| "type": "object", | ||
| "additionalProperties": { | ||
|
|
@@ -333,6 +364,14 @@ | |
| "type": "string", | ||
| "description": "Markdown notes for documentation and design rationale" | ||
| }, | ||
| "data_class": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string", | ||
| "enum": ["pii", "financial", "credentials", "internal"] | ||
| }, | ||
| "description": "Data classification labels for trace redaction policy" | ||
| }, | ||
| "metadata": { | ||
| "type": "object", | ||
| "additionalProperties": { | ||
|
|
@@ -388,6 +427,14 @@ | |
| "type": "string", | ||
| "description": "Markdown notes for documentation and design rationale" | ||
| }, | ||
| "data_class": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string", | ||
| "enum": ["pii", "financial", "credentials", "internal"] | ||
| }, | ||
| "description": "Data classification labels for trace redaction policy" | ||
| }, | ||
| "metadata": { | ||
| "type": "object", | ||
| "additionalProperties": { | ||
|
|
@@ -458,6 +505,14 @@ | |
| "type": "string", | ||
| "description": "Markdown notes for documentation and design rationale" | ||
| }, | ||
| "data_class": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string", | ||
| "enum": ["pii", "financial", "credentials", "internal"] | ||
| }, | ||
| "description": "Data classification labels for trace redaction policy" | ||
| }, | ||
| "metadata": { | ||
| "type": "object", | ||
| "additionalProperties": { | ||
|
|
@@ -500,6 +555,14 @@ | |
| "type": "string", | ||
| "description": "Markdown notes for documentation and design rationale" | ||
| }, | ||
| "data_class": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string", | ||
| "enum": ["pii", "financial", "credentials", "internal"] | ||
| }, | ||
| "description": "Data classification labels for trace redaction policy" | ||
| }, | ||
| "metadata": { | ||
| "type": "object", | ||
| "additionalProperties": { | ||
|
|
@@ -540,6 +603,14 @@ | |
| "type": "string", | ||
| "description": "Markdown notes for documentation and design rationale" | ||
| }, | ||
| "data_class": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string", | ||
| "enum": ["pii", "financial", "credentials", "internal"] | ||
| }, | ||
| "description": "Data classification labels for trace redaction policy" | ||
| }, | ||
| "metadata": { | ||
| "type": "object", | ||
| "additionalProperties": { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new
data_classdefinition (lines 117‑124) is copied verbatim across every lane and node schema entry (lanes,action,switch,parallel,wait, etc.). That is the same non-trivial property shape repeated at lines 212‑219, 293‑300, 367‑374, 430‑437, 508‑515, 558‑565, 606‑613, and so on. If we ever need to tweak the enum or description (or add constraints), every copy has to be updated in lockstep. Can we move this to a single shared schema definition (e.g.#/definitions/DataClassLabelsand$refit in each object) so the constraint lives in one place and serialization/validation changes stay consistent?Finding type:
Code Dedup and Conventions| Severity: 🟢 LowWant Baz to fix this for you? Activate Fixer
Heads up!
Your free trial ends tomorrow.
To keep getting your PRs reviewed by Baz, update your team's subscription