| 1 |
[ |
| 2 |
{ |
| 3 |
"description": "tilde and forward slash in json-pointer", |
| 4 |
"schema": { |
| 5 |
"$schema": "https://json-schema.org/draft/2020-12/schema", |
| 6 |
"$id": "https://json-schema.org/tests/content/draft2020-12/escape/0", |
| 7 |
"properties": { |
| 8 |
"~a/b": {"type": "number"} |
| 9 |
} |
| 10 |
}, |
| 11 |
"tests": [ |
| 12 |
{ |
| 13 |
"description": "incorrect type must be reported, but a message is not required", |
| 14 |
"data": {"~a/b": "foobar"}, |
| 15 |
"output": { |
| 16 |
"basic": { |
| 17 |
"$id": "https://json-schema.org/tests/content/draft2020-12/escape/0/tests/0/basic", |
| 18 |
"$ref": "/draft/2020-12/output/schema", |
| 19 |
"properties": { |
| 20 |
"errors": { |
| 21 |
"contains": { |
| 22 |
"properties": { |
| 23 |
"keywordLocation": {"const": "/properties/~0a~1b/type"}, |
| 24 |
"absoluteKeywordLocation": {"const": "https://json-schema.org/tests/content/draft2020-12/escape/0#/properties/~0a~1b/type"}, |
| 25 |
"instanceLocation": {"const": "/~0a~1b"}, |
| 26 |
"annotation": false |
| 27 |
}, |
| 28 |
"required": ["keywordLocation", "instanceLocation"] |
| 29 |
} |
| 30 |
} |
| 31 |
}, |
| 32 |
"required": ["errors"] |
| 33 |
} |
| 34 |
} |
| 35 |
} |
| 36 |
] |
| 37 |
} |
| 38 |
] |