Merge pull request #1746 from Salamandar/fix_tests_schema
schemas: fix tests.v1, args can be booleans too
This commit is contained in:
commit
b5ff2da9c8
@ -23,7 +23,8 @@
|
||||
"^[a-z][a-z0-9_]*$": {
|
||||
"anyOf": [
|
||||
{"type": "string"},
|
||||
{"type": "number"}
|
||||
{"type": "number"},
|
||||
{"type": "boolean"}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ def validate_schema() -> Generator[str, None, None]:
|
||||
|
||||
def check_app(app: str, infos: Dict[str, Any]) -> Generator[Tuple[str, bool], None, None]:
|
||||
if "state" not in infos:
|
||||
yield "state is missing"
|
||||
yield "state is missing", True
|
||||
return
|
||||
|
||||
if infos["state"] != "working":
|
||||
|
Loading…
Reference in New Issue
Block a user