Open brian-mulier-p opened 4 months ago
After digging, we need to add .configure(SerializationFeature.WRITE_DURATIONS_AS_TIMESTAMPS, false)
.
However, it doesn't handle the Deserialization as now durations are serialized as PTXS
format but in the end it's still a string and if we don't type strongly the deserialization it will not work (which is what we do when we deserialize to map or list for eg.) so we may need to add a custom deserializer that uses regex for it (^P(?=[^T]|T.)(?:\d*D)?(?:T(?=.)(?:\d*H)?(?:\d*M)?(?:\d*S)?)?$
should work)
This must be fixed once that has been tackled
Describe the issue
See here.
I believe we should change the serialization format to "PT..." notation (in fact the Duration.toString() value, not the ObjectMapper.writeValueAsString(...)).
Maybe we will also need to change the deserializer to read from PT...
Environment