I\'ve spent a bunch of time trying to find a solution for creating swagger docs in Node.JS. The main library is swagger-node, in which you create a swagger yaml file and the
SwaggerUI doesn't support nullable types (please, see here). But I used nullable properties as:
type: ['string','null']
After that this property disappears from UI, but validation still worked.