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

Commit 9ad03c1

Browse files
authored
Merge branch 'master' into patch-1
2 parents d82ea38 + bd5116d commit 9ad03c1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+1813
-15488
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@
2323
path = _includes/draft-07
2424
url = https://github.com/json-schema-org/json-schema-spec.git
2525
branch = draft-07
26+
[submodule "_includes/draft/2019-09"]
27+
path = _includes/draft/2019-09
28+
url = https://github.com/json-schema-org/json-schema-spec.git

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ before_script:
88
- PATH="./node_modules/.bin/:$PATH"
99
script:
1010
- bundle exec jekyll build
11-
- ajv test -s schema -d "learn/examples/*.json" --valid
11+
- ajv test -s draft-07/schema -d "learn/examples/*.json" --valid

Gemfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,16 +199,16 @@ GEM
199199
rb-inotify (~> 0.9, >= 0.9.7)
200200
ruby_dep (~> 1.2)
201201
mercenary (0.3.6)
202-
mini_portile2 (2.3.0)
202+
mini_portile2 (2.4.0)
203203
minima (2.4.1)
204204
jekyll (~> 3.5)
205205
jekyll-feed (~> 0.9)
206206
jekyll-seo-tag (~> 2.1)
207207
minitest (5.11.3)
208208
multipart-post (2.0.0)
209209
net-dns (0.8.0)
210-
nokogiri (1.8.2)
211-
mini_portile2 (~> 2.3.0)
210+
nokogiri (1.10.5)
211+
mini_portile2 (~> 2.4.0)
212212
octokit (4.8.0)
213213
sawyer (~> 0.8.0, >= 0.5.3)
214214
pathutil (0.16.1)
@@ -221,7 +221,7 @@ GEM
221221
ruby-enum (0.7.2)
222222
i18n
223223
ruby_dep (1.5.0)
224-
rubyzip (1.2.1)
224+
rubyzip (2.0.0)
225225
safe_yaml (1.0.4)
226226
sass (3.5.6)
227227
sass-listen (~> 4.0.0)

