Fastapi

Latest version: v0.111.0

Safety actively analyzes 623657 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 22 of 31

0.36.0

Not secure
* Fix implementation for `skip_defaults` when returning a Pydantic model. PR [422](https://github.com/tiangolo/fastapi/pull/422) by [dmontagu](https://github.com/dmontagu).
* Fix OpenAPI generation when using the same dependency in multiple places for the same *path operation*. PR [417](https://github.com/tiangolo/fastapi/pull/417) by [dmontagu](https://github.com/dmontagu).
* Allow having empty paths in *path operations* used with `include_router` and a `prefix`.
* This allows having a router for `/cats` and all its *path operations*, while having one of them for `/cats`.
* Now it doesn't have to be only `/cats/` (with a trailing slash).
* To use it, declare the path in the *path operation* as the empty string (`""`).
* PR [415](https://github.com/tiangolo/fastapi/pull/415) by [vitalik](https://github.com/vitalik).
* Fix mypy error after merging PR 415. PR [462](https://github.com/tiangolo/fastapi/pull/462).

0.35.0

Not secure
* Fix typo in routing `assert`. PR [419](https://github.com/tiangolo/fastapi/pull/419) by [pablogamboa](https://github.com/pablogamboa).
* Fix typo in docs. PR [411](https://github.com/tiangolo/fastapi/pull/411) by [bronsen](https://github.com/bronsen).
* Fix parsing a body type declared with `Union`. PR [400](https://github.com/tiangolo/fastapi/pull/400) by [koxudaxi](https://github.com/koxudaxi).

0.34.0

Not secure
* Upgrade Starlette supported range to include the latest `0.12.7`. The new range is `0.11.1,<=0.12.7`. PR [367](https://github.com/tiangolo/fastapi/pull/367) by [dedsm](https://github.com/dedsm).

* Add test for OpenAPI schema with duplicate models from PR [333](https://github.com/tiangolo/fastapi/pull/333) by [dmontagu](https://github.com/dmontagu). PR [#385](https://github.com/tiangolo/fastapi/pull/385).

0.33.0

Not secure
* Upgrade Pydantic version to `0.30.0`. PR [384](https://github.com/tiangolo/fastapi/pull/384) by [jekirl](https://github.com/jekirl).

0.32.0

Not secure
* Fix typo in docs for features. PR [380](https://github.com/tiangolo/fastapi/pull/380) by [MartinoMensio](https://github.com/MartinoMensio).

* Fix source code `limit` for example in [Query Parameters](https://fastapi.tiangolo.com/tutorial/query-params/). PR [#366](https://github.com/tiangolo/fastapi/pull/366) by [Smashman](https://github.com/Smashman).

* Update wording in docs about [OAuth2 scopes](https://fastapi.tiangolo.com/tutorial/security/oauth2-scopes/). PR [#371](https://github.com/tiangolo/fastapi/pull/371) by [cjw296](https://github.com/cjw296).

* Update docs for `Enum`s to inherit from `str` and improve Swagger UI rendering. PR [351](https://github.com/tiangolo/fastapi/pull/351).

* Fix regression, add Swagger UI deep linking again. PR [350](https://github.com/tiangolo/fastapi/pull/350).

* Add test for having path templates in `prefix` of `.include_router`. PR [349](https://github.com/tiangolo/fastapi/pull/349).

* Add note to docs: [Include the same router multiple times with different `prefix`](https://fastapi.tiangolo.com/tutorial/bigger-applications/#include-the-same-router-multiple-times-with-different-prefix). PR [348](https://github.com/tiangolo/fastapi/pull/348).

* Fix OpenAPI/JSON Schema generation for two functions with the same name (in different modules) with the same composite bodies.
* Composite bodies' IDs are now based on path, not only on route name, as the auto-generated name uses the function names, that can be duplicated in different modules.
* The same new ID generation applies to response models.
* This also changes the generated title for those models.
* Only composite bodies and response models are affected because those are generated dynamically, they don't have a module (a Python file).
* This also adds the possibility of using `.include_router()` with the same `APIRouter` *multiple* times, with different prefixes, e.g. `/api/v2` and `/api/latest`, and it will now work correctly.
* PR [347](https://github.com/tiangolo/fastapi/pull/347).

0.31.0

Not secure
* Upgrade Pydantic supported version to `0.29.0`.
* New supported version range is `"pydantic >=0.28,<=0.29.0"`.
* This adds support for Pydantic [Generic Models](https://pydantic-docs.helpmanual.io/#generic-models), kudos to [dmontagu](https://github.com/dmontagu).
* PR [344](https://github.com/tiangolo/fastapi/pull/344).

Page 22 of 31

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.