prefect.runner.utils
inject_schemas_into_openapi
webserver
: The FastAPI instance representing the webserver.schemas_to_inject
: A dictionary of OpenAPI schemas to integrate.merge_definitions
injected_schemas
: A dictionary of deployment-specific schemas.openapi_schema
: The base OpenAPI schema to update.update_refs_in_schema
$ref
with a new reference base in a schema item.
Args:
schema_item
: A schema or part of a schema to update references in.new_ref
: The new base string to replace in $ref
values.update_refs_to_components
$ref
fields in the OpenAPI schema to reference the components section.
Args:
openapi_schema
: The OpenAPI schema to modify $ref
fields in.