Skip to content
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

Separate ISO and default serializers #393

Closed
wants to merge 3 commits into from

Conversation

dkhalanskyjb
Copy link
Collaborator

Sometimes, X.Formats.ISO and X.parse()/X.toString() behave subtly differently; currently, it's the case for LocalDateTime and LocalTime.

With this change, every entity that supports custom formats obtains a separate default serializer in addition to the
ISO 8601 serializer, which now properly delegates to the corresponding DateTimeFormat.

Fixes #351

@dkhalanskyjb dkhalanskyjb added this to the 0.7.0 milestone Jul 19, 2024
@dkhalanskyjb dkhalanskyjb added the breaking change This could break existing code label Jul 19, 2024
@dkhalanskyjb dkhalanskyjb self-assigned this Jul 19, 2024
Sometimes, `X.Formats.ISO` and `X.parse()`/`X.toString()` behave
subtly differently; currently, it's the case for `LocalDateTime`
and `LocalTime`.

With this change, every entity that supports custom formats obtains
a separate default serializer in addition to the
ISO 8601 serializer, which now properly delegates to the
corresponding `DateTimeFormat`.

Fixes #351
@dkhalanskyjb dkhalanskyjb force-pushed the separate-iso-and-default-serializers branch from 4ac1cf7 to 190f8ab Compare July 22, 2024 11:49
@dkhalanskyjb dkhalanskyjb requested a review from ilya-g July 22, 2024 13:01
@dkhalanskyjb
Copy link
Collaborator Author

Closing in favor of #415

@dkhalanskyjb dkhalanskyjb deleted the separate-iso-and-default-serializers branch July 25, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change This could break existing code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix the ISO serializers omitting seconds when zero and emitting fractional parts in groups of three signs
1 participant