Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0c5007a

Browse files
contentSchema: type MUST be a schema if it is not ignored
1 parent 4573d04 commit 0c5007a

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

‎jsonschema-validation.xml‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,15 +1015,17 @@
10151015

10161016
<section title="contentSchema">
10171017
<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.
10201021
</t>
10211022
<t>
10221023
This keyword MAY be used with any media type that can be mapped into
10231024
JSON Schema's data model.
10241025
</t>
10251026
<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.
10271029
</t>
10281030
</section>
10291031

@@ -1176,9 +1178,9 @@
11761178
the entire resource being described MAY be removed in the future.
11771179
</t>
11781180
<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
11821184
the corresponding item according to the subschemas position.
11831185
</t>
11841186
<t>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /