Skip to content

Commit

Permalink
Validation Annotation 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
youngreal committed Nov 1, 2024
1 parent 787d54a commit 1f8821d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<? extends Payload>[] payload() default {}; // 추가
Class<? extends java.lang.Enum<?>> enumClass();
}

0 comments on commit 1f8821d

Please sign in to comment.