Hi, UI requires input to parameters even if it is ...
# prefect-ui
p
Hi, UI requires input to parameters even if it is optional. It was working before
👀 1
d
Hey Patrick, would you mind sharing the deployment ID here? A screenshot of your flow's parameter definition in python would also be helpful Meantime, I believe you can uncheck "Validate parameters before submitting" to submit
p
DeplomentID is a6e19809-fc48-4ebf-9be6-d0a63419a801
When i unchecked "Validate parameters before submitting", got this error:
I wonder if I need to upgtae prefect version and redeploy
d
That's definitely an option
c
It looks like possibly the "enforce parameter schema" option is enabled for this particular deployment as well. Might need to disable that. Though I'm still wondering why the optional parameter is failing validation at all 🤔
d
Hey Patrick, we actually encountered this issue ourselves. By any chance do you have that parameter typed as
profile: str = None
?
We needed to update to
profile: Optional[str] = None