mirror of
https://github.com/correl/openapi-core.git
synced 2025-03-18 17:00:11 -09:00
Format checker deepcopy to shallowcopy
This commit is contained in:
parent
501694c403
commit
a16162ffa0
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
from copy import deepcopy
|
from copy import copy
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
from openapi_schema_validator import OAS30Validator, oas30_format_checker
|
from openapi_schema_validator import OAS30Validator, oas30_format_checker
|
||||||
|
@ -89,7 +89,7 @@ class SchemaUnmarshallersFactory(object):
|
||||||
return OAS30Validator(schema.__dict__, **kwargs)
|
return OAS30Validator(schema.__dict__, **kwargs)
|
||||||
|
|
||||||
def _get_format_checker(self):
|
def _get_format_checker(self):
|
||||||
fc = deepcopy(oas30_format_checker)
|
fc = copy(oas30_format_checker)
|
||||||
for name, formatter in self.custom_formatters.items():
|
for name, formatter in self.custom_formatters.items():
|
||||||
fc.checks(name)(formatter.validate)
|
fc.checks(name)(formatter.validate)
|
||||||
return fc
|
return fc
|
||||||
|
|
Loading…
Add table
Reference in a new issue