1
0
Fork 0
mirror of https://github.com/correl/openapi-core.git synced 2025-04-03 17:00:18 -09:00
openapi-core/openapi_core/validation/processors.py
2020-01-27 11:23:20 +00:00

14 lines
466 B
Python

"""OpenAPI core validation processors module"""
class OpenAPIProcessor(object):
def __init__(self, request_validator, response_validator):
self.request_validator = request_validator
self.response_validator = response_validator
def process_request(self, request):
return self.request_validator.validate(request)
def process_response(self, request, response):
return self.response_validator.validate(request, response)