|
3 | 3 | "$id": "https://json-schema.org/tests/output-test-schema",
|
4 | 4 | "description": "A schema for files contained within this suite",
|
5 | 5 |
|
6 |
| - "$ref": "test-schema", |
| 6 | + "type": "array", |
| 7 | + "minItems": 1, |
| 8 | + "items": { |
| 9 | + "description": "An individual test case, containing multiple tests of a single schema's behavior", |
| 10 | + |
| 11 | + "type": "object", |
| 12 | + "required": [ "description", "schema", "tests" ], |
| 13 | + "properties": { |
| 14 | + "description": { |
| 15 | + "description": "The test case description", |
| 16 | + "type": "string" |
| 17 | + }, |
| 18 | + "comment": { |
| 19 | + "description": "Any additional comments about the test case", |
| 20 | + "type": "string" |
| 21 | + }, |
| 22 | + "schema": { |
| 23 | + "description": "A valid JSON Schema (one written for the corresponding version directory that the file sits within)." |
| 24 | + }, |
| 25 | + "tests": { |
| 26 | + "description": "A set of related tests all using the same schema", |
| 27 | + "type": "array", |
| 28 | + "items": { "$ref": "#/$defs/test" }, |
| 29 | + "minItems": 1 |
| 30 | + } |
| 31 | + }, |
| 32 | + "additionalProperties": false |
| 33 | + }, |
7 | 34 |
|
8 | 35 | "$defs": {
|
9 | 36 | "test": {
|
10 |
| - "$dynamicAnchor": "test", |
11 | 37 | "description": "A single output test",
|
12 | 38 |
|
13 |
| - "allOf": [ |
14 |
| - { "$ref": "test-schema#/$defs/test" }, |
15 |
| - { |
| 39 | + "type": "object", |
| 40 | + "required": [ "description", "data", "output" ], |
| 41 | + "properties": { |
| 42 | + "description": { |
| 43 | + "description": "The test description, briefly explaining which behavior it exercises", |
| 44 | + "type": "string" |
| 45 | + }, |
| 46 | + "comment": { |
| 47 | + "description": "Any additional comments about the test", |
| 48 | + "type": "string" |
| 49 | + }, |
| 50 | + "data": { |
| 51 | + "description": "The instance which should be validated against the schema in \"schema\"." |
| 52 | + }, |
| 53 | + "output": { |
| 54 | + "description": "schemas that are used to verify output", |
| 55 | + "type": "object", |
16 | 56 | "properties": {
|
17 |
| - "output": { |
18 |
| - "description": "schemas that are used to verify output", |
19 |
| - "type": "object", |
20 |
| - "properties": { |
21 |
| - "flag": { "$ref": "https://json-schema.org/draft/2020-12/schema" }, |
22 |
| - "basic": { "$ref": "https://json-schema.org/draft/2020-12/schema" }, |
23 |
| - "detailed": { "$ref": "https://json-schema.org/draft/2020-12/schema" }, |
24 |
| - "verbose": { "$ref": "https://json-schema.org/draft/2020-12/schema" }, |
25 |
| - "list": { "$ref": "https://json-schema.org/draft/2020-12/schema" }, |
26 |
| - "hierarchy": { "$ref": "https://json-schema.org/draft/2020-12/schema" } |
27 |
| - }, |
28 |
| - "minProperties": 1, |
29 |
| - "additionalProperties": false |
30 |
| - } |
31 |
| - } |
| 57 | + "flag": { "$ref": "https://json-schema.org/draft/2020-12/schema" }, |
| 58 | + "basic": { "$ref": "https://json-schema.org/draft/2020-12/schema" }, |
| 59 | + "detailed": { "$ref": "https://json-schema.org/draft/2020-12/schema" }, |
| 60 | + "verbose": { "$ref": "https://json-schema.org/draft/2020-12/schema" }, |
| 61 | + "list": { "$ref": "https://json-schema.org/draft/2020-12/schema" }, |
| 62 | + "hierarchy": { "$ref": "https://json-schema.org/draft/2020-12/schema" } |
| 63 | + }, |
| 64 | + "minProperties": 1, |
| 65 | + "additionalProperties": false |
32 | 66 | }
|
33 |
| - ] |
| 67 | + } |
34 | 68 | }
|
35 | 69 | }
|
36 | 70 | }
|
0 commit comments