heldersepu / Swagger-Net

Seamlessly adds a swagger to WebApi projects!
BSD 3-Clause "New" or "Revised" License
144 stars 42 forks source link

Nullable data type #87

Closed chrno1209 closed 5 years ago

chrno1209 commented 5 years ago

Hi, Is there anyway to display nullable data type on definitions? Thanks.

heldersepu commented 5 years ago

Is there something that is not working? please describe your actual issue

chrno1209 commented 5 years ago

This is not actually an issue, it is just a question where I want to show user that this definition's property is nullable on model view, so they know it.

heldersepu commented 5 years ago

https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md

chrno1209 commented 5 years ago

@heldersepu thanks for your suggestion, as I notice that OAI v2 does not support nullable type, it support from v3 only :).