At the moment, nullable is converted to JSON schema by adding null to type, e.g. { "nullable": true, "type": "string" } becomes { "type": ["string", "null"] }.
enum should also be modified in the same way, e.g. { "nullable": true, "type": "string", "enum": ["a", "b"] } becomes { "type": ["string", "null"], "enum": ["a", "b", null] }.
At the moment,
nullable
is converted to JSON schema by addingnull
totype
, e.g.{ "nullable": true, "type": "string" }
becomes{ "type": ["string", "null"] }
.enum
should also be modified in the same way, e.g.{ "nullable": true, "type": "string", "enum": ["a", "b"] }
becomes{ "type": ["string", "null"], "enum": ["a", "b", null] }
.