I create an api gateway and have included custom header fields like correlationId as required header inputs to its endpoint. When I deployed the APIGW, it does not work. I tried testing it, created a request with correlationId missing in the header, but no error was shown that the particular header field is missing. Same thing for format validation. Is there anything else I need to do to enable this validation?
I checked AWS APIGW docs and it said there should be validation once it has been set
Here is how you can do it:
Safe changes, redeploy API and after some small time you will see:
{"message": "Missing required request parameters: [correlationId]"}
for requests which doesn't have header correlationId