Files
spring-boot-demo/validation/output/02-constraint-mistakes.txt
T

13 lines
686 B
Plaintext

== @Size on an Integer compiles, and fails when first validated
jakarta.validation.UnexpectedTypeException
HV000030: No validator could be found for constraint 'jakarta.validation.constraints.Size' validating type 'java.lang.Integer'. Check configuration for 'quantity'
== @NotBlank on an Integer
HV000030: No validator could be found for constraint 'jakarta.validation.constraints.NotBlank' validating type 'java.lang.Integer'. Check configuration for 'quantity'
== an unescaped dot in @Email(regexp): value a@bcom
strict: must be a well-formed email address
== @Positive plus @Min(18) on age = -1 reports both
age: must be greater than 0 | age: must be greater than or equal to 18