Skip to content

Commit c292a43

Browse files
committed
Update all examples to be valid against Draft 6
1 parent 7349ef9 commit c292a43

18 files changed

+26
-30
lines changed

_includes/example1/schema1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/draft-04/schema#",
2+
"$schema": "http://json-schema.org/draft-06/schema#",
33
"title": "Product",
44
"description": "A product from Acme's catalog",
55
"type": "object"

_includes/example1/schema2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/draft-04/schema#",
2+
"$schema": "http://json-schema.org/draft-06/schema#",
33
"title": "Product",
44
"description": "A product from Acme's catalog",
55
"type": "object",

_includes/example1/schema3.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/draft-04/schema#",
2+
"$schema": "http://json-schema.org/draft-06/schema#",
33
"title": "Product",
44
"description": "A product from Acme's catalog",
55
"type": "object",

_includes/example1/schema4.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/draft-04/schema#",
2+
"$schema": "http://json-schema.org/draft-06/schema#",
33
"title": "Product",
44
"description": "A product from Acme's catalog",
55
"type": "object",
@@ -14,8 +14,7 @@
1414
},
1515
"price": {
1616
"type": "number",
17-
"minimum": 0,
18-
"exclusiveMinimum": true
17+
"exclusiveMinimum": 0
1918
}
2019
},
2120
"required": ["id", "name", "price"]

_includes/example1/schema5.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/draft-04/schema#",
2+
"$schema": "http://json-schema.org/draft-06/schema#",
33
"title": "Product",
44
"description": "A product from Acme's catalog",
55
"type": "object",
@@ -14,8 +14,7 @@
1414
},
1515
"price": {
1616
"type": "number",
17-
"minimum": 0,
18-
"exclusiveMinimum": true
17+
"exclusiveMinimum": 0
1918
},
2019
"tags": {
2120
"type": "array",

_includes/example1/set_schema.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/draft-04/schema#",
2+
"$schema": "http://json-schema.org/draft-06/schema#",
33
"title": "Product set",
44
"type": "array",
55
"items": {
@@ -15,8 +15,7 @@
1515
},
1616
"price": {
1717
"type": "number",
18-
"minimum": 0,
19-
"exclusiveMinimum": true
18+
"exclusiveMinimum": 0
2019
},
2120
"tags": {
2221
"type": "array",

_includes/example2/entry_schema1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "http://some.site.somewhere/entry-schema#",
3-
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"$schema": "http://json-schema.org/draft-06/schema#",
44
"description": "schema for an fstab entry",
55
"type": "object",
66
"required": [ "storage" ],

_includes/example2/entry_schema2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "http://some.site.somewhere/entry-schema#",
3-
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"$schema": "http://json-schema.org/draft-06/schema#",
44
"description": "schema for an fstab entry",
55
"type": "object",
66
"required": [ "storage" ],

_includes/example2/entry_schema3.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "http://some.site.somewhere/entry-schema#",
3-
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"$schema": "http://json-schema.org/draft-06/schema#",
44
"description": "schema for an fstab entry",
55
"type": "object",
66
"required": [ "storage" ],
@@ -58,7 +58,7 @@
5858
"server": {
5959
"type": "string",
6060
"oneOf": [
61-
{ "format": "host-name" },
61+
{ "format": "hostname" },
6262
{ "format": "ipv4" },
6363
{ "format": "ipv6" }
6464
]

_includes/example2/schema1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/draft-04/schema#",
2+
"$schema": "http://json-schema.org/draft-06/schema#",
33
"type": "object",
44
"properties": {
55
"/": {}

0 commit comments

Comments
 (0)