Upgrading fastapi 0.29 to 0.30
Breaking0.29.1 → 0.30.1Breaking1New5Changed3Other1
BreakingUpgrade verdict
1 breaking change.
In plain terms
- Remove Pipfile.lock from the repository as it is only used by FastAPI contributors (developers of FastAPI itself).
Must act 1 item needs code or config changes
What you must change
Breaking1
Remove Pipfile.lock from the repository as it is only used by FastAPI contributors (developers of FastAPI itself).
Pipfile.lockAPI changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- changed:
method FastAPI.add_api_route(path: str, endpoint: Callable, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: List[Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, methods: List[str]=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclud… → method FastAPI.add_api_route(path: str, endpoint: Callable, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: Sequence[Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, methods: List[str]=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_ex… - changed:
method FastAPI.api_route(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: List[Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, methods: List[str]=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_… → method FastAPI.api_route(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: Sequence[Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, methods: List[str]=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, respo… - changed:
method FastAPI.delete(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: List[Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias: bool=…, r… → method FastAPI.delete(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: Sequence[Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias: bool=… - changed:
method FastAPI.get(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: List[Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias: bool=…, resp… → method FastAPI.get(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: Sequence[Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias: bool=…,… - changed:
method FastAPI.head(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: List[Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias: bool=…, res… → method FastAPI.head(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: Sequence[Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias: bool=…,… - changed:
method FastAPI.include_router(router: routing.APIRouter, *, prefix: str=…, tags: List[str]=…, dependencies: List[Depends]=…, responses: Dict[Union[int, str], Dict[str, Any]]=…) -> None → method FastAPI.include_router(router: routing.APIRouter, *, prefix: str=…, tags: List[str]=…, dependencies: Sequence[Depends]=…, responses: Dict[Union[int, str], Dict[str, Any]]=…) -> None - changed:
method FastAPI.options(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: List[Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias: bool=…,… → method FastAPI.options(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: Sequence[Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias: bool… - changed:
method FastAPI.patch(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: List[Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias: bool=…, re… → method FastAPI.patch(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: Sequence[Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias: bool=…… - changed:
method FastAPI.post(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: List[Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias: bool=…, res… → method FastAPI.post(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: Sequence[Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias: bool=…,… - changed:
method FastAPI.put(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: List[Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias: bool=…, resp… → method FastAPI.put(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: Sequence[Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias: bool=…,… - changed:
method FastAPI.trace(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: List[Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias: bool=…, re… → method FastAPI.trace(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: Sequence[Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias: bool=……
- changed:
function get_openapi_operation_request_body(*, body_field: Field, model_name_map: Dict[Type, str]) -> Optional[Dict] → function get_openapi_operation_request_body(*, body_field: Optional[Field], model_name_map: Dict[Type, str]) -> Optional[Dict]
- changed:
constructor APIRoute(path: str, endpoint: Callable, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: List[params.Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, name: str=…, methods: List[str]=…, operation_id: str=…, response_model_include: Set[str]=…, response_… → constructor APIRoute(path: str, endpoint: Callable, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: Sequence[params.Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, name: str=…, methods: Optional[Union[Set[str], List[str]]]=…, operation_id: str=…, response_model… - changed:
method APIRouter.add_api_route(path: str, endpoint: Callable, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: List[params.Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, methods: List[str]=…, operation_id: str=…, response_model_include: Set[str]=…, response_mod… → method APIRouter.add_api_route(path: str, endpoint: Callable, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: Sequence[params.Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, methods: Optional[Union[Set[str], List[str]]]=…, operation_id: str=…, response_model_in… - changed:
method APIRouter.api_route(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: List[params.Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, methods: List[str]=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…,… → method APIRouter.api_route(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: Sequence[params.Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, methods: List[str]=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]… - changed:
method APIRouter.delete(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: List[params.Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias:… → method APIRouter.delete(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: Sequence[params.Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_ali… - changed:
method APIRouter.get(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: List[params.Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias: boo… → method APIRouter.get(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: Sequence[params.Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias:… - changed:
method APIRouter.head(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: List[params.Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias: bo… → method APIRouter.head(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: Sequence[params.Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias… - changed:
method APIRouter.include_router(router: APIRouter, *, prefix: str=…, tags: List[str]=…, dependencies: List[params.Depends]=…, responses: Dict[Union[int, str], Dict[str, Any]]=…) -> None → method APIRouter.include_router(router: APIRouter, *, prefix: str=…, tags: List[str]=…, dependencies: Sequence[params.Depends]=…, responses: Dict[Union[int, str], Dict[str, Any]]=…) -> None - changed:
method APIRouter.options(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: List[params.Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias:… → method APIRouter.options(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: Sequence[params.Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_al… - changed:
method APIRouter.patch(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: List[params.Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias: b… → method APIRouter.patch(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: Sequence[params.Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alia… - changed:
method APIRouter.post(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: List[params.Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias: bo… → method APIRouter.post(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: Sequence[params.Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias… - changed:
method APIRouter.put(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: List[params.Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias: boo… → method APIRouter.put(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: Sequence[params.Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias:… - changed:
method APIRouter.trace(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: List[params.Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alias: b… → method APIRouter.trace(path: str, *, response_model: Type[Any]=…, status_code: int=…, tags: List[str]=…, dependencies: Sequence[params.Depends]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, response_model_include: Set[str]=…, response_model_exclude: Set[str]=…, response_model_by_alia…
- changed:
function get_flat_models_from_routes(routes: Sequence[Type[BaseRoute]]) -> Set[Type[BaseModel]] → function get_flat_models_from_routes(routes: Sequence[BaseRoute]) -> Set[Type[BaseModel]] - added:
function create_cloned_field(field: Field) -> Field