From db8b68195549af7ebbd5cd734a593b9825cb7d7c Mon Sep 17 00:00:00 2001 From: Joe Shannon Date: Thu, 2 Nov 2023 15:51:46 +0000 Subject: [PATCH] Pin fastapi to <0.99 to use openapi <3.1 (#328) --- docs/user/reference/openapi.yaml | 4 ++-- pyproject.toml | 2 +- src/blueapi/service/main.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/user/reference/openapi.yaml b/docs/user/reference/openapi.yaml index 529453ca9..b918defb5 100644 --- a/docs/user/reference/openapi.yaml +++ b/docs/user/reference/openapi.yaml @@ -197,8 +197,8 @@ components: type: object info: title: BlueAPI Control - version: 0.0.3 -openapi: 3.1.0 + version: 0.0.4 +openapi: 3.0.2 paths: /devices: get: diff --git a/pyproject.toml b/pyproject.toml index e50281231..2ec6624aa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,7 @@ dependencies = [ "aiohttp", "PyYAML", "click<8.1.4", - "fastapi[all]<0.100", + "fastapi[all]<0.99", "uvicorn", "requests", "dls-bluesky-core @ git+https://github.com/DiamondLightSource/dls-bluesky-core.git", #requires ophyd-async diff --git a/src/blueapi/service/main.py b/src/blueapi/service/main.py index 697cdd2cf..50c2df70c 100644 --- a/src/blueapi/service/main.py +++ b/src/blueapi/service/main.py @@ -20,7 +20,7 @@ WorkerTask, ) -REST_API_VERSION = "0.0.3" +REST_API_VERSION = "0.0.4" @asynccontextmanager