mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-06 01:12:33 -05:00
Add JSON Schema for Trivia Lists (#5565)
Co-authored-by: Jakub Kuczys <me@jacken.men>
This commit is contained in:
@@ -36,6 +36,7 @@ ALWAYS_MATCH = Optional(Use(lambda x: x))
|
||||
MATCH_ALL_BUT_STR = Optional(Use(not_str))
|
||||
TRIVIA_LIST_SCHEMA = Schema(
|
||||
{
|
||||
Optional("$schema"): And(str, error=_("{key} key must be a text value.")),
|
||||
Optional("AUTHOR"): And(str, error=_("{key} key must be a text value.")),
|
||||
Optional("CONFIG"): And(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user