openapi-core/openapi_core/shortcuts.py
2020-01-17 14:52:26 +00:00

14 lines
457 B
Python

"""OpenAPI core shortcuts module"""
# backward compatibility
from openapi_core.schema.shortcuts import create_spec
from openapi_core.validation.request.shortcuts import (
spec_validate_body as validate_body,
spec_validate_parameters as validate_parameters,
)
from openapi_core.validation.response.shortcuts import (
spec_validate_data as validate_data
)
__all__ = [
'create_spec', 'validate_body', 'validate_parameters', 'validate_data',
]