Skip to content

Commit

Permalink
♻️ PhotoValidation 누락된 메서드들 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
youngreal committed Nov 1, 2024
1 parent 6878360 commit 3fed7ad
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@
import java.lang.annotation.Target;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;

@Constraint(validatedBy = {PhotoValidator.class})
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
public @interface PhotoValidation {
String message() default "invalid photo size";
Class<?>[] groups() default {};
Class<? extends Payload>[] payload() default {};
}

0 comments on commit 3fed7ad

Please sign in to comment.