Schema a now "parsed" into C++-validator-objects in a first step and then validation takes place with these objects. Errors are now handled via a user-provided error-handler allowing the user to collect all errors at once or bail out when a certain threshold is reached. Fixes #36 and #8. One (sub-)schema can now be referenced with different URIs. Fixes #9 JSON schema draft 7 is now supported. Fixes #35
44 lines
1.3 KiB
JSON
44 lines
1.3 KiB
JSON
[
|
|
{
|
|
"description": "validation of IRI References",
|
|
"schema": {"format": "iri-reference"},
|
|
"tests": [
|
|
{
|
|
"description": "a valid IRI",
|
|
"data": "http://ƒøø.ßår/?∂éœ=πîx#πîüx",
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "a valid protocol-relative IRI Reference",
|
|
"data": "//ƒøø.ßår/?∂éœ=πîx#πîüx",
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "a valid relative IRI Reference",
|
|
"data": "/âππ",
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "an invalid IRI Reference",
|
|
"data": "\\\\WINDOWS\\filëßåré",
|
|
"valid": false
|
|
},
|
|
{
|
|
"description": "a valid IRI Reference",
|
|
"data": "âππ",
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "a valid IRI fragment",
|
|
"data": "#ƒrägmênt",
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "an invalid IRI fragment",
|
|
"data": "#ƒräg\\mênt",
|
|
"valid": false
|
|
}
|
|
]
|
|
}
|
|
]
|