diff --git a/src/main/java/com/dnd/dndtravel/auth/controller/request/validation/ColorValidation.java b/src/main/java/com/dnd/dndtravel/auth/controller/request/validation/ColorValidation.java index b8c5961..ee8cde9 100644 --- a/src/main/java/com/dnd/dndtravel/auth/controller/request/validation/ColorValidation.java +++ b/src/main/java/com/dnd/dndtravel/auth/controller/request/validation/ColorValidation.java @@ -6,11 +6,14 @@ import java.lang.annotation.Target; import jakarta.validation.Constraint; +import jakarta.validation.Payload; @Constraint(validatedBy = {ColorValidator.class}) @Target(ElementType.FIELD) @Retention(RetentionPolicy.RUNTIME) public @interface ColorValidation { String message() default "invalid region"; + Class[] groups() default {}; // 추가 + Class[] payload() default {}; // 추가 Class> enumClass(); }