FasterXML / FasterXML/jackson-modules-java8

`InstantDeserializer` is not respecting leniency w.r.t. to numeric values

Open
#217 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
425
Forks
124
PR merge metrics
No merged PRs in 30d

Description

We annotated some constructor properties with @JsonFormat(lenient = OptBoolean.FALSE) but found that the InstantDeserializer is not applying it when deserializing numeric values.

Expected _failForNotLenient(parser, context, JsonToken.VALUE_STRING) to be invoked for the numeric cases in InstantDeserialize#deserialize when _not_ lenient.

(It looks like LocalDateDeserializer implementation is applying leniency in the case of an integer value as expected; InstantDeserializer should implement similarly.)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.