-
-
Notifications
You must be signed in to change notification settings - Fork 362
Closed
Description
Hi Everyone, we are using json schema and found something weird when using enums in arrays.
For the simple json schema:
{ "type": "object", "additionalProperties": false, "properties": { "example": { "type": "array", "items": [ { "type": "string", "enum": [ "1", "2" ] } ] } } }
If you put:
{
"example": ["3","1"]
}
It fails saying that 3 is not in the enum. This behaviour is correct.
But if you put something correct first, then everything else passes the validation:
{
"example": ["1","3"]
}
Sorry if this is an open issue.
Thanks!
Metadata
Metadata
Assignees
Labels
No labels