Skip to content

Commit 6bc3764

Browse files
[FIX] fastapi: bump required version to 0.120.0
Recent merged changes in a5bae2b changed `status.HTTP_422_UNPROCESSABLE_ENTITY` to `status.HTTP_422_UNPROCESSABLE_CONTENT` in order to supress a deprecation warning emitted by the `starlette` library. However, older versions of `starlette` will simply break with this change. ``` Module 'starlette.status' has no attribute 'HTTP_422_UNPROCESSABLE_CONTENT'. Did you mean: 'HTTP_422_UNPROCESSABLE_ENTITY'? ``` For this reason, we bump the minimum required version of `fastapi` to 0.120.0, which consumes newer versions of `starlette` where this is not an issue.
1 parent e8d767d commit 6bc3764

4 files changed

Lines changed: 51 additions & 61 deletions

File tree

fastapi/README.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
.. image:: https://odoo-community.org/readme-banner-image
2-
:target: https://odoo-community.org/get-involved?utm_source=readme
3-
:alt: Odoo Community Association
4-
51
============
62
Odoo FastAPI
73
============
@@ -17,7 +13,7 @@ Odoo FastAPI
1713
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
1814
:target: https://odoo-community.org/page/development-status
1915
:alt: Beta
20-
.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png
16+
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
2117
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
2218
:alt: License: LGPL-3
2319
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Frest--framework-lightgray.png?logo=github

fastapi/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"demo": ["demo/fastapi_endpoint_demo.xml"],
2323
"external_dependencies": {
2424
"python": [
25-
"fastapi>=0.110.0",
25+
"fastapi>=0.120.0",
2626
"python-multipart",
2727
"ujson",
2828
"a2wsgi>=1.10.6",

0 commit comments

Comments
 (0)