Azure / openapi-diff

Command line tool to detect breaking changes between two openapi specifications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lint rule for adding new consumers

tadelesh opened this issue · comments

From Jeffrey suggested, we need to add a lint rule for the situation: NEW response Content-Types always be added after OLD content types in the swagger.
This could be result in breaking changes for SDK to generate multi operations for each content type and make one of the content type as default. If we could not get previous version info, we can only relay on the sequence user provided. So, it will be an easier way to limit user only add new consumer after the existed one.

@tadelesh if it's lint rule , please file issue via https://aka.ms/lintrulecandidate