mirror of
https://github.com/correl/openapi-core.git
synced 2024-11-25 11:09:53 +00:00
16 lines
299 B
Python
16 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"
|