Closed
Description
I understand that fully supporting type
arrays is a challenge for a variety of reasons. I would like to suggest that a compromise that would be functionally identical to nullable
but compatible with JSON Schema:
type
MUST be a string or a two-element array with unique items- if an array, one of the unique items MUST be
"null"
The only way in which this is inherently more difficult to implement than nullable
is that parsing type
becomes slightly harder. The functionality, validation outcomes, code generation, etc. should be identical.
Metadata
Metadata
Assignees
Labels
No labels