-
-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Variable in server url not being interpolated #1915
Comments
Fix: if the arguments for substitution by Jinja are passed to the
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When the api spec in use specifies variables in the server url and the values are being passed when instantiating the connexion.FlaskApp, interpolation is not executed. See simple example below.
Expected behaviour
Actual behaviour
Full log
Steps to reproduce
Worked with:
pip install connexion==2.14.2 flask==2.2.5
Does not work:
pip install connexion==3.0.6 flask==3.0.3
Execute the test: pytest test_app.py
api.yml:
route.py:
test_app.py:
To prove the failure of interpolation, change:
response = app_client.get("test/v1/")
to:
response = app_client.get("{path_prefix}/v1/")
The test will now pass.
Additional info:
Output of the commands:
python --version
:Python 3.11.8
pip show connexion | grep "^Version\:"
:Version: 3.0.6
The text was updated successfully, but these errors were encountered: