Support new @JsonProperty.isRequired
for overridable definition of "required-ness"
#5020
Labels
2.19
Issues planned at 2.19 or later
Describe your Issue
Now that
@JsonProperty
has "nullable"isRequired
property (see FasterXML/jackson-annotations#284),JacksonAnnotationIntrospector
needs to support it.Logic is such that:
isRequired
has value other thanOptBoolean.DEFAULT
, it is used as THE choice of required-nessrequired = true
, property is requiredrequired = false
), eitherThis logic is specifically meant to allow finer-grain overridability with working defaults: before this change, setting of
@JsonProperty.required
-- and often, specifically, its default (false
) setting was used.The text was updated successfully, but these errors were encountered: