Skip to content

Commit 747ddb9

Browse files
authored
Merge branch 'master' into patch-2
2 parents 13fe6c3 + a725ecb commit 747ddb9

Some content is hidden

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

41 files changed

+793
-588
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Jekyll products
22
.sass-cache/
33
_site/
4+
node_modules/

.travis.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
language: ruby
22
dist: trusty
33
sudo: false
4+
node_js:
5+
- node
6+
before_script:
7+
- npm install ajv-cli
8+
- PATH="./node_modules/.bin/:$PATH"
49
script:
510
- bundle exec jekyll build
11+
- ajv test -s schema -d "_includes/person.json" --valid
12+
- ajv test -s schema -d "_includes/example1/schema*.json" --valid
13+
- ajv test -s _includes/example1/schema1.json -d _includes/example1/instance.json --valid
14+
- ajv test -s _includes/example1/schema2.json -d _includes/example1/instance.json --valid
15+
- ajv test -s _includes/example1/schema3.json -d _includes/example1/instance.json --valid
16+
- ajv test -s _includes/example1/schema4.json -d _includes/example1/instance.json --valid
17+
- ajv test -s _includes/example1/schema5.json -d _includes/example1/instance.json --valid
18+
- ajv test -s schema -d _includes/example1/set_schema.json --valid
19+
- ajv test -s _includes/example1/set_schema.json -d _includes/example1/set_instance.json -r geo --valid
20+
- ajv test -s schema -d "_includes/example2/schema*.json" --valid
21+
- ajv test -s schema -d "_includes/example2/entry_schema*.json" --valid
22+
- ajv test -s schema -d "_includes/example2/storage_schema*.json" --valid
23+
- ajv test -s _includes/example2/schema1.json -d _includes/example2/instance.json --valid
24+
- ajv test -s _includes/example2/schema2.json -d _includes/example2/instance.json -r _includes/example2/entry_schema3.json --valid
25+
- ajv test -s schema -d address -d calendar -d card -d geo --valid

