-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fix #4994 CoercionConfig
for CoercionAction.AsNull
not working on empty array deserialization
#4999
Conversation
@@ -179,6 +179,22 @@ public String[] deserialize(JsonParser p, DeserializationContext ctxt) throws IO | |||
} | |||
String[] result = buffer.completeAndClearBuffer(chunk, ix, String.class); | |||
ctxt.returnObjectBuffer(buffer); | |||
if (result != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can never be null
, let's remove check.
Should probably cover a few other types if we do this: specifically test
although I think both of these are handled by There are also ~7 or so primitive array deserializers but we can defer those I think. |
Never mind, decided to cover here |
CoercionConfig
not working on String[]
CoercionConfig
not working on Array deserialization
CoercionConfig
not working on Array deserializationCoercionConfig
for CoercionAction.AsNull
not working on empty array deserialization
@JooHyukKim Apologies for wasted work here -- only now realized this is not how |
fixes #4994