Skip to content

Commit f89853c

Browse files
authored
Merge pull request json-schema-org#472 from dlax/hyperschema-mailto-schema-up
Move up the JSON Hyper Schema in "mailto:" example
2 parents fd19e5c + c3144fc commit f89853c

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

jsonschema-hyperschema.xml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1667,7 +1667,7 @@ Link: <https://schema.example.com/entry> rel=describedBy
16671667
described by "submissionSchema" and "submissionMediaType".
16681668
</t>
16691669
<t>
1670-
Therefore, we use "submissionMediaType" to indicate a multipart/alternative
1670+
We use "submissionMediaType" to indicate a multipart/alternative
16711671
payload format, providing two representations of the same data (HTML and
16721672
plain text). Since a multipart/alternative message is an ordered sequence
16731673
(the last part is the most preferred alternative), we model the sequence as
@@ -1680,32 +1680,6 @@ Link: <https://schema.example.com/entry> rel=describedBy
16801680
each part and are not ordered, should be modeled as JSON objects rather than
16811681
arrays.
16821682
</t>
1683-
<t>
1684-
For the URI parameters, each of the three demonstrates a different way of
1685-
resolving the input:
1686-
<list style="hanging">
1687-
<t hangText="email:">
1688-
This variable's presence in "templateRequired" means that it must be
1689-
resolved for the template to be used. Since the "false" schema
1690-
assigned to it in "hrefSchema" excludes it from the input data set,
1691-
it must be resolved from the instance.
1692-
</t>
1693-
<t hangText="title:">
1694-
The instance field matching this variable is required, and it is also
1695-
allowed in the input data. So its instance value is used to
1696-
pre-populate the input data set before accepting the client's input.
1697-
The client can opt to leave the instance value in place. Since
1698-
this field is required in "hrefSchema", the client cannot delete it
1699-
(although it could set it to an empty string).
1700-
</t>
1701-
<t hangText="cc:">
1702-
The "false" schema set for this in the main schema prevents this field
1703-
from having an instance value. If it is present at all, it must come
1704-
from client input. As it is not required in "hrefSchema", it may not
1705-
be used at all.
1706-
</t>
1707-
</list>
1708-
</t>
17091683
<figure>
17101684
<preamble>
17111685
Note that some lines are wrapped to fit this document's width restrictions.
@@ -1768,6 +1742,32 @@ Link: <https://schema.example.com/entry> rel=describedBy
17681742
}]]>
17691743
</artwork>
17701744
</figure>
1745+
<t>
1746+
For the URI parameters, each of the three demonstrates a different way of
1747+
resolving the input:
1748+
<list style="hanging">
1749+
<t hangText="email:">
1750+
This variable's presence in "templateRequired" means that it must be
1751+
resolved for the template to be used. Since the "false" schema
1752+
assigned to it in "hrefSchema" excludes it from the input data set,
1753+
it must be resolved from the instance.
1754+
</t>
1755+
<t hangText="title:">
1756+
The instance field matching this variable is required, and it is also
1757+
allowed in the input data. So its instance value is used to
1758+
pre-populate the input data set before accepting the client's input.
1759+
The client can opt to leave the instance value in place. Since
1760+
this field is required in "hrefSchema", the client cannot delete it
1761+
(although it could set it to an empty string).
1762+
</t>
1763+
<t hangText="cc:">
1764+
The "false" schema set for this in the main schema prevents this field
1765+
from having an instance value. If it is present at all, it must come
1766+
from client input. As it is not required in "hrefSchema", it may not
1767+
be used at all.
1768+
</t>
1769+
</list>
1770+
</t>
17711771
<t>
17721772
So, given the following instance retrieved from "https://api.example.com/stuff":
17731773
</t>

0 commit comments

Comments
 (0)