|
1015 | 1015 |
|
1016 | 1016 | <section title="contentSchema">
|
1017 | 1017 | <t>
|
1018 |
| - If the instance is a string, and if "contentMediaType" is present, this |
1019 |
| - property contains a schema which describes the structure of the string. |
| 1018 | + If the instance is a string containing valid JSON, and if "contentMediaType" is |
| 1019 | + present, this property is used to validate the string. If the string is not |
| 1020 | + valid JSON, then the validation fails. |
1020 | 1021 | </t>
|
1021 | 1022 | <t>
|
1022 | 1023 | This keyword MAY be used with any media type that can be mapped into
|
1023 | 1024 | JSON Schema's data model.
|
1024 | 1025 | </t>
|
1025 | 1026 | <t>
|
1026 |
| - The value of this property SHOULD be ignored if "contentMediaType" is not present. |
| 1027 | + The value of this property MUST be a valid JSON schema. It SHOULD be ignored if |
| 1028 | + "contentMediaType" is not present. |
1027 | 1029 | </t>
|
1028 | 1030 | </section>
|
1029 | 1031 |
|
|
1176 | 1178 | the entire resource being described MAY be removed in the future.
|
1177 | 1179 | </t>
|
1178 | 1180 | <t>
|
1179 |
| - When the "deprecated" keyword is applied to an item in an array by means of |
1180 |
| - "items", if "items" is a single schema, the deprecation relates to the whole |
1181 |
| - array, while if "items" is an array of schemas, the deprecation relates to |
| 1181 | + When the "deprecated" keyword is applied to an item in an array by means of |
| 1182 | + "items", if "items" is a single schema, the deprecation relates to the whole |
| 1183 | + array, while if "items" is an array of schemas, the deprecation relates to |
1182 | 1184 | the corresponding item according to the subschemas position.
|
1183 | 1185 | </t>
|
1184 | 1186 | <t>
|
|
0 commit comments