aws-lambda-haskell-runtime icon indicating copy to clipboard operation
aws-lambda-haskell-runtime copied to clipboard

Make some API Gateway fields optional

Open cdepillabout opened this issue 2 years ago • 0 comments

This PR makes some of the fields in the APIGatewayRequest type optional.

The reason this fix is needed is described in:

  • https://github.com/theam/aws-lambda-haskell-runtime/issues/118#issue-1228590272
  • https://github.com/theam/aws-lambda-haskell-runtime/issues/118#issuecomment-1120193215

Unfortunately I couldn't find an actual specification of what the APIGatewayRequest type should be, so I just had to infer what the types are based on how sam local generate-event and sam local start-api work. The specifics are in the two above linked comments.

cdepillabout avatar May 07 '22 16:05 cdepillabout