Refactor a single test into the "definitions" area
"items": {"$ref": "#/definitions/outputItem"}
}
}
- }
- },
- "type": "array",
- "items": {
- "type": "object",
- "required": ["description", "schema", "tests"],
- "properties": {
- "id": {
- "description": "Uniquely identifies a set of tests",
- "type": "string",
- "format": "uri"
},
- "description": {"type": "string"},
- "schema": {},
- "tests": {
- "type": "array",
- "items": {
+ "test": {
"type": "object",
"required": ["description", "data", "valid"],
"properties": {
}
},
"additionalProperties": false
+ }
},
+ "type": "array",
+ "items": {
+ "type": "object",
+ "required": ["description", "schema", "tests"],
+ "properties": {
+ "id": {
+ "description": "Uniquely identifies a set of tests",
+ "type": "string",
+ "format": "uri"
+ },
+ "description": {"type": "string"},
+ "schema": {},
+ "tests": {
+ "type": "array",
+ "items": { "$ref": "#/definitions/test" },
"minItems": 1
}
},
