2017-09-21 11:51:37 +00:00
|
|
|
"""OpenAPI core shortcuts module"""
|
2020-01-17 14:20:20 +00:00
|
|
|
# backward compatibility
|
2021-04-30 07:50:20 +00:00
|
|
|
from openapi_core.spec.shortcuts import create_spec
|
2020-01-17 14:20:20 +00:00
|
|
|
from openapi_core.validation.request.shortcuts import (
|
|
|
|
spec_validate_body as validate_body,
|
|
|
|
spec_validate_parameters as validate_parameters,
|
|
|
|
)
|
2020-02-18 11:57:15 +00:00
|
|
|
from openapi_core.validation.request.validators import RequestValidator
|
2020-01-17 14:20:20 +00:00
|
|
|
from openapi_core.validation.response.shortcuts import (
|
|
|
|
spec_validate_data as validate_data
|
2018-04-18 10:39:03 +00:00
|
|
|
)
|
2020-02-18 11:57:15 +00:00
|
|
|
from openapi_core.validation.response.validators import ResponseValidator
|
2017-11-06 14:32:46 +00:00
|
|
|
|
2020-01-17 14:20:20 +00:00
|
|
|
__all__ = [
|
|
|
|
'create_spec', 'validate_body', 'validate_parameters', 'validate_data',
|
2020-02-18 11:57:15 +00:00
|
|
|
'RequestValidator', 'ResponseValidator',
|
2020-01-17 14:20:20 +00:00
|
|
|
]
|