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
RES-1843 Add OpenAPI coverage testing #623
Conversation
# Conflicts: # composer.json # composer.lock
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me.
Comprehensive documentation of the schema of all resources that might be returned via the API - and each call links to that schema so you can see what you'd expect back inline from any particular call.
Bravo!
|
Kudos, SonarCloud Quality Gate passed!
|








This builds in automatic testing of the OpenAPI specification to our tests.
We have some cases where we use
anyOfto return a group/group summary or similar. For the code to work out which one it is and validate it, we need to add in fields which force the models to be different (not just a subset) and make it required.Fixes quite a fix issues with the way the API was documented which I hadn't noticed.