Changed content type validation error key and message

This commit is contained in:
Paul Trudel 2024-04-18 15:29:34 -04:00
parent 17b370b8e6
commit 9ec21acb2e

View File

@ -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 {};
}