mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 18:06:08 -05:00
JSON schemas for cogs and repos (#4375)
* JSON schemas for cogs and repos * newline at the end * capitalization * Remove *.json from .gitignore * Remove empty line * resolve requested changes * resolve requested changes, again Co-authored-by: Fixator10 <fixator10@users.noreply.github.com>
This commit is contained in:
27
schema/red_cog_repo.schema.json
Normal file
27
schema/red_cog_repo.schema.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"$id": "https://raw.githubusercontent.com/Cog-Creators/Red-DiscordBot/V3/develop/schema/red_cog_repo.schema.json",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "Red-DiscordBot Сog Repo metadata file",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"author": {
|
||||
"type": "array",
|
||||
"description": "List of names of authors of the cog",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "A long description of the cog or repo. For cogs, this is displayed when a user executes [p]cog info."
|
||||
},
|
||||
"install_msg": {
|
||||
"type": "string",
|
||||
"description": "The message that gets displayed when a cog is installed or a repo is added"
|
||||
},
|
||||
"short": {
|
||||
"type": "string",
|
||||
"description": "A short description of the cog or repo. For cogs, this info is displayed when a user executes [p]cog list"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user