@karmaniverous/jeeves
    Preparing search index...

    Interface RegisterCatalogRoutesOptions

    Options for registerCatalogRoutes.

    interface RegisterCatalogRoutesOptions {
        formatValidationError?: (
            issues: CatalogValidationIssue[],
            request: FastifyRequest,
        ) => { error: string; [key: string]: unknown };
        logger?: CatalogRouteLogger;
        responseValidation?: "strict" | "log";
    }
    Index
    formatValidationError?: (
        issues: CatalogValidationIssue[],
        request: FastifyRequest,
    ) => { error: string; [key: string]: unknown }

    Body for a 400 reply to an invalid request. Default { error: 'Request validation failed', issues }.

    Where response mismatches are logged. Default: Fastify's logger, which logs nothing when the app was created with logger: false.

    responseValidation?: "strict" | "log"

    What a response that doesn't match its schema does: 'strict' (default) logs at error and replies 500; 'log' logs at warn and sends the handler's body unchanged.