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

fix(ibm-accept-and-return-models): exempt non-object schemas #681

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

dpopp07
Copy link
Member

@dpopp07 dpopp07 commented Sep 4, 2024

When checking that request/response bodies are defined as models, we don't need to check schemas that aren't objects. These schemas should be objects, but there are other rules that will catch that and it's confusing for the validator to tell users they need the "properties" field on a non-object schema.

When checking that request/response bodies are defined as models,
we don't need to check schemas that aren't objects. These schemas
should be objects, but there are other rules that will catch that
and it's confusing for the validator to tell users they need the
"properties" field on a non-object schema.

Signed-off-by: Dustin Popp <dpopp07@gmail.com>
@dpopp07 dpopp07 requested a review from pyrooka September 4, 2024 17:04
Copy link
Member

@pyrooka pyrooka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@dpopp07 dpopp07 merged commit 4577d06 into main Sep 4, 2024
4 checks passed
@dpopp07 dpopp07 deleted the dp/fix-req-res-models branch September 4, 2024 20:03
ibm-devx-sdk pushed a commit that referenced this pull request Sep 4, 2024
## @ibm-cloud/openapi-ruleset [1.21.1](https://github.com/IBM/openapi-validator/compare/@ibm-cloud/openapi-ruleset@1.21.0...@ibm-cloud/openapi-ruleset@1.21.1) (2024-09-04)

### Bug Fixes

* **ibm-accept-and-return-models:** exempt non-object schemas ([#681](#681)) ([4577d06](4577d06))
@ibm-devx-sdk
Copy link

🎉 This PR is included in version 1.21.1 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

ibm-devx-sdk pushed a commit that referenced this pull request Sep 4, 2024
## ibm-openapi-validator [1.22.1](https://github.com/IBM/openapi-validator/compare/ibm-openapi-validator@1.22.0...ibm-openapi-validator@1.22.1) (2024-09-04)

### Bug Fixes

* **ibm-accept-and-return-models:** exempt non-object schemas ([#681](#681)) ([4577d06](4577d06))

### Dependencies

* **@ibm-cloud/openapi-ruleset:** upgraded to 1.21.1
@ibm-devx-sdk
Copy link

🎉 This PR is included in version 1.22.1 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@ibm-devx-sdk
Copy link

🎉 This PR is included in version 1.4.0 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants