We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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": ["string", "null"] } is a valid JSON Schema type definition and as Swagger Schema references the schema directly (https://github.com/reverb/swagger-spec/blob/master/schemas/v2.0/schema.json#L489) - it works and is shown on the swagger-ui. It does not work when added as operation parameters: https://github.com/reverb/swagger-spec/blob/master/schemas/v2.0/schema.json#L393-L396.
{ "type": ["string", "null"] }
It could and should?
sample working swagger.json with nullable field on the schema properties:
https://gist.githubusercontent.com/ikitommi/7de56d1a89534bbbbfaa/raw/3c96da810b0b836e617907f92578ae4f27f79c8c/swagger2.json
The text was updated successfully, but these errors were encountered:
For 2.0, it can't and shouldn't. Keep in mind the source of truth is the spec, not schema. Please follow #229.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
{ "type": ["string", "null"] }
is a valid JSON Schema type definition and as Swagger Schema references the schema directly (https://github.com/reverb/swagger-spec/blob/master/schemas/v2.0/schema.json#L489) - it works and is shown on the swagger-ui. It does not work when added as operation parameters: https://github.com/reverb/swagger-spec/blob/master/schemas/v2.0/schema.json#L393-L396.It could and should?
sample working swagger.json with nullable field on the schema properties:
https://gist.githubusercontent.com/ikitommi/7de56d1a89534bbbbfaa/raw/3c96da810b0b836e617907f92578ae4f27f79c8c/swagger2.json
The text was updated successfully, but these errors were encountered: