Creating a decorator that warns the developer whenever he fails to set a context.

This commit is contained in:
Pedro Peixoto 2019-07-14 00:25:40 -03:00 committed by Artur Maciag
parent aa95bc5d02
commit 8260426b91

View file

@ -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):