Upgrading fastapi 0.21 to 0.22
Review needed0.21.0 → 0.22.0New1Changed1Fixed1Other2
Review neededUpgrade verdict
1 changed default.
In plain terms
- Nothing in this range needs changes to your code. It adds features and fixes.
Must act Nothing to change
No breaking, platform, security or deprecated items in this range.
Nothing in this upgrade needs a code or configuration change.
API 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[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, methods: List[str]=…, operation_id: str=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> None → method FastAPI.add_api_route(path: str, endpoint: Callable, *, response_model: Type[BaseModel]=…, 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=…, include_in_schema: bool=…, response_class: Type[Res… - changed:
method FastAPI.api_route(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, methods: List[str]=…, operation_id: str=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable → method FastAPI.api_route(path: str, *, response_model: Type[BaseModel]=…, 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=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -… - changed:
method FastAPI.delete(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable → method FastAPI.delete(path: str, *, response_model: Type[BaseModel]=…, 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=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable - changed:
method FastAPI.get(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable → method FastAPI.get(path: str, *, response_model: Type[BaseModel]=…, 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=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable - changed:
method FastAPI.head(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable → method FastAPI.head(path: str, *, response_model: Type[BaseModel]=…, 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=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable - changed:
method FastAPI.include_router(router: routing.APIRouter, *, prefix: str=…, tags: List[str]=…, responses: Dict[Union[int, str], Dict[str, Any]]=…) -> None → method FastAPI.include_router(router: routing.APIRouter, *, prefix: str=…, tags: List[str]=…, dependencies: List[Depends]=…, responses: Dict[Union[int, str], Dict[str, Any]]=…) -> None - changed:
method FastAPI.options(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable → method FastAPI.options(path: str, *, response_model: Type[BaseModel]=…, 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=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable - changed:
method FastAPI.patch(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable → method FastAPI.patch(path: str, *, response_model: Type[BaseModel]=…, 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=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable - changed:
method FastAPI.post(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable → method FastAPI.post(path: str, *, response_model: Type[BaseModel]=…, 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=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable - changed:
method FastAPI.put(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable → method FastAPI.put(path: str, *, response_model: Type[BaseModel]=…, 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=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable - changed:
method FastAPI.trace(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable → method FastAPI.trace(path: str, *, response_model: Type[BaseModel]=…, 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=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable
- changed:
function get_sub_dependant(*, param: inspect.Parameter, path: str, security_scopes: List[str]=…) -> Dependant → function get_sub_dependant(*, depends: params.Depends, dependency: Callable, path: str, name: str=…, security_scopes: List[str]=…) -> Dependant - added:
function get_param_sub_dependant(*, param: inspect.Parameter, path: str, security_scopes: List[str]=…) -> Dependant - added:
function get_parameterless_sub_dependant(*, depends: params.Depends, path: str) -> Dependant
- added:
function Body(default: Any, *, embed: bool=…, media_type: str=…, alias: str=…, title: str=…, description: str=…, gt: float=…, ge: float=…, lt: float=…, le: float=…, min_length: int=…, max_length: int=…, regex: str=…, **extra: Any) -> Any - added:
function Cookie(default: Any, *, alias: str=…, title: str=…, description: str=…, gt: float=…, ge: float=…, lt: float=…, le: float=…, min_length: int=…, max_length: int=…, regex: str=…, deprecated: bool=…, **extra: Any) -> Any - added:
function Depends(dependency: Callable=…) -> Any - added:
function File(default: Any, *, media_type: str=…, alias: str=…, title: str=…, description: str=…, gt: float=…, ge: float=…, lt: float=…, le: float=…, min_length: int=…, max_length: int=…, regex: str=…, **extra: Any) -> Any - added:
function Form(default: Any, *, media_type: str=…, alias: str=…, title: str=…, description: str=…, gt: float=…, ge: float=…, lt: float=…, le: float=…, min_length: int=…, max_length: int=…, regex: str=…, **extra: Any) -> Any - added:
function Header(default: Any, *, alias: str=…, convert_underscores: bool=…, title: str=…, description: str=…, gt: float=…, ge: float=…, lt: float=…, le: float=…, min_length: int=…, max_length: int=…, regex: str=…, deprecated: bool=…, **extra: Any) -> Any - added:
function Path(default: Any, *, alias: str=…, title: str=…, description: str=…, gt: float=…, ge: float=…, lt: float=…, le: float=…, min_length: int=…, max_length: int=…, regex: str=…, deprecated: bool=…, **extra: Any) -> Any - added:
function Query(default: Any, *, alias: str=…, title: str=…, description: str=…, gt: float=…, ge: float=…, lt: float=…, le: float=…, min_length: int=…, max_length: int=…, regex: str=…, deprecated: bool=…, **extra: Any) -> Any - added:
function Security(dependency: Callable=…, scopes: Sequence[str]=…) -> Any
- changed:
constructor APIRoute(path: str, endpoint: Callable, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, 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=…, include_in_schema: bool=…, response_class: Type[Response]=…) -> None → constructor APIRoute(path: str, endpoint: Callable, *, response_model: Type[BaseModel]=…, 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=…, include_in_schema: bool=…, response_cla… - changed:
method APIRouter.add_api_route(path: str, endpoint: Callable, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, methods: List[str]=…, operation_id: str=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> None → method APIRouter.add_api_route(path: str, endpoint: Callable, *, response_model: Type[BaseModel]=…, 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=…, include_in_schema: bool=…, response_class:… - changed:
method APIRouter.api_route(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, methods: List[str]=…, operation_id: str=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable → method APIRouter.api_route(path: str, *, response_model: Type[BaseModel]=…, 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=…, include_in_schema: bool=…, response_class: Type[Response]=…, name:… - changed:
method APIRouter.delete(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable → method APIRouter.delete(path: str, *, response_model: Type[BaseModel]=…, 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=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable - changed:
method APIRouter.get(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable → method APIRouter.get(path: str, *, response_model: Type[BaseModel]=…, 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=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable - changed:
method APIRouter.head(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable → method APIRouter.head(path: str, *, response_model: Type[BaseModel]=…, 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=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable - changed:
method APIRouter.include_router(router: APIRouter, *, prefix: str=…, tags: List[str]=…, responses: Dict[Union[int, str], Dict[str, Any]]=…) -> None → method APIRouter.include_router(router: APIRouter, *, prefix: str=…, tags: List[str]=…, dependencies: List[params.Depends]=…, responses: Dict[Union[int, str], Dict[str, Any]]=…) -> None - changed:
method APIRouter.options(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable → method APIRouter.options(path: str, *, response_model: Type[BaseModel]=…, 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=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable - changed:
method APIRouter.patch(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable → method APIRouter.patch(path: str, *, response_model: Type[BaseModel]=…, 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=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable - changed:
method APIRouter.post(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable → method APIRouter.post(path: str, *, response_model: Type[BaseModel]=…, 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=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable - changed:
method APIRouter.put(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable → method APIRouter.put(path: str, *, response_model: Type[BaseModel]=…, 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=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable - changed:
method APIRouter.trace(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable → method APIRouter.trace(path: str, *, response_model: Type[BaseModel]=…, 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=…, include_in_schema: bool=…, response_class: Type[Response]=…, name: str=…) -> Callable