https://github.com/feather-framework/feather-validation
A generic purpose validation library for server side Swift projects.
https://github.com/feather-framework/feather-validation
Last synced: 5 months ago
JSON representation
A generic purpose validation library for server side Swift projects.
- Host: GitHub
- URL: https://github.com/feather-framework/feather-validation
- Owner: feather-framework
- License: mit
- Created: 2023-05-20T09:05:21.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-10T09:49:30.000Z (about 2 years ago)
- Last Synced: 2024-04-11T10:04:52.637Z (about 2 years ago)
- Language: Swift
- Homepage: https://binarybirds.com
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Feather Validation
A generic purpose validation library for server side Swift projects.
## Getting started
⚠️ This repository is a work in progress, things can break until it reaches v1.0.0.
Use at your own risk.
### Adding the dependency
To add a dependency on the package, declare it in your `Package.swift`:
```swift
.package(url: "https://github.com/feather-framework/feather-validation.git", .upToNextMinor(from: "0.1.1")),
```
and to your application target, add `FeatherValidation` to your dependencies:
```swift
.product(name: "FeatherValidation", package: "feather-validation")
```
Example `Package.swift` file with `FeatherValidation` as a dependency:
```swift
// swift-tools-version:5.9
import PackageDescription
let package = Package(
name: "my-application",
dependencies: [
.package(url: "https://github.com/feather-framework/feather-validation.git", .upToNextMinor(from: "0.1.1")),
],
targets: [
.target(name: "MyApplication", dependencies: [
.product(name: "FeatherValidation", package: "feather-validation")
]),
.testTarget(name: "MyApplicationTests", dependencies: [
.target(name: "MyApplication"),
]),
]
)
```
### Using FeatherValidation
See the `FeatherValidationTests` target for validation examples.