MCPcopy
hub / github.com/fastify/fastify / validateSchemaErrorFormatter

Function validateSchemaErrorFormatter

fastify.js:992–998  ·  view source on GitHub ↗
(schemaErrorFormatter)

Source from the content-addressed store, hash-verified

990}
991
992function validateSchemaErrorFormatter (schemaErrorFormatter) {
993 if (typeof schemaErrorFormatter !== 'function') {
994 throw new FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN(typeof schemaErrorFormatter)
995 } else if (schemaErrorFormatter.constructor.name === 'AsyncFunction') {
996 throw new FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN('AsyncFunction')
997 }
998}
999
1000/**
1001 * These export configurations enable JS and TS developers

Callers 2

fastifyFunction · 0.85
setSchemaErrorFormatterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…