Skip to content

AWS Lambda Powertools for Java: Idempotency - allow customised/improved object mapper #1039

Description

@AlanStill

Is your feature request related to a problem? Please describe.
The payload that I wish to use as my IdempotentKey contains an OffsetDateTime object. This generates the following exception.

"Java 8 date/time type java.time.OffsetDateTime not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling"

Ordinarily this would be a simple matter of registering the JavaTimeModule with the ObjectMapper. However, as Idempotency usingthe JsonConfig.get().getObjectMapper() )I don't think this is currently possible.

Describe the solution you'd like

Is it possible to enhance the ObjectMapper that is used via the Idempotency Configuration setup instead of directly using 'JsonConfig.get().getObjectMapper()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions