Closed itzg closed 4 years ago
Currently I find that I have to declare a field's default three ways, but it sure would be nice to get that down to two since the defaultValue of @JsonProperty is always going to be exactly the same string as value of @JsonSchemaDefault, such as:
defaultValue
@JsonProperty
value
@JsonSchemaDefault
@JsonSchemaDefault("true") @JsonProperty(defaultValue = "true") boolean totalcpu = true;
I would like to be able to use just:
@JsonProperty(defaultValue = "true") boolean totalcpu = true;
with a resulting schema:
"totalcpu": { "type": "boolean", "default": true },
Included in version 1.0.38 released just now. It is on its way to maven central
Currently I find that I have to declare a field's default three ways, but it sure would be nice to get that down to two since the
defaultValue
of@JsonProperty
is always going to be exactly the same string asvalue
of@JsonSchemaDefault
, such as:I would like to be able to use just:
with a resulting schema: