Azure / azure-openapi-validator

Azure Open API Validator
MIT License
47 stars 46 forks source link

Update arm APIVersionPattern rule for canonical swagger #732

Open dinwa-ms opened 3 months ago

dinwa-ms commented 3 months ago

It is for Issue 707 : Update the version format check for canonical swagger #707.

We introduced canonical swagger. It is a union of versioned swaggers. The version of canonical swagger will be "canonical", which will fail the existing APIVersionPattern. In this PR, we updated the rule for this scenario. If the swagger is generated by autorest-canonical emitter, it is canonical swagger and its version should be 'canonical'. Otherwise, its version should follow the existing rule.

dinwa-ms commented 2 months ago

@rkmanda @mikeharder, could you help take a look at this PR when available? Thanks