AfterShip/swagger-ajv

Support multiple types

tushar00jain opened this issue · 1 comments

Use type [] for Ajv and oneOf for Swagger

pull request #21
type allows an array of length two where the second element can be "null"
the schema will be parsed into correct format for swagger
"nullable: true" can also be passed at the same time for swagger documentation