A validation library for server-side Swift projects.
- Key-value based validation primitives
- Composable rules for string and integer validation
- Async and grouped validation strategies
- Foundation-based rules for URL, email, password, and character sets
-
Swift 6.1+
-
Platforms:
- Linux
- macOS 15+
- iOS 18+
- tvOS 18+
- watchOS 11+
- visionOS 2+
Use Swift Package Manager; add the dependency to your Package.swift file:
.package(url: "https://github.com/feather-framework/feather-validation.git", exact: "1.0.0-beta.1"),Then add FeatherValidation (and optionally FeatherValidationFoundation) to your target dependencies:
.product(name: "FeatherValidation", package: "feather-validation"),
.product(name: "FeatherValidationFoundation", package: "feather-validation"),Validation examples are available in:
Tests/FeatherValidationTests/FeatherValidationTestSuite.swiftTests/FeatherValidationFoundationTests/Rule+CharacterSetTestSuite.swiftTests/FeatherValidationFoundationTests/Rule+EmailTestSuite.swiftTests/FeatherValidationFoundationTests/Rule+PasswordTestSuite.swiftTests/FeatherValidationFoundationTests/Rule+URLTestSuite.swift
Warning
This repository is a work in progress, things can break until it reaches v1.0.0.
- Build:
swift build - Test:
make test - Format:
make format - Lint:
make lint
Pull requests are welcome. Please keep changes focused and include tests for new logic.