Adjust JSON schema

This commit is contained in:
Hans5958 2023-06-16 17:54:44 +07:00
parent 5ebf030b99
commit d626eca5f4

View file

@ -12,14 +12,21 @@
}, },
{ {
"type": "integer", "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": { "name": {
"type": "string", "type": "string",
"description": "The short, descriptive name of the entry." "description": "The short, descriptive name of the entry.",
"minLength": 1
}, },
"description": { "description": {
"type": "string", "type": "string",
@ -55,7 +62,8 @@
"items": { "items": {
"type": "string", "type": "string",
"description": "The invite code of a Discord server related to the entry.", "description": "The invite code of a Discord server related to the entry.",
"minItems": 1 "minItems": 1,
"minLength": 1
} }
}, },
"wiki": { "wiki": {
@ -64,7 +72,8 @@
"items": { "items": {
"type": "string", "type": "string",
"description": "The title of the wiki page related to the entry.", "description": "The title of the wiki page related to the entry.",
"minItems": 1 "minItems": 1,
"minLength": 1
} }
} }
}, },