Skip to content

Commit 99712a2

Browse files
dlaxDenis Laxalde
authored and
Denis Laxalde
committed
Add back the example in Optimizing HTTP discoverability with "targetHints" section
Add the example as it was in 1865631 (that is, just before merge of json-schema-org#427 "Rewrite the Hyper-Schema spec almost entirely").
1 parent d163932 commit 99712a2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

jsonschema-hyperschema.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,6 +1394,21 @@ for varname in templateData:
13941394
In general, headers that are likely to have different values at different
13951395
times SHOULD NOT be included in "targetHints".
13961396
</t>
1397+
<figure>
1398+
<preamble>
1399+
This examples shows several hints that are useful for clients
1400+
when determining what requests to make and how to make them.
1401+
</preamble>
1402+
<artwork>
1403+
<![CDATA[{
1404+
"targetHints": {
1405+
"allow": ["GET", "PUT"],
1406+
"accept-patch": ["application/merge-patch+json"],
1407+
"accept-ranges": ["none"]
1408+
}
1409+
}]]>
1410+
</artwork>
1411+
</figure>
13971412
</section>
13981413
<section title='Advertising HTTP features with "headerSchema"'>
13991414
<t>

0 commit comments

Comments
 (0)