Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reqValidatorName needed for a mock endpoint? #34

Open
nbcchen opened this issue Apr 2, 2024 · 0 comments
Open

reqValidatorName needed for a mock endpoint? #34

nbcchen opened this issue Apr 2, 2024 · 0 comments

Comments

@nbcchen
Copy link

nbcchen commented Apr 2, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant