OK, I have created an isssue.
https://github.com/FasterXML/jackson-module-kotlin/issues/934
Please reply to the discussion here.
2025年3月22日土曜日 14:53:33 UTC+9 Joo Hyuk Kim:
> I would like to suggest bring this to GH discussion for more ideas.
>
> 2025년 3월 22일 (토) 오후 2:50, wrongwrong 님이 작성:
>
>>
I would like to suggest bring this to GH discussion for more ideas.
2025년 3월 22일 (토) 오후 2:50, wrongwrong 님이 작성:
> Thank you all for the replies.
>
> > If I understand your problem correctly, IllegalArgumentException would
> be the most appropriate choice because null is a valid response
> from r
Thank you all for the replies.
> If I understand your problem correctly, IllegalArgumentException would
be the most appropriate choice because null is a valid response
from readValue.
In edge cases, the return value of readValue may not be valid.
Since ObjectMapper can be inherited, it is poss
Or consider InvalidNullException?
Its doc says...
/**
* Exception thrown if a `null` value is being encountered for a property
* designed as "fail on null" property (see {@link
com.fasterxml.jackson.annotation.JsonSetter}).
*
* @since 2.9
*/
public class InvalidNullException
On Sat, Mar 22,
Hi,
If I understand your problem correctly, IllegalArgumentException would be
the most appropriate choice because null is a valid response from readValue.
The additional restriction is being imposed by the client, making
IllegalArgumentException the right fit for enforcing this constraints.
Thank
Hello everyone, I'm looking for advice on implementation in kotlin-module.
The ObjectMapper.readValue may return null as a result.
On the other hand, in the kotlin-module extension, if the user calls
readValue expecting non-null, an error should be thrown if the result is
null(https://github.com