-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Missing required property definition while using allOf with requried and properties #1212
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
Comments
Running into the same issue here. |
Looks great on the 3.x editor version: |
The 3.0 editor is great, but there's still widespread use of the 2.0 editor and UI. I ended up pulling the properties out of the array. I.e.
to
That will fix the parsing for the req1 property, but it will not fix the rest of the properties of the parent model. I'm not sure if the spec supports that level of composition, but you can pull those requirements down to the implementing model for a working spec. Grazie for the quick response. |
Hi, as we have limited resources, our efforts are focused on the new version, which will allow us to support the next specification. If someone can create a PR for the 2.x series, with tests, we can certainly get it in. |
Good on my end. I appreciate all the work you folks are doing! |
This issue makes me wonder, what is the validation library used in swagger editor? I test some complex swagger files with
and these 3 tools don't spot the same validation errors... |
@nemenemsrouge the editor uses its own validation mechanism. It's a combination of JSON Schema validation and manual validations. |
Thx @webron. Good point to know... It would be nice to have a exhaustive validation library (for CI or things like like this) Maybe sharing the validation system as a small standalone project could be a good idea? |
At the moment we have no plans on extracting the validation as a standalone library. |
Swagger File
Issue
Using this YAML file throw these errors
Other validating tools are ok...
The text was updated successfully, but these errors were encountered: