Skip to content

Update vocabulary tests for draft-next #543

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions remotes/draft-next/format-assertion-false.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$id": "http://localhost:1234/draft-next/format-assertion-false.json",
"$schema": "https://json-schema.org/draft/next/schema",
"$vocabulary": {
"https://json-schema.org/draft/next/vocab/core": true,
"https://json-schema.org/draft/next/vocab/format-assertion": false
},
"allOf": [
{ "$ref": "https://json-schema.org/draft/next/schema/meta/core" },
{ "$ref": "https://json-schema.org/draft/next/schema/meta/format-assertion" }
]
}
12 changes: 12 additions & 0 deletions remotes/draft-next/format-assertion-true.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$id": "http://localhost:1234/draft-next/format-assertion-true.json",
"$schema": "https://json-schema.org/draft/next/schema",
"$vocabulary": {
"https://json-schema.org/draft/next/vocab/core": true,
"https://json-schema.org/draft/next/vocab/format-assertion": true
},
"allOf": [
{ "$ref": "https://json-schema.org/draft/next/schema/meta/core" },
{ "$ref": "https://json-schema.org/draft/next/schema/meta/format-assertion" }
]
}
11 changes: 11 additions & 0 deletions remotes/draft-next/metaschema-no-validation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$id": "http://localhost:1234/draft-next/metaschema-no-validation.json",
"$vocabulary": {
"https://json-schema.org/draft/next/vocab/applicator": true,
"https://json-schema.org/draft/next/vocab/core": true
},
"allOf": [
{ "$ref": "https://json-schema.org/draft/next/meta/applicator" },
{ "$ref": "https://json-schema.org/draft/next/meta/core" }
]
}
4 changes: 2 additions & 2 deletions tests/draft-next/optional/format-assertion.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "schema that uses custom metaschema with format-assertion: false",
"schema": {
"$id": "https://schema/using/format-assertion/false",
"$schema": "http://localhost:1234/draft2020-12/format-assertion-false.json",
"$schema": "http://localhost:1234/draft-next/format-assertion-false.json",
"format": "ipv4"
},
"tests": [
Expand All @@ -23,7 +23,7 @@
"description": "schema that uses custom metaschema with format-assertion: true",
"schema": {
"$id": "https://schema/using/format-assertion/true",
"$schema": "http://localhost:1234/draft2020-12/format-assertion-true.json",
"$schema": "http://localhost:1234/draft-next/format-assertion-true.json",
"format": "ipv4"
},
"tests": [
Expand Down
2 changes: 1 addition & 1 deletion tests/draft-next/vocabulary.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "schema that uses custom metaschema with with no validation vocabulary",
"schema": {
"$id": "https://schema/using/no/validation",
"$schema": "http://localhost:1234/draft2020-12/metaschema-no-validation.json",
"$schema": "http://localhost:1234/draft-next/metaschema-no-validation.json",
"properties": {
"badProperty": false,
"numberProperty": {
Expand Down