|
413 | 413 | then this keyword has no effect.
|
414 | 414 | </t>
|
415 | 415 | <t>
|
416 | | - An array instance is valid against "maxContains" if its |
417 | | - value is less than or equal to, the array length of the annotation |
418 | | - result from an adjacent |
419 | | - <xref target="json-schema">"contains"</xref> keyword where the |
420 | | - annotation is an array, or the length of the instance array |
421 | | - where the annotation is "true". |
| 416 | + An instance array is valid against "maxContains" in two ways, depending on |
| 417 | + the form of the annotation result of an adjacent |
| 418 | + <xref target="json-schema">"contains"</xref> keyword. The first way is if |
| 419 | + the annotation result is an array and the length of that array is less than |
| 420 | + or equal to the "maxContains" value. The second way is if the annotation |
| 421 | + result is a boolean "true" and the instance array length is less than or |
| 422 | + equal to the "maxContains" value. |
422 | 423 | </t>
|
423 | 424 | </section>
|
424 | 425 |
|
|
431 | 432 | then this keyword has no effect.
|
432 | 433 | </t>
|
433 | 434 | <t>
|
434 | | - An array instance is valid against "minContains" if its |
435 | | - value is greater than or equal to, the array length of the annotation |
436 | | - result from an adjacent |
437 | | - <xref target="json-schema">"contains"</xref> keyword where the |
438 | | - annotation is an array, or the length of the instance array |
439 | | - where the annotation is "true". |
| 435 | + An instance array is valid against "minContains" in two ways, depending on |
| 436 | + the form of the annotation result of an adjacent |
| 437 | + <xref target="json-schema">"contains"</xref> keyword. The first way is if |
| 438 | + the annotation result is an array and the length of that array is greater |
| 439 | + than or equal to the "minContains" value. The second way is if the |
| 440 | + annotation result is a boolean "true" and the instance array length is |
| 441 | + greater than or equal to the "minContains" value. |
440 | 442 | </t>
|
441 | 443 | <t>
|
442 | 444 | A value of 0 is allowed, but is only useful for setting a range
|
|
0 commit comments