users@jersey.java.net

[Jersey] Fwd: Modifying Validation Error Response

From: Ari King <ari.brandeis.king_at_gmail.com>
Date: Sat, 20 Jun 2015 18:32:26 +0100

Hi,

From the jersey docs
<https://jersey.java.net/documentation/latest/bean-validation.html#bv.ValidationError>
I
understand that jersey can be configured to use a custom entity (the
ValidationError class) to provide information regarding validation failure.

The ValidationError class has 4 properties which are by default included in
the response. Is it possible to configure which of those 4 properties are
included in the response? If yes, how?

Thanks.

Best,
Ari