Skip to content

Commit d924055

Browse files
committed
Fix missing "if present" for "else"
Also other minor wording clarifications for if/then/else such as standardizing the "regardless of the validation outcome against the subschema" language. That language is important as it clarifies that subschema validation can fail (causing annotations to be dropped) without causing the containing schema to fail.
1 parent 7a6c26c commit d924055

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

jsonschema-validation.xml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -759,12 +759,13 @@
759759
<t>
760760
Instances that fail to validate against this
761761
keyword's subschema MUST also be valid against
762-
the subschema value of the "else" keyword.
762+
the subschema value of the "else" keyword, if
763+
present.
763764
</t>
764765
<t>
765766
Validation of the instance against this keyword
766767
on its own always succeeds, regardless of the
767-
validation outcome of against its subschema.
768+
validation outcome of the instance against its subschema.
768769
</t>
769770
</section>
770771
<section title="then">
@@ -780,8 +781,9 @@
780781
<t>
781782
When "if" is absent, or the instance fails to
782783
validate against its subschema, validation against
783-
this keyword always succeeds. Implementations
784-
SHOULD avoid attempting to validate against
784+
this keyword always succeeds, regardless of the
785+
validation outcome of the instance against its subschema.
786+
Implementations SHOULD avoid attempting to validate against
785787
the subschema in these cases.
786788
</t>
787789
</section>
@@ -799,8 +801,9 @@
799801
<t>
800802
When "if" is absent, or the instance successfully
801803
validates against its subschema, validation against
802-
this keyword always succeeds. Implementations
803-
SHOULD avoid attempting to validate against
804+
this keyword always succeeds, regardless of the
805+
validation outcome of the instance against its subschema.
806+
Implementations SHOULD avoid attempting to validate against
804807
the subschema in these cases.
805808
</t>
806809
</section>

0 commit comments

Comments
 (0)