Jezreel Zamora
03/03/2025, 12:22 AMpendulum.Date
, we get a validation error because the parameter being passed from the UI to the flow is in String type instead of Date
type.
This was working before but when the UI change for the date picker in the prefect cloud, we started seeing this error. Error message in the thread belowJezreel Zamora
03/03/2025, 12:23 AMParameter validation failed for flow 'Test flow': [{'type': 'is_instance_of', 'loc': ('start_date',), 'msg': 'Input should be an instance of Date', 'input': '2025-03-01', 'ctx': {'class': 'Date'}, 'url': '<https://errors.pydantic.dev/2.10/v/is_instance_of>'}, {'type': 'is_instance_of', 'loc': ('end_date',), 'msg': 'Input should be an instance of Date', 'input': '2025-04-01', 'ctx': {'class': 'Date'}, 'url': '<https://errors.pydantic.dev/2.10/v/is_instance_of>'}