Closed MathieM closed 1 month ago
Enum with both type with null, and string thow a validation error.
{ "type": ["string", null], "enum": ["A", "B"] }
Today we need to use
{ "oneOf": { [ { "type": null }, { "type": "string", "enum": ["A", "B"] } ] } }
or
{ "type": ["string", null], "enum": [null, "A", "B"] }
https://opis.io/json-schema/2.x/null.html
You should use the name of the type as string
{ "type": ["string", "null"] }
Enum with both type with null, and string thow a validation error.
Today we need to use
or