openapi-core/openapi_core/shortcuts.py

15 lines
457 B
Python
Raw Normal View History

2017-09-21 11:51:37 +00:00
"""OpenAPI core shortcuts module"""
2020-01-17 14:20:20 +00:00
# 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
2018-04-18 10:39:03 +00:00
)
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',
]