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

Function validateSchemaErrorFormatter

fastify.js:992–998  ·  fastify.js::validateSchemaErrorFormatter
(schemaErrorFormatter)

Source from the content-addressed store, hash-verified

990}
991
992function validateSchemaErrorFormatter (schemaErrorFormatter) {
993 if (typeof schemaErrorFormatter !== class="st">'function') {
994 throw new FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN(typeof schemaErrorFormatter)
995 } else if (schemaErrorFormatter.constructor.name === class="st">'AsyncFunction') {
996 throw new FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN(class="st">'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