Merge w/ master

This commit is contained in:
Mathew Polzin
2019-08-04 09:02:04 -07:00
4 changed files with 304 additions and 0 deletions
@@ -42,6 +42,8 @@ extension Validator {
return value
}
/// Validate the given value and then return it if valid.
/// throws if invalid.
public static func validate(_ value: To) throws -> To {
let _ = try transform(value)
return value