Skip to content

Commit 659fe07

Browse files
galquezarraupachz
authored andcommitted
Fixes Base64 enconding for ALB and API Gateway HTTP events (aws#150)
* Jackson uses the getters/setters names to name the JSON keys when serializing/deserializing, and Lombok automatically generate getters/setters. A class using the boolean variable IsBase64Encoded would have IsBase64Encoded/SetBase64Encoded methods. Jackson would convert them to base64Encoded key instead of isBase64Encoded. That is incompatible with the ALB and API Gateway JSON specification. By using lombok.getter.noIsPrefix = true, we would have GetIsBase64Encoded/SetIsBase64Encoded methods, and Jackson would convert them to the expected key isBase64Encoded.
1 parent c440aab commit 659fe07

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lombok.getter.noIsPrefix = true

0 commit comments

Comments
 (0)