{"record":{"id":"4dd4a2557ceda64d","repo":"perspective-dev/perspective","slug":"docs-corpus-path-missing-skipping-type-sch","errorCode":null,"errorMessage":"docs corpus: ${path} missing, skipping ${type} schema","messagePattern":"docs corpus: (.+?) missing, skipping (.+?) schema","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"rust/perspective-viewer/tools.mjs","lineNumber":286,"sourceCode":"        return Object.fromEntries(\n            Object.entries(node).map(([k, v]) => [k, walk(v)]),\n        );\n    };\n\n    const out = walk(schema);\n    for (const name of mangled.keys()) {\n        delete out.definitions[name];\n    }\n\n    return out;\n}\n\nasync function buildToolSchemas() {\n    const { createGenerator } = await import(\"ts-json-schema-generator\");\n    const schemas = {};\n    for (const [type, path] of TOOL_SCHEMA_TYPES) {\n        if (!fs.existsSync(path)) {\n            console.warn(\n                `docs corpus: ${path} missing, skipping ${type} schema`,\n            );\n            continue;\n        }\n\n        schemas[type] = inlineMangledDefinitions(\n            createGenerator({\n                path,\n                type,\n                skipTypeCheck: true,\n                topRef: true,\n            }).createSchema(type),\n        );\n    }\n\n    return schemas;\n}\n","sourceCodeStart":268,"sourceCodeEnd":304,"githubUrl":"https://github.com/perspective-dev/perspective/blob/11c8238c0c9c0b9e490b5a6a2dc277afad1e980a/rust/perspective-viewer/tools.mjs#L268-L304","documentation":"Warning in the docs-corpus build script: one of the tool schema source files listed in TOOL_SCHEMA_TYPES does not exist on disk, so the JSON schema for that tool type is skipped and omitted from the generated corpus. It signals an incomplete docs build, not a runtime failure.","triggerScenarios":"Thrown at rust/perspective-viewer/tools.mjs:286 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Build the missing source (usually generated .d.ts or .ts artifacts) before running the docs corpus step","Check the path in TOOL_SCHEMA_TYPES against the actual build output directory","Verify a prior build step wasn't skipped or failed silently","Regenerate artifacts with a clean build if paths changed in a refactor"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"11c8238c0c9c0b9e490b5a6a2dc277afad1e980a","analyzedAt":"2026-09-09T00:35:19.377Z","contentChangedAt":"2026-09-09T00:35:19.377Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}