Hi All, I am new to Prefect, and I was wondering, ...
# prefect-ui
m
Hi All, I am new to Prefect, and I was wondering, if there is any way to restrict values of Parameters (Inputs) that can be specified in UI. For example, user can specify Input value (Parameter) as "dbt run" or "dbt run --*", but cannot pass "dbt clean" ?
1
e
Hey @Michal Bledowski, I’m not aware of any such restrictions we can currently apply from the UI perspective.
🙏 1
interesting idea though, I’ll make sure that feedback is considered for future enhancements to our parameters input
m
thank you @Evan Sutherland
a
Prefect 2.0 supports Pydantic type validation - you can restrict allowed values using Enum
m
thank you Anna
🙌 1
z
(Or using a Pydantic validator)
👍 1