Created from inline TODO.
It is likely that creating an Ajv instance on every request, and then loading formats and coercions, is costly. These ajv instances should probably be loaded as app bindings (src/env.ts) and then accessed via context.
Original location(s)
|
export function validateData<T>( |
|
export function validateSchema( |