@fastify/ajv-compiler
Version:
Build and manage the AJV instances for the fastify framework
15 lines (12 loc) • 318 B
JavaScript
const fastUri = require('fast-uri')
module.exports = Object.freeze({
coerceTypes: 'array',
useDefaults: true,
removeAdditional: true,
uriResolver: fastUri,
addUsedSchema: false,
// Explicitly set allErrors to `false`.
// When set to `true`, a DoS attack is possible.
allErrors: false
})