From d005a0ebd5a0233cb34aba12880c8ba16d5dcc4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zaremba?= Date: Tue, 8 Jul 2025 13:24:07 +0200 Subject: [PATCH] Add schema for highscoreCreatures --- config/schemas/highscoreCreatures.json | 33 ++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 config/schemas/highscoreCreatures.json diff --git a/config/schemas/highscoreCreatures.json b/config/schemas/highscoreCreatures.json new file mode 100644 index 000000000..c55dc7398 --- /dev/null +++ b/config/schemas/highscoreCreatures.json @@ -0,0 +1,33 @@ +{ + "type": "object", + "$schema": "http://json-schema.org/draft-04/schema", + "title": "Highscore Creature format", + "description" : "Json format for defining highscore for creatures in VCMI", + "properties": { + "creatures": { + "type": "array", + "items": { + "type": "object", + "required": [ + "creature" + ], + "properties": { + "min": { + "type": "integer" + }, + "max": { + "type": "integer" + }, + "creature": { + "type": "string" + } + }, + "additionalProperties": false + } + } + }, + "required": [ + "creatures" + ], + "additionalProperties": false +}