aws-lambda-haskell-runtime
aws-lambda-haskell-runtime copied to clipboard
Make some API Gateway fields optional
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.