serverless-reqvalidator-plugin
serverless-reqvalidator-plugin copied to clipboard
reqValidatorName needed for a mock endpoint?
I got a warning:
Warning: Invalid configuration encountered at 'functions.xxx.events.1.http': must have required property 'reqValidatorName'
endpoint definition:
- http:
path: healthcheck
cors: true
method: get
integration: mock
request:
template:
application/json: '{"statusCode": 200}'
response:
template: '{ "status": "healthy" }'
statusCodes:
200:
pattern: ''
I am using it as a healthcheck and it's a MOCK integration and i don't need request validator. How do I turn it off?