Skip to content

Commit decb60d

Browse files
committed
Some changes in core/validation
- Clear out the confusion about JSON Reference: it is used for schemas only, not instances. - One grammar fix. - Fix one wrong path in the URI context section. - Re-add Kris Zyp and Gary Court in the authors section. - Add changelogs.
1 parent 4413028 commit decb60d

File tree

6 files changed

+526
-159
lines changed

6 files changed

+526
-159
lines changed

proposals/json-schema-core.html

Lines changed: 78 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,11 @@
143143
<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
144144
<table summary="layout" width="66%" border="0" cellpadding="0" cellspacing="0"><tr><td><table summary="layout" width="100%" border="0" cellpadding="2" cellspacing="1">
145145
<tr><td class="header">Internet Engineering Task Force</td><td class="header">fge. Galiegue</td></tr>
146-
<tr><td class="header">Internet-Draft</td><td class="header">January 25, 2013</td></tr>
147-
<tr><td class="header">Intended status: Informational</td><td class="header">&nbsp;</td></tr>
148-
<tr><td class="header">Expires: July 29, 2013</td><td class="header">&nbsp;</td></tr>
146+
<tr><td class="header">Internet-Draft</td><td class="header">&nbsp;</td></tr>
147+
<tr><td class="header">Intended status: Informational</td><td class="header">K. Zyp, Ed.</td></tr>
148+
<tr><td class="header">Expires: August 3, 2013</td><td class="header">SitePen (USA)</td></tr>
149+
<tr><td class="header">&nbsp;</td><td class="header">G. Court</td></tr>
150+
<tr><td class="header">&nbsp;</td><td class="header">January 30, 2013</td></tr>
149151
</table></td></tr></table>
150152
<h1><br />JSON Schema: core definitions and terminology<br />json-schema-core</h1>
151153

@@ -174,7 +176,7 @@ <h3>Status of This Memo</h3>
174176
It is inappropriate to use Internet-Drafts as reference material or to cite
175177
them other than as &ldquo;work in progress.&rdquo;</p>
176178
<p>
177-
This Internet-Draft will expire on July 29, 2013.</p>
179+
This Internet-Draft will expire on August 3, 2013.</p>
178180

179181
<h3>Copyright Notice</h3>
180182
<p>
@@ -592,8 +594,8 @@ <h3>Table of Contents</h3>
592594

593595
</p>
594596
<p>
595-
As a consequence, for interoperability reasons, any JSON used in the context of
596-
JSON Schema, whether that JSON be a JSON Schema or an instance, SHOULD ensure
597+
As a consequence, for interoperability reasons, JSON values used in the context
598+
of JSON Schema, whether that JSON be a JSON Schema or an instance, SHOULD ensure
597599
that mathematical integers be represented as integers as defined by this
598600
specification.
599601

