/*
 * Annotation that marks a field for content safety validation.
 *
 * Author: Harkamal
 * Date: April 2026
 */

package com.petshop.backend.util;

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

@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = SafeContentValidator.class)
public @interface SafeContent {
    String message() default "Content contains prohibited characters or scripts";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
}
