Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit bf67ba2

Browse files
committed
Update review copies for RFC8288 & data model
1 parent 213b993 commit bf67ba2

File tree

2 files changed

+34
-40
lines changed

2 files changed

+34
-40
lines changed

work-in-progress/WIP-jsonschema-core.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ <h1 id="rfc.section.4.2.1"><a href="#rfc.section.4.2.1">4.2.1.</a> Instance data
576576
</dl>
577577

578578
<p> </p>
579-
<p id="rfc.section.4.2.1.p.3">Whitespace and formatting concerns are thus outside the scope of JSON Schema. </p>
579+
<p id="rfc.section.4.2.1.p.3">Whitespace and formatting concerns, including different lexical representations of numbers that are equal within the data model, are thus outside the scope of JSON Schema. JSON Schema vocabularies that wish to work with such differences in lexical representations SHOULD define keywords to precisely interpret formatted strings within the data model rather than relying on having the original JSON representation Unicode characters available. </p>
580580
<p id="rfc.section.4.2.1.p.4">Since an object cannot have two properties with the same key, behavior for a JSON document that tries to define two properties (the "member" production) with the same key (the "string" production) in a single object is undefined. </p>
581581
<h1 id="rfc.section.4.2.2"><a href="#rfc.section.4.2.2">4.2.2.</a> Instance media types</h1>
582582
<p id="rfc.section.4.2.2.p.1">JSON Schema is designed to fully work with "application/json" documents, as well as media types using the "+json" structured syntax suffix. </p>
@@ -741,10 +741,10 @@ <h1 id="rfc.section.9.2.2"><a href="#rfc.section.9.2.2">9.2.2.</a> External refe
741741
<h1 id="rfc.section.10"><a href="#rfc.section.10">10.</a> Comments with "$comment"</h1>
742742
<p id="rfc.section.10.p.1">This keyword is reserved for comments from schema authors to readers or maintainers of the schema. The value of this keyword MUST be a string. Implementations MUST NOT present this string to end users. Tools for editing schemas SHOULD support displaying and editing this keyword. The value of this keyword MAY be used in debug or error output which is intended for developers making use of schemas. Schema vocabularies SHOULD allow "$comment" within any object containing vocabulary keywords. Implementations MAY assume "$comment" is allowed unless the vocabulary specifically forbids it. Vocabularies MUST NOT specify any effect of "$comment" beyond what is described in this specification. Tools that translate other media types or programming languages to and from application/schema+json MAY choose to convert that media type or programming language's native comments to or from "$comment" values. The behavior of such translation when both native comments and "$comment" properties are present is implementation-dependent. Implementations SHOULD treat "$comment" identically to an unknown extension keyword. They MAY strip "$comment" values at any point during processing. In particular, this allows for shortening schemas when the size of deployed schemas is a concern. Implementations MUST NOT take any other action based on the presence, absence, or contents of "$comment" properties. </p>
743743
<h1 id="rfc.section.11"><a href="#rfc.section.11">11.</a> Usage for hypermedia</h1>
744-
<p id="rfc.section.11.p.1">JSON has been adopted widely by HTTP servers for automated APIs and robots. This section describes how to enhance processing of JSON documents in a more RESTful manner when used with protocols that support media types and <a href="#RFC5988">Web linking</a> <cite title="NONE">[RFC5988]</cite>. </p>
744+
<p id="rfc.section.11.p.1">JSON has been adopted widely by HTTP servers for automated APIs and robots. This section describes how to enhance processing of JSON documents in a more RESTful manner when used with protocols that support media types and <a href="#RFC8288">Web linking</a> <cite title="NONE">[RFC8288]</cite>. </p>
745745
<h1 id="rfc.section.11.1"><a href="#rfc.section.11.1">11.1.</a> Linking to a schema</h1>
746746
<p id="rfc.section.11.1.p.1">It is RECOMMENDED that instances described by a schema provide a link to a downloadable JSON Schema using the link relation "describedby", as defined by <a href="#W3C.REC-ldp-20150226">Linked Data Protocol 1.0, section 8.1</a> <cite title="NONE">[W3C.REC-ldp-20150226]</cite>. </p>
747-
<p id="rfc.section.11.1.p.2">In HTTP, such links can be attached to any response using the <a href="#RFC5988">Link header</a> <cite title="NONE">[RFC5988]</cite>. An example of such a header would be: </p>
747+
<p id="rfc.section.11.1.p.2">In HTTP, such links can be attached to any response using the <a href="#RFC8288">Link header</a> <cite title="NONE">[RFC8288]</cite>. An example of such a header would be: </p>
748748
<pre>
749749

750750
Link: &lt;http://example.com/my-hyper-schema#&gt;; rel="describedby"
@@ -865,12 +865,6 @@ <h1 id="rfc.references.1"><a href="#rfc.references.1">14.1.</a> Normative Refere
865865
<h1 id="rfc.references.2"><a href="#rfc.references.2">14.2.</a> Informative References</h1>
866866
<table>
867867
<tbody>
868-
<tr>
869-
<td class="reference">
870-
<b id="RFC5988">[RFC5988]</b>
871-
</td>
872-
<td class="top"><a>Nottingham, M.</a>, "<a href="http://tools.ietf.org/html/rfc5988">Web Linking</a>", RFC 5988, DOI 10.17487/RFC5988, October 2010.</td>
873-
</tr>
874868
<tr>
875869
<td class="reference">
876870
<b id="RFC7049">[RFC7049]</b>
@@ -883,6 +877,12 @@ <h1 id="rfc.references.2"><a href="#rfc.references.2">14.2.</a> Informative Refe
883877
</td>
884878
<td class="top"><a>Fielding, R.</a> and <a>J. Reschke</a>, "<a href="http://tools.ietf.org/html/rfc7231">Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content</a>", RFC 7231, DOI 10.17487/RFC7231, June 2014.</td>
885879
</tr>
880+
<tr>
881+
<td class="reference">
882+
<b id="RFC8288">[RFC8288]</b>
883+
</td>
884+
<td class="top"><a>Nottingham, M.</a>, "<a href="http://tools.ietf.org/html/rfc8288">Web Linking</a>", RFC 8288, DOI 10.17487/RFC8288, October 2017.</td>
885+
</tr>
886886
<tr>
887887
<td class="reference">
888888
<b id="W3C.WD-fragid-best-practices-20121025">[W3C.WD-fragid-best-practices-20121025]</b>

0 commit comments

Comments
 (0)