dimsuz
04/09/2021, 6:01 PMRoukanken
04/09/2021, 6:12 PMval validator = PersonDraftValidatorBuilder<String>()
.hasNotNullAgeAtLeast(age = 18, "expected not null age of at least 18 years old")
.build()
is this correct in the readme? Shouldn't it be
.age(hasNotNullAgeAtLeast(...))
?dimsuz
04/09/2021, 6:14 PMBig Chungus
04/09/2021, 6:15 PMdimsuz
04/09/2021, 6:17 PMBig Chungus
04/09/2021, 6:20 PMdimsuz
04/09/2021, 6:24 PMstojan
04/09/2021, 6:36 PMdimsuz
04/09/2021, 8:02 PMBig Chungus
04/09/2021, 8:04 PMdimsuz
04/09/2021, 8:05 PMMatteo Mirk
04/12/2021, 1:55 PMAndrzej
04/12/2021, 3:31 PMdimsuz
04/12/2021, 9:02 PM!!
everywhere for example when nullable form field is non-null in resulting model.
As for you second point, it's actually more like a parser with configurable rules, it parses one structure into another, with possible errors if parsing fails. For motivation you can read the excellent "Parse don't validate" article linked in this thread above.Matteo Mirk
04/13/2021, 7:23 AM