openapi-core/openapi_core/validation/exceptions.py
2020-02-04 13:58:42 +00:00

15 lines
299 B
Python

"""OpenAPI core validation exceptions module"""
import attr
from openapi_core.exceptions import OpenAPIError
class ValidationError(OpenAPIError):
pass
@attr.s(hash=True)
class InvalidSecurity(ValidationError):
def __str__(self):
return "Security not valid for any requirement"