Skip to content

Commit 464182f

Browse files
committed
reorganized validation meta-schema to match order in spec
1 parent b7f1819 commit 464182f

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

meta/validation.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,22 @@
99
"title": "Validation vocabulary meta-schema",
1010
"type": ["object", "boolean"],
1111
"properties": {
12+
"type": {
13+
"anyOf": [
14+
{ "$ref": "#/$defs/simpleTypes" },
15+
{
16+
"type": "array",
17+
"items": { "$ref": "#/$defs/simpleTypes" },
18+
"minItems": 1,
19+
"uniqueItems": true
20+
}
21+
]
22+
},
23+
"const": true,
24+
"enum": {
25+
"type": "array",
26+
"items": true
27+
},
1228
"multipleOf": {
1329
"type": "number",
1430
"exclusiveMinimum": 0
@@ -50,22 +66,6 @@
5066
"additionalProperties": {
5167
"$ref": "#/$defs/stringArray"
5268
}
53-
},
54-
"const": true,
55-
"enum": {
56-
"type": "array",
57-
"items": true
58-
},
59-
"type": {
60-
"anyOf": [
61-
{ "$ref": "#/$defs/simpleTypes" },
62-
{
63-
"type": "array",
64-
"items": { "$ref": "#/$defs/simpleTypes" },
65-
"minItems": 1,
66-
"uniqueItems": true
67-
}
68-
]
6969
}
7070
},
7171
"$defs": {

0 commit comments

Comments
 (0)