mirror of
https://github.com/correl/openapi-core.git
synced 2024-12-28 03:00:11 +00:00
Revert "Merge pull request #243 from Beirdo/master"
This reverts commit1583454b56
, reversing changes made to8bbdb5931b
.
This commit is contained in:
parent
1583454b56
commit
f6ba057fd2
2 changed files with 2 additions and 6 deletions
|
@ -67,12 +67,8 @@ class Schema(object):
|
|||
|
||||
self._source = _source
|
||||
|
||||
# Overriding object.__dict__ is a VERY bad idea as it totally breaks any
|
||||
# possibility of pickling this object. Pickling marshalls via object.__dict__
|
||||
# via default __getstate__ and __setstate__ methods. This is now renamed to
|
||||
# keep the functionality for the validators, but keep pickling operational.
|
||||
@property
|
||||
def __newdict__(self):
|
||||
def __dict__(self):
|
||||
return self._source or self.to_dict()
|
||||
|
||||
def to_dict(self):
|
||||
|
|
|
@ -86,7 +86,7 @@ class SchemaUnmarshallersFactory(object):
|
|||
}
|
||||
if self.context is not None:
|
||||
kwargs[self.CONTEXT_VALIDATION[self.context]] = True
|
||||
return OAS30Validator(schema.__newdict__, **kwargs)
|
||||
return OAS30Validator(schema.__dict__, **kwargs)
|
||||
|
||||
def _get_format_checker(self):
|
||||
fc = deepcopy(oas30_format_checker)
|
||||
|
|
Loading…
Reference in a new issue