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
31 lines
902 B
JSON
31 lines
902 B
JSON
[
|
|
{
|
|
"description": "format: uri-template",
|
|
"schema": {
|
|
"format": "uri-template"
|
|
},
|
|
"tests": [
|
|
{
|
|
"description": "a valid uri-template",
|
|
"data": "http://example.com/dictionary/{term:1}/{term}",
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "an invalid uri-template",
|
|
"data": "http://example.com/dictionary/{term:1}/{term",
|
|
"valid": false
|
|
},
|
|
{
|
|
"description": "a valid uri-template without variables",
|
|
"data": "http://example.com/dictionary",
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "a valid relative uri-template",
|
|
"data": "dictionary/{term:1}/{term}",
|
|
"valid": true
|
|
}
|
|
]
|
|
}
|
|
]
|