-
-
Notifications
You must be signed in to change notification settings - Fork 762
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
connexion.FlaskApp.add_api() validate_responses enables also strict_validation. #1602
Comments
Hi @MiltiadisKoutsokeras, could you provide a minimal reproducible example? Note that parameter validation is enabled by default. |
Hello and sorry for the delayed response. If I set By the way I need to be able to disable the default validation prior reaching my endpoint handler, bacause it seems to hang for ever on larger schemas with a lot of external references. The same schemas work as expected if I manually perform the validation with jsonschema. Hangs like this:
I will try to create a minimal example project and share it once I find the time. |
I was indeed referring to query parameters, as Request body validation is enabled by default and Connexion has some difficulty handling references in the specification (#254), although I can't recall it just hanging. |
Description
Setting
validate_responses=True
inconnexion.FlaskApp.add_api()
also enables parameters validation as ifstrict_validation
is enabled.Expected behaviour
validate_responses=True
should only enable response validation, without validating parameters.Actual behaviour
Setting
validate_responses=True
inconnexion.FlaskApp.add_api()
also enables parameters validation as ifstrict_validation
is enabled.Steps to reproduce
Use this example:
Additional info:
Output of the commands:
python --version
= Python 3.9.2pip show connexion | grep "^Version\:"
= Version: 2.13.1The text was updated successfully, but these errors were encountered: