From 63e527a344f3d358367f1cfb7a58ab5756d4e324 Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Sat, 2 Oct 2021 15:10:39 +0300 Subject: [PATCH] plugin configuration schemas --- discord/schema.json | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 discord/schema.json diff --git a/discord/schema.json b/discord/schema.json new file mode 100644 index 0000000..b73eecc --- /dev/null +++ b/discord/schema.json @@ -0,0 +1,28 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://squeebot.lunasqu.ee/pkg/service-discord/discord.schema.json", + "title": "discord", + "description": "Discord Service configuration", + "type": "object", + "properties": { + "instances": { + "type": "array", + "description": "List of all registered protocols", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Protocol's descriptive name" + }, + "token": { + "type": "string", + "description": "Discord bot token" + } + }, + "required": ["name", "token"] + } + } + }, + "required": ["instances"] +}