package kz.konturai.parser.validator;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Documented
@Constraint(validatedBy = TargetAudienceValidator.class)
@Target({ ElementType.FIELD, ElementType.PARAMETER })
@Retention(RetentionPolicy.RUNTIME)
public @interface ValidTargetAudience {
    String message() default "Поле 'targetAudience' должно содержать валидную структуру с полями genders, ageRanges, types";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}

