package dev.lions.unionflow.client.validation;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;
import java.lang.annotation.*;

@Documented
@Constraint(validatedBy = MemberNumberValidator.class)
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface ValidMemberNumber {
    
    String message() default "Numéro de membre invalide. Format attendu: M + année + numéro (ex: M2024001)";
    
    Class<?>[] groups() default {};
    
    Class<? extends Payload>[] payload() default {};
}
