From 9afc1eed4900da7aba67eb6ba14388018c9c2200 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Wed, 16 Nov 2022 12:26:56 +0200 Subject: [PATCH] Expanded schema to validate ray configuration --- config/schemas/creature.json | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/config/schemas/creature.json b/config/schemas/creature.json index cc0a41b68..a57766839 100644 --- a/config/schemas/creature.json +++ b/config/schemas/creature.json @@ -227,7 +227,34 @@ }, "ray": { "type":"array", - "description": "Colors of ray projectile animation" + "description": "Colors of ray projectile animation", + "minItems" : 1, + "items": { + "type":"object", + "required" : [ "start", "end" ], + "properties":{ + "start": { + "type":"array", + "minItems" : 4, + "maxItems" : 4, + "items": { + "minimum" : 0, + "maximum" : 255, + "type":"number" + } + }, + "end": { + "type":"array", + "minItems" : 4, + "maxItems" : 4, + "items": { + "minimum" : 0, + "maximum" : 255, + "type":"number" + } + } + } + } }, "frameAngles": { "type":"array",