I defined missingRatio variable in my openApi yaml file as below. Openapi version is "3.0.0"
api.yaml
missingRatio:
type: number
format: float
minimum: 0.1
maximum: 0.3
default: 0.2
multipleOf: 0.1
description: "Ratio of data to remove for validation"
But unfortunately in generated code min and max values are set to 0. So when I use, it only accepts 0 as value.
generated code
/**
* Ratio of data to remove for validation
* minimum: 0
* maximum: 0
* @return missingRatio
**/
@ApiModelProperty(value = "Ratio of data to remove for validation")
@DecimalMin("0") @DecimalMax("0")
public Float getMissingRatio() {
return missingRatio;
}
How Can I resolve this issue?