Pablo-Aldana
commented
Feb 22, 2022
Read more
Koa is a new web framework designed by the team behind Express,
which aims to be a smaller, more expressive, and more robust foundation
for web applications and APIs. By leveraging async functions, Koa allows you
to ditch callbacks and greatly increase error-handling. Koa does not bundle any
middleware within its core, and it provides an elegant suite of methods that make
writing servers fast and enjoyable.
I've read the docs, and it seems you can pass through knex instances, but I didn't see if it supports SQLite3 - could you clarify please?
Add ajv-errors message customization support.
Ref: https://www.npmjs.com/package/ajv-errors
Related: #833
Configuration:
const Ajv = require("ajv").default
const ajv = new Ajv({allErrors: true})
// Ajv option allErrors is required
require("ajv-errors")(ajv /*, {singleError: true} */)
const schema = {
type: "object",
required: ["foo"],
p