-
Notifications
You must be signed in to change notification settings - Fork 81
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
Instant, YearMonth and MonthDay not use pattern in @JsonFormat #101
Comments
Thank you for reporting the problem. I assume reproduction should be easy, if anyone has time to look into this (I may have but right now no guarantees). |
After reading the source code I think that this could work:
Doing this the attribute In the method
Doing this the attribute In the method
In
Doing this the attribute In the method What do you think? If you wish, I think that I could try to do a PR in the comming days. |
@devdevx I think that makes sense, and help would be welcome. I'll see if I could implement part of this, maybe |
I was able to implement support for custom format for |
End work on #101; add custom format support for 'YearMonth' and 'MonthDay' ser, deser
I'm trying to define a custom patterns for this classes but sems that the
@JsonFormat
is ignored.Jackson version: 2.9.3
Jackson datatype version: 2.9.6
Example of
@JsonFormat
anotation:Current result:
When serialize the fields are formated with the default pattern and when deserialize a exception is throw.
Expected result:
Serialization and deserialization works sucessfully using the defined pattern.
Thanks !
The text was updated successfully, but these errors were encountered: