Skip to content

Commit

Permalink
Add warning about skipping validation for streamed response
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbeSneyders committed Feb 9, 2022
1 parent d9da200 commit 71ead39
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions connexion/decorators/response.py
Expand Up @@ -89,6 +89,7 @@ def _wrapper(request, response):
connexion_response = \
self.operation.api.get_connexion_response(response, self.mimetype)
if not connexion_response.is_streamed:
logger.warning("Skipping response validation for streamed response.")
self.validate_response(
connexion_response.body, connexion_response.status_code,
connexion_response.headers, request.url)
Expand Down

0 comments on commit 71ead39

Please sign in to comment.