Package io.bkbn.kompendium.annotations.constraint

Annotations that place bespoke constraints on individual fields of your API schemas.

Types

Link copied to clipboard
annotation class Format(format: String)
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Maximum(max: String, exclusive: Boolean)
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class MaxItems(items: Int)
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class MaxLength(length: Int)
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class MaxProperties(properties: Int)
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Minimum(min: String, exclusive: Boolean)
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class MinItems(items: Int)
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class MinLength(length: Int)
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class MinProperties(properties: Int)
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class MultipleOf(multiple: String)
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Pattern(pattern: String)
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class UniqueItems