Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Instance Method

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

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