datacontract-cli icon indicating copy to clipboard operation
datacontract-cli copied to clipboard

enhancement: datacontract lint => semantic linting

Open gkoenig opened this issue 1 month ago • 2 comments

Problem: duplicate entries in a datacontract are currently not being discovered by 'datacontract lint' .... as far as I can see. I mean things like duplicate schema names, duplicate property names within a schema, etc

Idea: the linting adds functionality to discover duplicates, potentially via an additional flag as "opt-in"

gkoenig avatar Oct 23 '26 14:10 gkoenig

Sounds good. I don't think we need an opt-in for this, should be fine as default behavior.

jschoedl avatar Oct 23 '26 14:10 jschoedl

PR https://github.com/datacontract/datacontract-cli/pull/1779 opened to add it to 'datacontract lint' behaviour by default. If duplicates are discovered 'datacontract lint' will fail and log why.

gkoenig avatar Oct 25 '26 16:10 gkoenig