Commit 9bd8e5e1 authored by Hueser, Christian (FWCC) - 138593's avatar Hueser, Christian (FWCC) - 138593 Committed by Erxleben, Fredo
Browse files

Make mandatory key optional in questions as well

If not specified in YAML., the key defaults to false.
parent f26c4814
Pipeline #109736 passed with stages
in 2 minutes and 59 seconds
......@@ -75,7 +75,7 @@ class Question(
HasLabel.YAML_TOKEN: str,
HasText.YAML_TOKEN: dict,
token_DATA_TYPE: lambda t: t in VALID_ANSWER_TYPES,
HasMandatory.YAML_TOKEN: bool,
schema.Optional(HasMandatory.YAML_TOKEN, default=False): bool,
schema.Optional(token_ANSWER_OPTIONS, default=[]): list,
schema.Optional(str): object, # Catchall for unsupported yaml data
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment