package cn.lihongjie.coal.validator;

import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import jakarta.validation.*;
import jakarta.validation.constraints.*;

import java.lang.annotation.*;
import java.lang.annotation.Documented;
import java.util.*;

@NotNull
@Target({ TYPE, ANNOTATION_TYPE, TYPE_USE })
@Require(field = "name")
@Retention(RUNTIME)
@Constraint(validatedBy = { })
@Documented
@ReportAsSingleViolation
public @interface RequireName {

    String message() default "{require.name}";

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

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