Home / Function/ validateSchemaErrorFormatter() — fastify Function Reference

validateSchemaErrorFormatter() — fastify Function Reference

Architecture documentation for the validateSchemaErrorFormatter() function in fastify.js from the fastify codebase.

Entity Profile

Dependency Diagram

graph TD
  3d7f2bcf_c0e7_8919_8897_bf3c3c6a3428["validateSchemaErrorFormatter()"]
  2bf9986b_b7fb_0c78_f075_72fbe6f4672b["fastify.js"]
  3d7f2bcf_c0e7_8919_8897_bf3c3c6a3428 -->|defined in| 2bf9986b_b7fb_0c78_f075_72fbe6f4672b
  54cbea5e_a399_a298_5819_f2791a26c65c["fastify()"]
  54cbea5e_a399_a298_5819_f2791a26c65c -->|calls| 3d7f2bcf_c0e7_8919_8897_bf3c3c6a3428
  style 3d7f2bcf_c0e7_8919_8897_bf3c3c6a3428 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

fastify.js lines 961–967

function validateSchemaErrorFormatter (schemaErrorFormatter) {
  if (typeof schemaErrorFormatter !== 'function') {
    throw new FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN(typeof schemaErrorFormatter)
  } else if (schemaErrorFormatter.constructor.name === 'AsyncFunction') {
    throw new FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN('AsyncFunction')
  }
}

Domain

Subdomains

Defined In

Called By

Frequently Asked Questions

What does validateSchemaErrorFormatter() do?
validateSchemaErrorFormatter() is a function in the fastify codebase, defined in fastify.js.
Where is validateSchemaErrorFormatter() defined?
validateSchemaErrorFormatter() is defined in fastify.js at line 961.
What calls validateSchemaErrorFormatter()?
validateSchemaErrorFormatter() is called by 1 function(s): fastify.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free