Changed content type validation error key and message
This commit is contained in:
parent
17b370b8e6
commit
9ec21acb2e
@ -15,8 +15,8 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
||||
@Retention(RUNTIME)
|
||||
public @interface ContentTypeConstraint {
|
||||
|
||||
String key() default "contentTypeError";
|
||||
String message() default "Request content type is not supported or no Content-Type header was specified";
|
||||
String key() default "unsupportedContentType";
|
||||
String message() default "POST request Content-Type is missing or unsupported";
|
||||
Class<?>[] groups() default {};
|
||||
Class<? extends Payload>[] payload() default {};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user