Skip to content

Commit 4413028

Browse files
committed
Changes to the validation spec
* Suggested grammar fixes. * Implementations should allow to disable "format" validation. Thanks-to: Alain Fagot <[email protected]>
1 parent 0dd82e8 commit 4413028

File tree

3 files changed

+93
-80
lines changed

3 files changed

+93
-80
lines changed

proposals/json-schema-validation.html

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@
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 21, 2013</td></tr>
146+
<tr><td class="header">Internet-Draft</td><td class="header">January 25, 2013</td></tr>
147147
<tr><td class="header">Intended status: Informational</td><td class="header">&nbsp;</td></tr>
148-
<tr><td class="header">Expires: July 25, 2013</td><td class="header">&nbsp;</td></tr>
148+
<tr><td class="header">Expires: July 29, 2013</td><td class="header">&nbsp;</td></tr>
149149
</table></td></tr></table>
150150
<h1><br />JSON Schema: interactive and non interactive validation<br />json-schema-validation</h1>
151151

@@ -175,7 +175,7 @@ <h3>Status of This Memo</h3>
175175
It is inappropriate to use Internet-Drafts as reference material or to cite
176176
them other than as &ldquo;work in progress.&rdquo;</p>
177177
<p>
178-
This Internet-Draft will expire on July 25, 2013.</p>
178+
This Internet-Draft will expire on July 29, 2013.</p>
179179

180180
<h3>Copyright Notice</h3>
181181
<p>
@@ -758,7 +758,7 @@ <h3>Table of Contents</h3>
758758
<p>
759759
A string instance is considered valid if the regular
760760
expression matches the instance successfully. Recall: regular
761-
expressions are not anchored.
761+
expressions are not implicitly anchored.
762762

763763
</p>
764764
<a name="anchor36"></a><br /><hr />
@@ -1234,7 +1234,7 @@ <h3>Table of Contents</h3>
12341234

12351235
</p>
12361236
<p>
1237-
The set still contains two elements, "" and "fiddle". Validation
1237+
The set "s" still contains two elements, "" and "fiddle". Validation
12381238
therefore fails.
12391239

12401240
</p>
@@ -1620,14 +1620,22 @@ <h3>Table of Contents</h3>
16201620
Implementation requirements</h3>
16211621

16221622
<p>
1623-
Implementations MAY support the "format" keyword. If they choose to support this
1624-
keyword, they MUST implement validation for attributes defined below. They MAY
1625-
add custom format attributes.
1623+
Implementations MAY support the "format" keyword. Should they choose to do so:
1624+
1625+
</p>
1626+
<blockquote class="text">
1627+
<p>they SHOULD implement validation for attributes defined below;
1628+
</p>
1629+
<p>they SHOULD offer an option to disable validation for this keyword.
1630+
</p>
1631+
</blockquote><p>
1632+
16261633

16271634
</p>
16281635
<p>
1629-
Save for agreement between parties, schema authors SHALL NOT expect a peer
1630-
implementation to support this keyword and/or custom format attributes.
1636+
Implementations MAY add custom format attributes. Save for agreement between
1637+
parties, schema authors SHALL NOT expect a peer implementation to support this
1638+
keyword and/or custom format attributes.
16311639

16321640
</p>
16331641
<a name="anchor107"></a><br /><hr />

0 commit comments

Comments
 (0)