Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f365c65

Browse files
update output schema to describe new structure
1 parent c99fb84 commit f365c65

File tree

1 file changed

+28
-40
lines changed

1 file changed

+28
-40
lines changed

‎output/schema.json

Lines changed: 28 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -6,75 +6,56 @@
66
"anyOf": [
77
{ "$ref": "#/$defs/flag" },
88
{ "$ref": "#/$defs/basic" },
9-
{ "$ref": "#/$defs/detailed" },
10-
{ "$ref": "#/$defs/verbose" }
9+
{ "$ref": "#/$defs/hierarchical" }
1110
],
1211
"$defs": {
1312
"outputUnit":{
1413
"properties": {
1514
"valid": { "type": "boolean" },
16-
"keywordLocation": {
15+
"evaluationPath": {
1716
"type": "string",
1817
"format": "json-pointer"
1918
},
20-
"absoluteKeywordLocation": {
19+
"schemaLocation": {
2120
"type": "string",
2221
"format": "uri"
2322
},
2423
"instanceLocation": {
2524
"type": "string",
2625
"format": "json-pointer"
2726
},
28-
"error": {
29-
"type": "string"
30-
},
31-
"errors": {
27+
"nested": {
3228
"$ref": "#/$defs/outputUnitArray"
3329
},
3430
"annotations": {
35-
"$ref": "#/$defs/outputUnitArray"
31+
"type": "object",
32+
"additionalProperties": true
33+
},
34+
"errors": {
35+
"type": "object",
36+
"additionalProperties": { "type": "string" }
3637
}
3738
},
38-
"required": [ "valid", "keywordLocation", "instanceLocation" ],
39+
"required": [ "valid", "evaluationPath", "schemaLocation", "instanceLocation" ],
3940
"allOf": [
4041
{
4142
"if": {
43+
"required": [ "errors" ]
44+
},
45+
"then": {
4246
"properties": {
4347
"valid": { "const": false }
4448
}
45-
},
46-
"then": {
47-
"anyOf": [
48-
{
49-
"required": [ "error" ]
50-
},
51-
{
52-
"required": [ "errors" ]
53-
}
54-
]
5549
}
5650
},
5751
{
5852
"if": {
59-
"anyOf": [
60-
{
61-
"properties": {
62-
"keywordLocation": {
63-
"pattern": "/\\$ref/"
64-
}
65-
}
66-
},
67-
{
68-
"properties": {
69-
"keywordLocation": {
70-
"pattern": "/\\$dynamicRef/"
71-
}
72-
}
73-
}
74-
]
53+
"required": [ "annotations" ]
7554
},
7655
"then": {
77-
"required": [ "absoluteKeywordLocation" ]
56+
"properties": {
57+
"valid": { "const": true }
58+
}
7859
}
7960
}
8061
]
@@ -89,8 +70,15 @@
8970
},
9071
"required": [ "valid" ]
9172
},
92-
"basic": { "$ref": "#/$defs/outputUnit" },
93-
"detailed": { "$ref": "#/$defs/outputUnit" },
94-
"verbose": { "$ref": "#/$defs/outputUnit" }
73+
"basic": {
74+
"properties": {
75+
"valid": { "type": "boolean" },
76+
"nested": {
77+
"$ref": "#/$defs/outputUnitArray"
78+
}
79+
},
80+
"required": [ "valid", "nested" ]
81+
},
82+
"hierarchical": { "$ref": "#/$defs/outputUnit" }
9583
}
9684
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /