-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: CustomPojoSerializer only for Serde #1916
Conversation
Close #1914 This PR remove the `CustomPojoSerializer` when using `JacksonDatabind`. Jackson’s `ObjectMapper ` creation requires customization which I don’t think it make sense to replicate in our `CustomPojoSerializer`. https://github.com/aws/aws-lambda-java-libs/blob/main/aws-lambda-java-serialization/src/main/java/com/amazonaws/services/lambda/runtime/serialization/factories/JacksonFactory.java#L57-L93
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 question and a suggestion for the docs wording...
I pushed a commit that cleaned up unused imports, added a private constructor to CustomPojoSerializerUtils
and used generics in CustomPojoSerializerUtils.serializeFromJson
-- which I think is correct
The reproducer for this issue passes locally, so I assume this only fails on AWS? Have you tried the reproducer on AWS with both Serde and Jackson?
.../main/resources/META-INF/services/com.amazonaws.services.lambda.runtime.CustomPojoSerializer
Outdated
Show resolved
Hide resolved
Co-authored-by: Tim Yates <[email protected]>
SonarCloud Quality Gate failed. 0 Bugs 0.0% Coverage Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
It did not passed locally. It failed. I moved I instead load in our tests the |
Close #1914
This PR remove the
CustomPojoSerializer
when usingJacksonDatabind
.Jackson’s
ObjectMapper
creation requires customization which I don’t think it make sense to replicate in ourCustomPojoSerializer
.https://github.com/aws/aws-lambda-java-libs/blob/main/aws-lambda-java-serialization/src/main/java/com/amazonaws/services/lambda/runtime/serialization/factories/JacksonFactory.java#L57-L93