All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ag.orbia.common.javax.annotations.Cnpj.kt Maven / Gradle / Ivy

package ag.orbia.common.javax.annotations

import ag.orbia.common.javax.validators.cnpj.CnpjValidator
import javax.validation.Constraint
import kotlin.reflect.KClass

/**
 * The annotated element must be a valid CNPJ.
 *
 * It ignores the formatting of the string. It only validates the CNPJ numbers.
 *
 * @since 1.0.0
 */
@Target(AnnotationTarget.FIELD)
@Retention(AnnotationRetention.RUNTIME)
@Constraint(validatedBy = [CnpjValidator::class])
annotation class Cnpj(
	val message: String = "CNPJ inválido",
	val groups: Array> = [],
	val payload: Array> = []
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy