You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when application has a validation error in response, it doen't send response. In the below example my response data from application code doesn't match with the schema defined in openAPI. I can see it goes in the JSONResponseBodyValidator and raises NonConformingResponseBody in the application but doesn't send back the response.
Expected behaviour
Response validation propagates the exception up
Actual behaviour
The app hangs forever and never recieves the response.
OpenApi has the successful response schema. The schema has a field data with type array or objct. In my response if I am passing None in data. I am getting validation error within the application but never recieves the response back.
OpenAPI -
Description
when application has a validation error in response, it doen't send response. In the below example my response data from application code doesn't match with the schema defined in openAPI. I can see it goes in the JSONResponseBodyValidator and raises NonConformingResponseBody in the application but doesn't send back the response.
Expected behaviour
Response validation propagates the exception up
Actual behaviour
The app hangs forever and never recieves the response.
Steps to reproduce
This is how I am configuring my application
OpenApi has the successful response schema. The schema has a field data with type array or objct. In my response if I am passing None in data. I am getting validation error within the application but never recieves the response back.
OpenAPI -
below is the application code that sends the response (Please not I am sending None in data which is defined as array or object in openApi_ -
Additional info:
Output of the commands:
python --version
Python 3.9.18
pip show connexion | grep "^Version\:"
Name: connexion
Version: 3.0.5
Summary: Connexion - API first applications with OpenAPI/Swagger
Home-page: https://github.com/spec-first/connexion
Author: Robbe Sneyders
Author-email: robbe.sneyders@gmail.com
License: Apache-2.0
Location: /usr/local/lib/python3.9/site-packages
Requires: asgiref, httpx, inflection, Jinja2, jsonschema, python-multipart, PyYAML, requests, starlette, typing-extensions, werkzeug
Required-by:
The text was updated successfully, but these errors were encountered: