openapi-core/openapi_core/validation/models.py

12 lines
235 B
Python
Raw Normal View History

2018-04-17 12:38:23 +00:00
"""OpenAPI core validation models module"""
class BaseValidationResult(object):
def __init__(self, errors):
self.errors = errors
def raise_for_errors(self):
for error in self.errors:
raise error