-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
The LambdaRequestSpec class used by LambdaRunner to simulate a Lambda execution call has a wrong type for the attribute body. When using proxy integration the body is sent as String(raw request body) and the request spec is simulating as a Map<String, Object>. That should be fixed to simulate the exact data types that API Gateway sends to Lambda.
Also, the current attribute type makes it impossible to implement a xml deserializer.
E.g.:
my-spec-file.json
....
"request":{
"path": "/users",
"pathParameters": {},
"queryStringParameters": {},
"resource": "users",
"stageVariables": {},
"method":"POST",
"headers": {
"Accept": "text/xml",
"Content-Type": "text/xml"
},
"body": "<MyBean><name>my name</name><age>20</age><address>test</address></MyBean>"
}
Metadata
Metadata
Assignees
Labels
No labels