From ab3ee060de0337aea736d5ad775cb5ac8b19ec5a Mon Sep 17 00:00:00 2001 From: Jeny Sadadia Date: Fri, 5 Sep 2025 16:07:18 +0530 Subject: [PATCH] Fix `/docs` endpoint Upgrade `beanie` version to fix the below error: ``` Exception: Cannot generate a JsonSchema for core_schema.PlainValidatorFunctionSchema ({'type': 'with-info', 'function': >}) ``` Beanie release note states that `1.29.0` version fix above error. Reference link: https://github.com/BeanieODM/beanie/releases/tag/1.29.0 Signed-off-by: Jeny Sadadia --- docker/api/requirements.txt | 1 + pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/api/requirements.txt b/docker/api/requirements.txt index 489e3098..9fdff1a0 100644 --- a/docker/api/requirements.txt +++ b/docker/api/requirements.txt @@ -1,4 +1,5 @@ cloudevents==1.9.0 +beanie == 1.29.0 fastapi[all]==0.115.0 fastapi-pagination==0.12.30 fastapi-users[beanie, oauth]==13.0.0 diff --git a/pyproject.toml b/pyproject.toml index ff1f2c23..fdbfeea4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ requires-python = ">=3.10" license = {text = "LGPL-2.1-or-later"} dependencies = [ "cloudevents == 1.9.0", - "beanie == 1.28.0", + "beanie == 1.29.0", "fastapi[all] == 0.115.0", "fastapi-pagination == 0.12.30", "fastapi-users[beanie, oauth] == 14.0.0",