Skip to content

Conversation

@francoisledroff
Copy link
Collaborator

@francoisledroff francoisledroff commented Mar 20, 2025

Related Issue

GH-230

Motivation and Context

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

Comment on lines -38 to -40
.addModule(new SimpleModule()
.addSerializer(ZonedDateTime.class, new ZonedDateTimeSerializer())
.addDeserializer(ZonedDateTime.class, new ZonedDateTimeDeserializer()))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do we make sure that it won't fail in serialization/deserialization? Does Jackson support these date formats OOTB?

Copy link
Collaborator Author

@francoisledroff francoisledroff Mar 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what matters here is the objectmapper pulled from here is properly serializating/deserializing dates/times when used with the models stuffed in our sdk, right ?
and I believe it's the case :
the only 2 dates found in our json model are actually currently exposed as String in the Registration class : they were no need for this in the first place ...

Copy link
Collaborator Author

@francoisledroff francoisledroff Mar 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK the only place where we used Date type in our jackson powered model are in the aem module when serializing aem event

@francoisledroff francoisledroff merged commit 85e1753 into main Mar 21, 2025
4 of 7 checks passed
@shikhartanwar shikhartanwar deleted the GH-230 branch September 15, 2025 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants