Skip to content

Commit b9fd803

Browse files
author
Sebastian Sauerer
committed
fix: allow null as query param
1 parent ccbb430 commit b9fd803

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openapi-lambda-adapters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const convertAxiosToApiGw = (config: AxiosRequestConfig, operation: Opera
4242

4343
// extract query params -> convert each value to ta string
4444
const queryParams = Object.entries(config.params ?? {}).reduce<APIGatewayProxyEventQueryStringParameters>((queryParams, [key, val]) => {
45-
queryParams[key] = val.toString()
45+
queryParams[key] = val?.toString()
4646
return queryParams
4747
}, {})
4848

0 commit comments

Comments
 (0)