NotNilValidate
public struct NotNilValidate<V>: Validation where V: Validation
Validates a value if it is not nil
. If the value is nil
, the validation is skipped.
-
Declaration
Swift
public static func validate(_ value: Optional<V.Supported>)throws