When a field has a minimum/maximum specified, with the exclusive parameter set, e.g.
aNumber:
type: numberminimum: 2exclusiveMinimum: true
The generated Java Bean Validation code isn't correct.
E.g. Current incorrect code:
@Valid@DecimalMin("2")
publicBigDecimalgetANumber() {Expected code:
@Valid@DecimalMin(value="2",inclusive=false)
publicBigDecimalgetANumber() {Tested with Spring Generator (both spring-boot and spring-cloud libraries), but I believe all Java libraries are using the same validation generation code.
When a field has a minimum/maximum specified, with the exclusive parameter set, e.g.
The generated Java Bean Validation code isn't correct.
E.g. Current incorrect code:
Expected code:
Tested with Spring Generator (both spring-boot and spring-cloud libraries), but I believe all Java libraries are using the same validation generation code.