Hi guys,
is possible to perform basic validation ? For example max-length on string :
public class MyBean {
private String name;
@JsonGetter("name")
@Min(value = 100)
public String getTheName() {
return name;
}
}
So this call :mapper.readValue(jsonString, MyBean.class)
would throw error in case thaht name is longer than 100 characters ?
Can be jackson (un)marshalling combined with JSR-303 ?
Thank you very much !
--
You received this message because you are subscribed to the Google Groups "jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jackson-user...@googlegroups.com.
To post to this group, send email to jackso...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Mon, Jul 25, 2016 at 1:11 PM, Martin Duris <mato....@gmail.com> wrote: