<@ULVA73B9P> how do i use the parameter_openapi_sc...
# ask-marvin
a
@Marvin how do i use the parameter_openapi_schema of prefect.deployments Deployment?
m
The
parameter_openapi_schema
is an OpenAPI compatible schema that defines the types and defaults for a flow's parameters in Prefect deployments. It is used by both the UI and the backend to expose options for creating manual runs as well as perform type validation. Unfortunately, the document does not contain a detailed example of how to use
parameter_openapi_schema
specifically, but you can find more information about deployments, including parameters and triggers, in the following documentation: - GUIDES | Deployments - CONCEPTS | Deployments You may use
parameter_openapi_schema
when defining a
Deployment
object in your flow script to ensure that parameters passed at runtime adhere to given type constraints and that default values are set accordingly. If you need an example or more hands-on guidance, you might consider looking for examples in the Prefect GitHub repository or asking the community in discussion forums or the Prefect Slack workspace.