mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-28 02:17:53 +00:00
fix(forms) Prevent schema field prompts from being required (#9831)
This commit is contained in:
parent
20cf40d559
commit
8f89ec7f67
@ -174,6 +174,13 @@ class Forms(ConfigModel):
|
||||
raise Exception(
|
||||
f"Prompt type is {prompt.type} but no structured properties exist. Unable to create form."
|
||||
)
|
||||
if (
|
||||
prompt.type == PromptType.FIELDS_STRUCTURED_PROPERTY.value
|
||||
and prompt.required
|
||||
):
|
||||
raise Exception(
|
||||
"Schema field prompts cannot be marked as required. Ensure these prompts are not required."
|
||||
)
|
||||
|
||||
prompts.append(
|
||||
FormPromptClass(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user