-
Notifications
You must be signed in to change notification settings - Fork 324
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
OpenApi 3.1 "schema" property is not validated correctly #673
Comments
When using OpenAPI to validate the request and response, you need to extract the schema for the request or response based on the path. We are doing it with the light-rest-4j validator. Here is the class that can be a reference. |
Thanks for your comment. |
I understand now. I will create a test case and try it myself. Thanks. |
Many thanks :) |
Hi @stevehu |
It would be great if you could create a test case to demo the issue. Thanks. |
bweben@6156abd this showcases the issue, I then get the following errors: Log output
|
@stevehu were you able to verify the error? |
Not yet. Would you be able to create a test case to reproduce this error? Thanks. |
Hello
If I try to parse the https://editor-next.swagger.io OpenApi 3.1 Petstore example, I get the following errors:
And If I debug it seems that there are no validators available beginning on path
$.paths./pet.put.requestBody.content.application/json
meaning the schema isn't evaluated which leads to the above error.Is there already a Validator for the Schema per se?
Thanks for your work and your answer.
The text was updated successfully, but these errors were encountered: