File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
http-inject-plugin/src/main/java/io/avaje/http/inject Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 99import io .avaje .http .api .ValidationException .Violation ;
1010
1111public class ValidationResponse {
12-
13- private static String type = "tag:io.avaje.http.api.ValidationException" ;
12+
1413 private static String title = "Request Failed Validation" ;
15- private static String detail = "You tried to call this endpoint, but your data failed validation " ;
14+ private static String detail = "You tried to call this endpoint, but a io.avaje.http.api.ValidationException was thrown " ;
1615 private final int status ;
1716 private final List <Violation > errors ;
1817 private final String instance ;
@@ -32,8 +31,6 @@ public void toJson(OutputStream os) throws IOException {
3231
3332 private void writeJsonInternal (Writer writer ) throws IOException {
3433 writer .write ('{' );
35- writeKeyValue ("type" , type , writer );
36- writer .write (',' );
3734 writeKeyValue ("title" , title , writer );
3835 writer .write (',' );
3936 writeKeyValue ("detail" , detail , writer );
You can’t perform that action at this time.
0 commit comments