Skip to content

Commit d0a73b8

Browse files
committed
Add requireAllExcept keyword
1 parent 38fccc0 commit d0a73b8

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

jsonschema-validation.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,18 @@
493493
</t>
494494
</section>
495495

496+
<section title="requiredAllExcept">
497+
<t>
498+
The value of this keyword MUST be an array.
499+
Elements of this array, if any, MUST be strings, and MUST be unique.
500+
</t>
501+
<t>
502+
An object instance is valid against this keyword if every property name
503+
declared in "properties" except those that appear in the array is the name
504+
of a property in the instance.
505+
</t>
506+
</section>
507+
496508
<section title="dependentRequired">
497509
<t>
498510
The value of this keyword MUST be an object. Properties in
@@ -1445,6 +1457,7 @@
14451457
<t hangText="draft-next">
14461458
<list style="symbols">
14471459
<t>Use IRIs instead of URIs</t>
1460+
<t>Add the "requireAllExcept" keyword</t>
14481461
</list>
14491462
</t>
14501463
<t hangText="draft-bhutton-json-schema-validation-01">

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)