Skip to content
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 UI doesn't display nullable types #1920

Closed
bssergy opened this issue Jan 27, 2016 · 3 comments
Closed

Swagger UI doesn't display nullable types #1920

bssergy opened this issue Jan 27, 2016 · 3 comments

Comments

@bssergy
Copy link

bssergy commented Jan 27, 2016

If I have nullable type of property in my definition:

type: [integer, null]

this property do not show.

@webron
Copy link
Contributor

webron commented Jan 27, 2016

The spec doesn't support two things you do here - multiple types and null as a type. Swagger-UI will not support either of those if and until they are added to the spec.

@webron webron closed this as completed Jan 27, 2016
@bssergy
Copy link
Author

bssergy commented Jan 28, 2016

So, how can I specify that property can be nullable?

@webron
Copy link
Contributor

webron commented Jan 28, 2016

You can't. It's not supported by the spec. OAI/OpenAPI-Specification#229

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants