|
150 | 150 | <t>
|
151 | 151 | JSON Schema can be extended either by defining additional vocabularies,
|
152 | 152 | or less formally by defining additional keywords outside of any vocabulary.
|
153 |
| - Unrecognized individual keywords are ignored, while the behavior with respect |
154 |
| - to an unrecognized vocabulary can be controlled when declaring which |
155 |
| - vocabularies are in use. |
| 153 | + Unrecognized individual keywords simply have their values collected as annotations, |
| 154 | + while the behavior with respect to an unrecognized vocabulary can be controlled |
| 155 | + when declaring which vocabularies are in use. |
156 | 156 | </t>
|
157 | 157 | <t>
|
158 | 158 | This document defines a core vocabulary that MUST be supported by any
|
|
351 | 351 | </t>
|
352 | 352 | <t>
|
353 | 353 | A JSON Schema MAY contain properties which are not schema keywords.
|
354 |
| - Unknown keywords SHOULD be treated as annotations. |
| 354 | + Unknown keywords SHOULD be treated as annotations, where the value |
| 355 | + of the keyword is the value of the annotation. |
355 | 356 | </t>
|
356 | 357 | <t>
|
357 | 358 | An empty schema is a JSON Schema with no properties, or only unknown
|
|
575 | 576 | by any entity. Save for explicit agreement, schema authors SHALL NOT
|
576 | 577 | expect these additional keywords and vocabularies to be supported by
|
577 | 578 | implementations that do not explicitly document such support.
|
578 |
| - Implementations SHOULD ignore keywords they do not support. |
| 579 | + Implementations SHOULD treat keywords they do not support as annotations, |
| 580 | + where the value of the keyword is the value of the annotation. |
579 | 581 | </t>
|
580 | 582 | <t>
|
581 | 583 | Implementations MAY provide the ability to register or load handlers
|
|
1237 | 1239 | </t>
|
1238 | 1240 | <t>
|
1239 | 1241 | Per <xref target="extending" format="counter"></xref>, unrecognized
|
1240 |
| - keywords SHOULD be ignored. This remains the case for keywords defined |
| 1242 | + keywords SHOULD be treated as annotations. |
| 1243 | + This remains the case for keywords defined |
1241 | 1244 | by unrecognized vocabularies. It is not currently possible to distinguish
|
1242 | 1245 | between unrecognized keywords that are defined in vocabularies from
|
1243 | 1246 | those that are not part of any vocabulary.
|
|
0 commit comments