Thread
#prefect-ui
    m

    Michal Bledowski

    3 months ago
    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" ?
    Evan Sutherland

    Evan Sutherland

    3 months ago
    Hey @Michal Bledowski, I’m not aware of any such restrictions we can currently apply from the UI perspective.
    interesting idea though, I’ll make sure that feedback is considered for future enhancements to our parameters input
    m

    Michal Bledowski

    3 months ago
    thank you @Evan Sutherland
    Anna Geller

    Anna Geller

    3 months ago
    Prefect 2.0 supports Pydantic type validation - you can restrict allowed values using Enum
    m

    Michal Bledowski

    3 months ago
    thank you Anna
    Michael Adkins

    Michael Adkins

    3 months ago
    (Or using a Pydantic validator)