Skip to content

Commit d40680f

Browse files
committed
Add requireAllExcept keyword
1 parent 5f783b8 commit d40680f

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

jsonschema-validation.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,18 @@
491491
</t>
492492
</section>
493493

494+
<section title="requiredAllExcept">
495+
<t>
496+
The value of this keyword MUST be an array.
497+
Elements of this array, if any, MUST be strings, and MUST be unique.
498+
</t>
499+
<t>
500+
An object instance is valid against this keyword if every property name
501+
declared in "properties" except those that appear in the array is the name
502+
of a property in the instance.
503+
</t>
504+
</section>
505+
494506
<section title="dependentRequired">
495507
<t>
496508
The value of this keyword MUST be an object. Properties in
@@ -1429,6 +1441,11 @@
14291441
</t>
14301442
<t>
14311443
<list style="hanging">
1444+
<t hangText="draft-bhutton-json-schema-next">
1445+
<list style="symbols">
1446+
<t>Add the "requireAllExcept" keyword</t>
1447+
</list>
1448+
</t>
14321449
<t hangText="draft-bhutton-json-schema-validation-00">
14331450
<list style="symbols">
14341451
<t>Correct email format RFC reference to 5321 instead of 5322</t>

meta/validation.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"maxProperties": { "$ref": "#/$defs/nonNegativeInteger" },
6262
"minProperties": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },
6363
"required": { "$ref": "#/$defs/stringArray" },
64+
"allRequiredExcept": { "$ref": "#/$defs/stringArray" },
6465
"dependentRequired": {
6566
"type": "object",
6667
"additionalProperties": {

0 commit comments

Comments
 (0)