-
Notifications
You must be signed in to change notification settings - Fork 9
[Data 1419] Update parameter validation in prefect flow deployment #1670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
[Data 1419] Update parameter validation in prefect flow deployment #1670
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request updates the Prefect flow deployment configuration to enable parameter schema validation by setting enforce_parameter_schema: true. According to the description, this aligns with Prefect's default behavior where parameter validation is checked by default.
Changes:
- Changed
enforce_parameter_schemafromfalsetotruein the Prefect deployment configuration
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| work_queue_name: "default", | ||
| entrypoint: f.entrypoint, | ||
| enforce_parameter_schema: false, | ||
| enforce_parameter_schema: true, |
Copilot
AI
Jan 15, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting enforce_parameter_schema to true unconditionally may cause issues for flows that don't define a parameter_openapi_schema. When enforce_parameter_schema is true but no schema is provided, Prefect may reject flow runs with parameters. Consider making this conditional based on whether f.parameter_openapi_schema is defined, or ensure all flows in the system have schemas defined.
| enforce_parameter_schema: true, | |
| enforce_parameter_schema: !!f.parameter_openapi_schema, |
The validate parameters is checked by default
