Skip to content

Reject duplicate YAML keys in data contracts - #1741

Open
kamathramu87 wants to merge 2 commits into
datacontract:mainfrom
kamathramu87:fix/reject-duplicate-contract-yaml-keys
Open

kamathramu87 wants to merge 2 commits into
datacontract:mainfrom
kamathramu87:fix/reject-duplicate-contract-yaml-keys

Conversation

@kamathramu87

Copy link
Copy Markdown

Duplicate YAML mapping keys currently overwrite earlier values silently, so a repeated required, quality, or contract identity field can change what gets validated. Reject duplicate explicit keys with source/line diagnostics while preserving YAML merge overrides and date strings.

Validation: 48 relevant tests pass; Ruff lint and format checks pass.

@kamathramu87
kamathramu87 marked this pull request as ready for review October 13, 2026 08:44

This branch has not been deployed

No deployments
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