Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork136
Open
Description
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:
defhandler(event,context):fromopenapi_core.validation.request.validatorsimportRequestValidatorfromopenapi_core.contrib.awsimportApiGatewayEventOpenAPIRequestopenapi_request=ApiGatewayEventOpenAPIRequest(event)validator=RequestValidator(spec)result=validator.validate(openapi_request)