From a2b9964db13bb0dfc6f371edfcff65fa90b17764 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 3 Feb 2022 20:10:22 +0000 Subject: [PATCH] fixed blockStateProperty subschema --- upgrade_schema/mapping_schema_schema.json | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/upgrade_schema/mapping_schema_schema.json b/upgrade_schema/mapping_schema_schema.json index 078f85f..eb53683 100644 --- a/upgrade_schema/mapping_schema_schema.json +++ b/upgrade_schema/mapping_schema_schema.json @@ -5,10 +5,10 @@ "type": "object", "properties": { "type": { - "oneOf": ["int", "string", "byte"] + "enum": ["string", "int", "byte"] }, "value": { - "anyOf": ["int", "string"] + "type": ["string", "integer"] } } } @@ -36,15 +36,7 @@ "additionalProperties": { "type": "object", "additionalProperties": { - "type": "object", - "properties": { - "type": { - "type": "string" - }, - "value": { - "type": ["string", "integer"] - } - } + "$ref": "#/$defs/blockStateProperty" } } },