Skip to content

Commit 0ba3ce7

Browse files
committed
Support including some information about where a test behavior is specified.
Refs: json-schema-org/JSON-Schema-Test-Suite#699
1 parent bb52b77 commit 0ba3ce7

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

test-schema.json

+32
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,38 @@
3030
"type": "object",
3131
"properties": {
3232
"base_uri": { "type": "string", "format": "uri" },
33+
"why": {
34+
"description": "A human-readable explanation of the results of this test.",
35+
"type": "object",
36+
"unevaluatedProperties": false,
37+
"properties": {
38+
"summary": {
39+
"description": "A summary of the behavior specified in the linked specifications",
40+
"type": "string"
41+
},
42+
"specifications": {
43+
"description": "One or more releavnt specifications for this test.",
44+
"type": "array",
45+
"minItems": 1,
46+
"items": {
47+
"type": "object",
48+
"oneOf": [{ "required": ["rfc"] }, { "required": ["name"] }],
49+
"properties": {
50+
"rfc": {
51+
"description": "An IETF RFC",
52+
"type": "number"
53+
},
54+
"name": {
55+
"description": "Any other specification",
56+
"type": "string"
57+
},
58+
"section": { "type": "string" },
59+
"link": { "type": "string", "format": "uri" }
60+
}
61+
}
62+
}
63+
}
64+
},
3365
"ref": { "type": "string" },
3466
"target": {},
3567
"then": {

0 commit comments

Comments
 (0)