thanksforallthefish
10/20/2020, 5:58 AMclass MyRestRepresentation(@get:NotBlank val notBlank: String)
and someone makes an http call like
POST { notBlank: null }
kotlin will throw an exception (jackson will actually) before validation happens. this messes up the error response a bit, since with javax validation we get a nice path to the property that fails validation oob, while otherwise we probably need to do it manually, if at all possible. is Spring working on something like doing validation before before or some other approach or is my best option to declare notBlank
as String?
and just read it as notBlank!!
?kqr
10/20/2020, 7:13 AMthanksforallthefish
10/20/2020, 7:15 AMkqr
10/20/2020, 7:17 AMJacob
10/20/2020, 2:11 PMthanksforallthefish
10/20/2020, 2:22 PM