2/3 months ago we deployed a lambda and API Gateway with serverless - in the config we had the following to require a specific header:
method: POST
path: new_path
integration: lambda
request:
headers:
a-required-header: true
schema:
application/json: ${file(./a_request_schema.json)}
We noticed recently that this header is no longer required and we can POST to the endpoint without the header populated.
I noticed in the docs, headers seems to be within parameters
- have tried this also, but with no luck.
Is this a known issue or are we doing something wrong?
Is there certain scenarios in which required headers/request validators work/don’t work?