serverless plugin to associate custom request validator with the rest api
npm install serverless-associate-request-validatorA serverless plugin to associate custom request validator with the API Gateway rest api generated by serverless.
npm install --save-dev serverless-associate-request-validator
Add the plugin to your serverless.yml file:
``yaml`
plugins:
- serverless-associate-request-validator
AWS::ApiGateway::RequestValidator` in the `resources`` section of serverless configuration file.