[3.4] Add JSON Schema for Trivia Lists (#5565) (#6070)

Co-authored-by: Kreusada <67752638+Kreusada@users.noreply.github.com>
Co-authored-by: Jakub Kuczys <me@jacken.men>
This commit is contained in:
Red-GitHubBot
2023-04-20 00:16:26 +02:00
committed by GitHub
parent 2364842dab
commit 65946b688d
2 changed files with 62 additions and 0 deletions

View File

@@ -35,6 +35,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(
{