I am using serverless framework for the backend. How can I implement request validation? (do not want to write validation inside lambda functions).
As Ivan indicated, there is no need for external plugins as this is supported by the Serverless framework. However, I think the way to configure this has changed.
functions:
create:
handler: posts.create
events:
- http:
path: posts/create
method: post
request:
schema:
application/json: ${file(create_request.json)}
This example was taken from: https://www.serverless.com/framework/docs/providers/aws/events/apigateway/#request-schema-validators