💧 A server-side Swift HTTP web framework.

What's New

Add support for regular expression validations

This patch was authored by @K1NXZ and released by @0xTim.

Validate a regular expression pattern


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


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 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.



  • Swift Tools 5.4.0
View More Packages from this Author


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