1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
[
{
"description": "URN base URI with r-component",
"schema": {
"$comment": "RFC 8141 ยง2.3.1",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:example:foo-bar-baz-qux?+CCResolve:cc=uk",
"properties": {
"foo": {"$ref": "#/$defs/bar"}
},
"$defs": {
"bar": {"type": "string"}
}
},
"tests": [
{
"description": "a string is valid",
"data": {"foo": "bar"},
"valid": true
}/*,
{
"description": "a non-string is invalid",
"data": {"foo": 12},
"valid": false
}*/
]
}
]
|