openapi-core
openapi-core copied to clipboard
Add AWS Api Gateway integration
Add an integration similar to django/flask
+---------+ event +---------+
| API_GW +----------->+ lambda |
+---------+ +---------+
The event object is structured as here: https://docs.aws.amazon.com/lambda/latest/dg/services-apigateway.html
Example implementation:
def handler(event, context):
from openapi_core.validation.request.validators import RequestValidator
from openapi_core.contrib.aws import ApiGatewayEventOpenAPIRequest
openapi_request = ApiGatewayEventOpenAPIRequest(event)
validator = RequestValidator(spec)
result = validator.validate(openapi_request)
Hi @jgroom33 , is this, finally, implemented?
Yes, I too would like to know if this is completed and if show how to implement. Because I don't see it in the docs or in the code base
I don't use apig+lambda much but I can try to implement this if it's a need for this.
@p1c2u that would be awesome! 🙏🏽
This would be a great addition, but are there any clean workarounds for doing this right now?