Removed Failable.validate(_:) method
This commit is contained in:
parent
ad1e67aabd
commit
8cfa61e69a
|
@ -55,11 +55,6 @@ public struct Failable<T, Validations> where Validations: Validation, Validation
|
|||
public subscript<Value>(keyPath path: KeyPath<T, Value>) -> Value {
|
||||
return self.value[keyPath: path]
|
||||
}
|
||||
|
||||
internal func validate(_ value: T)throws {
|
||||
try Validations.validate(value)
|
||||
try Validations.safeSubvalidations.forEach { validation in try validation.validate(value) }
|
||||
}
|
||||
}
|
||||
|
||||
extension CustomStringConvertible {
|
||||
|
|
Loading…
Reference in New Issue