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.
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.