<@ULVA73B9P> what is enforce_parameter_schema ? wh...
# ask-marvin
l
@Marvin what is enforce_parameter_schema ? why is the parameters not validated when i call create run rest api
m
The
enforce_parameter_schema
is a boolean flag in Prefect that determines whether the API should validate the parameters passed to a flow run against the schema defined by
parameter_openapi_schema
. This schema is an OpenAPI compatible schema that defines the types and defaults for the flow’s parameters, used by the UI and backend for type validation. If the parameters are not being validated when you call the create run REST API, it could be because the
enforce_parameter_schema
flag is not enabled for your deployment. Ensure that this flag is set to
True
if you want the parameters to be validated against the schema. Here's a relevant link for further reading: Prefect Deployment Documentation If you are using Prefect 3.x, you can explore the top-level API which includes functions like
flow
,
task
,
get_client
, and more. This might help in understanding how to manage deployments and parameter validation more effectively.