Skip to content

Commit 2d2615f

Browse files
Require at least one JSON Schema version (#184)
* fix 180 * add note on stable version * Apply suggestions from code review Co-authored-by: Ted Thibodeau Jr <[email protected]> --------- Co-authored-by: Ted Thibodeau Jr <[email protected]>
1 parent d982c4a commit 2d2615f

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

index.html

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,32 +335,47 @@ <h2>JSON Schema Specifications</h2>
335335
The following section describes the allowed specifications for
336336
using a [[JSON-Schema]] with a <a>credential schema</a>.
337337
</p>
338+
<p>
339+
To promote conformance and enable interoperability, implementers MUST
340+
provide support for JSON Schema specifications where, in the following table,
341+
the <i>required</i> column's value is <b>yes</b>.
342+
</p>
338343
<table class="simple">
339344
<thead>
340345
<tr>
341346
<th style="white-space: nowrap">JSON Schema Specification</th>
342347
<th>Date of Publication</th>
343348
<th>$schema URI</th>
349+
<th>Required</th>
344350
</tr>
345351
</thead>
346352
<tbody>
347353
<tr>
348354
<td>[[JSON-SCHEMA-2020-12]]</td>
349355
<td>10 June 2022</td>
350356
<td><a href="https://json-schema.org/draft/2020-12/schema">https://json-schema.org/draft/2020-12/schema</a></td>
357+
<td>Yes</td>
351358
</tr>
352359
<tr>
353360
<td>[[JSON-SCHEMA-2019-09]]</td>
354361
<td>19 March 2020</td>
355362
<td><a href="https://json-schema.org/draft/2019-09/schema">https://json-schema.org/draft/2019-09/schema</a></td>
363+
<td>No</td>
356364
</tr>
357365
<tr>
358366
<td>[[JSON-SCHEMA-DRAFT-7]]</td>
359367
<td>20 September 2018</td>
360368
<td><a href="http://json-schema.org/draft-07/schema#">http://json-schema.org/draft-07/schema#</a></td>
369+
<td>No</td>
361370
</tr>
362371
</tbody>
363372
</table>
373+
374+
<p class="note" title="A stable JSON Schema specification is coming">
375+
<a href="https://json-schema.org/blog/posts/future-of-json-schema">A stable JSON Schema specification</a>
376+
is in the works. When it's released, we intend to update this table to require the stable version.
377+
</p>
378+
364379
<section class="normative">
365380
<h3>Reserved Keywords</h3>
366381
<p>
@@ -435,11 +450,16 @@ <h2>Processing</h2>
435450
<p>
436451
A common feature of a JSON schema validator is the ability to detect the version of a JSON schema document
437452
and select the validator for that specific version of [[JSON-SCHEMA]]. This is done by switching on the
438-
schema's <code>$schema</code> and picking the corresponding validator. Schemas without a <code>$schema</code>
439-
property are not considered valid and MUST not be processed. It is RECOMMENDED that implementers
440-
choose validators which possess this capability and are able to limit validation to the
453+
schema's <code>$schema</code> property and picking the corresponding validator. Schemas without a
454+
<code>$schema</code> property are not considered valid and MUST NOT be processed. Implementers
455+
SHOULD choose validators which possess this capability and are able to limit validation to the
441456
<a href="#json-schema-specifications">JSON schema specifications</a> supported by this document.
442457
</p>
458+
<p>
459+
Conformant implementers MUST support JSON schema specification versions marked as <b>required</b>
460+
in the table defined in the <a href="#json-schema-specifications">JSON schema specifications section</a>
461+
of this document.
462+
</p>
443463
<section>
444464
<h3>Integrity Validation</h3>
445465
<p>

0 commit comments

Comments
 (0)