|
2330 | 2330 | Implementations that do not support annotation collection MUST do so.
|
2331 | 2331 | </t>
|
2332 | 2332 | </section>
|
2333 |
| - |
2334 |
| - <section title="contains"> |
2335 |
| - <t> |
2336 |
| - The value of this keyword MUST be a valid JSON Schema. |
2337 |
| - </t> |
2338 |
| - <t> |
2339 |
| - An array instance is valid against "contains" if at least one of |
2340 |
| - its elements is valid against the given schema. The subschema MUST be |
2341 |
| - applied to every array element even after the first match has |
2342 |
| - been found, in order to collect annotations for use by other keywords. |
2343 |
| - This is to ensure that all possible annotations are collected. |
2344 |
| - </t> |
2345 |
| - <t> |
2346 |
| - An object instance is valid against "contains" if at least one of |
2347 |
| - its property values is valid against the given schema. The subschema |
2348 |
| - MUST be applied to every property value even after the first match has |
2349 |
| - been found, in order to collect annotations for use by other keywords. |
2350 |
| - This is to ensure that all possible annotations are collected. |
2351 |
| - </t> |
2352 |
| - <t> |
2353 |
| - Logically, the validation result of applying the value subschema to each |
2354 |
| - item in the array or property in the object MUST be ORed with "false", |
2355 |
| - resulting in an overall validation result. |
2356 |
| - </t> |
2357 |
| - <t> |
2358 |
| - This keyword produces an annotation value which is an array of the |
2359 |
| - indexes or property names to which this keyword validates successfully |
2360 |
| - when applying its subschema, in ascending order. The value MAY be a |
2361 |
| - boolean "true" if the subschema validates successfully when applied to |
2362 |
| - every index or property value of the instance. The annotation MUST be |
2363 |
| - present if the instance array or object to which this keyword's schema |
2364 |
| - applies is empty. |
2365 |
| - </t> |
2366 |
| - </section> |
2367 | 2333 | </section>
|
2368 | 2334 |
|
2369 | 2335 | <section title="Keywords for Applying Subschemas to Objects">
|
|
2458 | 2424 | </t>
|
2459 | 2425 | </section>
|
2460 | 2426 | </section>
|
| 2427 | + |
| 2428 | + <section title="Other Keywords for Applying Subschemas"> |
| 2429 | + <section title="contains"> |
| 2430 | + <t> |
| 2431 | + The value of this keyword MUST be a valid JSON Schema. |
| 2432 | + </t> |
| 2433 | + <t> |
| 2434 | + An array instance is valid against "contains" if at least one of |
| 2435 | + its elements is valid against the given schema. The subschema MUST be |
| 2436 | + applied to every array element even after the first match has |
| 2437 | + been found, in order to collect annotations for use by other keywords. |
| 2438 | + This is to ensure that all possible annotations are collected. |
| 2439 | + </t> |
| 2440 | + <t> |
| 2441 | + An object instance is valid against "contains" if at least one of |
| 2442 | + its property values is valid against the given schema. The subschema |
| 2443 | + MUST be applied to every property value even after the first match has |
| 2444 | + been found, in order to collect annotations for use by other keywords. |
| 2445 | + This is to ensure that all possible annotations are collected. |
| 2446 | + </t> |
| 2447 | + <t> |
| 2448 | + Logically, the validation result of applying the value subschema to each |
| 2449 | + item in the array or property in the object MUST be ORed with "false", |
| 2450 | + resulting in an overall validation result. |
| 2451 | + </t> |
| 2452 | + <t> |
| 2453 | + This keyword produces an annotation value which is an array of the |
| 2454 | + indexes or property names to which this keyword validates successfully |
| 2455 | + when applying its subschema, in ascending order. The value MAY be a |
| 2456 | + boolean "true" if the subschema validates successfully when applied to |
| 2457 | + every index or property value of the instance. The annotation MUST be |
| 2458 | + present if the instance array or object to which this keyword's schema |
| 2459 | + applies is empty. |
| 2460 | + </t> |
| 2461 | + </section> |
| 2462 | + </section> |
2461 | 2463 | </section>
|
2462 | 2464 | </section>
|
2463 | 2465 |
|
|
0 commit comments