Skip to content

Commit 13e2833

Browse files
committed
deepcopy import fix
1 parent 2234b93 commit 13e2833

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

openapi_schema_validator/validators.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import copy
1+
from copy import deepcopy
2+
23
from jsonschema import _legacy_validators, _utils, _validators
34
from jsonschema.validators import create
45

@@ -65,7 +66,7 @@ def __init__(self, *args, **kwargs):
6566
def iter_errors(self, instance, _schema=None):
6667
if _schema is None:
6768
# creates a copy by value from schema to prevent mutation
68-
_schema = copy.deepcopy(self.schema)
69+
_schema = deepcopy(self.schema)
6970

7071
# append defaults to trigger validator (i.e. nullable)
7172
if 'nullable' not in _schema:

0 commit comments

Comments
 (0)