-
Notifications
You must be signed in to change notification settings - Fork 97
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
'type' is forced by bravado-core to be present in definitions #46
Comments
Also, editor.swagger.io's petstore-simple has no |
As per ron from swagger: |
The fix for #35 makes it so 'type' is required. The rationale being, definitions split up across multiple files are a little more involved to go track down and check for compliance. This is no longer just a matter of checking |
Why can't we just guess the type based on the given keywords if it is not defined? http://json-schema.org/latest/json-schema-validation.html e.g. I'm using Restlet Studio for designing my API and it also doesn't generate these 'type' values. |
If
definitions
object does not contain atype
field,validate
method throws up like so:From the spec it does not look like 'type' key presence should be mandated. Instead it should be defaulted to 'object' is properties field is non-empty imo. Also,
swagger-converter
does not addtype: object
to any of thedefinitions
after conversions.The text was updated successfully, but these errors were encountered: