From d626eca5f4585ac47239f5a883962737f295efeb Mon Sep 17 00:00:00 2001 From: Hans5958 Date: Fri, 16 Jun 2023 17:54:44 +0700 Subject: [PATCH] Adjust JSON schema --- tools/schema/atlas.json | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/tools/schema/atlas.json b/tools/schema/atlas.json index ebbcbb18..4559efb8 100644 --- a/tools/schema/atlas.json +++ b/tools/schema/atlas.json @@ -12,14 +12,21 @@ }, { "type": "integer", - "minimum": 0 + "minimum": 1 + }, + { + "type": "integer", + "minimum": -1, + "maximum": 0, + "description": "The ID of the entry. The value is a placeholder for new entries." } ], - "description": "The ID of the entry. Usually this is the post ID of the new entry submission." + "description": "The ID of the entry. Usually, this is a number (string or number) this is the post ID of the new entry submission." }, "name": { "type": "string", - "description": "The short, descriptive name of the entry." + "description": "The short, descriptive name of the entry.", + "minLength": 1 }, "description": { "type": "string", @@ -55,7 +62,8 @@ "items": { "type": "string", "description": "The invite code of a Discord server related to the entry.", - "minItems": 1 + "minItems": 1, + "minLength": 1 } }, "wiki": { @@ -64,7 +72,8 @@ "items": { "type": "string", "description": "The title of the wiki page related to the entry.", - "minItems": 1 + "minItems": 1, + "minLength": 1 } } },