From 7428c8522f23d6049d3246653fb2f366ae1faba9 Mon Sep 17 00:00:00 2001 From: Eejit <76887639+Eejit43@users.noreply.github.com> Date: Sat, 5 Aug 2023 09:39:56 -0400 Subject: [PATCH] fix: correct schema types (#746) * fix: correct blockLoot schema stackSizeRange type * fix: mark blockLoot schema stackSizeRange value as being nullable * fix: mark particles props as required --- schemas/blockLoot_schema.json | 5 ++++- schemas/particles_schema.json | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/schemas/blockLoot_schema.json b/schemas/blockLoot_schema.json index 52c90cedb..f1e006d13 100644 --- a/schemas/blockLoot_schema.json +++ b/schemas/blockLoot_schema.json @@ -39,7 +39,10 @@ }, "stackSizeRange": { "description": "The min/max of number of items in this item drop stack", - "type": "array" + "type": "array", + "items": { + "type": ["number", "null"] + } }, "blockAge": { "description": "The required age of the block for the item drop to occur", diff --git a/schemas/particles_schema.json b/schemas/particles_schema.json index 4df41d1d2..b5213054a 100644 --- a/schemas/particles_schema.json +++ b/schemas/particles_schema.json @@ -16,6 +16,8 @@ "type": "string", "pattern": "\\S+" } - } + }, + "required": ["id", "name"], + "additionalProperties": false } }