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