Add JSON Schema for Trivia Lists (#5565)

Co-authored-by: Jakub Kuczys <me@jacken.men>
This commit is contained in:
Kreusada
2023-03-02 14:43:55 +00:00
committed by GitHub
parent d9c46342d4
commit 8de6b97700
2 changed files with 62 additions and 0 deletions

View File

@@ -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(
{