|
654 | 654 | <t>
|
655 | 655 | Evaluation of a parent schema object can complete once all of its
|
656 | 656 | subschemas have been evaluated, although in some circumstances evaluation
|
657 |
| - may be short-circuited due to assertion results. |
| 657 | + may be short-circuited due to assertion results. When annotations are |
| 658 | + being collected, some assertion result short-circuiting is not possible |
| 659 | + due to the need to examine all subschemas for annotation collection, including |
| 660 | + those that cannot further change the assertion result. |
658 | 661 | </t>
|
659 | 662 | <section title="Keyword Interactions">
|
660 | 663 | <t>
|
|
1981 | 1984 | <t>
|
1982 | 1985 | An instance validates successfully against this keyword if it validates
|
1983 | 1986 | successfully against at least one schema defined by this keyword's value.
|
| 1987 | + Note that when annotations are being collected, all subschemas MUST |
| 1988 | + be examined so that annotations are collected from each subschema |
| 1989 | + that validates successfully. |
1984 | 1990 | </t>
|
1985 | 1991 | </section>
|
1986 | 1992 |
|
|
2245 | 2251 | </t>
|
2246 | 2252 | <t>
|
2247 | 2253 | An array instance is valid against "contains" if at least one of
|
2248 |
| - its elements is valid against the given schema. This keyword |
2249 |
| - does not produce annotation results. |
2250 |
| - <cref> |
2251 |
| - Should it produce a set of the indices for which the |
2252 |
| - array element is valid against the subschema? "contains" |
2253 |
| - does not affect "additionalItems" or any other current |
2254 |
| - or proposed keyword, but the information could be useful, |
2255 |
| - and implementation that collect annotations need to |
2256 |
| - apply "contains" to every element anyway. |
2257 |
| - </cref> |
| 2254 | + its elements is valid against the given schema. Note that when |
| 2255 | + collecting annotations, the subschema MUST be applied to every |
| 2256 | + array element even after the first match has been found. This |
| 2257 | + is to ensure that all possible annotations are collected. |
2258 | 2258 | </t>
|
2259 | 2259 | </section>
|
2260 | 2260 | </section>
|
|
0 commit comments