Skip to content

Commit

Permalink
Copy validator map so it remains unchanged
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbeSneyders committed Sep 24, 2022
1 parent 56cc8e6 commit 0f742a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion connexion/middleware/request_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(
self.next_app = next_app
self._operation = operation
self.strict_validation = strict_validation
self._validator_map = VALIDATOR_MAP
self._validator_map = VALIDATOR_MAP.copy()
self._validator_map.update(validator_map or {})
self.uri_parser_class = uri_parser_class

Expand Down
2 changes: 1 addition & 1 deletion connexion/middleware/response_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(
) -> None:
self.next_app = next_app
self._operation = operation
self._validator_map = VALIDATOR_MAP
self._validator_map = VALIDATOR_MAP.copy()
self._validator_map.update(validator_map or {})

def extract_content_type(
Expand Down

0 comments on commit 0f742a5

Please sign in to comment.