diff --git a/lib/json_schemer/draft201909/meta.rb b/lib/json_schemer/draft201909/meta.rb index 360113d3..54c6b12e 100644 --- a/lib/json_schemer/draft201909/meta.rb +++ b/lib/json_schemer/draft201909/meta.rb @@ -51,9 +51,6 @@ module Meta CORE = { '$schema' => 'https://json-schema.org/draft/2019-09/schema', '$id' => 'https://json-schema.org/draft/2019-09/meta/core', - '$vocabulary' => { - 'https://json-schema.org/draft/2019-09/vocab/core' => true - }, '$recursiveAnchor' => true, 'title' => 'Core vocabulary meta-schema', 'type' => ['object', 'boolean'], @@ -108,9 +105,6 @@ module Meta APPLICATOR = { '$schema' => 'https://json-schema.org/draft/2019-09/schema', '$id' => 'https://json-schema.org/draft/2019-09/meta/applicator', - '$vocabulary' => { - 'https://json-schema.org/draft/2019-09/vocab/applicator' => true - }, '$recursiveAnchor' => true, 'title' => 'Applicator vocabulary meta-schema', 'type' => ['object', 'boolean'], @@ -164,9 +158,6 @@ module Meta VALIDATION = { '$schema' => 'https://json-schema.org/draft/2019-09/schema', '$id' => 'https://json-schema.org/draft/2019-09/meta/validation', - '$vocabulary' => { - 'https://json-schema.org/draft/2019-09/vocab/validation' => true - }, '$recursiveAnchor' => true, 'title' => 'Validation vocabulary meta-schema', 'type' => ['object', 'boolean'], @@ -262,9 +253,6 @@ module Meta META_DATA = { '$schema' => 'https://json-schema.org/draft/2019-09/schema', '$id' => 'https://json-schema.org/draft/2019-09/meta/meta-data', - '$vocabulary' => { - 'https://json-schema.org/draft/2019-09/vocab/meta-data' => true - }, '$recursiveAnchor' => true, 'title' => 'Meta-data vocabulary meta-schema', 'type' => ['object', 'boolean'], @@ -298,9 +286,6 @@ module Meta FORMAT = { '$schema' => 'https://json-schema.org/draft/2019-09/schema', '$id' => 'https://json-schema.org/draft/2019-09/meta/format', - '$vocabulary' => { - 'https://json-schema.org/draft/2019-09/vocab/format' => true - }, '$recursiveAnchor' => true, 'title' => 'Format vocabulary meta-schema', 'type' => ['object', 'boolean'], @@ -312,9 +297,6 @@ module Meta CONTENT = { '$schema' => 'https://json-schema.org/draft/2019-09/schema', '$id' => 'https://json-schema.org/draft/2019-09/meta/content', - '$vocabulary' => { - 'https://json-schema.org/draft/2019-09/vocab/content' => true - }, '$recursiveAnchor' => true, 'title' => 'Content vocabulary meta-schema', 'type' => ['object', 'boolean'], diff --git a/lib/json_schemer/draft202012/meta.rb b/lib/json_schemer/draft202012/meta.rb index c0e02e7d..3b1729f6 100644 --- a/lib/json_schemer/draft202012/meta.rb +++ b/lib/json_schemer/draft202012/meta.rb @@ -91,9 +91,6 @@ module Meta CORE = { '$schema' => 'https://json-schema.org/draft/2020-12/schema', '$id' => 'https://json-schema.org/draft/2020-12/meta/core', - '$vocabulary' => { - 'https://json-schema.org/draft/2020-12/vocab/core' => true - }, '$dynamicAnchor' => 'meta', 'title' => 'Core vocabulary meta-schema', 'type' => ['object', 'boolean'], @@ -141,9 +138,6 @@ module Meta APPLICATOR = { '$schema' => 'https://json-schema.org/draft/2020-12/schema', '$id' => 'https://json-schema.org/draft/2020-12/meta/applicator', - '$vocabulary' => { - 'https://json-schema.org/draft/2020-12/vocab/applicator' => true - }, '$dynamicAnchor' => 'meta', 'title' => 'Applicator vocabulary meta-schema', 'type' => ['object', 'boolean'], @@ -188,9 +182,6 @@ module Meta UNEVALUATED = { '$schema' => 'https://json-schema.org/draft/2020-12/schema', '$id' => 'https://json-schema.org/draft/2020-12/meta/unevaluated', - '$vocabulary' => { - 'https://json-schema.org/draft/2020-12/vocab/unevaluated' => true - }, '$dynamicAnchor' => 'meta', 'title' => 'Unevaluated applicator vocabulary meta-schema', 'type' => ['object', 'boolean'], @@ -202,9 +193,6 @@ module Meta VALIDATION = { '$schema' => 'https://json-schema.org/draft/2020-12/schema', '$id' => 'https://json-schema.org/draft/2020-12/meta/validation', - '$vocabulary' => { - 'https://json-schema.org/draft/2020-12/vocab/validation' => true - }, '$dynamicAnchor' => 'meta', 'title' => 'Validation vocabulary meta-schema', 'type' => ['object', 'boolean'], @@ -299,9 +287,6 @@ module Meta META_DATA = { '$schema' => 'https://json-schema.org/draft/2020-12/schema', '$id' => 'https://json-schema.org/draft/2020-12/meta/meta-data', - '$vocabulary' => { - 'https://json-schema.org/draft/2020-12/vocab/meta-data' => true - }, '$dynamicAnchor' => 'meta', 'title' => 'Meta-data vocabulary meta-schema', 'type' => ['object', 'boolean'], @@ -334,9 +319,6 @@ module Meta FORMAT_ANNOTATION = { '$schema' => 'https://json-schema.org/draft/2020-12/schema', '$id' => 'https://json-schema.org/draft/2020-12/meta/format-annotation', - '$vocabulary' => { - 'https://json-schema.org/draft/2020-12/vocab/format-annotation' => true - }, '$dynamicAnchor' => 'meta', 'title' => 'Format vocabulary meta-schema for annotation results', 'type' => ['object', 'boolean'], @@ -347,9 +329,6 @@ module Meta FORMAT_ASSERTION = { '$schema' => 'https://json-schema.org/draft/2020-12/schema', '$id' => 'https://json-schema.org/draft/2020-12/meta/format-assertion', - '$vocabulary' => { - 'https://json-schema.org/draft/2020-12/vocab/format-assertion' => true - }, '$dynamicAnchor' => 'meta', 'title' => 'Format vocabulary meta-schema for assertion results', 'type' => ['object', 'boolean'], @@ -360,9 +339,6 @@ module Meta CONTENT = { '$schema' => 'https://json-schema.org/draft/2020-12/schema', '$id' => 'https://json-schema.org/draft/2020-12/meta/content', - '$vocabulary' => { - 'https://json-schema.org/draft/2020-12/vocab/content' => true - }, '$dynamicAnchor' => 'meta', 'title' => 'Content vocabulary meta-schema', 'type' => ['object', 'boolean'], diff --git a/test/fixtures/draft2019-09.json b/test/fixtures/draft2019-09.json index bf9baff6..f7007ba4 100644 --- a/test/fixtures/draft2019-09.json +++ b/test/fixtures/draft2019-09.json @@ -1691,9 +1691,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2019-09/schema", "$id": "https://json-schema.org/draft/2019-09/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/core": true - }, "$recursiveAnchor": true, "title": "Core vocabulary meta-schema", "type": [ @@ -1765,9 +1762,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2019-09/schema", "$id": "https://json-schema.org/draft/2019-09/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/core": true - }, "$recursiveAnchor": true, "title": "Core vocabulary meta-schema", "type": [ @@ -1839,9 +1833,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2019-09/schema", "$id": "https://json-schema.org/draft/2019-09/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/core": true - }, "$recursiveAnchor": true, "title": "Core vocabulary meta-schema", "type": [ @@ -3459,9 +3450,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2019-09/schema", "$id": "https://json-schema.org/draft/2019-09/meta/validation", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/validation": true - }, "$recursiveAnchor": true, "title": "Validation vocabulary meta-schema", "type": [ @@ -3597,9 +3585,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2019-09/schema", "$id": "https://json-schema.org/draft/2019-09/meta/validation", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/validation": true - }, "$recursiveAnchor": true, "title": "Validation vocabulary meta-schema", "type": [ @@ -5316,9 +5301,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2019-09/schema", "$id": "https://json-schema.org/draft/2019-09/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/core": true - }, "$recursiveAnchor": true, "title": "Core vocabulary meta-schema", "type": [ @@ -5392,9 +5374,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2019-09/schema", "$id": "https://json-schema.org/draft/2019-09/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/core": true - }, "$recursiveAnchor": true, "title": "Core vocabulary meta-schema", "type": [ @@ -5468,9 +5447,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2019-09/schema", "$id": "https://json-schema.org/draft/2019-09/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/core": true - }, "$recursiveAnchor": true, "title": "Core vocabulary meta-schema", "type": [ @@ -5544,9 +5520,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2019-09/schema", "$id": "https://json-schema.org/draft/2019-09/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/core": true - }, "$recursiveAnchor": true, "title": "Core vocabulary meta-schema", "type": [ @@ -5620,9 +5593,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2019-09/schema", "$id": "https://json-schema.org/draft/2019-09/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/core": true - }, "$recursiveAnchor": true, "title": "Core vocabulary meta-schema", "type": [ @@ -5696,9 +5666,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2019-09/schema", "$id": "https://json-schema.org/draft/2019-09/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/core": true - }, "$recursiveAnchor": true, "title": "Core vocabulary meta-schema", "type": [ @@ -5772,9 +5739,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2019-09/schema", "$id": "https://json-schema.org/draft/2019-09/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/core": true - }, "$recursiveAnchor": true, "title": "Core vocabulary meta-schema", "type": [ @@ -18218,9 +18182,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2019-09/schema", "$id": "https://json-schema.org/draft/2019-09/meta/validation", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/validation": true - }, "$recursiveAnchor": true, "title": "Validation vocabulary meta-schema", "type": [ @@ -19023,9 +18984,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2019-09/schema", "$id": "https://json-schema.org/draft/2019-09/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2019-09/vocab/core": true - }, "$recursiveAnchor": true, "title": "Core vocabulary meta-schema", "type": [ diff --git a/test/fixtures/draft2020-12.json b/test/fixtures/draft2020-12.json index b57ca081..a21dc28a 100644 --- a/test/fixtures/draft2020-12.json +++ b/test/fixtures/draft2020-12.json @@ -1494,9 +1494,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://json-schema.org/draft/2020-12/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/core": true - }, "$dynamicAnchor": "meta", "title": "Core vocabulary meta-schema", "type": [ @@ -1573,9 +1570,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://json-schema.org/draft/2020-12/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/core": true - }, "$dynamicAnchor": "meta", "title": "Core vocabulary meta-schema", "type": [ @@ -1652,9 +1646,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://json-schema.org/draft/2020-12/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/core": true - }, "$dynamicAnchor": "meta", "title": "Core vocabulary meta-schema", "type": [ @@ -3277,9 +3268,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://json-schema.org/draft/2020-12/meta/validation", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/validation": true - }, "$dynamicAnchor": "meta", "title": "Validation vocabulary meta-schema", "type": [ @@ -3415,9 +3403,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://json-schema.org/draft/2020-12/meta/validation", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/validation": true - }, "$dynamicAnchor": "meta", "title": "Validation vocabulary meta-schema", "type": [ @@ -6353,9 +6338,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://json-schema.org/draft/2020-12/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/core": true - }, "$dynamicAnchor": "meta", "title": "Core vocabulary meta-schema", "type": [ @@ -6433,9 +6415,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://json-schema.org/draft/2020-12/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/core": true - }, "$dynamicAnchor": "meta", "title": "Core vocabulary meta-schema", "type": [ @@ -6513,9 +6492,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://json-schema.org/draft/2020-12/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/core": true - }, "$dynamicAnchor": "meta", "title": "Core vocabulary meta-schema", "type": [ @@ -6593,9 +6569,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://json-schema.org/draft/2020-12/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/core": true - }, "$dynamicAnchor": "meta", "title": "Core vocabulary meta-schema", "type": [ @@ -6673,9 +6646,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://json-schema.org/draft/2020-12/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/core": true - }, "$dynamicAnchor": "meta", "title": "Core vocabulary meta-schema", "type": [ @@ -6753,9 +6723,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://json-schema.org/draft/2020-12/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/core": true - }, "$dynamicAnchor": "meta", "title": "Core vocabulary meta-schema", "type": [ @@ -6833,9 +6800,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://json-schema.org/draft/2020-12/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/core": true - }, "$dynamicAnchor": "meta", "title": "Core vocabulary meta-schema", "type": [ @@ -11697,9 +11661,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://json-schema.org/draft/2020-12/meta/validation", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/validation": true - }, "$dynamicAnchor": "meta", "title": "Validation vocabulary meta-schema", "type": [ @@ -17691,9 +17652,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://json-schema.org/draft/2020-12/meta/validation", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/validation": true - }, "$dynamicAnchor": "meta", "title": "Validation vocabulary meta-schema", "type": [ @@ -18495,9 +18453,6 @@ "root_schema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://json-schema.org/draft/2020-12/meta/core", - "$vocabulary": { - "https://json-schema.org/draft/2020-12/vocab/core": true - }, "$dynamicAnchor": "meta", "title": "Core vocabulary meta-schema", "type": [