Skip to content

Conversation

@Zhimin-arya
Copy link
Collaborator

@Zhimin-arya Zhimin-arya commented Jan 15, 2026

The validate parameters is checked by default
image

Copy link
Contributor

Copilot AI left a 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_schema from false to true in 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,
Copy link

Copilot AI Jan 15, 2026

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.

Suggested change
enforce_parameter_schema: true,
enforce_parameter_schema: !!f.parameter_openapi_schema,

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update prefect deployments to validate parameters

4 participants