Closed
Description
Hey,
I am hoping to get clarification on the following:
When the nullable and enum keywords are used together, which takes precedence?
i.e.
type: string
nullable: true
enum:
- one
- two
propertyA = null
When propertyA
is validated against the definition. Should the result be:
- true, since the it's
nullable
- false, because
null
is not part of theenum
- something else?
Metadata
Metadata
Assignees
Labels
No labels