Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a rule to check that the schemas for all 2XX responses are the same #110

Open
mikekistler opened this issue Feb 4, 2023 · 0 comments

Comments

@mikekistler
Copy link
Member

For client generation, we want to have only one type of object returned from an operation. In terms of the REST API, that means that all the success response codes (2XX) should have the same schema.

Comparing schemas for equality might be a little tricky, so we could simplify the logic somewhat:

  • An operation cannot return 200/201 and 204
  • We don't need to check 202 since az-lro-reponses-codes flags any 2XX for an operation that returns 202

Maybe we'll start with that.

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

No branches or pull requests

1 participant