mirror of
https://github.com/correl/openapi-core.git
synced 2024-12-29 11:09:25 +00:00
14 lines
466 B
Python
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)
|