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
Instead of add null in type property, you can use default property instead.
Swagger.json property definition example:
"due_date": { "type": "string", "description": "Due date", "default": "null" },
It's a valid Swagger type definition, and still appears as expected in Swagger UI.