404.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
layout: default
3+
permalink: /404.html
4+
---
5+
6+
<style type="text/css" media="screen">
7+
.container {
8+
margin: 10px auto;
9+
max-width: 600px;
10+
text-align: center;
11+
}
12+
h1 {
13+
margin: 30px 0;
14+
font-size: 4em;
15+
line-height: 1;
16+
letter-spacing: -1px;
17+
}
18+
</style>
19+
20+
<div class="container">
21+
<h1>404</h1>
22+
23+
<p><strong>Page not found :(</strong></p>
24+
<p>The requested page could not be found.</p>
25+
</div>

_config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ header_pages:
3131
- examples.md
3232
- implementations.md
3333

34-
collections:
35-
docs:
36-
output: true
37-
permalink: "/:title:output_ext"
34+
exclude:
35+
- README.md
36+
- Gemfile
37+
- node_modules
3838

3939
gems:
4040
- jekyll-relative-links

_data/validator-cli.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
- name: ajv-cli
2+
license: MIT
3+
url: 'https://www.npmjs.com/package/ajv-cli'
4+
draft:
5+
- 4
6+
- 5
7+
- 6
8+
- name: Polyglottal JSON Schema Validator
9+
license: MIT
10+
url: 'https://www.npmjs.com/package/pajv'
11+
draft:
12+
- 4
13+
- 5
14+
- 6
15+
notes: can be used with YAML and many other formats besides JSON

_data/validator-libraries.yml

Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
- name: .NET
2+
anchor-name: dotnet
3+
implementations:
4+
- name: Json.NET
5+
url: http://james.newtonking.com/projects/json-net.aspx
6+
license: "MIT"
7+
- name: NJsonSchema
8+
url: http://NJsonSchema.org
9+
notes: "- *supports draft 4*"
10+
license: Ms-PL
11+
- name: ActionScript 3
12+
anchor-name: action-script-3
13+
implementations:
14+
- name: Frigga
15+
url: https://github.com/raulbajales/Frigga
16+
license: "MIT"
17+
- name: C
18+
implementations:
19+
- name: WJElement
20+
url: https://github.com/netmail-open/wjelement
21+
license: "LGPLv3"
22+
- name: C++
23+
anchor-name: cpp
24+
implementations:
25+
- name: wjelement-cpp
26+
url: https://github.com/petehug/wjelement-cpp
27+
notes: "- *supports draft 4*"
28+
license: LGPLv3
29+
- name: Header-only C++ library for JSON Schema validation
30+
url: https://github.com/tristanpenman/valijson
31+
notes: "- *supports only draft 4*"
32+
license: BSD-2-Clause
33+
- name: Modern C++ JSON schema validator
34+
url: https://github.com/pboettch/json-schema-validator
35+
notes: "- *supports only draft 4* based on JSON for Modern C++"
36+
license: "MIT"
37+
- name: Clojure
38+
implementations:
39+
- name: scjsv
40+
url: https://github.com/metosin/scjsv
41+
notes: "- *supports draft 4* (wrapper for [java-json-tools/json-schema-validator](https://github.com/java-json-tools/json-schema-validator))"
42+
license: Eclipse Public License v1.0
43+
- name: Dart
44+
implementations:
45+
- name: json_schema
46+
url: https://github.com/patefacio/json_schema
47+
notes: "*supports draft 4*"
48+
license: BSL-1.0
49+
- name: Erlang
50+
implementations:
51+
- name: JeSSE
52+
url: https://github.com/for-GET/jesse
53+
license: "Apache 2.0"
54+
- name: Go
55+
implementations:
56+
- name: gojsonschema
57+
url: https://github.com/sigu-399/gojsonschema
58+
license: "Apache 2.0"
59+
- name: jsonschema
60+
url: https://github.com/santhosh-tekuri/jsonschema
61+
notes: "*supports draft 4, draft 6*"
62+
license: BSD-3-Clause
63+
- name: Haskell
64+
implementations:
65+
- name: aeson-schema
66+
url: https://github.com/timjb/aeson-schema
67+
license: "MIT"
68+
- name: hjsonschema
69+
url: https://github.com/seagreen/hjsonschema
70+
notes: "- *supports draft 4*"
71+
license: MIT
72+
- name: Java
73+
implementations:
74+
- name: json-schema-validator
75+
url: https://github.com/java-json-tools/json-schema-validator
76+
notes: "- *supports draft 4*"
77+
license: LGPLv3
78+
- name: json-schema (implementation based on the org.json API)
79+
url: https://github.com/everit-org/json-schema
80+
notes: "- *supports draft 4, draft 6*"
81+
license: Apache License 2.0
82+
- name: json-schema-validator
83+
url: https://github.com/networknt/json-schema-validator
84+
notes: "- *supports draft 4*"
85+
license: Apache License 2.0
86+
- name: JavaScript
87+
implementations:
88+
- name: ajv
89+
url: https://github.com/epoberezkin/ajv
90+
notes: "for Node.js and browsers - *supports draft 4, draft 6, [custom keywords](https://github.com/epoberezkin/ajv-keywords) and [$data reference](https://github.com/json-schema-org/json-schema-spec/issues/51)*"
91+
license: MIT
92+
- name: djv
93+
url: https://github.com/korzio/djv
94+
notes: "for Node.js and browsers - *supports draft 4*"
95+
license: MIT
96+
- name: jsonschema
97+
url: https://github.com/tdegrunt/jsonschema
98+
notes: "for Node.js - *supports draft 4*"
99+
license: MIT
100+
- name: is-my-json-valid
101+
url: https://github.com/mafintosh/is-my-json-valid
102+
notes: "- *supports draft 4*"
103+
license: MIT
104+
- name: tv4
105+
url: http://geraintluff.github.com/tv4/
106+
notes: "- *supports draft 4*"
107+
license: [Public Domain, MIT]
108+
- name: JaySchema
109+
url: https://github.com/natesilva/jayschema
110+
notes: "for Node.js - *supports draft 4*"
111+
license: BSD
112+
- name: z-schema
113+
url: https://github.com/zaggino/z-schema
114+
notes: "for Node.js - *supports draft 4*"
115+
license: MIT
116+
- name: direct-schema
117+
url: http://github.com/IreneKnapp/direct-schema
118+
license: "BSD"
119+
- name: JSV
120+
url: http://github.com/garycourt/JSV
121+
license: "BSD"
122+
- name: json-schema
123+
url: https://github.com/kriszyp/json-schema
124+
notes: "part of the [Persevere](http://github.com/kriszyp/json-schema) project"
125+
license: [AFL, BSD]
126+
- name: schema.js
127+
url: https://github.com/akidee/schema.js
128+
license: "MIT"
129+
- name: json-gate
130+
url: https://github.com/oferei/json-gate
131+
license: "MIT"
132+
- name: JSEN
133+
url: https://github.com/bugventure/jsen
134+
notes: "for Node.js - *supports draft 4*"
135+
license: "MIT"
136+
- name: PHP
137+
implementations:
138+
- name: jsv4-php
139+
url: https://github.com/geraintluff/jsv4-php
140+
notes: "- *supports draft 4*"
141+
license: [Public Domain, MIT]
142+
- name: php-json-schema
143+
url: https://github.com/hasbridge/php-json-schema
144+
license: "MIT"
145+
- name: json-schema
146+
url: https://github.com/justinrainbow/json-schema
147+
license: "Berkeley"
148+
- name: JVal
149+
url: https://github.com/stefk/jval
150+
notes: "- *supports draft 4*"
151+
license: "MIT"
152+
- name: JSON Guard
153+
url: https://github.com/thephpleague/json-guard
154+
notes: "- *supports draft 4*"
155+
license: "MIT"
156+
- name: Perl
157+
implementations:
158+
- name: JSV::Validator
159+
url: https://metacpan.org/module/JSV::Validator
160+
license: "MIT"
161+
- name: JSON::Schema
162+
url: https://metacpan.org/module/JSON::Schema
163+
license: "MIT"
164+
- name: Python
165+
implementations:
166+
- name: jsonschema
167+
url: https://github.com/Julian/jsonschema
168+
notes: "- *supports draft 4*"
169+
license: "MIT"
170+
- name: json-schema-validator
171+
url: https://github.com/zyga/json-schema-validator
172+
license: "LGPL"
173+
- name: Ruby
174+
implementations:
175+
- name: ruby-jsonschema
176+
url: https://github.com/Constellation/ruby-jsonchema
177+
license: "MIT"
178+
- name: json-schema
179+
url: https://github.com/hoxworth/json-schema
180+
notes: "- *supports draft 4*"
181+
license: MIT

_includes/example1/instance.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"id": 1,
3+
"name": "A green door",
4+
"price": 12.50,
5+
"tags": ["home", "green"]
6+
}

_includes/example1/schema1.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-06/schema#",
3+
"title": "Product",
4+
"description": "A product from Acme's catalog",
5+
"type": "object"
6+
}

_includes/example1/schema2.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-06/schema#",
3+
"title": "Product",
4+
"description": "A product from Acme's catalog",
5+
"type": "object",
6+
"properties": {
7+
"id": {
8+
"description": "The unique identifier for a product",
9+
"type": "integer"
10+
}
11+
},
12+
"required": ["id"]
13+
}

_includes/example1/schema3.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-06/schema#",
3+
"title": "Product",
4+
"description": "A product from Acme's catalog",
5+
"type": "object",
6+
"properties": {
7+
"id": {
8+
"description": "The unique identifier for a product",
9+
"type": "integer"
10+
},
11+
"name": {
12+
"description": "Name of the product",
13+
"type": "string"
14+
}
15+
},
16+
"required": ["id", "name"]
17+
}

0 commit comments

Comments
 (0)