Skip to content

Commit 9d3e72c

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 14c2d59 commit 9d3e72c

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
@@ -515,10 +515,12 @@
515515
Elements of this array, if any, MUST be strings, and MUST be unique.
516516
</t>
517517
<t>
518-
An object instance is valid against this keyword if every property name
519-
declared in "properties" within the same schema object is the name of
520-
a property in the instance, with the exception of the property names
521-
that appear in this keyword's array.
518+
This keyword specifies properties that are required based on the property
519+
names declared in a "properties" keyword within the same schema object.
520+
The set of required properites is the set of property names declared in
521+
"properties" minus the set of property names declared in this keyword's
522+
array. An object instance is valid against this keyword if it has defined
523+
properties for each of the property names in this set of required properties.
522524
</t>
523525
</section>
524526

0 commit comments

Comments
 (0)