Closed
Description
When something is annotated with @JacksonInject
, if the ObjectMapper
doesn't have injectable values set, it will fail with Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No 'injectableValues' configured, cannot inject value with id [<name of injectable value>]
. And there's a different error if the value doesn't exist on the injectable values object.
I'd like to be able to annotation things with @JacksonInject
like so:
@JacksonInject(value = "myValue", optional = true)
private String myValue;
Additionally, there could also be a DeserializationFeature
called something like FAIL_ON_UNKNOWN_INJECT_VALUE
that defaults to true.