|
347 | 347 | Omitting this keyword has the same behavior as a value of false.
|
348 | 348 | </t>
|
349 | 349 | </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> |
361 | 350 | </section>
|
362 | 351 |
|
363 | 352 | <section title="Validating array elements with subschemas">
|
|
403 | 392 | Omitting this keyword has the same behavior as an empty schema.
|
404 | 393 | </t>
|
405 | 394 | </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> |
406 | 406 | </section>
|
407 | 407 |
|
408 | 408 | <section title="Validation keywords for objects">
|
|
436 | 436 | </t>
|
437 | 437 | </section>
|
438 | 438 |
|
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 | | - |
453 | 439 | <section title="required">
|
454 | 440 | <t>
|
455 | 441 | The value of this keyword MUST be an array.
|
|
465 | 451 | </section>
|
466 | 452 | </section>
|
467 | 453 |
|
468 | | - <section title="Validating object properties with subschemas"> |
| 454 | + <section title="Validating objects with subschemas"> |
469 | 455 | <t>
|
470 | 456 | These keywords determine which subschemas apply to each property of an object.
|
471 | 457 | Validation of other instance types against these keywords always succeeds.
|
|
520 | 506 | Omitting this keyword has the same behavior as an empty schema.
|
521 | 507 | </t>
|
522 | 508 | </section>
|
523 | | - </section> |
524 | 509 |
|
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 | + |
526 | 524 | <section title="dependencies">
|
527 | 525 | <t>
|
528 | 526 | This keyword specifies rules that are evaluated if the instance is an object and
|
|
591 | 589 | An instance validates if and only if the instance is in any of the sets listed for this keyword.
|
592 | 590 | </t>
|
593 | 591 | </section>
|
| 592 | + </section> |
594 | 593 |
|
| 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> |
595 | 599 | <section title="allOf">
|
596 | 600 | <t>
|
597 | 601 | This keyword's value MUST be a non-empty array.
|
|
0 commit comments