Package-level declarations

Types

Link copied to clipboard
annotation class Alias(val oldName: String)

Specifies an alias for the configuration property.

Link copied to clipboard
annotation class Comment(val text: String)

Adds a comment to the configuration property.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Email

Validates that the string property value is a valid email address.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class FileExists

Validates that the file path represented by the string property exists on the file system.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Max(val value: Long)

Validates that the numeric property value is at most value.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Min(val value: Long)

Validates that the numeric property value is at least value.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Negative

Validates that the numeric property value is negative (less than zero).

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class NonNegative

Validates that the numeric property value is non-negative (greater than or equal to zero).

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class NotBlank

Validates that the string property value is not blank.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class NotEmpty

Validates that the string or collection property value is not empty.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Positive

Validates that the numeric property value is positive (greater than zero).

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Range(val min: Long = Long.MIN_VALUE, val max: Long = Long.MAX_VALUE)

Validates that the property value is within the specified min and max range.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Regex(val pattern: String)

Validates that the string property value matches the specified regex pattern.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Size(val min: Int = 0, val max: Int = Int.MAX_VALUE)

Validates that the size of the collection property is within the specified min and max range.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class URL

Validates that the string property value is a valid URL.