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

Commit 6f8f3df

Browse files
committed
Clarify things around the drafts
1 parent 0b5801b commit 6f8f3df

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

source/basics.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ you control, for example::
107107

108108
The details of `id` become more apparent when you start `structuring`.
109109

110+
|draft6|
111+
110112
.. draft_specific::
111113

112114
--Draft 4

source/conventions.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,27 @@ JSON in a few different languages:
3535
For C, you may want to consider using `Jansson
3636
<http://www.digip.org/jansson/>`_ to read and write JSON.
3737

38+
Draft-specific notes
39+
--------------------
40+
41+
The JSON Schema standard has been through a number of revisions or "drafts". The
42+
most important are Draft 6, the most recent at the time of this writing, and
43+
Draft 4, on which a lot of production software was built, and the draft for
44+
which an earlier version of this book was written.
45+
46+
The text is written to encourage the use of Draft 6 and gives
47+
priority to the latest conventions and features, but where it differs from Draft
48+
4, those differences are highlighted in special call-outs. If you only wish to
49+
target Draft 6, you can safely ignore those sections.
50+
51+
|draft6|
52+
53+
.. draft_specific::
54+
55+
--Draft 4
56+
This is where anything pertaining to an old draft would be mentioned.
57+
58+
3859
Examples
3960
--------
4061

source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ validator---just yet.
2424

2525
.. note::
2626

27-
This book describes JSON Schema draft 4. The most recent version is draft 7
27+
This book describes JSON Schema draft 6. The most recent version is draft 7
2828
--- stay tuned, updates are coming! Earlier and later versions of JSON Schema
2929
are not completely compatible with the format described here.
3030

0 commit comments

Comments
 (0)