Skip to content

Commit 70f05b2

Browse files
authored
Merge pull request #291 from p1c2u/fix/format-checker-deepcopy-to-shallowcopy
Format checker deepcopy to shallowcopy
2 parents 501694c + a16162f commit 70f05b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: openapi_core/unmarshalling/schemas/factories.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from copy import deepcopy
1+
from copy import copy
22
import warnings
33

44
from openapi_schema_validator import OAS30Validator, oas30_format_checker
@@ -89,7 +89,7 @@ def get_validator(self, schema):
8989
return OAS30Validator(schema.__dict__, **kwargs)
9090

9191
def _get_format_checker(self):
92-
fc = deepcopy(oas30_format_checker)
92+
fc = copy(oas30_format_checker)
9393
for name, formatter in self.custom_formatters.items():
9494
fc.checks(name)(formatter.validate)
9595
return fc

0 commit comments

Comments
 (0)