|
2085 | 2085 | "items", whose behavior is defined in terms of "prefixItems"
|
2086 | 2086 | </t>
|
2087 | 2087 | <t>
|
2088 |
| - "contains", whose behavior is defined in terms of "minContains" |
| 2088 | + "contains", whose behavior is affected by the presence and value of |
| 2089 | + "minContains", in the Validation vocabulary |
2089 | 2090 | </t>
|
2090 | 2091 | </list>
|
2091 | 2092 | </t>
|
|
2338 | 2339 | </t>
|
2339 | 2340 | <t>
|
2340 | 2341 | An array instance is valid against "contains" if at least one of
|
2341 |
| - its elements is valid against the given schema. The subschema MUST be |
2342 |
| - applied to every array element even after the first match has |
2343 |
| - been found, in order to collect annotations for use by other keywords. |
2344 |
| - This is to ensure that all possible annotations are collected. |
| 2342 | + its elements is valid against the given schema, provided that |
| 2343 | + "minContains" is not present or is a value greater than 0. |
2345 | 2344 | </t>
|
2346 | 2345 | <t>
|
2347 |
| - Logically, the validation result of applying the value subschema to each |
2348 |
| - item in the array MUST be ORed with "false", resulting in an overall |
2349 |
| - validation result. |
| 2346 | + If "minContains" is present and has a value of 0, then an array instance |
| 2347 | + is valid against this keyword only if NONE of its elements is valid |
| 2348 | + against the given schema. |
| 2349 | + </t> |
| 2350 | + <t> |
| 2351 | + The subschema MUST be applied to every array element even after the first |
| 2352 | + match has been found, in order to collect annotations for use by other |
| 2353 | + keywords. This is to ensure that all possible annotations are collected. |
2350 | 2354 | </t>
|
2351 | 2355 | <t>
|
2352 | 2356 | This keyword produces an annotation value which is an array of
|
|
0 commit comments