Skip to content

Instance Method

add(_:as:is:required:customFailureDescription:)

mutating func add<T>(_ key: ValidationKey, as type: T.Type = T.self, is validator: Validator<T> = .valid, required: Bool = true, customFailureDescription: String? = nil) where T : Decodable, T : Sendable