Skip to content

Commit a961689

Browse files
committed
Validation: Allow allOf/anyOf/oneOf/not to specify non-object schemas
1 parent 0667b89 commit a961689

File tree

1 file changed

+7
-20
lines changed

1 file changed

+7
-20
lines changed

jsonschema-validation.xml

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -605,12 +605,8 @@
605605

606606
<section title="allOf">
607607
<t>
608-
This keyword's value MUST be an array.
609-
This array MUST have at least one element.
610-
</t>
611-
<t>
612-
Elements of the array MUST be objects. Each object MUST be a valid JSON
613-
Schema.
608+
This keyword's value MUST be a non-empty array.
609+
Each item of the array MUST be a valid JSON Schema.
614610
</t>
615611
<t>
616612
An instance validates successfully against this keyword if it validates
@@ -620,12 +616,8 @@
620616

621617
<section title="anyOf">
622618
<t>
623-
This keyword's value MUST be an array.
624-
This array MUST have at least one element.
625-
</t>
626-
<t>
627-
Elements of the array MUST be objects.
628-
Each object MUST be a valid JSON Schema.
619+
This keyword's value MUST be a non-empty array.
620+
Each item of the array MUST be a valid JSON Schema.
629621
</t>
630622
<t>
631623
An instance validates successfully against this keyword if it validates
@@ -635,12 +627,8 @@
635627

636628
<section title="oneOf">
637629
<t>
638-
This keyword's value MUST be an array.
639-
This array MUST have at least one element.
640-
</t>
641-
<t>
642-
Elements of the array MUST be objects.
643-
Each object MUST be a valid JSON Schema.
630+
This keyword's value MUST be a non-empty array.
631+
Each item of the array MUST be a valid JSON Schema.
644632
</t>
645633
<t>
646634
An instance validates successfully against this keyword if it validates
@@ -650,8 +638,7 @@
650638

651639
<section title="not">
652640
<t>
653-
This keyword's value MUST be an object.
654-
This object MUST be a valid JSON Schema.
641+
This keyword's value MUST be a valid JSON Schema.
655642
</t>
656643
<t>
657644
An instance is valid against this keyword if it fails to validate

0 commit comments

Comments
 (0)