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

az-pagination-response must check allOf when looking for response schema properties #57

Open
mikekistler opened this issue Jan 21, 2022 · 0 comments

Comments

@mikekistler
Copy link
Member

mikekistler commented Jan 21, 2022

The pagination-response function currently only checks for the value and nextLink properties in the properties object of the response schema. But these properties could be defined in the children of an allOf in the response schema, so the code will need to nest down into the allOf to find the properties it is looking for.

And this will be complicated because it will also have to keep track of where it found those properties so it can set the paths correctly in any error messages that are issued.

@mikekistler mikekistler changed the title az-pagination-response rule crashes if response schema has no properties az-pagination-response must check allOf when looking for response schema properties Jan 21, 2022
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