From 6f20997d3493e4d71ea9f439a08b89a67bac9b8e Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Tue, 18 Apr 2023 20:36:37 +0200 Subject: [PATCH] Fixes Every `filters` field accepts an array as well #164 --- source/behavior/entities/format/types/entity_types.json | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/source/behavior/entities/format/types/entity_types.json b/source/behavior/entities/format/types/entity_types.json index 9d052e60..b0465b8d 100644 --- a/source/behavior/entities/format/types/entity_types.json +++ b/source/behavior/entities/format/types/entity_types.json @@ -8,7 +8,7 @@ "type": "object", "additionalProperties": false, "properties": { - "filters": { "type": "object", "$ref": "../../filters/filters.json" }, + "filters": { "$ref": "../../filters/filters.json" }, "max_dist": { "type": "number", "description": "Maximum distance this mob can be away to be a valid choice.", @@ -68,8 +68,5 @@ } } }, - "oneOf": [ - { "type": "array", "items": { "$ref": "#/definitions/entity_definition" } }, - { "$ref": "#/definitions/entity_definition" } - ] + "oneOf": [{ "type": "array", "items": { "$ref": "#/definitions/entity_definition" } }, { "$ref": "#/definitions/entity_definition" }] }