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 5341d1f

Browse files
fix media type in examples
As amply explained by this very document, the "schema" media type parameter is not legal with the "application/json" media type.
1 parent a471c7a commit 5341d1f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎jsonschema-core.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1950,7 +1950,7 @@
19501950
<figure>
19511951
<artwork>
19521952
<![CDATA[
1953-
Content-Type: application/json;
1953+
Content-Type: application/schema-instance+json;
19541954
schema="https://example.com/my-hyper-schema#"
19551955
]]>
19561956
</artwork>
@@ -1964,7 +1964,7 @@
19641964
<figure>
19651965
<artwork>
19661966
<![CDATA[
1967-
Content-Type: application/json;
1967+
Content-Type: application/schema-instance+json;
19681968
schema="https://example.com/alice https://example.com/bob"
19691969
]]>
19701970
</artwork>
@@ -1977,9 +1977,9 @@
19771977
<figure>
19781978
<artwork>
19791979
<![CDATA[
1980-
Accept: application/json;
1980+
Accept: application/schema-instance+json;
19811981
schema="https://example.com/qiang https://example.com/li",
1982-
application/json;
1982+
application/schema-instance+json;
19831983
schema="https://example.com/kumar"
19841984
]]>
19851985
</artwork>
@@ -1995,7 +1995,7 @@
19951995
indicate that the client can accept several media types.
19961996
In the above example, note that the two media types differ
19971997
only by their schema parameter values. This requests an
1998-
application/json representation that conforms to at least one
1998+
application/schema-instance+json representation that conforms to at least one
19991999
of the identified schemas.
20002000
</t>
20012001

0 commit comments

Comments
(0)

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