mirror of
https://github.com/correl/openapi-core.git
synced 2024-12-29 11:09:25 +00:00
Creating a decorator that warns the developer whenever he fails to set a context.
This commit is contained in:
parent
aa95bc5d02
commit
8260426b91
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,9 @@ from distutils.util import strtobool
|
|||
from six import string_types
|
||||
from json import dumps
|
||||
|
||||
from openapi_core.schema.schemas.enums import UnmarshalContext
|
||||
from openapi_core.schema.schemas.exceptions import UnmarshalContextNotSet
|
||||
|
||||
|
||||
def forcebool(val):
|
||||
if isinstance(val, string_types):
|
||||
|
|
Loading…
Reference in a new issue