MCPcopy Create free account
hub / github.com/fastify/fastify / setSchemaErrorFormatter

Function setSchemaErrorFormatter

fastify.js:728–733  ·  view source on GitHub ↗
(errorFormatter)

Source from the content-addressed store, hash-verified

726 }
727
728 function setSchemaErrorFormatter (errorFormatter) {
729 throwIfAlreadyStarted('Cannot call "setSchemaErrorFormatter"!')
730 validateSchemaErrorFormatter(errorFormatter)
731 this[kSchemaErrorFormatter] = errorFormatter.bind(this)
732 return this
733 }
734
735 function setSerializerCompiler (serializerCompiler) {
736 throwIfAlreadyStarted('Cannot call "setSerializerCompiler"!')

Callers

nothing calls this directly

Calls 2

throwIfAlreadyStartedFunction · 0.85

Tested by

no test coverage detected