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.
This PR makes some of the fields in the
APIGatewayRequest
type optional.The reason this fix is needed is described in:
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 howsam local generate-event
andsam local start-api
work. The specifics are in the two above linked comments.