mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 18:06:08 -05:00
[Downloader] Add schema validation to info.json file processing (#3533)
* schema v1 * set hidden to True for shared libs * fix test data * add warning about invalid top-level structure * don't show full traceback for JSONDecodeError
This commit is contained in:
@@ -88,7 +88,7 @@ INFO_JSON = {
|
||||
"hidden": False,
|
||||
"install_msg": "A post-installation message",
|
||||
"required_cogs": {},
|
||||
"requirements": ("tabulate"),
|
||||
"requirements": ("tabulate",),
|
||||
"short": "A short description",
|
||||
"tags": ("tag1", "tag2"),
|
||||
"type": "COG",
|
||||
@@ -102,7 +102,7 @@ LIBRARY_INFO_JSON = {
|
||||
"hidden": False, # libraries are always hidden, this tests it will be flipped
|
||||
"install_msg": "A library install message",
|
||||
"required_cogs": {},
|
||||
"requirements": ("tabulate"),
|
||||
"requirements": ("tabulate",),
|
||||
"short": "A short library description",
|
||||
"tags": ("libtag1", "libtag2"),
|
||||
"type": "SHARED_LIBRARY",
|
||||
|
||||
Reference in New Issue
Block a user