Skip to content

Commit f6ba057

Browse files
committed
Revert "Merge pull request #243 from Beirdo/master"
This reverts commit 1583454, reversing changes made to 8bbdb59.
1 parent 1583454 commit f6ba057

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

openapi_core/schema/schemas/models.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,8 @@ def __init__(
6767

6868
self._source = _source
6969

70-
# Overriding object.__dict__ is a VERY bad idea as it totally breaks any
71-
# possibility of pickling this object. Pickling marshalls via object.__dict__
72-
# via default __getstate__ and __setstate__ methods. This is now renamed to
73-
# keep the functionality for the validators, but keep pickling operational.
7470
@property
75-
def __newdict__(self):
71+
def __dict__(self):
7672
return self._source or self.to_dict()
7773

7874
def to_dict(self):

openapi_core/unmarshalling/schemas/factories.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def get_validator(self, schema):
8686
}
8787
if self.context is not None:
8888
kwargs[self.CONTEXT_VALIDATION[self.context]] = True
89-
return OAS30Validator(schema.__newdict__, **kwargs)
89+
return OAS30Validator(schema.__dict__, **kwargs)
9090

9191
def _get_format_checker(self):
9292
fc = deepcopy(oas30_format_checker)

0 commit comments

Comments
 (0)