Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9e50408

Browse files
committed
Rework the sections a bit more.
Focus on subschema vs not subschema, no matter how the subschema is used.
1 parent ac60d16 commit 9e50408

File tree

1 file changed

+32
-28
lines changed

1 file changed

+32
-28
lines changed

‎jsonschema-validation.xml

Lines changed: 32 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -347,17 +347,6 @@
347347
Omitting this keyword has the same behavior as a value of false.
348348
</t>
349349
</section>
350-
351-
<section title="contains">
352-
<t>
353-
The value of this keyword MUST be an object. This object MUST be
354-
a valid JSON Schema.
355-
</t>
356-
<t>
357-
An array instance is valid against "contains" if at least one of
358-
its elements is valid against the given schema.
359-
</t>
360-
</section>
361350
</section>
362351

363352
<section title="Validating array elements with subschemas">
@@ -403,6 +392,17 @@
403392
Omitting this keyword has the same behavior as an empty schema.
404393
</t>
405394
</section>
395+
396+
<section title="contains">
397+
<t>
398+
The value of this keyword MUST be an object. This object MUST be
399+
a valid JSON Schema.
400+
</t>
401+
<t>
402+
An array instance is valid against "contains" if at least one of
403+
its elements is valid against the given schema.
404+
</t>
405+
</section>
406406
</section>
407407

408408
<section title="Validation keywords for objects">
@@ -436,20 +436,6 @@
436436
</t>
437437
</section>
438438

439-
<section title="propertyNames">
440-
<t>
441-
The value of "propertyNames" MUST be a valid JSON Schema.
442-
</t>
443-
<t>
444-
If the instance is an object, this keyword validates if every property name in the instance
445-
validates against the provided schema.
446-
Note the property name that the schema is testing will always be a string.
447-
</t>
448-
<t>
449-
Omitting this keyword has the same behavior as an empty schema.
450-
</t>
451-
</section>
452-
453439
<section title="required">
454440
<t>
455441
The value of this keyword MUST be an array.
@@ -465,7 +451,7 @@
465451
</section>
466452
</section>
467453

468-
<section title="Validating object properties with subschemas">
454+
<section title="Validating objects with subschemas">
469455
<t>
470456
These keywords determine which subschemas apply to each property of an object.
471457
Validation of other instance types against these keywords always succeeds.
@@ -520,9 +506,21 @@
520506
Omitting this keyword has the same behavior as an empty schema.
521507
</t>
522508
</section>
523-
</section>
524509

525-
<section title="Conditional validation based on object properties">
510+
<section title="propertyNames">
511+
<t>
512+
The value of "propertyNames" MUST be a valid JSON Schema.
513+
</t>
514+
<t>
515+
If the instance is an object, this keyword validates if every property name in the instance
516+
validates against the provided schema.
517+
Note the property name that the schema is testing will always be a string.
518+
</t>
519+
<t>
520+
Omitting this keyword has the same behavior as an empty schema.
521+
</t>
522+
</section>
523+
526524
<section title="dependencies">
527525
<t>
528526
This keyword specifies rules that are evaluated if the instance is an object and
@@ -591,7 +589,13 @@
591589
An instance validates if and only if the instance is in any of the sets listed for this keyword.
592590
</t>
593591
</section>
592+
</section>
594593

594+
<section title="Applying subschemas with boolean logic">
595+
<t>
596+
These keywords combine or modify the validation results
597+
of their subschema(s) with boolean operations.
598+
</t>
595599
<section title="allOf">
596600
<t>
597601
This keyword's value MUST be a non-empty array.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /