A rule-based validation library for Swift