import attr

from openapi_core.schema.exceptions import OpenAPIMappingError


class OpenAPIRequestBodyError(OpenAPIMappingError):
    pass


@attr.s(hash=True)
class MissingRequestBody(OpenAPIRequestBodyError):
    request = attr.ib()

    def __str__(self):
        return "Missing required request body"
