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