diff --git a/bin/annotate-specification-links b/bin/annotate-specification-links index 963768b4..51b229a8 100755 --- a/bin/annotate-specification-links +++ b/bin/annotate-specification-links @@ -79,7 +79,7 @@ def main(): sys.stdout.write("::remove-matcher owner=me::\n") for version in TESTS.iterdir(): - if version.name in {"draft-next", "latest"}: + if version.name in {"v1", "latest"}: continue version_urls = urls(version.name) diff --git a/remotes/draft-next/baseUriChange/folderInteger.json b/remotes/draft-next/baseUriChange/folderInteger.json deleted file mode 100644 index 388c8810..00000000 --- a/remotes/draft-next/baseUriChange/folderInteger.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/next/schema", - "type": "integer" -} diff --git a/remotes/draft-next/baseUriChangeFolder/folderInteger.json b/remotes/draft-next/baseUriChangeFolder/folderInteger.json deleted file mode 100644 index 388c8810..00000000 --- a/remotes/draft-next/baseUriChangeFolder/folderInteger.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/next/schema", - "type": "integer" -} diff --git a/remotes/draft-next/baseUriChangeFolderInSubschema/folderInteger.json b/remotes/draft-next/baseUriChangeFolderInSubschema/folderInteger.json deleted file mode 100644 index 388c8810..00000000 --- a/remotes/draft-next/baseUriChangeFolderInSubschema/folderInteger.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/next/schema", - "type": "integer" -} diff --git a/remotes/draft-next/format-assertion-false.json b/remotes/draft-next/format-assertion-false.json deleted file mode 100644 index 9cbd2a1d..00000000 --- a/remotes/draft-next/format-assertion-false.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "$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 - }, - "$dynamicAnchor": "meta", - "allOf": [ - { "$ref": "https://json-schema.org/draft/next/meta/core" }, - { "$ref": "https://json-schema.org/draft/next/meta/format-assertion" } - ] -} diff --git a/remotes/draft-next/format-assertion-true.json b/remotes/draft-next/format-assertion-true.json deleted file mode 100644 index b3ff69f3..00000000 --- a/remotes/draft-next/format-assertion-true.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "$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 - }, - "$dynamicAnchor": "meta", - "allOf": [ - { "$ref": "https://json-schema.org/draft/next/meta/core" }, - { "$ref": "https://json-schema.org/draft/next/meta/format-assertion" } - ] -} diff --git a/remotes/draft-next/integer.json b/remotes/draft-next/integer.json deleted file mode 100644 index 388c8810..00000000 --- a/remotes/draft-next/integer.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/next/schema", - "type": "integer" -} diff --git a/remotes/draft-next/metaschema-no-validation.json b/remotes/draft-next/metaschema-no-validation.json deleted file mode 100644 index 90e32a67..00000000 --- a/remotes/draft-next/metaschema-no-validation.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/next/schema", - "$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 - }, - "$dynamicAnchor": "meta", - "allOf": [ - { "$ref": "https://json-schema.org/draft/next/meta/applicator" }, - { "$ref": "https://json-schema.org/draft/next/meta/core" } - ] -} diff --git a/remotes/draft-next/metaschema-optional-vocabulary.json b/remotes/draft-next/metaschema-optional-vocabulary.json deleted file mode 100644 index 1af0cad4..00000000 --- a/remotes/draft-next/metaschema-optional-vocabulary.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/next/schema", - "$id": "http://localhost:1234/draft-next/metaschema-optional-vocabulary.json", - "$vocabulary": { - "https://json-schema.org/draft/next/vocab/validation": true, - "https://json-schema.org/draft/next/vocab/core": true, - "http://localhost:1234/draft/next/vocab/custom": false - }, - "$dynamicAnchor": "meta", - "allOf": [ - { "$ref": "https://json-schema.org/draft/next/meta/validation" }, - { "$ref": "https://json-schema.org/draft/next/meta/core" } - ] -} diff --git a/remotes/draft-next/nested/string.json b/remotes/draft-next/nested/string.json deleted file mode 100644 index 7462207e..00000000 --- a/remotes/draft-next/nested/string.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/next/schema", - "type": "string" -} diff --git a/remotes/v1/baseUriChange/folderInteger.json b/remotes/v1/baseUriChange/folderInteger.json new file mode 100644 index 00000000..152a7362 --- /dev/null +++ b/remotes/v1/baseUriChange/folderInteger.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://json-schema.org/v1", + "type": "integer" +} diff --git a/remotes/v1/baseUriChangeFolder/folderInteger.json b/remotes/v1/baseUriChangeFolder/folderInteger.json new file mode 100644 index 00000000..152a7362 --- /dev/null +++ b/remotes/v1/baseUriChangeFolder/folderInteger.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://json-schema.org/v1", + "type": "integer" +} diff --git a/remotes/v1/baseUriChangeFolderInSubschema/folderInteger.json b/remotes/v1/baseUriChangeFolderInSubschema/folderInteger.json new file mode 100644 index 00000000..152a7362 --- /dev/null +++ b/remotes/v1/baseUriChangeFolderInSubschema/folderInteger.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://json-schema.org/v1", + "type": "integer" +} diff --git a/remotes/draft-next/detached-dynamicref.json b/remotes/v1/detached-dynamicref.json similarity index 54% rename from remotes/draft-next/detached-dynamicref.json rename to remotes/v1/detached-dynamicref.json index c1a09a58..5ab192d8 100644 --- a/remotes/draft-next/detached-dynamicref.json +++ b/remotes/v1/detached-dynamicref.json @@ -1,6 +1,6 @@ { - "$id": "http://localhost:1234/draft-next/detached-dynamicref.json", - "$schema": "https://json-schema.org/draft/next/schema", + "$id": "http://localhost:1234/v1/detached-dynamicref.json", + "$schema": "https://json-schema.org/v1", "$defs": { "foo": { "$dynamicRef": "#detached" @@ -10,4 +10,4 @@ "type": "integer" } } -} \ No newline at end of file +} diff --git a/remotes/draft-next/detached-ref.json b/remotes/v1/detached-ref.json similarity index 53% rename from remotes/draft-next/detached-ref.json rename to remotes/v1/detached-ref.json index d01aaa12..fc0f8e42 100644 --- a/remotes/draft-next/detached-ref.json +++ b/remotes/v1/detached-ref.json @@ -1,6 +1,6 @@ { - "$id": "http://localhost:1234/draft-next/detached-ref.json", - "$schema": "https://json-schema.org/draft/next/schema", + "$id": "http://localhost:1234/v1/detached-ref.json", + "$schema": "https://json-schema.org/v1", "$defs": { "foo": { "$ref": "#detached" @@ -10,4 +10,4 @@ "type": "integer" } } -} \ No newline at end of file +} diff --git a/remotes/draft-next/extendible-dynamic-ref.json b/remotes/v1/extendible-dynamic-ref.json similarity index 74% rename from remotes/draft-next/extendible-dynamic-ref.json rename to remotes/v1/extendible-dynamic-ref.json index e787aa3d..eadb3b6b 100644 --- a/remotes/draft-next/extendible-dynamic-ref.json +++ b/remotes/v1/extendible-dynamic-ref.json @@ -1,7 +1,7 @@ { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "description": "extendible array", - "$id": "http://localhost:1234/draft-next/extendible-dynamic-ref.json", + "$id": "http://localhost:1234/v1/extendible-dynamic-ref.json", "type": "object", "properties": { "elements": { diff --git a/remotes/v1/integer.json b/remotes/v1/integer.json new file mode 100644 index 00000000..152a7362 --- /dev/null +++ b/remotes/v1/integer.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://json-schema.org/v1", + "type": "integer" +} diff --git a/remotes/draft-next/locationIndependentIdentifier.json b/remotes/v1/locationIndependentIdentifier.json similarity index 74% rename from remotes/draft-next/locationIndependentIdentifier.json rename to remotes/v1/locationIndependentIdentifier.json index 17b4df51..cb6877d3 100644 --- a/remotes/draft-next/locationIndependentIdentifier.json +++ b/remotes/v1/locationIndependentIdentifier.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$defs": { "refToInteger": { "$ref": "#foo" diff --git a/remotes/draft-next/name-defs.json b/remotes/v1/name-defs.json similarity index 80% rename from remotes/draft-next/name-defs.json rename to remotes/v1/name-defs.json index cdb8c0c3..2ba70f73 100644 --- a/remotes/draft-next/name-defs.json +++ b/remotes/v1/name-defs.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$defs": { "orNull": { "anyOf": [ diff --git a/remotes/draft-next/nested/foo-ref-string.json b/remotes/v1/nested/foo-ref-string.json similarity index 60% rename from remotes/draft-next/nested/foo-ref-string.json rename to remotes/v1/nested/foo-ref-string.json index 50bf77f4..fc4a8cbb 100644 --- a/remotes/draft-next/nested/foo-ref-string.json +++ b/remotes/v1/nested/foo-ref-string.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "properties": { "foo": {"$ref": "string.json"} diff --git a/remotes/v1/nested/string.json b/remotes/v1/nested/string.json new file mode 100644 index 00000000..954e52ee --- /dev/null +++ b/remotes/v1/nested/string.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://json-schema.org/v1", + "type": "string" +} diff --git a/remotes/draft-next/ref-and-defs.json b/remotes/v1/ref-and-defs.json similarity index 57% rename from remotes/draft-next/ref-and-defs.json rename to remotes/v1/ref-and-defs.json index 46fafc9c..66ddddae 100644 --- a/remotes/draft-next/ref-and-defs.json +++ b/remotes/v1/ref-and-defs.json @@ -1,6 +1,6 @@ { - "$schema": "https://json-schema.org/draft/next/schema", - "$id": "http://localhost:1234/draft-next/ref-and-defs.json", + "$schema": "https://json-schema.org/v1", + "$id": "http://localhost:1234/v1/ref-and-defs.json", "$defs": { "inner": { "properties": { diff --git a/remotes/draft-next/subSchemas.json b/remotes/v1/subSchemas.json similarity index 72% rename from remotes/draft-next/subSchemas.json rename to remotes/v1/subSchemas.json index 75b7583c..b9ce12f6 100644 --- a/remotes/draft-next/subSchemas.json +++ b/remotes/v1/subSchemas.json @@ -1,5 +1,5 @@ { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$defs": { "integer": { "type": "integer" diff --git a/remotes/draft-next/tree.json b/remotes/v1/tree.json similarity index 71% rename from remotes/draft-next/tree.json rename to remotes/v1/tree.json index cad332ad..bd188569 100644 --- a/remotes/draft-next/tree.json +++ b/remotes/v1/tree.json @@ -1,7 +1,7 @@ { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "description": "tree schema, extensible", - "$id": "http://localhost:1234/draft-next/tree.json", + "$id": "http://localhost:1234/v1/tree.json", "$dynamicAnchor": "node", "type": "object", diff --git a/tests/draft-next/optional/format-assertion.json b/tests/draft-next/optional/format-assertion.json deleted file mode 100644 index ede922a2..00000000 --- a/tests/draft-next/optional/format-assertion.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "description": "schema that uses custom metaschema with format-assertion: false", - "schema": { - "$id": "https://schema/using/format-assertion/false", - "$schema": "http://localhost:1234/draft-next/format-assertion-false.json", - "format": "ipv4" - }, - "tests": [ - { - "description": "format-assertion: false: valid string", - "data": "127.0.0.1", - "valid": true - }, - { - "description": "format-assertion: false: invalid string", - "data": "not-an-ipv4", - "valid": false - } - ] - }, - { - "description": "schema that uses custom metaschema with format-assertion: true", - "schema": { - "$id": "https://schema/using/format-assertion/true", - "$schema": "http://localhost:1234/draft-next/format-assertion-true.json", - "format": "ipv4" - }, - "tests": [ - { - "description": "format-assertion: true: valid string", - "data": "127.0.0.1", - "valid": true - }, - { - "description": "format-assertion: true: invalid string", - "data": "not-an-ipv4", - "valid": false - } - ] - } -] diff --git a/tests/draft-next/vocabulary.json b/tests/draft-next/vocabulary.json deleted file mode 100644 index f25b9e12..00000000 --- a/tests/draft-next/vocabulary.json +++ /dev/null @@ -1,57 +0,0 @@ -[ - { - "description": "schema that uses custom metaschema with with no validation vocabulary", - "schema": { - "$id": "https://schema/using/no/validation", - "$schema": "http://localhost:1234/draft-next/metaschema-no-validation.json", - "properties": { - "badProperty": false, - "numberProperty": { - "minimum": 10 - } - } - }, - "tests": [ - { - "description": "applicator vocabulary still works", - "data": { - "badProperty": "this property should not exist" - }, - "valid": false - }, - { - "description": "no validation: valid number", - "data": { - "numberProperty": 20 - }, - "valid": true - }, - { - "description": "no validation: invalid number, but it still validates", - "data": { - "numberProperty": 1 - }, - "valid": true - } - ] - }, - { - "description": "ignore unrecognized optional vocabulary", - "schema": { - "$schema": "http://localhost:1234/draft-next/metaschema-optional-vocabulary.json", - "type": "number" - }, - "tests": [ - { - "description": "string value", - "data": "foobar", - "valid": false - }, - { - "description": "number value", - "data": 20, - "valid": true - } - ] - } -] diff --git a/tests/draft-next/additionalProperties.json b/tests/v1/additionalProperties.json similarity index 91% rename from tests/draft-next/additionalProperties.json rename to tests/v1/additionalProperties.json index 51b0edad..301b4552 100644 --- a/tests/draft-next/additionalProperties.json +++ b/tests/v1/additionalProperties.json @@ -3,7 +3,7 @@ "description": "additionalProperties being false does not allow other properties", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": {"foo": {}, "bar": {}}, "patternProperties": { "^v": {} }, "additionalProperties": false @@ -44,7 +44,7 @@ { "description": "non-ASCII pattern with additionalProperties", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "patternProperties": {"^á": {}}, "additionalProperties": false }, @@ -64,7 +64,7 @@ { "description": "additionalProperties with schema", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": {"foo": {}, "bar": {}}, "additionalProperties": {"type": "boolean"} }, @@ -90,7 +90,7 @@ "description": "additionalProperties can exist by itself", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "additionalProperties": {"type": "boolean"} }, "tests": [ @@ -109,7 +109,7 @@ { "description": "additionalProperties are allowed by default", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": {"foo": {}, "bar": {}} }, "tests": [ @@ -123,7 +123,7 @@ { "description": "additionalProperties does not look in applicators", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "allOf": [ {"properties": {"foo": {}}} ], @@ -140,7 +140,7 @@ { "description": "additionalProperties with null valued instance properties", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "additionalProperties": { "type": "null" } @@ -156,7 +156,7 @@ { "description": "additionalProperties with propertyNames", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "propertyNames": { "maxLength": 5 }, @@ -180,7 +180,7 @@ { "description": "propertyDependencies with additionalProperties", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties" : {"foo2" : {}}, "propertyDependencies": { "foo" : {}, @@ -215,7 +215,7 @@ { "description": "dependentSchemas with additionalProperties", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": {"foo2": {}}, "dependentSchemas": { "foo": {}, diff --git a/tests/draft-next/allOf.json b/tests/v1/allOf.json similarity index 90% rename from tests/draft-next/allOf.json rename to tests/v1/allOf.json index 86745da2..43a54585 100644 --- a/tests/draft-next/allOf.json +++ b/tests/v1/allOf.json @@ -2,7 +2,7 @@ { "description": "allOf", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "allOf": [ { "properties": { @@ -44,7 +44,7 @@ { "description": "allOf with base schema", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": {"bar": {"type": "integer"}}, "required": ["bar"], "allOf" : [ @@ -93,7 +93,7 @@ { "description": "allOf simple types", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "allOf": [ {"maximum": 30}, {"minimum": 20} @@ -115,7 +115,7 @@ { "description": "allOf with boolean schemas, all true", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "allOf": [true, true] }, "tests": [ @@ -129,7 +129,7 @@ { "description": "allOf with boolean schemas, some false", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "allOf": [true, false] }, "tests": [ @@ -143,7 +143,7 @@ { "description": "allOf with boolean schemas, all false", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "allOf": [false, false] }, "tests": [ @@ -157,7 +157,7 @@ { "description": "allOf with one empty schema", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "allOf": [ {} ] @@ -173,7 +173,7 @@ { "description": "allOf with two empty schemas", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "allOf": [ {}, {} @@ -190,7 +190,7 @@ { "description": "allOf with the first empty schema", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "allOf": [ {}, { "type": "number" } @@ -212,7 +212,7 @@ { "description": "allOf with the last empty schema", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "allOf": [ { "type": "number" }, {} @@ -234,7 +234,7 @@ { "description": "nested allOf, to check validation semantics", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "allOf": [ { "allOf": [ @@ -261,7 +261,7 @@ { "description": "allOf combined with anyOf, oneOf", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "allOf": [ { "multipleOf": 2 } ], "anyOf": [ { "multipleOf": 3 } ], "oneOf": [ { "multipleOf": 5 } ] diff --git a/tests/draft-next/anchor.json b/tests/v1/anchor.json similarity index 82% rename from tests/draft-next/anchor.json rename to tests/v1/anchor.json index 84d4851c..40f19e5d 100644 --- a/tests/draft-next/anchor.json +++ b/tests/v1/anchor.json @@ -2,7 +2,7 @@ { "description": "Location-independent identifier", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$ref": "#foo", "$defs": { "A": { @@ -27,11 +27,11 @@ { "description": "Location-independent identifier with absolute URI", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$ref": "http://localhost:1234/draft-next/bar#foo", + "$schema": "https://json-schema.org/v1", + "$ref": "http://localhost:1234/v1/bar#foo", "$defs": { "A": { - "$id": "http://localhost:1234/draft-next/bar", + "$id": "http://localhost:1234/v1/bar", "$anchor": "foo", "type": "integer" } @@ -53,9 +53,9 @@ { "description": "Location-independent identifier with base URI change in subschema", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$id": "http://localhost:1234/draft-next/root", - "$ref": "http://localhost:1234/draft-next/nested.json#foo", + "$schema": "https://json-schema.org/v1", + "$id": "http://localhost:1234/v1/root", + "$ref": "http://localhost:1234/v1/nested.json#foo", "$defs": { "A": { "$id": "nested.json", @@ -84,8 +84,8 @@ { "description": "same $anchor with different base uri", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$id": "http://localhost:1234/draft-next/foobar", + "$schema": "https://json-schema.org/v1", + "$id": "http://localhost:1234/v1/foobar", "$defs": { "A": { "$id": "child1", diff --git a/tests/draft-next/anyOf.json b/tests/v1/anyOf.json similarity index 89% rename from tests/draft-next/anyOf.json rename to tests/v1/anyOf.json index a97267c8..54f7db9a 100644 --- a/tests/draft-next/anyOf.json +++ b/tests/v1/anyOf.json @@ -2,7 +2,7 @@ { "description": "anyOf", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "anyOf": [ { "type": "integer" @@ -38,7 +38,7 @@ { "description": "anyOf with base schema", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "string", "anyOf" : [ { @@ -70,7 +70,7 @@ { "description": "anyOf with boolean schemas, all true", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "anyOf": [true, true] }, "tests": [ @@ -84,7 +84,7 @@ { "description": "anyOf with boolean schemas, some true", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "anyOf": [true, false] }, "tests": [ @@ -98,7 +98,7 @@ { "description": "anyOf with boolean schemas, all false", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "anyOf": [false, false] }, "tests": [ @@ -112,7 +112,7 @@ { "description": "anyOf complex types", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "anyOf": [ { "properties": { @@ -154,7 +154,7 @@ { "description": "anyOf with one empty schema", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "anyOf": [ { "type": "number" }, {} @@ -176,7 +176,7 @@ { "description": "nested anyOf, to check validation semantics", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "anyOf": [ { "anyOf": [ diff --git a/tests/draft-next/boolean_schema.json b/tests/v1/boolean_schema.json similarity index 100% rename from tests/draft-next/boolean_schema.json rename to tests/v1/boolean_schema.json diff --git a/tests/draft-next/const.json b/tests/v1/const.json similarity index 90% rename from tests/draft-next/const.json rename to tests/v1/const.json index 61fbd839..94f41e70 100644 --- a/tests/draft-next/const.json +++ b/tests/v1/const.json @@ -2,7 +2,7 @@ { "description": "const validation", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "const": 2 }, "tests": [ @@ -26,7 +26,7 @@ { "description": "const with object", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "const": {"foo": "bar", "baz": "bax"} }, "tests": [ @@ -55,7 +55,7 @@ { "description": "const with array", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "const": [{ "foo": "bar" }] }, "tests": [ @@ -79,7 +79,7 @@ { "description": "const with null", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "const": null }, "tests": [ @@ -98,7 +98,7 @@ { "description": "const with false does not match 0", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "const": false }, "tests": [ @@ -122,7 +122,7 @@ { "description": "const with true does not match 1", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "const": true }, "tests": [ @@ -146,7 +146,7 @@ { "description": "const with [false] does not match [0]", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "const": [false] }, "tests": [ @@ -170,7 +170,7 @@ { "description": "const with [true] does not match [1]", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "const": [true] }, "tests": [ @@ -194,7 +194,7 @@ { "description": "const with {\"a\": false} does not match {\"a\": 0}", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "const": {"a": false} }, "tests": [ @@ -218,7 +218,7 @@ { "description": "const with {\"a\": true} does not match {\"a\": 1}", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "const": {"a": true} }, "tests": [ @@ -242,7 +242,7 @@ { "description": "const with 0 does not match other zero-like types", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "const": 0 }, "tests": [ @@ -281,7 +281,7 @@ { "description": "const with 1 does not match true", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "const": 1 }, "tests": [ @@ -305,7 +305,7 @@ { "description": "const with -2.0 matches integer and float types", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "const": -2.0 }, "tests": [ @@ -339,7 +339,7 @@ { "description": "float and integers are equal up to 64-bit representation limits", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "const": 9007199254740992 }, "tests": [ @@ -368,7 +368,7 @@ { "description": "nul characters in strings", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "const": "hello\u0000there" }, "tests": [ diff --git a/tests/draft-next/contains.json b/tests/v1/contains.json similarity index 91% rename from tests/draft-next/contains.json rename to tests/v1/contains.json index 8539a531..468f9c01 100644 --- a/tests/draft-next/contains.json +++ b/tests/v1/contains.json @@ -2,7 +2,7 @@ { "description": "contains keyword validation", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "contains": { "minimum": 5 } }, "tests": [ @@ -41,7 +41,7 @@ { "description": "contains keyword with const keyword", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "contains": { "const": 5 } }, "tests": [ @@ -65,7 +65,7 @@ { "description": "contains keyword with boolean schema true", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "contains": true }, "tests": [ @@ -84,7 +84,7 @@ { "description": "contains keyword with boolean schema false", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "contains": false }, "tests": [ @@ -128,7 +128,7 @@ { "description": "items + contains", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "additionalProperties": { "multipleOf": 2 }, "items": { "multipleOf": 2 }, "contains": { "multipleOf": 3 } @@ -159,7 +159,7 @@ { "description": "contains with false if subschema", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "contains": { "if": false, "else": true @@ -181,7 +181,7 @@ { "description": "contains with null instance elements", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "contains": { "type": "null" } diff --git a/tests/draft-next/content.json b/tests/v1/content.json similarity index 93% rename from tests/draft-next/content.json rename to tests/v1/content.json index 37e1f095..ba34a971 100644 --- a/tests/draft-next/content.json +++ b/tests/v1/content.json @@ -2,7 +2,7 @@ { "description": "validation of string-encoded content based on media type", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "contentMediaType": "application/json" }, "tests": [ @@ -26,7 +26,7 @@ { "description": "validation of binary string-encoding", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "contentEncoding": "base64" }, "tests": [ @@ -50,7 +50,7 @@ { "description": "validation of binary-encoded media type documents", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "contentMediaType": "application/json", "contentEncoding": "base64" }, @@ -80,7 +80,7 @@ { "description": "validation of binary-encoded media type documents with schema", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "contentMediaType": "application/json", "contentEncoding": "base64", "contentSchema": { "type": "object", "required": ["foo"], "properties": { "foo": { "type": "string" } } } diff --git a/tests/draft-next/default.json b/tests/v1/default.json similarity index 91% rename from tests/draft-next/default.json rename to tests/v1/default.json index 689b68e6..d74e27d0 100644 --- a/tests/draft-next/default.json +++ b/tests/v1/default.json @@ -2,7 +2,7 @@ { "description": "invalid type for default", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": { "foo": { "type": "integer", @@ -26,7 +26,7 @@ { "description": "invalid string value for default", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": { "bar": { "type": "string", @@ -51,7 +51,7 @@ { "description": "the default keyword does not do anything if the property is missing", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "properties": { "alpha": { diff --git a/tests/draft-next/defs.json b/tests/v1/defs.json similarity index 79% rename from tests/draft-next/defs.json rename to tests/v1/defs.json index 7bda8257..8e167655 100644 --- a/tests/draft-next/defs.json +++ b/tests/v1/defs.json @@ -2,8 +2,8 @@ { "description": "validate definition against metaschema", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$ref": "https://json-schema.org/draft/next/schema" + "$schema": "https://json-schema.org/v1", + "$ref": "https://json-schema.org/v1" }, "tests": [ { diff --git a/tests/draft-next/dependentRequired.json b/tests/v1/dependentRequired.json similarity index 93% rename from tests/draft-next/dependentRequired.json rename to tests/v1/dependentRequired.json index 23447242..ee7dda3d 100644 --- a/tests/draft-next/dependentRequired.json +++ b/tests/v1/dependentRequired.json @@ -2,7 +2,7 @@ { "description": "single dependency", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "dependentRequired": {"bar": ["foo"]} }, "tests": [ @@ -46,7 +46,7 @@ { "description": "empty dependents", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "dependentRequired": {"bar": []} }, "tests": [ @@ -70,7 +70,7 @@ { "description": "multiple dependents required", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "dependentRequired": {"quux": ["foo", "bar"]} }, "tests": [ @@ -109,7 +109,7 @@ { "description": "dependencies with escaped characters", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "dependentRequired": { "foo\nbar": ["foo\rbar"], "foo\"bar": ["foo'bar"] diff --git a/tests/draft-next/dependentSchemas.json b/tests/v1/dependentSchemas.json similarity index 94% rename from tests/draft-next/dependentSchemas.json rename to tests/v1/dependentSchemas.json index 86079c34..a1cdc886 100644 --- a/tests/draft-next/dependentSchemas.json +++ b/tests/v1/dependentSchemas.json @@ -2,7 +2,7 @@ { "description": "single dependency", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "dependentSchemas": { "bar": { "properties": { @@ -58,7 +58,7 @@ { "description": "boolean subschemas", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "dependentSchemas": { "foo": true, "bar": false @@ -90,7 +90,7 @@ { "description": "dependencies with escaped characters", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "dependentSchemas": { "foo\tbar": {"minProperties": 4}, "foo'bar": {"required": ["foo\"bar"]} @@ -132,7 +132,7 @@ { "description": "dependent subschema incompatible with root", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": { "foo": {} }, diff --git a/tests/draft-next/dynamicRef.json b/tests/v1/dynamicRef.json similarity index 78% rename from tests/draft-next/dynamicRef.json rename to tests/v1/dynamicRef.json index 30821c5b..54012914 100644 --- a/tests/draft-next/dynamicRef.json +++ b/tests/v1/dynamicRef.json @@ -2,7 +2,7 @@ { "description": "A $dynamicRef to a $dynamicAnchor in the same schema resource behaves like a normal $ref to an $anchor", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$id": "https://test.json-schema.org/dynamicRef-dynamicAnchor-same-schema/root", "type": "array", "items": { "$dynamicRef": "#items" }, @@ -26,37 +26,10 @@ } ] }, - { - "description": "A $ref to a $dynamicAnchor in the same schema resource behaves like a normal $ref to an $anchor", - "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$id": "https://test.json-schema.org/ref-dynamicAnchor-same-schema/root", - "type": "array", - "items": { "$ref": "#items" }, - "$defs": { - "foo": { - "$dynamicAnchor": "items", - "type": "string" - } - } - }, - "tests": [ - { - "description": "An array of strings is valid", - "data": ["foo", "bar"], - "valid": true - }, - { - "description": "An array containing non-strings is invalid", - "data": ["foo", 42], - "valid": false - } - ] - }, { "description": "A $dynamicRef resolves to the first $dynamicAnchor still in scope that is encountered when the schema is evaluated", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$id": "https://test.json-schema.org/typical-dynamic-resolution/root", "$ref": "list", "$defs": { @@ -87,7 +60,7 @@ { "description": "A $dynamicRef with intermediate scopes that don't include a matching $dynamicAnchor does not affect dynamic scope resolution", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$id": "https://test.json-schema.org/dynamic-resolution-with-intermediate-scopes/root", "$ref": "intermediate-scope", "$defs": { @@ -122,7 +95,7 @@ { "description": "An $anchor with the same name as a $dynamicAnchor is not used for dynamic scope resolution", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$id": "https://test.json-schema.org/dynamic-resolution-ignores-anchors/root", "$ref": "list", "$defs": { @@ -150,62 +123,10 @@ } ] }, - { - "description": "A $dynamicRef that initially resolves to a schema with a matching $dynamicAnchor resolves to the first $dynamicAnchor in the dynamic scope", - "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$id": "https://test.json-schema.org/relative-dynamic-reference/root", - "$dynamicAnchor": "meta", - "type": "object", - "properties": { - "foo": { "const": "pass" } - }, - "$ref": "extended", - "$defs": { - "extended": { - "$id": "extended", - "$dynamicAnchor": "meta", - "type": "object", - "properties": { - "bar": { "$ref": "bar" } - } - }, - "bar": { - "$id": "bar", - "type": "object", - "properties": { - "baz": { "$dynamicRef": "extended#meta" } - } - } - } - }, - "tests": [ - { - "description": "The recursive part is valid against the root", - "data": { - "foo": "pass", - "bar": { - "baz": { "foo": "pass" } - } - }, - "valid": true - }, - { - "description": "The recursive part is not valid against the root", - "data": { - "foo": "pass", - "bar": { - "baz": { "foo": "fail" } - } - }, - "valid": false - } - ] - }, { "description": "multiple dynamic paths to the $dynamicRef keyword", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$id": "https://test.json-schema.org/dynamic-ref-with-multiple-paths/main", "propertyDependencies": { "kindOfList": { @@ -282,7 +203,6 @@ { "description": "after leaving a dynamic scope, it is not used by a $dynamicRef", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", "$id": "https://test.json-schema.org/dynamic-ref-leaving-dynamic-scope/main", "if": { "$id": "first_scope", @@ -309,13 +229,18 @@ "start": { "$comment": "this is the landing spot from $ref", "$id": "start", - "$dynamicRef": "inner_scope#thingy" + "$ref": "inner_scope" }, "thingy": { - "$comment": "this is the first stop for the $dynamicRef", "$id": "inner_scope", - "$dynamicAnchor": "thingy", - "type": "string" + "$dynamicRef": "#thingy", + "$defs": { + "": { + "$comment": "this is the first stop for the $dynamicRef", + "$dynamicAnchor": "thingy", + "type": "string" + } + } } } }, @@ -340,8 +265,8 @@ { "description": "strict-tree schema, guards against misspelled properties", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$id": "http://localhost:1234/draft-next/strict-tree.json", + "$schema": "https://json-schema.org/v1", + "$id": "http://localhost:1234/v1/strict-tree.json", "$dynamicAnchor": "node", "$ref": "tree.json", @@ -371,8 +296,8 @@ { "description": "tests for implementation dynamic anchor and reference link", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$id": "http://localhost:1234/draft-next/strict-extendible.json", + "$schema": "https://json-schema.org/v1", + "$id": "http://localhost:1234/v1/strict-extendible.json", "$ref": "extendible-dynamic-ref.json", "$defs": { "elements": { @@ -416,8 +341,8 @@ { "description": "$ref and $dynamicAnchor are independent of order - $defs first", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$id": "http://localhost:1234/draft-next/strict-extendible-allof-defs-first.json", + "$schema": "https://json-schema.org/v1", + "$id": "http://localhost:1234/v1/strict-extendible-allof-defs-first.json", "allOf": [ { "$ref": "extendible-dynamic-ref.json" @@ -467,8 +392,8 @@ { "description": "$ref and $dynamicAnchor are independent of order - $ref first", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$id": "http://localhost:1234/draft-next/strict-extendible-allof-ref-first.json", + "$schema": "https://json-schema.org/v1", + "$id": "http://localhost:1234/v1/strict-extendible-allof-ref-first.json", "allOf": [ { "$defs": { @@ -518,8 +443,8 @@ { "description": "$dynamicAnchor inside propertyDependencies", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$id": "http://localhost:1234/draft-next/dynamicanchor-in-propertydependencies.json", + "$schema": "https://json-schema.org/v1", + "$id": "http://localhost:1234/v1/dynamicanchor-in-propertydependencies.json", "$defs": { "inner": { "$id": "inner", @@ -598,7 +523,7 @@ { "description": "$ref to $dynamicRef finds detached $dynamicAnchor", "schema": { - "$ref": "http://localhost:1234/draft-next/detached-dynamicref.json#/$defs/foo" + "$ref": "http://localhost:1234/v1/detached-dynamicref.json#/$defs/foo" }, "tests": [ { @@ -613,40 +538,10 @@ } ] }, - { - "description": "$dynamicRef points to a boolean schema", - "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$defs": { - "true": true, - "false": false - }, - "properties": { - "true": { - "$dynamicRef": "#/$defs/true" - }, - "false": { - "$dynamicRef": "#/$defs/false" - } - } - }, - "tests": [ - { - "description": "follow $dynamicRef to a true schema", - "data": { "true": 1 }, - "valid": true - }, - { - "description": "follow $dynamicRef to a false schema", - "data": { "false": 1 }, - "valid": false - } - ] - }, { "description": "$dynamicRef skips over intermediate resources - direct reference", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$id": "https://test.json-schema.org/dynamic-ref-skips-intermediate-resource/main", "type": "object", "properties": { diff --git a/tests/draft-next/enum.json b/tests/v1/enum.json similarity index 90% rename from tests/draft-next/enum.json rename to tests/v1/enum.json index e263f390..a915d538 100644 --- a/tests/draft-next/enum.json +++ b/tests/v1/enum.json @@ -2,7 +2,7 @@ { "description": "simple enum validation", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "enum": [1, 2, 3] }, "tests": [ @@ -21,7 +21,7 @@ { "description": "heterogeneous enum validation", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "enum": [6, "foo", [], true, {"foo": 12}] }, "tests": [ @@ -55,7 +55,7 @@ { "description": "heterogeneous enum-with-null validation", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "enum": [6, null] }, "tests": [ @@ -79,7 +79,7 @@ { "description": "enums in properties", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type":"object", "properties": { "foo": {"enum":["foo"]}, @@ -123,7 +123,7 @@ { "description": "enum with escaped characters", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "enum": ["foo\nbar", "foo\rbar"] }, "tests": [ @@ -147,7 +147,7 @@ { "description": "enum with false does not match 0", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "enum": [false] }, "tests": [ @@ -171,7 +171,7 @@ { "description": "enum with [false] does not match [0]", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "enum": [[false]] }, "tests": [ @@ -195,7 +195,7 @@ { "description": "enum with true does not match 1", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "enum": [true] }, "tests": [ @@ -219,7 +219,7 @@ { "description": "enum with [true] does not match [1]", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "enum": [[true]] }, "tests": [ @@ -243,7 +243,7 @@ { "description": "enum with 0 does not match false", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "enum": [0] }, "tests": [ @@ -267,7 +267,7 @@ { "description": "enum with [0] does not match [false]", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "enum": [[0]] }, "tests": [ @@ -291,7 +291,7 @@ { "description": "enum with 1 does not match true", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "enum": [1] }, "tests": [ @@ -315,7 +315,7 @@ { "description": "enum with [1] does not match [true]", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "enum": [[1]] }, "tests": [ @@ -339,7 +339,7 @@ { "description": "nul characters in strings", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "enum": [ "hello\u0000there" ] }, "tests": [ diff --git a/tests/draft-next/exclusiveMaximum.json b/tests/v1/exclusiveMaximum.json similarity index 91% rename from tests/draft-next/exclusiveMaximum.json rename to tests/v1/exclusiveMaximum.json index 6ec4752d..cf57ccaf 100644 --- a/tests/draft-next/exclusiveMaximum.json +++ b/tests/v1/exclusiveMaximum.json @@ -2,7 +2,7 @@ { "description": "exclusiveMaximum validation", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "exclusiveMaximum": 3.0 }, "tests": [ diff --git a/tests/draft-next/exclusiveMinimum.json b/tests/v1/exclusiveMinimum.json similarity index 91% rename from tests/draft-next/exclusiveMinimum.json rename to tests/v1/exclusiveMinimum.json index 90262987..1a745e6f 100644 --- a/tests/draft-next/exclusiveMinimum.json +++ b/tests/v1/exclusiveMinimum.json @@ -2,7 +2,7 @@ { "description": "exclusiveMinimum validation", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "exclusiveMinimum": 1.1 }, "tests": [ diff --git a/tests/draft-next/optional/format/date-time.json b/tests/v1/format/date-time.json similarity index 98% rename from tests/draft-next/optional/format/date-time.json rename to tests/v1/format/date-time.json index c41ceda0..b0c09190 100644 --- a/tests/draft-next/optional/format/date-time.json +++ b/tests/v1/format/date-time.json @@ -2,7 +2,7 @@ { "description": "validation of date-time strings", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "format": "date-time" }, "tests": [ diff --git a/tests/draft-next/optional/format/date.json b/tests/v1/format/date.json similarity index 99% rename from tests/draft-next/optional/format/date.json rename to tests/v1/format/date.json index 6cea531a..f120d37e 100644 --- a/tests/draft-next/optional/format/date.json +++ b/tests/v1/format/date.json @@ -2,7 +2,7 @@ { "description": "validation of date strings", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "format": "date" }, "tests": [ diff --git a/tests/draft-next/optional/format/duration.json b/tests/v1/format/duration.json similarity index 98% rename from tests/draft-next/optional/format/duration.json rename to tests/v1/format/duration.json index c4aa66ba..b22e7fe7 100644 --- a/tests/draft-next/optional/format/duration.json +++ b/tests/v1/format/duration.json @@ -2,7 +2,7 @@ { "description": "validation of duration strings", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "format": "duration" }, "tests": [ diff --git a/tests/draft-next/optional/format/ecmascript-regex.json b/tests/v1/format/ecmascript-regex.json similarity index 80% rename from tests/draft-next/optional/format/ecmascript-regex.json rename to tests/v1/format/ecmascript-regex.json index 1e19c272..9d732b71 100644 --- a/tests/draft-next/optional/format/ecmascript-regex.json +++ b/tests/v1/format/ecmascript-regex.json @@ -2,7 +2,7 @@ { "description": "\\a is not an ECMA 262 control escape", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "format": "regex" }, "tests": [ diff --git a/tests/draft-next/optional/format/email.json b/tests/v1/format/email.json similarity index 98% rename from tests/draft-next/optional/format/email.json rename to tests/v1/format/email.json index 70633f18..0d7ad0bf 100644 --- a/tests/draft-next/optional/format/email.json +++ b/tests/v1/format/email.json @@ -2,7 +2,7 @@ { "description": "validation of e-mail addresses", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "format": "email" }, "tests": [ diff --git a/tests/draft-next/optional/format/hostname.json b/tests/v1/format/hostname.json similarity index 98% rename from tests/draft-next/optional/format/hostname.json rename to tests/v1/format/hostname.json index bc3a60dc..1b75d36e 100644 --- a/tests/draft-next/optional/format/hostname.json +++ b/tests/v1/format/hostname.json @@ -2,7 +2,7 @@ { "description": "validation of host names", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "format": "hostname" }, "tests": [ diff --git a/tests/draft-next/optional/format/idn-email.json b/tests/v1/format/idn-email.json similarity index 96% rename from tests/draft-next/optional/format/idn-email.json rename to tests/v1/format/idn-email.json index 1f353670..458994cb 100644 --- a/tests/draft-next/optional/format/idn-email.json +++ b/tests/v1/format/idn-email.json @@ -2,7 +2,7 @@ { "description": "validation of an internationalized e-mail addresses", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "format": "idn-email" }, "tests": [ diff --git a/tests/draft-next/optional/format/idn-hostname.json b/tests/v1/format/idn-hostname.json similarity index 99% rename from tests/draft-next/optional/format/idn-hostname.json rename to tests/v1/format/idn-hostname.json index 1061f424..3b9fc094 100644 --- a/tests/draft-next/optional/format/idn-hostname.json +++ b/tests/v1/format/idn-hostname.json @@ -2,7 +2,7 @@ { "description": "validation of internationalized host names", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "format": "idn-hostname" }, "tests": [ @@ -340,7 +340,7 @@ {"rfc3490": "3.1", "quote": "Whenever dots are used as label separators, the following characters MUST be recognized as dots: U+002E (full stop), U+3002 (ideographic full stop), U+FF0E (fullwidth full stop), U+FF61(halfwidth ideographic full stop)"} ], "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "format": "idn-hostname" }, "tests": [ diff --git a/tests/draft-next/optional/format/ipv4.json b/tests/v1/format/ipv4.json similarity index 97% rename from tests/draft-next/optional/format/ipv4.json rename to tests/v1/format/ipv4.json index 2a4bc2b2..ec578703 100644 --- a/tests/draft-next/optional/format/ipv4.json +++ b/tests/v1/format/ipv4.json @@ -2,7 +2,7 @@ { "description": "validation of IP addresses", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "format": "ipv4" }, "tests": [ diff --git a/tests/draft-next/optional/format/ipv6.json b/tests/v1/format/ipv6.json similarity index 99% rename from tests/draft-next/optional/format/ipv6.json rename to tests/v1/format/ipv6.json index 241df7f3..58f86f47 100644 --- a/tests/draft-next/optional/format/ipv6.json +++ b/tests/v1/format/ipv6.json @@ -2,7 +2,7 @@ { "description": "validation of IPv6 addresses", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "format": "ipv6" }, "tests": [ diff --git a/tests/draft-next/optional/format/iri-reference.json b/tests/v1/format/iri-reference.json similarity index 97% rename from tests/draft-next/optional/format/iri-reference.json rename to tests/v1/format/iri-reference.json index 543b99e7..f1d81373 100644 --- a/tests/draft-next/optional/format/iri-reference.json +++ b/tests/v1/format/iri-reference.json @@ -2,7 +2,7 @@ { "description": "validation of IRI References", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "format": "iri-reference" }, "tests": [ diff --git a/tests/draft-next/optional/format/iri.json b/tests/v1/format/iri.json similarity index 97% rename from tests/draft-next/optional/format/iri.json rename to tests/v1/format/iri.json index 48e82a28..2bd4d097 100644 --- a/tests/draft-next/optional/format/iri.json +++ b/tests/v1/format/iri.json @@ -2,7 +2,7 @@ { "description": "validation of IRIs", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "format": "iri" }, "tests": [ diff --git a/tests/draft-next/optional/format/json-pointer.json b/tests/v1/format/json-pointer.json similarity index 98% rename from tests/draft-next/optional/format/json-pointer.json rename to tests/v1/format/json-pointer.json index f55342f1..1b92a087 100644 --- a/tests/draft-next/optional/format/json-pointer.json +++ b/tests/v1/format/json-pointer.json @@ -2,7 +2,7 @@ { "description": "validation of JSON-pointers (JSON String Representation)", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "format": "json-pointer" }, "tests": [ diff --git a/tests/draft-next/optional/format/regex.json b/tests/v1/format/regex.json similarity index 95% rename from tests/draft-next/optional/format/regex.json rename to tests/v1/format/regex.json index 5987f534..7b233b2d 100644 --- a/tests/draft-next/optional/format/regex.json +++ b/tests/v1/format/regex.json @@ -2,7 +2,7 @@ { "description": "validation of regular expressions", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "format": "regex" }, "tests": [ diff --git a/tests/draft-next/optional/format/relative-json-pointer.json b/tests/v1/format/relative-json-pointer.json similarity index 97% rename from tests/draft-next/optional/format/relative-json-pointer.json rename to tests/v1/format/relative-json-pointer.json index 1e28fc29..659d7a13 100644 --- a/tests/draft-next/optional/format/relative-json-pointer.json +++ b/tests/v1/format/relative-json-pointer.json @@ -2,7 +2,7 @@ { "description": "validation of Relative JSON Pointers (RJP)", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "format": "relative-json-pointer" }, "tests": [ diff --git a/tests/draft-next/optional/format/time.json b/tests/v1/format/time.json similarity index 99% rename from tests/draft-next/optional/format/time.json rename to tests/v1/format/time.json index 041d18c8..92c15315 100644 --- a/tests/draft-next/optional/format/time.json +++ b/tests/v1/format/time.json @@ -2,7 +2,7 @@ { "description": "validation of time strings", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "format": "time" }, "tests": [ diff --git a/tests/draft-next/optional/format/uri-reference.json b/tests/v1/format/uri-reference.json similarity index 97% rename from tests/draft-next/optional/format/uri-reference.json rename to tests/v1/format/uri-reference.json index e966532a..64082ee4 100644 --- a/tests/draft-next/optional/format/uri-reference.json +++ b/tests/v1/format/uri-reference.json @@ -2,7 +2,7 @@ { "description": "validation of URI References", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "format": "uri-reference" }, "tests": [ diff --git a/tests/draft-next/optional/format/uri-template.json b/tests/v1/format/uri-template.json similarity index 96% rename from tests/draft-next/optional/format/uri-template.json rename to tests/v1/format/uri-template.json index f57d62df..20bc809e 100644 --- a/tests/draft-next/optional/format/uri-template.json +++ b/tests/v1/format/uri-template.json @@ -2,7 +2,7 @@ { "description": "format: uri-template", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "format": "uri-template" }, "tests": [ diff --git a/tests/draft-next/optional/format/uri.json b/tests/v1/format/uri.json similarity index 98% rename from tests/draft-next/optional/format/uri.json rename to tests/v1/format/uri.json index ca9beea1..f8be60be 100644 --- a/tests/draft-next/optional/format/uri.json +++ b/tests/v1/format/uri.json @@ -2,7 +2,7 @@ { "description": "validation of URIs", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "format": "uri" }, "tests": [ diff --git a/tests/draft-next/optional/format/uuid.json b/tests/v1/format/uuid.json similarity index 98% rename from tests/draft-next/optional/format/uuid.json rename to tests/v1/format/uuid.json index 21c9f676..7663f591 100644 --- a/tests/draft-next/optional/format/uuid.json +++ b/tests/v1/format/uuid.json @@ -2,7 +2,7 @@ { "description": "uuid format", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "format": "uuid" }, "tests": [ diff --git a/tests/draft-next/if-then-else.json b/tests/v1/if-then-else.json similarity index 90% rename from tests/draft-next/if-then-else.json rename to tests/v1/if-then-else.json index 70576c42..7a99e5c1 100644 --- a/tests/draft-next/if-then-else.json +++ b/tests/v1/if-then-else.json @@ -2,7 +2,7 @@ { "description": "ignore if without then or else", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "if": { "const": 0 } @@ -23,7 +23,7 @@ { "description": "ignore then without if", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "then": { "const": 0 } @@ -44,7 +44,7 @@ { "description": "ignore else without if", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "else": { "const": 0 } @@ -65,7 +65,7 @@ { "description": "if and then without else", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "if": { "exclusiveMaximum": 0 }, @@ -94,7 +94,7 @@ { "description": "if and else without then", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "if": { "exclusiveMaximum": 0 }, @@ -123,7 +123,7 @@ { "description": "validate against correct branch, then vs else", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "if": { "exclusiveMaximum": 0 }, @@ -160,7 +160,7 @@ { "description": "non-interference across combined schemas", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "allOf": [ { "if": { @@ -195,7 +195,7 @@ { "description": "if with boolean schema true", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "if": true, "then": { "const": "then" }, "else": { "const": "else" } @@ -216,7 +216,7 @@ { "description": "if with boolean schema false", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "if": false, "then": { "const": "then" }, "else": { "const": "else" } @@ -237,7 +237,7 @@ { "description": "if appears at the end when serialized (keyword processing sequence)", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "then": { "const": "yes" }, "else": { "const": "other" }, "if": { "maxLength": 4 } diff --git a/tests/draft-next/infinite-loop-detection.json b/tests/v1/infinite-loop-detection.json similarity index 93% rename from tests/draft-next/infinite-loop-detection.json rename to tests/v1/infinite-loop-detection.json index fa66743b..150e88c9 100644 --- a/tests/draft-next/infinite-loop-detection.json +++ b/tests/v1/infinite-loop-detection.json @@ -2,7 +2,7 @@ { "description": "evaluating the same schema location against the same data location twice is not a sign of an infinite loop", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$defs": { "int": { "type": "integer" } }, diff --git a/tests/draft-next/items.json b/tests/v1/items.json similarity index 92% rename from tests/draft-next/items.json rename to tests/v1/items.json index dfb79af2..a259bd50 100644 --- a/tests/draft-next/items.json +++ b/tests/v1/items.json @@ -2,7 +2,7 @@ { "description": "a schema given for items", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "items": {"type": "integer"} }, "tests": [ @@ -34,7 +34,7 @@ { "description": "items with boolean schema (true)", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "items": true }, "tests": [ @@ -53,7 +53,7 @@ { "description": "items with boolean schema (false)", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "items": false }, "tests": [ @@ -72,7 +72,7 @@ { "description": "items and subitems", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$defs": { "item": { "type": "array", @@ -155,7 +155,7 @@ { "description": "nested items", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "array", "items": { "type": "array", @@ -191,7 +191,7 @@ { "description": "prefixItems with no additional items allowed", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "prefixItems": [{}, {}, {}], "items": false }, @@ -226,7 +226,7 @@ { "description": "items does not look in applicators, valid case", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "allOf": [ { "prefixItems": [ { "minimum": 3 } ] } ], @@ -248,7 +248,7 @@ { "description": "prefixItems validation adjusts the starting index for items", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "prefixItems": [ { "type": "string" } ], "items": { "type": "integer" } }, @@ -268,7 +268,7 @@ { "description": "items with heterogeneous array", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "prefixItems": [{}], "items": false }, @@ -288,7 +288,7 @@ { "description": "items with null instance elements", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "items": { "type": "null" } diff --git a/tests/draft-next/maxContains.json b/tests/v1/maxContains.json similarity index 91% rename from tests/draft-next/maxContains.json rename to tests/v1/maxContains.json index 5af6e4c1..3d9056bc 100644 --- a/tests/draft-next/maxContains.json +++ b/tests/v1/maxContains.json @@ -2,7 +2,7 @@ { "description": "maxContains without contains is ignored", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "maxContains": 1 }, "tests": [ @@ -21,7 +21,7 @@ { "description": "maxContains with contains", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "contains": { "const": 1 }, "maxContains": 1 }, @@ -56,7 +56,7 @@ { "description": "maxContains with contains, value with a decimal", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "contains": {"const": 1}, "maxContains": 1.0 }, @@ -76,7 +76,7 @@ { "description": "minContains < maxContains", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "contains": { "const": 1 }, "minContains": 1, "maxContains": 3 diff --git a/tests/draft-next/maxItems.json b/tests/v1/maxItems.json similarity index 89% rename from tests/draft-next/maxItems.json rename to tests/v1/maxItems.json index b215850f..6b018740 100644 --- a/tests/draft-next/maxItems.json +++ b/tests/v1/maxItems.json @@ -2,7 +2,7 @@ { "description": "maxItems validation", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "maxItems": 2 }, "tests": [ @@ -31,7 +31,7 @@ { "description": "maxItems validation with a decimal", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "maxItems": 2.0 }, "tests": [ diff --git a/tests/draft-next/maxLength.json b/tests/v1/maxLength.json similarity index 90% rename from tests/draft-next/maxLength.json rename to tests/v1/maxLength.json index c88f604e..edc42e01 100644 --- a/tests/draft-next/maxLength.json +++ b/tests/v1/maxLength.json @@ -2,7 +2,7 @@ { "description": "maxLength validation", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "maxLength": 2 }, "tests": [ @@ -36,7 +36,7 @@ { "description": "maxLength validation with a decimal", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "maxLength": 2.0 }, "tests": [ diff --git a/tests/draft-next/maxProperties.json b/tests/v1/maxProperties.json similarity index 90% rename from tests/draft-next/maxProperties.json rename to tests/v1/maxProperties.json index 5eec9dad..b17b6b10 100644 --- a/tests/draft-next/maxProperties.json +++ b/tests/v1/maxProperties.json @@ -2,7 +2,7 @@ { "description": "maxProperties validation", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "maxProperties": 2 }, "tests": [ @@ -41,7 +41,7 @@ { "description": "maxProperties validation with a decimal", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "maxProperties": 2.0 }, "tests": [ @@ -60,7 +60,7 @@ { "description": "maxProperties = 0 means the object is empty", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "maxProperties": 0 }, "tests": [ diff --git a/tests/draft-next/maximum.json b/tests/v1/maximum.json similarity index 91% rename from tests/draft-next/maximum.json rename to tests/v1/maximum.json index 656ce817..15f49555 100644 --- a/tests/draft-next/maximum.json +++ b/tests/v1/maximum.json @@ -2,7 +2,7 @@ { "description": "maximum validation", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "maximum": 3.0 }, "tests": [ @@ -31,7 +31,7 @@ { "description": "maximum validation with unsigned integer", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "maximum": 300 }, "tests": [ diff --git a/tests/draft-next/minContains.json b/tests/v1/minContains.json similarity index 91% rename from tests/draft-next/minContains.json rename to tests/v1/minContains.json index a6ad212d..f0b27b3f 100644 --- a/tests/draft-next/minContains.json +++ b/tests/v1/minContains.json @@ -2,7 +2,7 @@ { "description": "minContains without contains is ignored", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "minContains": 1 }, "tests": [ @@ -21,7 +21,7 @@ { "description": "minContains=1 with contains", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "contains": { "const": 1 }, "minContains": 1 }, @@ -56,7 +56,7 @@ { "description": "minContains=2 with contains", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "contains": { "const": 1 }, "minContains": 2 }, @@ -96,7 +96,7 @@ { "description": "minContains=2 with contains with a decimal value", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "contains": {"const": 1}, "minContains": 2.0 }, @@ -116,7 +116,7 @@ { "description": "maxContains = minContains", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "contains": { "const": 1 }, "maxContains": 2, "minContains": 2 @@ -147,7 +147,7 @@ { "description": "maxContains < minContains", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "contains": { "const": 1 }, "maxContains": 1, "minContains": 3 @@ -178,7 +178,7 @@ { "description": "minContains = 0", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "contains": { "const": 1 }, "minContains": 0 }, @@ -198,7 +198,7 @@ { "description": "minContains = 0 with maxContains", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "contains": {"const": 1}, "minContains": 0, "maxContains": 1 diff --git a/tests/draft-next/minItems.json b/tests/v1/minItems.json similarity index 89% rename from tests/draft-next/minItems.json rename to tests/v1/minItems.json index b0e1c721..3afbc9af 100644 --- a/tests/draft-next/minItems.json +++ b/tests/v1/minItems.json @@ -2,7 +2,7 @@ { "description": "minItems validation", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "minItems": 1 }, "tests": [ @@ -31,7 +31,7 @@ { "description": "minItems validation with a decimal", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "minItems": 1.0 }, "tests": [ diff --git a/tests/draft-next/minLength.json b/tests/v1/minLength.json similarity index 90% rename from tests/draft-next/minLength.json rename to tests/v1/minLength.json index 52c9c9a1..b639be1d 100644 --- a/tests/draft-next/minLength.json +++ b/tests/v1/minLength.json @@ -2,7 +2,7 @@ { "description": "minLength validation", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "minLength": 2 }, "tests": [ @@ -36,7 +36,7 @@ { "description": "minLength validation with a decimal", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "minLength": 2.0 }, "tests": [ diff --git a/tests/draft-next/minProperties.json b/tests/v1/minProperties.json similarity index 91% rename from tests/draft-next/minProperties.json rename to tests/v1/minProperties.json index 434c0f1f..6e29f2b0 100644 --- a/tests/draft-next/minProperties.json +++ b/tests/v1/minProperties.json @@ -2,7 +2,7 @@ { "description": "minProperties validation", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "minProperties": 1 }, "tests": [ @@ -41,7 +41,7 @@ { "description": "minProperties validation with a decimal", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "minProperties": 1.0 }, "tests": [ diff --git a/tests/draft-next/minimum.json b/tests/v1/minimum.json similarity index 93% rename from tests/draft-next/minimum.json rename to tests/v1/minimum.json index 2c6f71f6..28b37134 100644 --- a/tests/draft-next/minimum.json +++ b/tests/v1/minimum.json @@ -2,7 +2,7 @@ { "description": "minimum validation", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "minimum": 1.1 }, "tests": [ @@ -31,7 +31,7 @@ { "description": "minimum validation with signed integer", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "minimum": -2 }, "tests": [ diff --git a/tests/draft-next/multipleOf.json b/tests/v1/multipleOf.json similarity index 87% rename from tests/draft-next/multipleOf.json rename to tests/v1/multipleOf.json index f1534545..d195db2c 100644 --- a/tests/draft-next/multipleOf.json +++ b/tests/v1/multipleOf.json @@ -2,7 +2,7 @@ { "description": "by int", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "multipleOf": 2 }, "tests": [ @@ -26,7 +26,7 @@ { "description": "by number", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "multipleOf": 1.5 }, "tests": [ @@ -50,7 +50,7 @@ { "description": "by small number", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "multipleOf": 0.0001 }, "tests": [ @@ -69,7 +69,7 @@ { "description": "float division = inf", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "integer", "multipleOf": 0.123456789 }, @@ -84,7 +84,7 @@ { "description": "small multiple of large integer", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "integer", "multipleOf": 1e-8 }, "tests": [ diff --git a/tests/draft-next/not.json b/tests/v1/not.json similarity index 88% rename from tests/draft-next/not.json rename to tests/v1/not.json index b2251043..ccc959e4 100644 --- a/tests/draft-next/not.json +++ b/tests/v1/not.json @@ -2,7 +2,7 @@ { "description": "not", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "not": {"type": "integer"} }, "tests": [ @@ -21,7 +21,7 @@ { "description": "not multiple types", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "not": {"type": ["integer", "boolean"]} }, "tests": [ @@ -45,7 +45,7 @@ { "description": "not more complex schema", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "not": { "type": "object", "properties": { @@ -76,7 +76,7 @@ { "description": "forbidden property", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": { "foo": { "not": {} @@ -99,7 +99,7 @@ { "description": "not with boolean schema true", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "not": true }, "tests": [ @@ -113,7 +113,7 @@ { "description": "not with boolean schema false", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "not": false }, "tests": [ @@ -127,7 +127,7 @@ { "description": "collect annotations inside a 'not', even if collection is disabled", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "not": { "$comment": "this subschema must still produce annotations internally, even though the 'not' will ultimately discard them", "anyOf": [ diff --git a/tests/draft-next/oneOf.json b/tests/v1/oneOf.json similarity index 90% rename from tests/draft-next/oneOf.json rename to tests/v1/oneOf.json index 840d1579..3e99e7ea 100644 --- a/tests/draft-next/oneOf.json +++ b/tests/v1/oneOf.json @@ -2,7 +2,7 @@ { "description": "oneOf", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "oneOf": [ { "type": "integer" @@ -38,7 +38,7 @@ { "description": "oneOf with base schema", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "string", "oneOf" : [ { @@ -70,7 +70,7 @@ { "description": "oneOf with boolean schemas, all true", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "oneOf": [true, true, true] }, "tests": [ @@ -84,7 +84,7 @@ { "description": "oneOf with boolean schemas, one true", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "oneOf": [true, false, false] }, "tests": [ @@ -98,7 +98,7 @@ { "description": "oneOf with boolean schemas, more than one true", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "oneOf": [true, true, false] }, "tests": [ @@ -112,7 +112,7 @@ { "description": "oneOf with boolean schemas, all false", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "oneOf": [false, false, false] }, "tests": [ @@ -126,7 +126,7 @@ { "description": "oneOf complex types", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "oneOf": [ { "properties": { @@ -168,7 +168,7 @@ { "description": "oneOf with empty schema", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "oneOf": [ { "type": "number" }, {} @@ -190,7 +190,7 @@ { "description": "oneOf with required", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "oneOf": [ { "required": ["foo", "bar"] }, @@ -223,7 +223,7 @@ { "description": "oneOf with missing optional property", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "oneOf": [ { "properties": { @@ -266,7 +266,7 @@ { "description": "nested oneOf, to check validation semantics", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "oneOf": [ { "oneOf": [ diff --git a/tests/draft-next/optional/anchor.json b/tests/v1/optional/anchor.json similarity index 96% rename from tests/draft-next/optional/anchor.json rename to tests/v1/optional/anchor.json index 1de0b7a7..6c84956f 100644 --- a/tests/draft-next/optional/anchor.json +++ b/tests/v1/optional/anchor.json @@ -3,7 +3,7 @@ "description": "$anchor inside an enum is not a real identifier", "comment": "the implementation must not be confused by an $anchor buried in the enum", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$defs": { "anchor_in_enum": { "enum": [ diff --git a/tests/draft-next/optional/bignum.json b/tests/v1/optional/bignum.json similarity index 85% rename from tests/draft-next/optional/bignum.json rename to tests/v1/optional/bignum.json index 9f4f7079..dc19c2b8 100644 --- a/tests/draft-next/optional/bignum.json +++ b/tests/v1/optional/bignum.json @@ -2,7 +2,7 @@ { "description": "integer", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "integer" }, "tests": [ @@ -21,7 +21,7 @@ { "description": "number", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "number" }, "tests": [ @@ -40,7 +40,7 @@ { "description": "string", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "string" }, "tests": [ @@ -54,7 +54,7 @@ { "description": "maximum integer comparison", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "maximum": 18446744073709551615 }, "tests": [ @@ -68,7 +68,7 @@ { "description": "float comparison with high precision", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "exclusiveMaximum": 972783798187987123879878123.18878137 }, "tests": [ @@ -82,7 +82,7 @@ { "description": "minimum integer comparison", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "minimum": -18446744073709551615 }, "tests": [ @@ -96,7 +96,7 @@ { "description": "float comparison with high precision on negative numbers", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "exclusiveMinimum": -972783798187987123879878123.18878137 }, "tests": [ diff --git a/tests/draft-next/optional/dependencies-compatibility.json b/tests/v1/optional/dependencies-compatibility.json similarity index 94% rename from tests/draft-next/optional/dependencies-compatibility.json rename to tests/v1/optional/dependencies-compatibility.json index 1fe384ca..ed3da79f 100644 --- a/tests/draft-next/optional/dependencies-compatibility.json +++ b/tests/v1/optional/dependencies-compatibility.json @@ -2,7 +2,7 @@ { "description": "single dependency", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "dependencies": {"bar": ["foo"]} }, "tests": [ @@ -46,7 +46,7 @@ { "description": "empty dependents", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "dependencies": {"bar": []} }, "tests": [ @@ -70,7 +70,7 @@ { "description": "multiple dependents required", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "dependencies": {"quux": ["foo", "bar"]} }, "tests": [ @@ -109,7 +109,7 @@ { "description": "dependencies with escaped characters", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "dependencies": { "foo\nbar": ["foo\rbar"], "foo\"bar": ["foo'bar"] @@ -152,7 +152,7 @@ { "description": "single schema dependency", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "dependencies": { "bar": { "properties": { @@ -208,7 +208,7 @@ { "description": "boolean subschemas", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "dependencies": { "foo": true, "bar": false @@ -240,7 +240,7 @@ { "description": "schema dependencies with escaped characters", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "dependencies": { "foo\tbar": {"minProperties": 4}, "foo'bar": {"required": ["foo\"bar"]} diff --git a/tests/draft-next/optional/dynamicRef.json b/tests/v1/optional/dynamicRef.json similarity index 96% rename from tests/draft-next/optional/dynamicRef.json rename to tests/v1/optional/dynamicRef.json index dcace154..80c20a86 100644 --- a/tests/draft-next/optional/dynamicRef.json +++ b/tests/v1/optional/dynamicRef.json @@ -2,7 +2,7 @@ { "description": "$dynamicRef skips over intermediate resources - pointer reference across resource boundary", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$id": "https://test.json-schema.org/dynamic-ref-skips-intermediate-resource/optional/main", "type": "object", "properties": { @@ -53,4 +53,4 @@ "valid": false } ] - }] \ No newline at end of file + }] diff --git a/tests/draft-next/optional/ecmascript-regex.json b/tests/v1/optional/ecmascript-regex.json similarity index 93% rename from tests/draft-next/optional/ecmascript-regex.json rename to tests/v1/optional/ecmascript-regex.json index a1a4f963..87d5b3c6 100644 --- a/tests/draft-next/optional/ecmascript-regex.json +++ b/tests/v1/optional/ecmascript-regex.json @@ -2,7 +2,7 @@ { "description": "ECMA 262 regex $ does not match trailing newline", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "string", "pattern": "^abc$" }, @@ -22,7 +22,7 @@ { "description": "ECMA 262 regex converts \\t to horizontal tab", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "string", "pattern": "^\\t$" }, @@ -42,7 +42,7 @@ { "description": "ECMA 262 regex escapes control codes with \\c and upper letter", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "string", "pattern": "^\\cC$" }, @@ -62,7 +62,7 @@ { "description": "ECMA 262 regex escapes control codes with \\c and lower letter", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "string", "pattern": "^\\cc$" }, @@ -82,7 +82,7 @@ { "description": "ECMA 262 \\d matches ascii digits only", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "string", "pattern": "^\\d$" }, @@ -107,7 +107,7 @@ { "description": "ECMA 262 \\D matches everything but ascii digits", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "string", "pattern": "^\\D$" }, @@ -132,7 +132,7 @@ { "description": "ECMA 262 \\w matches ascii letters only", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "string", "pattern": "^\\w$" }, @@ -152,7 +152,7 @@ { "description": "ECMA 262 \\W matches everything but ascii letters", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "string", "pattern": "^\\W$" }, @@ -172,7 +172,7 @@ { "description": "ECMA 262 \\s matches whitespace", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "string", "pattern": "^\\s$" }, @@ -237,7 +237,7 @@ { "description": "ECMA 262 \\S matches everything but whitespace", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "string", "pattern": "^\\S$" }, @@ -302,7 +302,7 @@ { "description": "patterns always use unicode semantics with pattern", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "pattern": "\\p{Letter}cole" }, "tests": [ @@ -331,7 +331,7 @@ { "description": "\\w in patterns matches [A-Za-z0-9_], not unicode letters", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "pattern": "\\wcole" }, "tests": [ @@ -360,7 +360,7 @@ { "description": "pattern with ASCII ranges", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "pattern": "[a-z]cole" }, "tests": [ @@ -384,7 +384,7 @@ { "description": "\\d in pattern matches [0-9], not unicode digits", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "pattern": "^\\d+$" }, "tests": [ @@ -408,7 +408,7 @@ { "description": "pattern with non-ASCII digits", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "pattern": "^\\p{digit}+$" }, "tests": [ @@ -432,7 +432,7 @@ { "description": "patterns always use unicode semantics with patternProperties", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "patternProperties": { "\\p{Letter}cole": true @@ -465,7 +465,7 @@ { "description": "\\w in patternProperties matches [A-Za-z0-9_], not unicode letters", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "patternProperties": { "\\wcole": true @@ -498,7 +498,7 @@ { "description": "patternProperties with ASCII ranges", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "patternProperties": { "[a-z]cole": true @@ -526,7 +526,7 @@ { "description": "\\d in patternProperties matches [0-9], not unicode digits", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "patternProperties": { "^\\d+$": true @@ -554,7 +554,7 @@ { "description": "patternProperties with non-ASCII digits", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "patternProperties": { "^\\p{digit}+$": true diff --git a/tests/draft-next/optional/float-overflow.json b/tests/v1/optional/float-overflow.json similarity index 85% rename from tests/draft-next/optional/float-overflow.json rename to tests/v1/optional/float-overflow.json index a4fcca67..3759ab80 100644 --- a/tests/draft-next/optional/float-overflow.json +++ b/tests/v1/optional/float-overflow.json @@ -2,7 +2,7 @@ { "description": "all integers are multiples of 0.5, if overflow is handled", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "integer", "multipleOf": 0.5 }, diff --git a/tests/draft-next/format.json b/tests/v1/optional/format-annotation.json similarity index 100% rename from tests/draft-next/format.json rename to tests/v1/optional/format-annotation.json diff --git a/tests/draft-next/optional/id.json b/tests/v1/optional/id.json similarity index 72% rename from tests/draft-next/optional/id.json rename to tests/v1/optional/id.json index fc26f26c..9fe4e19b 100644 --- a/tests/draft-next/optional/id.json +++ b/tests/v1/optional/id.json @@ -3,37 +3,37 @@ "description": "$id inside an enum is not a real identifier", "comment": "the implementation must not be confused by an $id buried in the enum", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$defs": { "id_in_enum": { "enum": [ { - "$id": "https://localhost:1234/draft-next/id/my_identifier.json", + "$id": "https://localhost:1234/v1/id/my_identifier.json", "type": "null" } ] }, "real_id_in_schema": { - "$id": "https://localhost:1234/draft-next/id/my_identifier.json", + "$id": "https://localhost:1234/v1/id/my_identifier.json", "type": "string" }, "zzz_id_in_const": { "const": { - "$id": "https://localhost:1234/draft-next/id/my_identifier.json", + "$id": "https://localhost:1234/v1/id/my_identifier.json", "type": "null" } } }, "anyOf": [ { "$ref": "#/$defs/id_in_enum" }, - { "$ref": "https://localhost:1234/draft-next/id/my_identifier.json" } + { "$ref": "https://localhost:1234/v1/id/my_identifier.json" } ] }, "tests": [ { "description": "exact match to enum, and type matches", "data": { - "$id": "https://localhost:1234/draft-next/id/my_identifier.json", + "$id": "https://localhost:1234/v1/id/my_identifier.json", "type": "null" }, "valid": true diff --git a/tests/draft-next/optional/non-bmp-regex.json b/tests/v1/optional/non-bmp-regex.json similarity index 94% rename from tests/draft-next/optional/non-bmp-regex.json rename to tests/v1/optional/non-bmp-regex.json index 3af875c9..fb7a3180 100644 --- a/tests/draft-next/optional/non-bmp-regex.json +++ b/tests/v1/optional/non-bmp-regex.json @@ -3,7 +3,7 @@ "description": "Proper UTF-16 surrogate pair handling: pattern", "comment": "Optional because .Net doesn't correctly handle 32-bit Unicode characters", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "pattern": "^🐲*$" }, "tests": [ @@ -48,7 +48,7 @@ "description": "Proper UTF-16 surrogate pair handling: patternProperties", "comment": "Optional because .Net doesn't correctly handle 32-bit Unicode characters", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "patternProperties": { "^🐲*$": { "type": "integer" diff --git a/tests/draft-next/optional/refOfUnknownKeyword.json b/tests/v1/optional/refOfUnknownKeyword.json similarity index 89% rename from tests/draft-next/optional/refOfUnknownKeyword.json rename to tests/v1/optional/refOfUnknownKeyword.json index c832e09f..0101b460 100644 --- a/tests/draft-next/optional/refOfUnknownKeyword.json +++ b/tests/v1/optional/refOfUnknownKeyword.json @@ -2,7 +2,7 @@ { "description": "reference of a root arbitrary keyword ", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "unknown-keyword": {"type": "integer"}, "properties": { "bar": {"$ref": "#/unknown-keyword"} @@ -24,7 +24,7 @@ { "description": "reference of an arbitrary keyword of a sub-schema", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": { "foo": {"unknown-keyword": {"type": "integer"}}, "bar": {"$ref": "#/properties/foo/unknown-keyword"} @@ -46,7 +46,7 @@ { "description": "reference internals of known non-applicator", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$id": "/base", "examples": [ { "type": "string" } diff --git a/tests/draft-next/optional/unknownKeyword.json b/tests/v1/optional/unknownKeyword.json similarity index 100% rename from tests/draft-next/optional/unknownKeyword.json rename to tests/v1/optional/unknownKeyword.json diff --git a/tests/draft-next/pattern.json b/tests/v1/pattern.json similarity index 92% rename from tests/draft-next/pattern.json rename to tests/v1/pattern.json index 09c6d0fb..3fc400fc 100644 --- a/tests/draft-next/pattern.json +++ b/tests/v1/pattern.json @@ -2,7 +2,7 @@ { "description": "pattern validation", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "pattern": "^a*$" }, "tests": [ @@ -51,7 +51,7 @@ { "description": "pattern is not anchored", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "pattern": "a+" }, "tests": [ diff --git a/tests/draft-next/patternProperties.json b/tests/v1/patternProperties.json similarity index 93% rename from tests/draft-next/patternProperties.json rename to tests/v1/patternProperties.json index c7aca3df..56d9cbb2 100644 --- a/tests/draft-next/patternProperties.json +++ b/tests/v1/patternProperties.json @@ -3,7 +3,7 @@ "description": "patternProperties validates properties matching a regex", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "patternProperties": { "f.*o": {"type": "integer"} } @@ -49,7 +49,7 @@ { "description": "multiple simultaneous patternProperties are validated", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "patternProperties": { "a*": {"type": "integer"}, "aaa*": {"maximum": 20} @@ -91,7 +91,7 @@ { "description": "regexes are not anchored by default and are case sensitive", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "patternProperties": { "[0-9]{2,}": { "type": "boolean" }, "X_": { "type": "string" } @@ -123,7 +123,7 @@ { "description": "patternProperties with boolean schemas", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "patternProperties": { "f.*": true, "b.*": false @@ -160,7 +160,7 @@ { "description": "patternProperties with null valued instance properties", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "patternProperties": { "^.*bar$": {"type": "null"} } diff --git a/tests/draft-next/prefixItems.json b/tests/v1/prefixItems.json similarity index 90% rename from tests/draft-next/prefixItems.json rename to tests/v1/prefixItems.json index a7f5928c..046761ad 100644 --- a/tests/draft-next/prefixItems.json +++ b/tests/v1/prefixItems.json @@ -2,7 +2,7 @@ { "description": "a schema given for prefixItems", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "prefixItems": [ {"type": "integer"}, {"type": "string"} @@ -48,7 +48,7 @@ { "description": "prefixItems with boolean schemas", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "prefixItems": [true, false] }, "tests": [ @@ -72,7 +72,7 @@ { "description": "additional items are allowed by default", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "prefixItems": [{"type": "integer"}] }, "tests": [ @@ -86,7 +86,7 @@ { "description": "prefixItems with null instance elements", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "prefixItems": [ { "type": "null" diff --git a/tests/draft-next/properties.json b/tests/v1/properties.json similarity index 94% rename from tests/draft-next/properties.json rename to tests/v1/properties.json index 1ba4fe8e..688302e5 100644 --- a/tests/draft-next/properties.json +++ b/tests/v1/properties.json @@ -2,7 +2,7 @@ { "description": "object properties validation", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": { "foo": {"type": "integer"}, "bar": {"type": "string"} @@ -45,7 +45,7 @@ "description": "properties, patternProperties, additionalProperties interaction", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": { "foo": {"type": "array", "maxItems": 3}, "bar": {"type": "array"} @@ -99,7 +99,7 @@ { "description": "properties with boolean schema", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": { "foo": true, "bar": false @@ -131,7 +131,7 @@ { "description": "properties with escaped characters", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": { "foo\nbar": {"type": "number"}, "foo\"bar": {"type": "number"}, @@ -171,7 +171,7 @@ { "description": "properties with null valued instance properties", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": { "foo": {"type": "null"} } @@ -188,7 +188,7 @@ "description": "properties whose names are Javascript object property names", "comment": "Ensure JS implementations don't universally consider e.g. __proto__ to always be present in an object.", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": { "__proto__": {"type": "number"}, "toString": { diff --git a/tests/draft-next/propertyDependencies.json b/tests/v1/propertyDependencies.json similarity index 100% rename from tests/draft-next/propertyDependencies.json rename to tests/v1/propertyDependencies.json diff --git a/tests/draft-next/propertyNames.json b/tests/v1/propertyNames.json similarity index 91% rename from tests/draft-next/propertyNames.json rename to tests/v1/propertyNames.json index e6140170..0fb85e4f 100644 --- a/tests/draft-next/propertyNames.json +++ b/tests/v1/propertyNames.json @@ -2,7 +2,7 @@ { "description": "propertyNames validation", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "propertyNames": {"maxLength": 3} }, "tests": [ @@ -47,7 +47,7 @@ { "description": "propertyNames with boolean schema true", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "propertyNames": true }, "tests": [ @@ -66,7 +66,7 @@ { "description": "propertyNames with boolean schema false", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "propertyNames": false }, "tests": [ diff --git a/tests/draft-next/ref.json b/tests/v1/ref.json similarity index 90% rename from tests/draft-next/ref.json rename to tests/v1/ref.json index 8417ce29..219e8d2f 100644 --- a/tests/draft-next/ref.json +++ b/tests/v1/ref.json @@ -2,7 +2,7 @@ { "description": "root pointer ref", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": { "foo": {"$ref": "#"} }, @@ -34,7 +34,7 @@ { "description": "relative pointer ref to object", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": { "foo": {"type": "integer"}, "bar": {"$ref": "#/properties/foo"} @@ -56,7 +56,7 @@ { "description": "relative pointer ref to array", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "prefixItems": [ {"type": "integer"}, {"$ref": "#/prefixItems/0"} @@ -78,7 +78,7 @@ { "description": "escaped pointer ref", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$defs": { "tilde~field": {"type": "integer"}, "slash/field": {"type": "integer"}, @@ -126,7 +126,7 @@ { "description": "nested refs", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$defs": { "a": {"type": "integer"}, "b": {"$ref": "#/$defs/a"}, @@ -150,7 +150,7 @@ { "description": "ref applies alongside sibling keywords", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$defs": { "reffed": { "type": "array" @@ -184,8 +184,8 @@ { "description": "remote ref, containing refs itself", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$ref": "https://json-schema.org/draft/next/schema" + "$schema": "https://json-schema.org/v1", + "$ref": "https://json-schema.org/v1" }, "tests": [ { @@ -203,7 +203,7 @@ { "description": "property named $ref that is not a reference", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": { "$ref": {"type": "string"} } @@ -224,7 +224,7 @@ { "description": "property named $ref, containing an actual $ref", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": { "$ref": {"$ref": "#/$defs/is-string"} }, @@ -250,7 +250,7 @@ { "description": "$ref to boolean schema true", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$ref": "#/$defs/bool", "$defs": { "bool": true @@ -267,7 +267,7 @@ { "description": "$ref to boolean schema false", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$ref": "#/$defs/bool", "$defs": { "bool": false @@ -284,8 +284,8 @@ { "description": "Recursive references between schemas", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$id": "http://localhost:1234/draft-next/tree", + "$schema": "https://json-schema.org/v1", + "$id": "http://localhost:1234/v1/tree", "description": "tree of nodes", "type": "object", "properties": { @@ -298,7 +298,7 @@ "required": ["meta", "nodes"], "$defs": { "node": { - "$id": "http://localhost:1234/draft-next/node", + "$id": "http://localhost:1234/v1/node", "description": "node", "type": "object", "properties": { @@ -373,7 +373,7 @@ { "description": "refs with quote", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": { "foo\"bar": {"$ref": "#/$defs/foo%22bar"} }, @@ -401,7 +401,7 @@ { "description": "ref creates new scope when adjacent to keywords", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$defs": { "A": { "unevaluatedProperties": false @@ -427,7 +427,7 @@ { "description": "naive replacement of $ref with its destination is not correct", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$defs": { "a_string": { "type": "string" } }, @@ -456,7 +456,7 @@ { "description": "refs with relative uris and defs", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$id": "http://example.com/schema-relative-uri-defs1.json", "properties": { "foo": { @@ -509,7 +509,7 @@ { "description": "relative refs with absolute uris and defs", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$id": "http://example.com/schema-refs-absolute-uris-defs1.json", "properties": { "foo": { @@ -562,7 +562,7 @@ { "description": "$id must be resolved against nearest parent, not just immediate parent", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$id": "http://example.com/a.json", "$defs": { "x": { @@ -599,9 +599,9 @@ { "description": "order of evaluation: $id and $ref", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$comment": "$id must be evaluated before $ref to get the proper $ref destination", - "$id": "https://example.com/draft/next/ref-and-id1/base.json", + "$id": "https://example.com/v1/ref-and-id1/base.json", "$ref": "int.json", "$defs": { "bigint": { @@ -611,7 +611,7 @@ }, "smallint": { "$comment": "canonical uri: https://example.com/ref-and-id1-int.json", - "$id": "/draft/next/ref-and-id1-int.json", + "$id": "/v1/ref-and-id1-int.json", "maximum": 2 } } @@ -632,9 +632,9 @@ { "description": "order of evaluation: $id and $anchor and $ref", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$comment": "$id must be evaluated before $ref to get the proper $ref destination", - "$id": "https://example.com/draft/next/ref-and-id2/base.json", + "$id": "https://example.com/v1/ref-and-id2/base.json", "$ref": "#bigint", "$defs": { "bigint": { @@ -644,7 +644,7 @@ }, "smallint": { "$comment": "canonical uri: https://example.com/ref-and-id2#/$defs/smallint; another valid uri for this location: https://example.com/ref-and-id2/#bigint", - "$id": "/draft/next/ref-and-id2/", + "$id": "/v1/ref-and-id2/", "$anchor": "bigint", "maximum": 2 } @@ -666,7 +666,7 @@ { "description": "simple URN base URI with $ref via the URN", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$comment": "URIs do not have to have HTTP(s) schemes", "$id": "urn:uuid:deadbeef-1234-ffff-ffff-4321feebdaed", "minimum": 30, @@ -690,7 +690,7 @@ { "description": "simple URN base URI with JSON pointer", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$comment": "URIs do not have to have HTTP(s) schemes", "$id": "urn:uuid:deadbeef-1234-00ff-ff00-4321feebdaed", "properties": { @@ -716,7 +716,7 @@ { "description": "URN base URI with NSS", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$comment": "RFC 8141 §2.2", "$id": "urn:example:1/406/47452/2", "properties": { @@ -742,7 +742,7 @@ { "description": "URN base URI with r-component", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$comment": "RFC 8141 §2.3.1", "$id": "urn:example:foo-bar-baz-qux?+CCResolve:cc=uk", "properties": { @@ -768,7 +768,7 @@ { "description": "URN base URI with q-component", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$comment": "RFC 8141 §2.3.2", "$id": "urn:example:weather?=op=map&lat=39.56&lon=-104.85&datetime=1969-07-21T02:56:15Z", "properties": { @@ -794,9 +794,9 @@ { "description": "URN base URI with f-component", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$comment": "RFC 8141 §2.3.3, but we don't allow fragments", - "$ref": "https://json-schema.org/draft/next/schema" + "$ref": "https://json-schema.org/v1" }, "tests": [ { @@ -809,7 +809,7 @@ { "description": "URN base URI with URN and JSON pointer ref", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$id": "urn:uuid:deadbeef-1234-0000-0000-4321feebdaed", "properties": { "foo": {"$ref": "urn:uuid:deadbeef-1234-0000-0000-4321feebdaed#/$defs/bar"} @@ -834,7 +834,7 @@ { "description": "URN base URI with URN and anchor ref", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$id": "urn:uuid:deadbeef-1234-ff00-00ff-4321feebdaed", "properties": { "foo": {"$ref": "urn:uuid:deadbeef-1234-ff00-00ff-4321feebdaed#something"} @@ -862,7 +862,7 @@ { "description": "URN ref with nested pointer ref", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$ref": "urn:uuid:deadbeef-4321-ffff-ffff-1234feebdaed", "$defs": { "foo": { @@ -888,7 +888,7 @@ { "description": "ref to if", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$ref": "http://example.com/ref/if", "if": { "$id": "http://example.com/ref/if", @@ -911,7 +911,7 @@ { "description": "ref to then", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$ref": "http://example.com/ref/then", "then": { "$id": "http://example.com/ref/then", @@ -934,7 +934,7 @@ { "description": "ref to else", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$ref": "http://example.com/ref/else", "else": { "$id": "http://example.com/ref/else", @@ -957,7 +957,7 @@ { "description": "ref with absolute-path-reference", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$id": "http://example.com/ref/absref.json", "$defs": { "a": { @@ -987,7 +987,7 @@ { "description": "$id with file URI still resolves pointers - *nix", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$id": "file:///folder/file.json", "$defs": { "foo": { @@ -1012,7 +1012,7 @@ { "description": "$id with file URI still resolves pointers - windows", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$id": "file:///c:/folder/file.json", "$defs": { "foo": { @@ -1037,7 +1037,7 @@ { "description": "empty tokens in $ref json-pointer", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$defs": { "": { "$defs": { diff --git a/tests/draft-next/refRemote.json b/tests/v1/refRemote.json similarity index 80% rename from tests/draft-next/refRemote.json rename to tests/v1/refRemote.json index 647fb9f1..8adf7589 100644 --- a/tests/draft-next/refRemote.json +++ b/tests/v1/refRemote.json @@ -2,8 +2,8 @@ { "description": "remote ref", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$ref": "http://localhost:1234/draft-next/integer.json" + "$schema": "https://json-schema.org/v1", + "$ref": "http://localhost:1234/v1/integer.json" }, "tests": [ { @@ -21,8 +21,8 @@ { "description": "fragment within remote ref", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$ref": "http://localhost:1234/draft-next/subSchemas.json#/$defs/integer" + "$schema": "https://json-schema.org/v1", + "$ref": "http://localhost:1234/v1/subSchemas.json#/$defs/integer" }, "tests": [ { @@ -40,8 +40,8 @@ { "description": "anchor within remote ref", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$ref": "http://localhost:1234/draft-next/locationIndependentIdentifier.json#foo" + "$schema": "https://json-schema.org/v1", + "$ref": "http://localhost:1234/v1/locationIndependentIdentifier.json#foo" }, "tests": [ { @@ -59,8 +59,8 @@ { "description": "ref within remote ref", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$ref": "http://localhost:1234/draft-next/subSchemas.json#/$defs/refToInteger" + "$schema": "https://json-schema.org/v1", + "$ref": "http://localhost:1234/v1/subSchemas.json#/$defs/refToInteger" }, "tests": [ { @@ -78,8 +78,8 @@ { "description": "base URI change", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$id": "http://localhost:1234/draft-next/", + "$schema": "https://json-schema.org/v1", + "$id": "http://localhost:1234/v1/", "items": { "$id": "baseUriChange/", "items": {"$ref": "folderInteger.json"} @@ -101,8 +101,8 @@ { "description": "base URI change - change folder", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$id": "http://localhost:1234/draft-next/scope_change_defs1.json", + "$schema": "https://json-schema.org/v1", + "$id": "http://localhost:1234/v1/scope_change_defs1.json", "type" : "object", "properties": {"list": {"$ref": "baseUriChangeFolder/"}}, "$defs": { @@ -129,8 +129,8 @@ { "description": "base URI change - change folder in subschema", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$id": "http://localhost:1234/draft-next/scope_change_defs2.json", + "$schema": "https://json-schema.org/v1", + "$id": "http://localhost:1234/v1/scope_change_defs2.json", "type" : "object", "properties": {"list": {"$ref": "baseUriChangeFolderInSubschema/#/$defs/bar"}}, "$defs": { @@ -161,8 +161,8 @@ { "description": "root ref in remote ref", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$id": "http://localhost:1234/draft-next/object", + "$schema": "https://json-schema.org/v1", + "$id": "http://localhost:1234/v1/object", "type": "object", "properties": { "name": {"$ref": "name-defs.json#/$defs/orNull"} @@ -197,8 +197,8 @@ { "description": "remote ref with ref to defs", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$id": "http://localhost:1234/draft-next/schema-remote-ref-ref-defs1.json", + "$schema": "https://json-schema.org/v1", + "$id": "http://localhost:1234/v1/schema-remote-ref-ref-defs1.json", "$ref": "ref-and-defs.json" }, "tests": [ @@ -221,8 +221,8 @@ { "description": "Location-independent identifier in remote ref", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$ref": "http://localhost:1234/draft-next/locationIndependentIdentifier.json#/$defs/refToInteger" + "$schema": "https://json-schema.org/v1", + "$ref": "http://localhost:1234/v1/locationIndependentIdentifier.json#/$defs/refToInteger" }, "tests": [ { @@ -240,8 +240,8 @@ { "description": "retrieved nested refs resolve relative to their URI not $id", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$id": "http://localhost:1234/draft-next/some-id", + "$schema": "https://json-schema.org/v1", + "$id": "http://localhost:1234/v1/some-id", "properties": { "name": {"$ref": "nested/foo-ref-string.json"} } @@ -266,7 +266,7 @@ { "description": "remote HTTP ref with different $id", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$ref": "http://localhost:1234/different-id-ref-string.json" }, "tests": [ @@ -285,7 +285,7 @@ { "description": "remote HTTP ref with different URN $id", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$ref": "http://localhost:1234/urn-ref-string.json" }, "tests": [ @@ -304,7 +304,7 @@ { "description": "remote HTTP ref with nested absolute ref", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$ref": "http://localhost:1234/nested-absolute-ref-to-string.json" }, "tests": [ @@ -323,8 +323,8 @@ { "description": "$ref to $ref finds detached $anchor", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", - "$ref": "http://localhost:1234/draft-next/detached-ref.json#/$defs/foo" + "$schema": "https://json-schema.org/v1", + "$ref": "http://localhost:1234/v1/detached-ref.json#/$defs/foo" }, "tests": [ { diff --git a/tests/draft-next/required.json b/tests/v1/required.json similarity index 92% rename from tests/draft-next/required.json rename to tests/v1/required.json index cc02fd34..990d53f4 100644 --- a/tests/draft-next/required.json +++ b/tests/v1/required.json @@ -2,7 +2,7 @@ { "description": "required validation", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": { "foo": {}, "bar": {} @@ -40,7 +40,7 @@ { "description": "required default validation", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": { "foo": {} } @@ -56,7 +56,7 @@ { "description": "required with empty array", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": { "foo": {} }, @@ -73,7 +73,7 @@ { "description": "required with escaped characters", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "required": [ "foo\nbar", "foo\"bar", @@ -110,7 +110,7 @@ "description": "required properties whose names are Javascript object property names", "comment": "Ensure JS implementations don't universally consider e.g. __proto__ to always be present in an object.", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "required": ["__proto__", "toString", "constructor"] }, "tests": [ diff --git a/tests/draft-next/type.json b/tests/v1/type.json similarity index 94% rename from tests/draft-next/type.json rename to tests/v1/type.json index 86e551c7..bc27a2d1 100644 --- a/tests/draft-next/type.json +++ b/tests/v1/type.json @@ -2,7 +2,7 @@ { "description": "integer type matches integers", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "integer" }, "tests": [ @@ -56,7 +56,7 @@ { "description": "number type matches numbers", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "number" }, "tests": [ @@ -110,7 +110,7 @@ { "description": "string type matches strings", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "string" }, "tests": [ @@ -164,7 +164,7 @@ { "description": "object type matches objects", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object" }, "tests": [ @@ -208,7 +208,7 @@ { "description": "array type matches arrays", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "array" }, "tests": [ @@ -252,7 +252,7 @@ { "description": "boolean type matches booleans", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "boolean" }, "tests": [ @@ -311,7 +311,7 @@ { "description": "null type matches only the null object", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "null" }, "tests": [ @@ -370,7 +370,7 @@ { "description": "multiple types can be specified in an array", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": ["integer", "string"] }, "tests": [ @@ -414,7 +414,7 @@ { "description": "type as array with one item", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": ["string"] }, "tests": [ @@ -433,7 +433,7 @@ { "description": "type: array or object", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": ["array", "object"] }, "tests": [ @@ -467,7 +467,7 @@ { "description": "type: array, object or null", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": ["array", "object", "null"] }, "tests": [ diff --git a/tests/draft-next/unevaluatedItems.json b/tests/v1/unevaluatedItems.json similarity index 92% rename from tests/draft-next/unevaluatedItems.json rename to tests/v1/unevaluatedItems.json index 4f89c7a7..64c2074b 100644 --- a/tests/draft-next/unevaluatedItems.json +++ b/tests/v1/unevaluatedItems.json @@ -2,7 +2,7 @@ { "description": "unevaluatedItems true", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "unevaluatedItems": true }, "tests": [ @@ -21,7 +21,7 @@ { "description": "unevaluatedItems false", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "unevaluatedItems": false }, "tests": [ @@ -40,7 +40,7 @@ { "description": "unevaluatedItems as schema", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "unevaluatedItems": { "type": "string" } }, "tests": [ @@ -64,7 +64,7 @@ { "description": "unevaluatedItems with uniform items", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "items": { "type": "string" }, "unevaluatedItems": false }, @@ -79,7 +79,7 @@ { "description": "unevaluatedItems with tuple", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "prefixItems": [ { "type": "string" } ], @@ -101,7 +101,7 @@ { "description": "unevaluatedItems with items and prefixItems", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "prefixItems": [ { "type": "string" } ], @@ -119,7 +119,7 @@ { "description": "unevaluatedItems with items", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "items": {"type": "number"}, "unevaluatedItems": {"type": "string"} }, @@ -140,7 +140,7 @@ { "description": "unevaluatedItems with nested tuple", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "prefixItems": [ { "type": "string" } ], @@ -170,7 +170,7 @@ { "description": "unevaluatedItems with nested items", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "unevaluatedItems": {"type": "boolean"}, "anyOf": [ { "items": {"type": "string"} }, @@ -198,7 +198,7 @@ { "description": "unevaluatedItems with nested prefixItems and items", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "allOf": [ { "prefixItems": [ @@ -225,7 +225,7 @@ { "description": "unevaluatedItems with nested unevaluatedItems", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "allOf": [ { "prefixItems": [ @@ -252,7 +252,7 @@ { "description": "unevaluatedItems with anyOf", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "prefixItems": [ { "const": "foo" } ], @@ -299,7 +299,7 @@ { "description": "unevaluatedItems with oneOf", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "prefixItems": [ { "const": "foo" } ], @@ -335,7 +335,7 @@ { "description": "unevaluatedItems with not", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "prefixItems": [ { "const": "foo" } ], @@ -360,7 +360,7 @@ { "description": "unevaluatedItems with if/then/else", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "prefixItems": [ { "const": "foo" } ], @@ -413,7 +413,7 @@ { "description": "unevaluatedItems with boolean schemas", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "allOf": [true], "unevaluatedItems": false }, @@ -433,7 +433,7 @@ { "description": "unevaluatedItems with $ref", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$ref": "#/$defs/bar", "prefixItems": [ { "type": "string" } @@ -464,7 +464,7 @@ { "description": "unevaluatedItems before $ref", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "unevaluatedItems": false, "prefixItems": [ { "type": "string" } @@ -495,7 +495,7 @@ { "description": "unevaluatedItems with $dynamicRef", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$id": "https://example.com/unevaluated-items-with-dynamic-ref/derived", "$ref": "./baseSchema", @@ -537,7 +537,7 @@ { "description": "unevaluatedItems can't see inside cousins", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "allOf": [ { "prefixItems": [ true ] @@ -556,7 +556,7 @@ { "description": "item is evaluated in an uncle schema to unevaluatedItems", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": { "foo": { "prefixItems": [ @@ -603,7 +603,7 @@ { "description": "unevaluatedItems depends on adjacent contains", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "prefixItems": [true], "contains": {"type": "string"}, "unevaluatedItems": false @@ -629,7 +629,7 @@ { "description": "unevaluatedItems depends on multiple nested contains", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "allOf": [ { "contains": { "multipleOf": 2 } }, { "contains": { "multipleOf": 3 } } @@ -652,7 +652,7 @@ { "description": "unevaluatedItems and contains interact to control item dependency relationship", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "if": { "contains": {"const": "a"} }, @@ -714,7 +714,7 @@ { "description" : "unevaluatedItems with minContains = 0", "schema" : { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "contains": {"type": "string"}, "minContains": 0, "unevaluatedItems": false @@ -745,7 +745,7 @@ { "description": "non-array instances are valid", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "unevaluatedItems": false }, "tests": [ @@ -784,7 +784,7 @@ { "description": "unevaluatedItems with null instance elements", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "unevaluatedItems": { "type": "null" } @@ -800,7 +800,7 @@ { "description": "unevaluatedItems can see annotations from if without then and else", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "if": { "prefixItems": [{"const": "a"}] }, @@ -823,7 +823,7 @@ { "description": "Evaluated items collection needs to consider instance location", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "prefixItems": [ { "prefixItems": [ diff --git a/tests/draft-next/unevaluatedProperties.json b/tests/v1/unevaluatedProperties.json similarity index 94% rename from tests/draft-next/unevaluatedProperties.json rename to tests/v1/unevaluatedProperties.json index 0dc35245..f1d40fdc 100644 --- a/tests/draft-next/unevaluatedProperties.json +++ b/tests/v1/unevaluatedProperties.json @@ -2,7 +2,7 @@ { "description": "unevaluatedProperties true", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "unevaluatedProperties": true }, @@ -24,7 +24,7 @@ { "description": "unevaluatedProperties schema", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "unevaluatedProperties": { "type": "string", @@ -56,7 +56,7 @@ { "description": "unevaluatedProperties false", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "unevaluatedProperties": false }, @@ -78,7 +78,7 @@ { "description": "unevaluatedProperties with adjacent properties", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "properties": { "foo": { "type": "string" } @@ -106,7 +106,7 @@ { "description": "unevaluatedProperties with adjacent patternProperties", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "patternProperties": { "^foo": { "type": "string" } @@ -134,7 +134,7 @@ { "description": "unevaluatedProperties with adjacent additionalProperties", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "properties": { "foo": { "type": "string" } @@ -163,7 +163,7 @@ { "description": "unevaluatedProperties with nested properties", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "properties": { "foo": { "type": "string" } @@ -200,7 +200,7 @@ { "description": "unevaluatedProperties with nested patternProperties", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "properties": { "foo": { "type": "string" } @@ -237,7 +237,7 @@ { "description": "unevaluatedProperties with nested additionalProperties", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "properties": { "foo": { "type": "string" } @@ -270,7 +270,7 @@ { "description": "unevaluatedProperties with nested unevaluatedProperties", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "properties": { "foo": { "type": "string" } @@ -306,7 +306,7 @@ { "description": "unevaluatedProperties with anyOf", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "properties": { "foo": { "type": "string" } @@ -375,7 +375,7 @@ { "description": "unevaluatedProperties with oneOf", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "properties": { "foo": { "type": "string" } @@ -419,7 +419,7 @@ { "description": "unevaluatedProperties with not", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "properties": { "foo": { "type": "string" } @@ -448,7 +448,7 @@ { "description": "unevaluatedProperties with if/then/else", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "if": { "properties": { @@ -508,7 +508,7 @@ { "description": "unevaluatedProperties with if/then/else, then not defined", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "if": { "properties": { @@ -560,7 +560,7 @@ { "description": "unevaluatedProperties with if/then/else, else not defined", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "if": { "properties": { @@ -614,7 +614,7 @@ { "description": "unevaluatedProperties with dependentSchemas", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "properties": { "foo": { "type": "string" } @@ -650,7 +650,7 @@ { "description": "unevaluatedProperties with boolean schemas", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "properties": { "foo": { "type": "string" } @@ -678,7 +678,7 @@ { "description": "unevaluatedProperties with $ref", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "$ref": "#/$defs/bar", "properties": { @@ -716,7 +716,7 @@ { "description": "unevaluatedProperties before $ref", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "unevaluatedProperties": false, "properties": { @@ -754,7 +754,7 @@ { "description": "unevaluatedProperties with $dynamicRef", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$id": "https://example.com/unevaluated-properties-with-dynamic-ref/derived", "$ref": "./baseSchema", @@ -802,7 +802,7 @@ { "description": "unevaluatedProperties can't see inside cousins", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "allOf": [ { "properties": { @@ -827,7 +827,7 @@ { "description": "unevaluatedProperties can't see inside cousins (reverse order)", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "allOf": [ { "unevaluatedProperties": false @@ -852,7 +852,7 @@ { "description": "nested unevaluatedProperties, outer false, inner true, properties outside", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "properties": { "foo": { "type": "string" } @@ -885,7 +885,7 @@ { "description": "nested unevaluatedProperties, outer false, inner true, properties inside", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "allOf": [ { @@ -918,7 +918,7 @@ { "description": "nested unevaluatedProperties, outer true, inner false, properties outside", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "properties": { "foo": { "type": "string" } @@ -951,7 +951,7 @@ { "description": "nested unevaluatedProperties, outer true, inner false, properties inside", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "allOf": [ { @@ -984,7 +984,7 @@ { "description": "cousin unevaluatedProperties, true and false, true with properties", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "allOf": [ { @@ -1019,7 +1019,7 @@ { "description": "cousin unevaluatedProperties, true and false, false with properties", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "allOf": [ { @@ -1055,7 +1055,7 @@ "description": "property is evaluated in an uncle schema to unevaluatedProperties", "comment": "see https://stackoverflow.com/questions/66936884/deeply-nested-unevaluatedproperties-and-their-expectations", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "properties": { "foo": { @@ -1107,7 +1107,7 @@ { "description": "in-place applicator siblings, allOf has unevaluated", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "allOf": [ { @@ -1153,7 +1153,7 @@ { "description": "in-place applicator siblings, anyOf has unevaluated", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "allOf": [ { @@ -1199,7 +1199,7 @@ { "description": "unevaluatedProperties + single cyclic ref", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "type": "object", "properties": { "x": { "$ref": "#" } @@ -1247,7 +1247,7 @@ { "description": "unevaluatedProperties + ref inside allOf / oneOf", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$defs": { "one": { "properties": { "a": true } @@ -1318,7 +1318,7 @@ { "description": "dynamic evaluation inside nested refs", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "$defs": { "one": { "oneOf": [ @@ -1452,7 +1452,7 @@ { "description": "non-object instances are valid", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "unevaluatedProperties": false }, "tests": [ @@ -1491,7 +1491,7 @@ { "description": "unevaluatedProperties with null valued instance properties", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "unevaluatedProperties": { "type": "null" } @@ -1507,7 +1507,7 @@ { "description": "unevaluatedProperties can see inside propertyDependencies", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": { "foo": { "type": "string" @@ -1553,7 +1553,7 @@ { "description": "unevaluatedProperties not affected by propertyNames", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "propertyNames": {"maxLength": 1}, "unevaluatedProperties": { "type": "number" @@ -1575,7 +1575,7 @@ { "description": "unevaluatedProperties can see annotations from if without then and else", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "if": { "patternProperties": { "foo": { @@ -1605,7 +1605,7 @@ { "description": "propertyDependencies with unevaluatedProperties" , "schema" : { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties" : {"foo2" : {}}, "propertyDependencies": { "foo" : {}, @@ -1641,7 +1641,7 @@ { "description": "dependentSchemas with unevaluatedProperties", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": {"foo2": {}}, "dependentSchemas": { "foo" : {}, @@ -1674,7 +1674,7 @@ { "description": "Evaluated properties collection needs to consider instance location", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "properties": { "foo": { "properties": { diff --git a/tests/draft-next/uniqueItems.json b/tests/v1/uniqueItems.json similarity index 97% rename from tests/draft-next/uniqueItems.json rename to tests/v1/uniqueItems.json index b16dd505..bc5e18ed 100644 --- a/tests/draft-next/uniqueItems.json +++ b/tests/v1/uniqueItems.json @@ -2,7 +2,7 @@ { "description": "uniqueItems validation", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "uniqueItems": true }, "tests": [ @@ -157,7 +157,7 @@ { "description": "uniqueItems with an array of items", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "prefixItems": [{"type": "boolean"}, {"type": "boolean"}], "uniqueItems": true }, @@ -207,7 +207,7 @@ { "description": "uniqueItems with an array of items and additionalItems=false", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "prefixItems": [{"type": "boolean"}, {"type": "boolean"}], "uniqueItems": true, "items": false @@ -243,7 +243,7 @@ { "description": "uniqueItems=false validation", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "uniqueItems": false }, "tests": [ @@ -333,7 +333,7 @@ { "description": "uniqueItems=false with an array of items", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "prefixItems": [{"type": "boolean"}, {"type": "boolean"}], "uniqueItems": false }, @@ -383,7 +383,7 @@ { "description": "uniqueItems=false with an array of items and additionalItems=false", "schema": { - "$schema": "https://json-schema.org/draft/next/schema", + "$schema": "https://json-schema.org/v1", "prefixItems": [{"type": "boolean"}, {"type": "boolean"}], "uniqueItems": false, "items": false