| 1 | [ |
| 2 | { |
| 3 | "description": "property names are escaped in locations", |
| 4 | "schema": { |
| 5 | "$schema": "https://json-schema.org/v1", |
| 6 | "$id": "https://json-schema.org/tests/content/v1-extra/escape/0", |
| 7 | "properties": { |
| 8 | "~a/b": {"type": "number"} |
| 9 | } |
| 10 | }, |
| 11 | "tests": [ |
| 12 | { |
| 13 | "description": "incorrect type reports escaped locations", |
| 14 | "data": {"~a/b": "foobar"}, |
| 15 | "output": { |
| 16 | "list": { |
| 17 | "$id": "https://json-schema.org/tests/content/v1-extra/escape/0/tests/0/list", |
| 18 | "$ref": "/v1/output/schema", |
| 19 | "properties": { |
| 20 | "details": { |
| 21 | "contains": { |
| 22 | "properties": { |
| 23 | "schemaLocation": {"const": "https://json-schema.org/tests/content/v1-extra/escape/0#/properties/~0a~1b/type"}, |
| 24 | "instanceLocation": {"const": "/~0a~1b"}, |
| 25 | "errors": { |
| 26 | "type": "object", |
| 27 | "minProperties": 1 |
| 28 | } |
| 29 | }, |
| 30 | "required": ["schemaLocation", "instanceLocation", "errors"] |
| 31 | } |
| 32 | } |
| 33 | }, |
| 34 | "required": ["details"] |
| 35 | }, |
| 36 | "hierarchical": { |
| 37 | "$id": "https://json-schema.org/tests/content/v1-extra/escape/0/tests/0/hierarchical", |
| 38 | "$ref": "/v1/output/schema", |
| 39 | "properties": { |
| 40 | "details": { |
| 41 | "contains": { |
| 42 | "properties": { |
| 43 | "droppedAnnotations": { |
| 44 | "contains": {"const": "~a/b"} |
| 45 | }, |
| 46 | "details": { |
| 47 | "contains": { |
| 48 | "properties": { |
| 49 | "details": { |
| 50 | "contains": { |
| 51 | "properties": { |
| 52 | "schemaLocation": {"const": "https://json-schema.org/tests/content/v1-extra/escape/0#/properties/~0a~1b/type"}, |
| 53 | "instanceLocation": {"const": "/~0a~1b"} |
| 54 | }, |
| 55 | "required": ["schemaLocation", "instanceLocation"] |
| 56 | } |
| 57 | } |
| 58 | }, |
| 59 | "required": ["details"] |
| 60 | } |
| 61 | } |
| 62 | } |
| 63 | } |
| 64 | } |
| 65 | }, |
| 66 | "required": ["details"] |
| 67 | } |
| 68 | } |
| 69 | } |
| 70 | ] |
| 71 | } |
| 72 | ] |