Skip to content

Commit 87944e5

Browse files
authored
Merge pull request #543 from jdesrosiers/update-vocabulary-for-draft-next
Update vocabulary tests for draft-next
2 parents 07b90e3 + 9d1efc2 commit 87944e5

File tree

5 files changed

+38
-3
lines changed

5 files changed

+38
-3
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$id": "http://localhost:1234/draft-next/format-assertion-false.json",
3+
"$schema": "https://json-schema.org/draft/next/schema",
4+
"$vocabulary": {
5+
"https://json-schema.org/draft/next/vocab/core": true,
6+
"https://json-schema.org/draft/next/vocab/format-assertion": false
7+
},
8+
"allOf": [
9+
{ "$ref": "https://json-schema.org/draft/next/schema/meta/core" },
10+
{ "$ref": "https://json-schema.org/draft/next/schema/meta/format-assertion" }
11+
]
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$id": "http://localhost:1234/draft-next/format-assertion-true.json",
3+
"$schema": "https://json-schema.org/draft/next/schema",
4+
"$vocabulary": {
5+
"https://json-schema.org/draft/next/vocab/core": true,
6+
"https://json-schema.org/draft/next/vocab/format-assertion": true
7+
},
8+
"allOf": [
9+
{ "$ref": "https://json-schema.org/draft/next/schema/meta/core" },
10+
{ "$ref": "https://json-schema.org/draft/next/schema/meta/format-assertion" }
11+
]
12+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$id": "http://localhost:1234/draft-next/metaschema-no-validation.json",
3+
"$vocabulary": {
4+
"https://json-schema.org/draft/next/vocab/applicator": true,
5+
"https://json-schema.org/draft/next/vocab/core": true
6+
},
7+
"allOf": [
8+
{ "$ref": "https://json-schema.org/draft/next/meta/applicator" },
9+
{ "$ref": "https://json-schema.org/draft/next/meta/core" }
10+
]
11+
}

tests/draft-next/optional/format-assertion.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "schema that uses custom metaschema with format-assertion: false",
44
"schema": {
55
"$id": "https://schema/using/format-assertion/false",
6-
"$schema": "http://localhost:1234/draft2020-12/format-assertion-false.json",
6+
"$schema": "http://localhost:1234/draft-next/format-assertion-false.json",
77
"format": "ipv4"
88
},
99
"tests": [
@@ -23,7 +23,7 @@
2323
"description": "schema that uses custom metaschema with format-assertion: true",
2424
"schema": {
2525
"$id": "https://schema/using/format-assertion/true",
26-
"$schema": "http://localhost:1234/draft2020-12/format-assertion-true.json",
26+
"$schema": "http://localhost:1234/draft-next/format-assertion-true.json",
2727
"format": "ipv4"
2828
},
2929
"tests": [

tests/draft-next/vocabulary.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "schema that uses custom metaschema with with no validation vocabulary",
44
"schema": {
55
"$id": "https://schema/using/no/validation",
6-
"$schema": "http://localhost:1234/draft2020-12/metaschema-no-validation.json",
6+
"$schema": "http://localhost:1234/draft-next/metaschema-no-validation.json",
77
"properties": {
88
"badProperty": false,
99
"numberProperty": {

0 commit comments

Comments
 (0)