_data/validator-libraries-modern.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,63 +3,75 @@
33
implementations:
44
- name: Json.NET Schema
55
url: https://www.newtonsoft.com/jsonschema
6+
date-draft:
67
draft: [7, 6, 4, 3]
78
license: "AGPL-3.0-only"
89
- name: Manatee.Json
910
url: https://github.com/gregsdennis/Manatee.Json
11+
date-draft: [2019-09]
1012
draft: [7, 6, 4]
1113
license: MIT
1214
- name: C
1315
implementations:
1416
- name: WJElement
1517
url: https://github.com/netmail-open/wjelement
18+
date-draft:
1619
draft: [4, 3]
1720
license: LGPL-3.0
1821
notes: "Draft-06+ progress: issue [17](https://github.com/netmail-open/wjelement/issues/17#issuecomment-390899432)"
1922
- name: C++
2023
implementations:
2124
- name: f5-json-schema
2225
url: https://github.com/KayEss/json-schema
26+
date-draft:
2327
draft: [7]
2428
license: Boost Software License 1.0
2529
- name: JSON schema validator for JSON for Modern C++
2630
url: https://github.com/pboettch/json-schema-validator
31+
date-draft:
2732
draft: [7]
2833
license: MIT
2934
- name: Clojure
3035
implementations:
3136
- name: jinx
3237
url: https://github.com/juxt/jinx
38+
date-draft:
3339
draft: [7]
3440
license: MIT
3541
- name: json-schema
3642
url: https://github.com/luposlip/json-schema
43+
date-draft:
3744
draft: [7]
3845
license: Apache License, Version 2.0
3946
- name: Elixir
4047
implementations:
4148
- name: Elixir JSON Schema validator
4249
url: https://github.com/jonasschmidt/ex_json_schema
50+
date-draft:
4351
draft: [4]
4452
notes: "Draft-06+ progress: issue [24](https://github.com/jonasschmidt/ex_json_schema/issues/24); branch [multi-draft-support](https://github.com/jonasschmidt/ex_json_schema/tree/multi-draft-support)"
4553
license: MIT
4654
- name: JsonXema
4755
url: https://github.com/hrzndhrn/json_xema
56+
date-draft:
4857
draft: [7, 6, 4]
4958
license: MIT
5059
- name: Go
5160
implementations:
5261
- name: gojsonschema
5362
url: https://github.com/xeipuuv/gojsonschema
63+
date-draft:
5464
draft: [7, 6, 4]
5565
license: "Apache 2.0"
5666
- name: santhosh-tekuri/jsonschema
5767
url: https://github.com/santhosh-tekuri/jsonschema
5868
notes:
69+
date-draft:
5970
draft: [7, 6, 4]
6071
license: BSD-3-Clause
6172
- name: qri-io/jsonschema
6273
url: https://github.com/qri-io/jsonschema
74+
date-draft:
6375
draft: [7]
6476
license: MIT
6577
notes: includes custom validator support, rich error returns
@@ -68,88 +80,124 @@
6880
- name: everit-org/json-schema
6981
url: https://github.com/everit-org/json-schema
7082
notes:
83+
date-draft:
7184
draft: [7, 6, 4]
7285
license: Apache License 2.0
7386
- name: Justify
7487
url: https://github.com/leadpony/justify
7588
notes:
89+
date-draft:
90+
draft: [7, 6, 4]
91+
license: Apache License 2.0
92+
- name: networknt/json-schema-validator
93+
url: https://github.com/networknt/json-schema-validator
94+
notes: Support OpenAPI 3.0 with Jackson parser
95+
date-draft:
7696
draft: [7, 6, 4]
7797
license: Apache License 2.0
7898
- name: Kotlin
7999
implementations:
80100
- name: Medeia-validator
81101
url: https://github.com/worldturner/medeia-validator
82102
notes: streaming validator for Kotlin and Java clients; works with Jackson and Gson
103+
date-draft:
83104
draft: [7, 6, 4]
84105
license: Apache License 2.0
85106
- name: JavaScript
86107
implementations:
87108
- name: ajv
88109
url: https://github.com/epoberezkin/ajv
89110
notes: "for Node.js and browsers - supports [custom keywords](https://github.com/epoberezkin/ajv-keywords) and [$data reference](https://github.com/json-schema-org/json-schema-spec/issues/51)"
111+
date-draft:
90112
draft: [7, 6, 4]
91113
license: MIT
92114
- name: djv
93115
url: https://github.com/korzio/djv
94116
notes: "for Node.js and browsers"
117+
date-draft:
95118
draft: [6, 4]
96119
license: MIT
97120
- name: vue-vuelidate-jsonschema
98121
url: https://github.com/mokkabonna/vue-vuelidate-jsonschema
122+
date-draft:
99123
draft: [6]
100124
license: MIT
101125
- name: PHP
102126
implementations:
103127
- name: Opis Json Schema
104128
url: https://github.com/opis/json-schema
105129
notes:
130+
date-draft:
106131
draft: [7, 6]
107132
license: "Apache License 2.0"
108133
- name: Swaggest Json Schema
109134
url: https://github.com/swaggest/php-json-schema
110135
notes:
136+
date-draft:
111137
draft: [7, 6, 4]
112138
license: "MIT"
113139
- name: Python
114140
implementations:
115141
- name: jsonschema
116142
url: https://github.com/Julian/jsonschema
117143
notes:
144+
date-draft:
118145
draft: [7, 6, 4, 3]
119146
license: "MIT"
147+
- name: fastjsonschema
148+
url: https://github.com/horejsek/python-fastjsonschema
149+
notes: Great performance thanks to code generation.
150+
date-draft:
151+
draft: [7, 6, 4]
152+
license: BSD-3-Clause
120153
- name: Ruby
121154
implementations:
122155
- name: JSONSchemer
123156
url: https://github.com/davishmcclurg/json_schemer
124157
notes:
158+
date-draft:
125159
draft: [7, 6, 4]
126160
license: MIT
127161
- name: Objective-C
128162
implementations:
129163
- name: DSJSONSchemaValidation
130164
url: https://github.com/dashevo/JSONSchemaValidation
131165
notes:
166+
date-draft:
167+
draft: [7, 6, 4]
168+
license: MIT
169+
- name: Lua/LuaJIT
170+
implementations:
171+
- name: lua-resty-jsonschema
172+
url: https://github.com/iresty/lua-resty-jsonschema
173+
notes:
174+
date-draft:
132175
draft: [7, 6, 4]
133176
license: MIT
134177
- name: Web (Online)
135178
implementations:
136179
- name: JSON Schema Validator
137180
url: https://www.jsonschemavalidator.net/
181+
date-draft:
138182
draft: [7, 6, 4, 3]
139183
- name: JSON Schema Lint
140184
url: http://jsonschemalint.com/
185+
date-draft:
141186
draft: [7, 6, 4, 3, 2, 1]
142187
- name: ExtendsClass's JSON Schema Validator
143188
url: https://extendsclass.com/json-schema-validator.html
189+
date-draft:
144190
draft: [7]
145191
- name: Command Line
146192
implementations:
147193
- name: ajv-cli
148194
license: MIT
149195
url: 'https://www.npmjs.com/package/ajv-cli'
196+
date-draft:
150197
draft: [7, 6, 4]
151198
- name: Polyglottal JSON Schema Validator
152199
license: MIT
153200
url: 'https://www.npmjs.com/package/pajv'
201+
date-draft:
154202
draft: [6, 4]
155203
notes: can be used with YAML and many other formats besides JSON

