You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's an [x-nullable: true extension] you might use... but extensions are not supported in swagger2. It should be easy enough to add them, so PR is welcome. OTOH x-nullable is the only extension I've heard people wanting so far and it's probably not worth it.
Also note that OpenAPI 3.0.0 (Swagger's successor) does support nullable option.
In #105 we're discussing a possibility to add support for OpenAPI 3 and I think @ThomasCrevoisier started working on it, but I'm not sure what the progress is so far.
Sorry, I've been crazy busy those past few weeks. I'll try to push the separation of Swagger2 and OpenAPI 3 next week and then we will be able to make the OpenAPI 3 module evolve independently if that's okay.
Currently swagger mark some fields as required.
However, is there also option for nullable/non-nullable fields?
The text was updated successfully, but these errors were encountered: