Describe your Issue
Now that @JsonProperty has "nullable" isRequired property (see FasterXML/jackson-annotations#284), JacksonAnnotationIntrospector needs to support it.
Logic is such that:
- if
isRequired has value other than OptBoolean.DEFAULT, it is used as THE choice of required-ness
- otherwise if
required = true, property is required
- otherwise (
required = false), either
- Property is NOT required (Jackson 2.x)
- Property MAY OR MAY NOT BE required wrt annotation (higher-level defaults used)
This 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.
Describe your Issue
Now that
@JsonPropertyhas "nullable"isRequiredproperty (see FasterXML/jackson-annotations#284),JacksonAnnotationIntrospectorneeds to support it.Logic is such that:
isRequiredhas 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.