Dan Van Brunt
01/14/2022, 10:47 PMsst.ApiGatewayV1Api
to NOT validate the incoming request.
Previously, I had sst.Api
working as a webhook for Contentful and it worked out of the box.
I’ve now setup the same code but in sst.ApiGatewayV1Api
and now I’m getting…
"__type": "ValidationException", "message": "1 validation error detected: Value null at 'entries' failed to satisfy constraint: Member must not be null"
I have not set ANY validation on the Api which leads me to believe there is one there by default? How can I fix this issue, as I don’t have any control over the format that Contentful is sending.Frank
sst.Api
uses the HTTP Api behind the scene and the default payload format is v2. Where as sst.ApiGatewayV1Api
uses the REST Api and the default payload format is v1.Frank
Frank
Dan Van Brunt
01/15/2022, 2:34 PMDan Van Brunt
01/15/2022, 2:34 PMDan Van Brunt
01/15/2022, 7:50 PMFrank