From cf269ed039ff9ce7d41cc7b699efbea8369f65dd Mon Sep 17 00:00:00 2001 From: mbfreder Date: Thu, 12 Oct 2023 10:35:42 -0700 Subject: [PATCH] Added missing 'version' field to APIGatewayProxyRequestEvent --- .../runtime/events/apigateway/APIGatewayProxyRequestEvent.java | 2 +- .../resources/event_models/api_gateway_proxy_request_event.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/apigateway/APIGatewayProxyRequestEvent.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/apigateway/APIGatewayProxyRequestEvent.java index 6c2761cc..66c1fa74 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/apigateway/APIGatewayProxyRequestEvent.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/apigateway/APIGatewayProxyRequestEvent.java @@ -34,7 +34,7 @@ public class APIGatewayProxyRequestEvent implements Serializable, HttpRequestEvent { private static final long serialVersionUID = 4189228800688527467L; - + private String version; private String resource; private String path; private String httpMethod; diff --git a/aws-lambda-java-events/src/test/resources/event_models/api_gateway_proxy_request_event.json b/aws-lambda-java-events/src/test/resources/event_models/api_gateway_proxy_request_event.json index eef27f46..745e17eb 100644 --- a/aws-lambda-java-events/src/test/resources/event_models/api_gateway_proxy_request_event.json +++ b/aws-lambda-java-events/src/test/resources/event_models/api_gateway_proxy_request_event.json @@ -1,4 +1,5 @@ { + "version": "1.0", "path": "/test/hello", "headers": { "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",