Skip to content

fix: normalize optional CML if: {exists: …} mapping shorthand - #41

Merged
ryan-s-roberts merged 1 commit into
mainfrom
fix/cml-optional-if-exists-shorthand
Aug 22, 2026
Merged

fix: normalize optional CML if: {exists: …} mapping shorthand#41
ryan-s-roberts merged 1 commit into
mainfrom
fix/cml-optional-if-exists-shorthand

Conversation

@ryan-s-roberts

Copy link
Copy Markdown
Collaborator

Catalog mappings use type: var plus if: {exists: field} for optional body/query fields, but serde ignored the shorthand and always required the var in CmlEnv. Normalize wire JSON to tagged type: if before deserialize, and add matrix-view regression coverage plus clearer view preflight errors.

Catalog mappings use `type: var` plus `if: {exists: field}` for optional
body/query fields, but serde ignored the shorthand and always required the
var in CmlEnv. Normalize wire JSON to tagged `type: if` before deserialize,
and add matrix-view regression coverage plus clearer view preflight errors.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ryan-s-roberts
ryan-s-roberts merged commit c030523 into main Aug 22, 2026
1 of 2 checks passed
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.

1 participant