openapi-core/openapi_core/shortcuts.py
2020-02-18 11:57:15 +00:00

17 lines
648 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.request.validators import RequestValidator
from openapi_core.validation.response.shortcuts import (
spec_validate_data as validate_data
)
from openapi_core.validation.response.validators import ResponseValidator
__all__ = [
'create_spec', 'validate_body', 'validate_parameters', 'validate_data',
'RequestValidator', 'ResponseValidator',
]