|
20 | 20 | "items": {"$ref": "#/definitions/outputItem"} |
21 | 21 | } |
22 | 22 | } |
| 23 | + }, |
| 24 | + "test": { |
| 25 | + "type": "object", |
| 26 | + "required": ["description", "data", "valid"], |
| 27 | + "properties": { |
| 28 | + "id": { |
| 29 | + "description": "Uniquely identifies a single test", |
| 30 | + "type": "string", |
| 31 | + "format": "uri" |
| 32 | + }, |
| 33 | + "description": {"type": "string"}, |
| 34 | + "data": {}, |
| 35 | + "valid": {"type": "boolean"}, |
| 36 | + "output": { |
| 37 | + "type": "object", |
| 38 | + "properties": { |
| 39 | + "basic": {"$ref": "#/definitions/outputItem"}, |
| 40 | + "detailed": {"$ref": "#/definitions/outputItem"}, |
| 41 | + "verbose": {"$ref": "#/definitions/outputItem"} |
| 42 | + }, |
| 43 | + "required": ["basic", "detailed", "verbose"] |
| 44 | + } |
| 45 | + }, |
| 46 | + "additionalProperties": false |
23 | 47 | } |
24 | 48 | }, |
25 | 49 | "type": "array", |
|
36 | 60 | "schema": {}, |
37 | 61 | "tests": { |
38 | 62 | "type": "array", |
39 | | - "items": { |
40 | | - "type": "object", |
41 | | - "required": ["description", "data", "valid"], |
42 | | - "properties": { |
43 | | - "id": { |
44 | | - "description": "Uniquely identifies a single test", |
45 | | - "type": "string", |
46 | | - "format": "uri" |
47 | | - }, |
48 | | - "description": {"type": "string"}, |
49 | | - "data": {}, |
50 | | - "valid": {"type": "boolean"}, |
51 | | - "output": { |
52 | | - "type": "object", |
53 | | - "properties": { |
54 | | - "basic": {"$ref": "#/definitions/outputItem"}, |
55 | | - "detailed": {"$ref": "#/definitions/outputItem"}, |
56 | | - "verbose": {"$ref": "#/definitions/outputItem"} |
57 | | - }, |
58 | | - "required": ["basic", "detailed", "verbose"] |
59 | | - } |
60 | | - }, |
61 | | - "additionalProperties": false |
62 | | - }, |
| 63 | + "items": { "$ref": "#/definitions/test" }, |
63 | 64 | "minItems": 1 |
64 | 65 | } |
65 | 66 | }, |
|
0 commit comments