serverless-reqvalidator-plugin icon indicating copy to clipboard operation
serverless-reqvalidator-plugin copied to clipboard

reqValidatorName needed for a mock endpoint?

Open nbcchen opened this issue 3 months ago • 0 comments

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?

nbcchen avatar Apr 02 '24 00:04 nbcchen