Improve error handling of "joda-money" MoneyDeserializer
, CurrencyUnitDeserializer
#8
Labels
joda-money
Issue related joda-money datatype module
Milestone
As of 2.12, no validation is done for case of missing monetary amount or unit, and failure propagates as NPE -- unit test even verifies that. But that seems like a pretty bad user experience. Instead, let's validate this properly and indicate using
DeserializationContext.reportInputMismatch()
.Probably also makes sense to check handling of currency unit as well; seems better to give Jackson-specific exception for unknown unit than expose library-specific one.
The text was updated successfully, but these errors were encountered: