Closed
Description
I'm working on an implementation for draft 6, and noticed this test (added in #485). I'm guessing it was oversight to add this to draft 6. For convenience, I've copied the test fragment here:
{
"description": "contains with false if subschema",
"schema": {
"contains": {
"if": false,
"else": true
}
},
"tests": [
{
"description": "any non-empty array is valid",
"data": ["foo"],
"valid": true
},
{
"description": "empty array is invalid",
"data": [],
"valid": false
}
]
}
With "if" and "else" not defined in draft 6, this schema is equivalent to "contains": {}
, making it redundant with the "contains keyword with boolean schema true" test.
Metadata
Metadata
Assignees
Labels
No labels