Functions

The following functions are available globally.

  • Undocumented

    Declaration

    Swift

    public func handleValidationError(
        path: String,
        message: String = "Something went wrong while validating the form.",
        on req: Request
    ) -> (Error) throws -> Future<Response>
  • Undocumented

    Declaration

    Swift

    public func handleValidationError<E: Encodable>(
        path: String,
        message: String = "Something went wrong while validating the form.",
        context: E,
        on req: Request
    ) -> (Error) throws -> Future<Response>