@@ -638,37 +640,43 @@ <h3>Table of Contents</h3>
638640
</p>
639641
<p>
640642
This keyword MUST be located at the root of a JSON Schema. The value of this
641-
keyword MUST be a <a class='info' href='#RFC3986'>URI<span> (</span><span class='info'>Berners-Lee, T., Fielding, R., and L. Masinter, &ldquo;Uniform Resource Identifier (URI): Generic Syntax,&rdquo; January&nbsp;2005.</span><span>)</span></a> [RFC3986], and this URI MUST be both
642-
absolute and normalized. The resource located at this URI MUST successfully
643-
describe itself. It is RECOMMENDED that schema authors include this keyword in
644-
their schemas.
643+
keyword MUST be a <a class='info' href='#RFC3986'>URI<span> (</span><span class='info'>Berners-Lee, T., Fielding, R., and L. Masinter, &ldquo;Uniform Resource Identifier (URI): Generic Syntax,&rdquo; January&nbsp;2005.</span><span>)</span></a> [RFC3986] and a valid <a class='info' href='#json-reference'>JSON Reference<span> (</span><span class='info'>Bryan, P. and K. Zyp, &ldquo;JSON Reference (work in progress),&rdquo; September&nbsp;2012.</span><span>)</span></a> [json&#8209;reference]; this URI MUST be both absolute
644+
and normalized. The resource located at this URI MUST successfully describe
645+
itself. It is RECOMMENDED that schema authors include this keyword in their
646+
schemas.
645647

646648
</p>
647649
<p>
648650
The following values are predefined:
649651

650652
</p>
651-
<blockquote class="text">
652-
<p>"http://json-schema.org/schema#" (JSON Schema written
653-
against the current version of the specification);
654-
</p>
655-
<p>"http://json-schema.org/hyper-schema#" (JSON Schema written
656-
against the current version of the specification);
657-
</p>
658-
<p>"http://json-schema.org/draft-04/schema#" (JSON Schema written
659-
against JSON Schema, draft v4 -- this version);
660-
</p>
661-
<p>"http://json-schema.org/draft-04/hyper-schema#" (JSON Schema hyperschema
662-
written against JSON Schema, draft v4 -- this version);
663-
</p>
664-
<p>"http://json-schema.org/draft-03/schema#" (JSON Schema written
665-
against <a class='info' href='#json-schema-03'>JSON Schema, draft v3<span> (</span><span class='info'>Court, G. and K. Zyp, &ldquo;JSON Schema, draft 3,&rdquo; September&nbsp;2012.</span><span>)</span></a> [json&#8209;schema&#8209;03]);
666-
</p>
667-
<p>"http://json-schema.org/draft-03/hyper-schema#" (JSON Schema hyperschema
653+
<blockquote class="text"><dl>
654+
<dt>http://json-schema.org/schema#</dt>
655+
<dd>JSON Schema written against
656+
the current version of the specification.
657+
</dd>
658+
<dt>http://json-schema.org/hyper-schema#</dt>
659+
<dd>JSON Schema written
660+
against the current version of the specification.
661+
</dd>
662+
<dt>http://json-schema.org/draft-04/schema#</dt>
663+
<dd>JSON Schema written
664+
against this version.
665+
</dd>
666+
<dt>http://json-schema.org/draft-04/hyper-schema#</dt>
667+
<dd>JSON Schema hyperschema
668+
written against this version.
669+
</dd>
670+
<dt>http://json-schema.org/draft-03/schema#</dt>
671+
<dd> JSON Schema written
672+
against <a class='info' href='#json-schema-03'>JSON Schema, draft v3<span> (</span><span class='info'>Court, G. and K. Zyp, &ldquo;JSON Schema, draft 3,&rdquo; September&nbsp;2012.</span><span>)</span></a> [json&#8209;schema&#8209;03].
673+
</dd>
674+
<dt>http://json-schema.org/draft-03/hyper-schema#</dt>
675+
<dd> JSON Schema hyperschema
668676
written against <a class='info' href='#json-schema-03'>JSON Schema, draft
669-
v3<span> (</span><span class='info'>Court, G. and K. Zyp, &ldquo;JSON Schema, draft 3,&rdquo; September&nbsp;2012.</span><span>)</span></a> [json&#8209;schema&#8209;03]).
670-
</p>
671-
</blockquote><p>
677+
v3<span> (</span><span class='info'>Court, G. and K. Zyp, &ldquo;JSON Schema, draft 3,&rdquo; September&nbsp;2012.</span><span>)</span></a> [json&#8209;schema&#8209;03].
678+
</dd>
679+
</dl></blockquote><p>
672680

673681
</p>
674682
<a name="anchor24"></a><br /><hr />
@@ -694,7 +702,7 @@ <h3>Table of Contents</h3>
694702

695703
<p>
696704
JSON Schema uses <a class='info' href='#json-reference'>JSON Reference<span> (</span><span class='info'>Bryan, P. and K. Zyp, &ldquo;JSON Reference (work in progress),&rdquo; September&nbsp;2012.</span><span>)</span></a> [json&#8209;reference] as a
697-
general addressing mechanism. It extends this specification in two ways:
705+
mechanism for schema addressing. It extends this specification in two ways:
698706

699707
</p>
700708
<blockquote class="text">
@@ -705,6 +713,7 @@ <h3>Table of Contents</h3>
705713
accept arbitrary fragment parts.
706714
</p>
707715
</blockquote><p>
716+
708717

709718
</p>
710719
<p>
@@ -725,7 +734,7 @@ <h3>Table of Contents</h3>
725734

726735
<p>
727736
The value for this keyword MUST be a string, and MUST be a valid URI. This
728-
URI MUST be normalized, and MUST NOT be an empty fragment (#) or the empty
737+
URI MUST be normalized, and SHOULD NOT be an empty fragment (#) or the empty
729738
URI.
730739

731740
</p>
@@ -850,7 +859,7 @@ <h3>Table of Contents</h3>
850859
<p>
851860
When an implementation encounters the "schema1" reference, it resolves it
852861
against the most immediate parent scope, leading to URI
853-
"http://my.site/myschema/schema1#". The way to process this URI will differ
862+
"http://my.site/schema1#". The way to process this URI will differ
854863
according to the chosen dereferencing mode:
855864

856865
</p>
@@ -859,8 +868,8 @@ <h3>Table of Contents</h3>
859868
dereference this URI, and fetch the content at this URI;
860869
</p>
861870
<p>if inline dereferencing is used, the implementation will notice that
862-
URI scope "http://my.site/myschema/schema1#" is already defined within
863-
the schema, and choose to use the appropriate subschema.
871+
URI scope "http://my.site/schema1#" is already defined within the
872+
schema, and choose to use the appropriate subschema.
864873
</p>
865874
</blockquote><p>
866875

@@ -891,7 +900,7 @@ <h3>Table of Contents</h3>
891900
</pre></div>
892901
<p>
893902
An implementation choosing to support inline dereferencing SHOULD be able to
894-
use this kind of references. Implementations choosing to use canonical
903+
use this kind of reference. Implementations choosing to use canonical
895904
dereferencing, however, are not required to support it.
896905

897906
</p>
@@ -1032,6 +1041,14 @@ <h3>10.2.&nbsp;Informative References</h3>
10321041
<ul class="text">
10331042
<li>Initial draft.
10341043
</li>
1044+
<li>Salvaged from draft v3.
1045+
</li>
1046+
<li>Mandate the use of JSON Reference, JSON Pointer.
1047+
</li>
1048+
<li>Define the role of "id". Define URI resolution scope.
1049+
</li>
1050+
<li>Add interoperability considerations.
1051+
</li>
10351052
</ul>
10361053

10371054
</dd>
@@ -1040,11 +1057,35 @@ <h3>10.2.&nbsp;Informative References</h3>
10401057
</p>
10411058
<a name="rfc.authors"></a><br /><hr />
10421059
<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
1043-
<h3>Author's Address</h3>
1060+
<h3>Authors' Addresses</h3>
10441061
<table width="99%" border="0" cellpadding="0" cellspacing="0">
10451062
<tr><td class="author-text">&nbsp;</td>
10461063
<td class="author-text">Francis Galiegue</td></tr>
10471064
<tr><td class="author" align="right">EMail:&nbsp;</td>
10481065
<td class="author-text"><a href="mailto:[email protected]">[email protected]</a></td></tr>
1066+
<tr cellpadding="3"><td>&nbsp;</td><td>&nbsp;</td></tr>
1067+
<tr><td class="author-text">&nbsp;</td>
1068+
<td class="author-text">Kris Zyp (editor)</td></tr>
1069+
<tr><td class="author-text">&nbsp;</td>
1070+
<td class="author-text">SitePen (USA)</td></tr>
1071+
<tr><td class="author-text">&nbsp;</td>
1072+
<td class="author-text">530 Lytton Avenue</td></tr>
1073+
<tr><td class="author-text">&nbsp;</td>
1074+
<td class="author-text">Palo Alto, CA 94301</td></tr>
1075+
<tr><td class="author-text">&nbsp;</td>
1076+
<td class="author-text">USA</td></tr>
1077+
<tr><td class="author" align="right">Phone:&nbsp;</td>
1078+
<td class="author-text">+1 650 968 8787</td></tr>
1079+
<tr><td class="author" align="right">EMail:&nbsp;</td>
1080+
<td class="author-text"><a href="mailto:[email protected]">[email protected]</a></td></tr>
1081+
<tr cellpadding="3"><td>&nbsp;</td><td>&nbsp;</td></tr>
1082+
<tr><td class="author-text">&nbsp;</td>
1083+
<td class="author-text">Gary Court</td></tr>
1084+
<tr><td class="author-text">&nbsp;</td>
1085+
<td class="author-text">Calgary, AB</td></tr>
1086+
<tr><td class="author-text">&nbsp;</td>
1087+
<td class="author-text">Canada</td></tr>
1088+
<tr><td class="author" align="right">EMail:&nbsp;</td>
1089+
<td class="author-text"><a href="mailto:[email protected]">[email protected]</a></td></tr>
10491090
</table>
10501091
</body></html>

0 commit comments

Comments
 (0)