openapi-core/openapi_core/validation/response/models.py

11 lines
350 B
Python
Raw Normal View History

2018-04-17 12:38:23 +00:00
"""OpenAPI core validation response models module"""
from openapi_core.validation.models import BaseValidationResult
class ResponseValidationResult(BaseValidationResult):
def __init__(self, errors, data=None, headers=None):
super(ResponseValidationResult, self).__init__(errors)
self.data = data
self.headers = headers