Closed
Description
For example, the first test in the const
file is
{
"description": "const validation",
"schema": {"const": 2},
"tests": [
{
"description": "same value is valid",
"data": 2,
"valid": true
},
{
"description": "another value is invalid",
"data": 5,
"valid": false
},
{
"description": "another type is invalid",
"data": "a",
"valid": false
}
]
}
There is no $schema
declaration. That means that this is a valid draft-6, -7, and -2019-09 schema.
My implementation assumes latest, unless it can be determined that another one should be used (via keywords used or $schema
declaration), but that may not be the case for others.
This means that while we intend for this to be evaluated as draft 2019-09, it may not be, depending on how the implementation reads non-specific schemas.