Skip to content

Commit 7c1349b

Browse files
committed
Reword requireAllExcept to avoid misunderstanding
It was pointed out that the previous wording could be mistaken to mean that properties were forbidden rather than optional.
1 parent 5d35b16 commit 7c1349b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

jsonschema-validation.xml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -513,10 +513,12 @@
513513
Elements of this array, if any, MUST be strings, and MUST be unique.
514514
</t>
515515
<t>
516-
An object instance is valid against this keyword if every property name
517-
declared in "properties" within the same schema object is the name of
518-
a property in the instance, with the exception of the property names
519-
that appear in this keyword's array.
516+
This keyword specifies properties that are required based on the property
517+
names declared in a "properties" keyword within the same schema object.
518+
The set of required properites is the set of property names declared in
519+
"properties" minus the set of property names declared in this keyword's
520+
array. An object instance is valid against this keyword if it has defined
521+
properties for each of the property names in this set of required properties.
520522
</t>
521523
</section>
522524

0 commit comments

Comments
 (0)