The fastapi_utils.py
module#
Summary#
Extract the field type from a given schema field information. |
|
Extract fields and their types from a schema. |
|
Get parameter information from function parameters. |
|
Get return type information from the function’s return type. |
|
Extract definitions from a schema. |
|
Get definitions from function parameters. |
|
Get definitions from the function’s return type. |
|
Extract endpoint information from the given routes. |
Description#
Utils module for FastAPI related operations.
Module detail#
- fastapi_utils.extract_field_type(field_info: dict)#
Extract the field type from a given schema field information.
- fastapi_utils.extract_fields_from_schema(schema: dict)#
Extract fields and their types from a schema.
- fastapi_utils.get_parameters_info(params: dict)#
Get parameter information from function parameters.
- fastapi_utils.get_return_type_info(return_type: type[pydantic.BaseModel])#
Get return type information from the function’s return type.
- fastapi_utils.extract_definitions_from_schema(schema: dict) dict[str, Any] #
Extract definitions from a schema.
- fastapi_utils.get_definitions_from_params(params: dict) dict[str, Any] #
Get definitions from function parameters.
- fastapi_utils.get_definitions_from_return_type(return_type: type[pydantic.BaseModel]) dict[str, Any] #
Get definitions from the function’s return type.