We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dbbe73d + fd25a79 commit 27f89d4Copy full SHA for 27f89d4
output/schema.json
@@ -3,7 +3,7 @@
3
"$id": "https://json-schema.org/draft/2019-09/output/schema",
4
"description": "A schema that validates the minimum requirements for validation output",
5
6
- "oneOf": [
+ "anyOf": [
7
{ "$ref": "#/$defs/flag" },
8
{ "$ref": "#/$defs/basic" },
9
{ "$ref": "#/$defs/detailed" },
@@ -25,6 +25,9 @@
25
"type": "string",
26
"format": "json-pointer"
27
},
28
+ "error": {
29
+ "type": "string"
30
+ },
31
"errors": {
32
"$ref": "#/$defs/outputUnitArray"
33
@@ -41,7 +44,14 @@
41
44
}
42
45
43
46
"then": {
- "required": [ "errors" ]
47
48
+ {
49
+ "required": [ "error" ]
50
51
52
+ "required": [ "errors" ]
53
+ }
54
+ ]
55
56
57
{
0 commit comments