Skip to content
This repository was archived by the owner on Oct 8, 2023. It is now read-only.

Commit a482f25

Browse files
committed
Ignore unknown properties in requests
1 parent fd9c0c0 commit a482f25

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/main/java/com/github/kaklakariada/aws/lambda/model/request/ApiGatewayRequest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919

2020
import java.util.Map;
2121

22+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
23+
24+
@JsonIgnoreProperties(ignoreUnknown = true)
2225
public class ApiGatewayRequest {
2326

2427
private String resource;

src/main/java/com/github/kaklakariada/aws/lambda/model/request/Identity.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
*/
1818
package com.github.kaklakariada.aws.lambda.model.request;
1919

20+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
21+
22+
@JsonIgnoreProperties(ignoreUnknown = true)
2023
public class Identity {
2124
private String cognitoIdentityPoolId;
2225
private String accountId;

src/main/java/com/github/kaklakariada/aws/lambda/model/request/RequestContext.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
*/
1818
package com.github.kaklakariada.aws.lambda.model.request;
1919

20+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
21+
22+
@JsonIgnoreProperties(ignoreUnknown = true)
2023
public class RequestContext {
2124
private String path;
2225
private String accountId;

0 commit comments

Comments
 (0)