From 9391354b85feedb39bdf1a181fbfaae6bb8b25ce Mon Sep 17 00:00:00 2001 From: Matthias Tafelmeier Date: Mon, 15 Jan 2024 02:10:07 +0100 Subject: [PATCH] bug fix: breaking dependency of flask server gen (#17611) Because the requirements file does not limit connexion version to below 3.0, with release of connexion 3.0 the openapi server startup sequence runs into a module not found issue. This contraint is preventing that. --- .../src/main/resources/python-flask/requirements.mustache | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/openapi-generator/src/main/resources/python-flask/requirements.mustache b/modules/openapi-generator/src/main/resources/python-flask/requirements.mustache index 8161173186d..3a3d56ed56d 100644 --- a/modules/openapi-generator/src/main/resources/python-flask/requirements.mustache +++ b/modules/openapi-generator/src/main/resources/python-flask/requirements.mustache @@ -1,6 +1,8 @@ connexion[swagger-ui] >= 2.6.0; python_version>="3.6" # 2.3 is the last version that supports python 3.4-3.5 connexion[swagger-ui] <= 2.3.0; python_version=="3.5" or python_version=="3.4" +# prevent breaking dependencies from advent of connexion>=3.0 +connexion[swagger-ui] <= 2.14.2; python_version>"3.4" # connexion requires werkzeug but connexion < 2.4.0 does not install werkzeug # we must peg werkzeug versions below to fix connexion # https://github.com/zalando/connexion/pull/1044