This repository was archived by the owner on Nov 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,8 @@ you control, for example::
107
107
108
108
The details of `id ` become more apparent when you start `structuring `.
109
109
110
+ |draft6 |
111
+
110
112
.. draft_specific ::
111
113
112
114
--Draft 4
Original file line number Diff line number Diff line change @@ -35,6 +35,27 @@ JSON in a few different languages:
35
35
For C, you may want to consider using `Jansson
36
36
<http://www.digip.org/jansson/> `_ to read and write JSON.
37
37
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
+
38
59
Examples
39
60
--------
40
61
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ validator---just yet.
24
24
25
25
.. note ::
26
26
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
28
28
--- stay tuned, updates are coming! Earlier and later versions of JSON Schema
29
29
are not completely compatible with the format described here.
30
30
You can’t perform that action at this time.
0 commit comments