-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
swagger error "type" should be a string #1302
Comments
@robinsingh-bw Swagger doesn't use the full JSON Schema. One of the restrictions is that |
Hey there! Sorry to bring this back up, but it's the sort of thing that's gonna get found on Google. It certainly is not a job for Swagger Editor to worry about htis, as Swagger Editor is just following the Swagger specification, but is there an issue somewhere where this is being worked on? The whole "Meh we're a sub&super-set of JSON Schema is not an ok status quo, but an anomaly that needs to be eradicated one piece at a time. Right? |
Found it! OAI/OpenAPI-Specification#229 (comment) |
Hi,
I have the following schema:
Its showing these two errors:
The second issue is being caused by the type: ["string", "null"] line but all my draft4 json schema specs are passing so I dont understand why its complaining? Is this not valid schema?
Regards.
The text was updated successfully, but these errors were encountered: