https://prefect.io logo
Title
m

Michal Bledowski

06/10/2022, 11:52 AM
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

Evan Sutherland

06/10/2022, 11:54 AM
Hey @Michal Bledowski, I’m not aware of any such restrictions we can currently apply from the UI perspective.
:thank-you: 1
interesting idea though, I’ll make sure that feedback is considered for future enhancements to our parameters input
m

Michal Bledowski

06/10/2022, 11:57 AM
thank you @Evan Sutherland
a

Anna Geller

06/10/2022, 12:21 PM
Prefect 2.0 supports Pydantic type validation - you can restrict allowed values using Enum
m

Michal Bledowski

06/10/2022, 12:38 PM
thank you Anna
🙌 1
z

Zanie

06/10/2022, 8:50 PM
(Or using a Pydantic validator)
👍 1