mirror of
https://github.com/correl/openapi-core.git
synced 2024-12-03 03:00:11 +00:00
17 lines
648 B
Python
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',
|
|
]
|