An open API service indexing awesome lists of open source software.

https://github.com/3sidedcube/validation

A simple Swift password validation framework
https://github.com/3sidedcube/validation

Last synced: 10 months ago
JSON representation

A simple Swift password validation framework

Awesome Lists containing this project

README

          

# Validation

```swift
let password = "password"
let failedRules = password.validate(with: [
MinCountRule(min: 5),
MaxCountRule(max: 20),
SpecialCharacterRule(),
LowercaseRule(),
UppercaseRule(),
NumericRule()
])

failedRules.count // 3
failedRules // [SpecialCharacterRule, UppercaseRule, NumericRule]
```