-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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?
duckboy81
Metadata
Metadata
Assignees
Labels
No labels