openapi-core/openapi_core/schema/responses/exceptions.py
2021-03-31 16:17:40 +01:00

15 lines
300 B
Python

import attr
from openapi_core.schema.exceptions import OpenAPIMappingError
class OpenAPIResponseError(OpenAPIMappingError):
pass
@attr.s(hash=True)
class MissingResponseContent(OpenAPIResponseError):
response = attr.ib()
def __str__(self):
return "Missing response content"