Static Methodvapor 4.106.3Vapor
range(_:)
Validates that the data is within the supplied ClosedRange
.
static func range(_ range: ClosedRange<T>) -> Validator<T>
Other members in extension
Type members
static func range(PartialRangeFrom<T>
) -> Validator<T> Validates that the data is greater than or equal the supplied lower bound using
PartialRangeFrom
.static func range(PartialRangeThrough<T>
) -> Validator<T> Validates that the data is less than or equal to the supplied upper bound using
PartialRangeThrough
.