_data/validator-libraries-obsolete.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@
7373
url: https://github.com/java-json-tools/json-schema-validator
7474
draft: [4]
7575
license: LGPLv3
76-
- name: json-schema-validator
77-
url: https://github.com/networknt/json-schema-validator
78-
notes:
79-
draft: [4]
80-
license: Apache License 2.0
8176
- name: JavaScript
8277
implementations:
8378
- name: jsonschema

_includes/draft/2019-09

Submodule 2019-09 added at b47f567

_layouts/redirect.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html lang="en-US">
3+
<meta charset="utf-8">
4+
<title>Redirecting&hellip;</title>
5+
<link rel="canonical" href="{{ page.redirect.to }}">
6+
<meta http-equiv="refresh" content="0; url={{ page.redirect.to }}">
7+
<meta name="robots" content="noindex">
8+
<h1>Redirecting&hellip;</h1>
9+
<p>
10+
Several redirections on json-schema.org are special cases:
11+
</p>
12+
<ul>
13+
<li>The unversioned meta-schema URIs should no longer be used.</li>
14+
<li>The vocabularies are represented by their specification text.</li>
15+
<li>The "latest" specification URIs are for convenice of browser
16+
bookmarking only.</li>
17+
</ul>
18+
<a href="{{ page.redirect.to }}">Click here if you are not redirected.</a>
19+
<script>location="{{ page.redirect.to }}"</script>
20+
</html>

draft-06/json-schema-release-notes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ keyword | change | consequence
2525
`"$id"` | replaces `"id"` | behavior is identical, `$` prefix matches the other two core keywords
2626
`"$ref"` | only allowed where a schema is expected | it is now possible to describe instance properties named `"$ref"`
2727
`"exclusiveMinimum"` and `"exclusiveMaximum"` | changed from a boolean to a number to be consistent with the principle of keyword independence | wherever one of these would be true before, change the value to the corresponding `"minimum"` or `"maximum"` value and remove the `"minimum"`/`"maximum"` keyword
28+
`"type"` | definition of `"integer"` | in draft-04, `"integer"` is listed as a primitive type and defined as "a JSON number without a fraction or exponent part"; in draft-06, `"integer"` is not considered a primitive type and is only defined in the section for keyword `"type"` as "any number with a zero fractional part"; `1.0` is thus not a valid `"integer"` type in draft-04 and earlier, but is a valid `"integer"` type in draft-06 and later; note that both drafts say that integers SHOULD be encoded in JSON without fractional parts
2829

2930
#### Additions and backwards-compatible changes
3031

draft/2019-09/hyper-schema

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../_includes/draft/2019-09/hyper-schema.json

0 commit comments

Comments
 (0)