vapor

4.64.0

💧 A server-side Swift HTTP web framework.
vapor/vapor

What's New

Add support for regular expression validations

2022-07-25T15:04:52Z
This patch was authored by @K1NXZ and released by @0xTim.

Validate a regular expression pattern

Example:

struct TestContent: Codable, Validatable {
    static func validations(_ validations: inout Validations) {
        validations.add("numbersOnly", as: String.self, is: .pattern("^[0-9]*$"))
    }
    
    let numbersOnly: String
    
    init(numbersOnly: String) {
        self.numbersOnly = numbersOnly
    }
}

Vapor

Documentation Team Chat MIT License Continuous Integration Swift 5.2 Twitter


Vapor is an HTTP web framework for Swift. It provides a beautifully expressive and easy-to-use foundation for your next website, API, or cloud project.

Take a look at some of the awesome stuff created with Vapor.

💧 Community

Join the welcoming community of fellow Vapor developers on Discord.

🚀 Contributing

To contribute a feature or idea to Vapor, create an issue explaining your idea or bring it up on Discord.

If you find a bug, please create an issue.

If you find a security vulnerability, please contact security@vapor.codes as soon as possible.

💛 Sponsors

Support Vapor's development by becoming a sponsor.

Broken Hands Monstarlab Transeo omrd Jari MacStadium

💚 Backers

Support Vapor's development by becoming a backer.

analytics

Description

  • Swift Tools 5.4.0
View More Packages from this Author

Dependencies

Last updated: Sun Aug 07 2022 19:24:37 GMT-0500 (GMT-05:00)