-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
Deserialization empty timestamps fields to null value doesn't work #561
Comments
@silvestr85 Try enabling Handling of empty String to "empty" If nothing else works you could alternatively add/override ps. which |
I was trying this one Yes, I'm using For now I have workaround as my own converter:
|
FWTW, I think this is unfortunately something that happens, as So I think work-around indicated makes sense. |
I found the solution 🥳 You must set the behaviour of XmlMapper mapper = new XmlMapper();
mapper.coercionConfigFor( LogicalType.DateTime ).setCoercion( CoercionInputShape.EmptyString, CoercionAction.AsNull ); |
Hi.
From version 2.12.0 deserialization timestamps works in other way.
I have field in model:
In response i receive something like this:
Earlier this assertion worked fine:
Assert.assertNull(response.getData());
On the newest version 2.14 deserialization returns something like this:
Actual :1970-01-01 01:00:00.0
Is it possible to return null again when I try deserialize empty field to Timestamp?
The text was updated successfully, but these errors were encountered: