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

Commit 79c1a7a

Browse files
committed
Update latest core/validation drafts
1 parent 4ca6b0d commit 79c1a7a

File tree

2 files changed

+160
-44
lines changed

2 files changed

+160
-44
lines changed

latest/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>

latest/json-schema-validation.html

Lines changed: 82 additions & 7 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: interactive and non interactive validation<br />json-schema-validation</h1>
151153

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

180182
<h3>Copyright Notice</h3>
181183
<p>
@@ -334,6 +336,8 @@ <h3>Table of Contents</h3>
334336
Normative References<br />
335337
&nbsp;&nbsp;&nbsp;&nbsp;<a href="#rfc.references2">10.2.</a>&nbsp;
336338
Informative References<br />
339+
<a href="#anchor145">Appendix&nbsp;A.</a>&nbsp;
340+
ChangeLog<br />
337341
</p>
338342
<br clear="all" />
339343

@@ -1326,8 +1330,8 @@ <h3>Table of Contents</h3>
13261330
Conditions for successful validation</h3>
13271331

13281332
<p>
1329-
An instance validates successfully against this keyword if
1330-
its value is equal to one of the elements in this keyword's array value.
1333+
An instance validates successfully against this keyword if its value is
1334+
equal to one of the elements in this keyword's array value.
13311335

13321336
</p>
13331337
<a name="anchor79"></a><br /><hr />
@@ -2030,13 +2034,84 @@ <h3>10.2.&nbsp;Informative References</h3>
20302034
<td class="author-text">&ldquo;<a href="http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf">ECMA 262 specification</a>.&rdquo;</td></tr>
20312035
</table>
20322036

2037+
<a name="anchor145"></a><br /><hr />
2038+
<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>
2039+
<a name="rfc.section.A"></a><h3>Appendix A.&nbsp;
2040+
ChangeLog</h3>
2041+
2042+
<p>
2043+
</p>
2044+
<blockquote class="text"><dl>
2045+
<dt>draft-00</dt>
2046+
<dd>
2047+
2048+
<ul class="text">
2049+
<li>Initial draft.
2050+
</li>
2051+
<li>Salvaged from draft v3.
2052+
</li>
2053+
<li>Redefine the "required" keyword.
2054+
</li>
2055+
<li>Remove "extends", "disallow"
2056+
</li>
2057+
<li>Add "anyOf", "allOf", "oneOf", "not", "definitions", "minProperties",
2058+
"maxProperties".
2059+
</li>
2060+
<li>"dependencies" member values can no longer be single strings; at
2061+
least one element is required in a property dependency array.
2062+
</li>
2063+
<li>Rename "divisibleBy" to "multipleOf".
2064+
</li>
2065+
<li>"type" arrays can no longer have schemas; remove "any" as a possible
2066+
value.
2067+
</li>
2068+
<li>Rework the "format" section; make support optional.
2069+
</li>
2070+
<li>"format": remove attributes "phone", "style", "color"; rename
2071+
"ip-address" to "ipv4"; add references for all attributes.
2072+
</li>
2073+
<li>Provide algorithms to calculate schema(s) for array/object
2074+
instances.
2075+
</li>
2076+
<li>Add interoperability considerations.
2077+
</li>
2078+
</ul>
2079+
2080+
</dd>
2081+
</dl></blockquote><p>
2082+
2083+
</p>
20332084
<a name="rfc.authors"></a><br /><hr />
20342085
<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>
2035-
<h3>Author's Address</h3>
2086+
<h3>Authors' Addresses</h3>
20362087
<table width="99%" border="0" cellpadding="0" cellspacing="0">
20372088
<tr><td class="author-text">&nbsp;</td>
20382089
<td class="author-text">Francis Galiegue</td></tr>
20392090
<tr><td class="author" align="right">EMail:&nbsp;</td>
20402091
<td class="author-text"><a href="mailto:[email protected]">[email protected]</a></td></tr>
2092+
<tr cellpadding="3"><td>&nbsp;</td><td>&nbsp;</td></tr>
2093+
<tr><td class="author-text">&nbsp;</td>
2094+
<td class="author-text">Kris Zyp (editor)</td></tr>
2095+
<tr><td class="author-text">&nbsp;</td>
2096+
<td class="author-text">SitePen (USA)</td></tr>
2097+
<tr><td class="author-text">&nbsp;</td>
2098+
<td class="author-text">530 Lytton Avenue</td></tr>
2099+
<tr><td class="author-text">&nbsp;</td>
2100+
<td class="author-text">Palo Alto, CA 94301</td></tr>
2101+
<tr><td class="author-text">&nbsp;</td>
2102+
<td class="author-text">USA</td></tr>
2103+
<tr><td class="author" align="right">Phone:&nbsp;</td>
2104+
<td class="author-text">+1 650 968 8787</td></tr>
2105+
<tr><td class="author" align="right">EMail:&nbsp;</td>
2106+
<td class="author-text"><a href="mailto:[email protected]">[email protected]</a></td></tr>
2107+
<tr cellpadding="3"><td>&nbsp;</td><td>&nbsp;</td></tr>
2108+
<tr><td class="author-text">&nbsp;</td>
2109+
<td class="author-text">Gary Court</td></tr>
2110+
<tr><td class="author-text">&nbsp;</td>
2111+
<td class="author-text">Calgary, AB</td></tr>
2112+
<tr><td class="author-text">&nbsp;</td>
2113+
<td class="author-text">Canada</td></tr>
2114+
<tr><td class="author" align="right">EMail:&nbsp;</td>
2115+
<td class="author-text"><a href="mailto:[email protected]">[email protected]</a></td></tr>
20412116
</table>
20422117
</body></html>

0 commit comments

Comments
 (0)