-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Using empty schema object does not work anymore #452
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
Thanks for reporting, I'll get it fixed. Do you experience the problem with any specific tool? |
Okay thanks. Keep in mind it'll take a bit for the fix to be included in the editor. In general, we don't recommend using an empty schema, however it is valid. |
This doesn't seem to be fixed on http://editor.swagger.io on Sunday December 27th 2015. Is that working as intended? Using the same code sample referenced above. |
If properties are always included then the parser will be happy even if properties is an empty list.
Since this change,
9db746f
It's not possible anymore to specify an empty schema object in a response.
I believe this is because of the "oneOf" operator:
since { } matches both schemas ... it fails validation.
A simple fix for this I think is to make the "type" field required for "#/definitions/fileSchema"
The text was updated successfully, but these errors were encountered: