Static Methodvapor 4.114.1Vapor
validate(_:)
Validatable.swift:32static func validate(_ decoder: Decoder) throws
static func validate(_ decoder: Decoder) throws
import Vapor
Vapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
protocol Validatable
Capable of being validated. Conformance adds a throwing validate()
method.
protocol Decoder
A type that can decode values from a native format into in-memory representations.
static func validate(content request: Request) throws
static func validate(json: String) throws
static func validate(query: URI) throws
static func validate(query request: Request) throws
static func validations() -> Validations
static func validate(_ request: Request) throws