Skip to content

Commit 9eef7bf

Browse files
provide defaults for all keywords and subschemas that lacked them
For vocabulary metaschemas, the default is just 'true'; for the 'dependentRequired' and 'dependentSchemas' keywords, the default is the empty object.
1 parent 77686de commit 9eef7bf

9 files changed

+20
-10
lines changed

meta/applicator.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,6 @@
5050
"minItems": 1,
5151
"items": { "$dynamicRef": "#meta" }
5252
}
53-
}
53+
},
54+
"default": true
5455
}

meta/content.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
"contentEncoding": { "type": "string" },
1414
"contentMediaType": { "type": "string" },
1515
"contentSchema": { "$dynamicRef": "#meta" }
16-
}
16+
},
17+
"default": true
1718
}

meta/core.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@
4848
"type": "string",
4949
"format": "uri-reference"
5050
}
51-
}
51+
},
52+
"default": true
5253
}

meta/format-annotation.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
"type": ["object", "boolean"],
1111
"properties": {
1212
"format": { "type": "string" }
13-
}
13+
},
14+
"default": true
1415
}

meta/format-assertion.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
"type": ["object", "boolean"],
1111
"properties": {
1212
"format": { "type": "string" }
13-
}
13+
},
14+
"default": true
1415
}

meta/meta-data.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,6 @@
3333
"type": "array",
3434
"items": true
3535
}
36-
}
36+
},
37+
"default": true
3738
}

meta/unevaluated.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
"properties": {
1212
"unevaluatedItems": { "$dynamicRef": "#meta" },
1313
"unevaluatedProperties": { "$dynamicRef": "#meta" }
14-
}
14+
},
15+
"default": true
1516
}

meta/validation.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@
6565
"type": "object",
6666
"additionalProperties": {
6767
"$ref": "#/$defs/stringArray"
68-
}
68+
},
69+
"default": {}
6970
}
7071
},
7172
"$defs": {
@@ -94,5 +95,6 @@
9495
"uniqueItems": true,
9596
"default": []
9697
}
97-
}
98+
},
99+
"default": true
98100
}

schema.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,6 @@
5353
"$ref": "meta/core#/$defs/uriReferenceString",
5454
"deprecated": true
5555
}
56-
}
56+
},
57+
"default": true
5758
}

0 commit comments

Comments
 (0)