{"record":{"id":"a614674b147746b3","repo":"langgenius/dify","slug":"knowledge-fs-openapi-must-point-to-the-filtered-pi","errorCode":null,"errorMessage":"KNOWLEDGE_FS_OPENAPI must point to the filtered pinned export","messagePattern":"KNOWLEDGE_FS_OPENAPI must point to the filtered pinned export","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/contracts/openapi-ts.knowledge-fs.config.ts","lineNumber":6,"sourceCode":"import { $, defineConfig } from '@hey-api/openapi-ts'\n\nconst input = process.env.KNOWLEDGE_FS_OPENAPI\nconst outputPath = process.env.KNOWLEDGE_FS_OUTPUT ?? 'generated/knowledge-fs'\n\nif (!input) throw new Error('KNOWLEDGE_FS_OPENAPI must point to the filtered pinned export')\n\nexport default defineConfig({\n  input,\n  logs: {\n    file: false,\n  },\n  output: {\n    clean: true,\n    entryFile: false,\n    fileName: {\n      suffix: '.gen',\n    },\n    path: outputPath,\n  },\n  parser: {\n    patch: {\n      input: (spec) => {\n        const paths = spec.paths as Record<string, unknown> | undefined","sourceCodeStart":1,"sourceCodeEnd":24,"githubUrl":"https://github.com/langgenius/dify/blob/ef8544b173fd6cd7a8e71df2cab576e52bebbfbc/packages/contracts/openapi-ts.knowledge-fs.config.ts#L1-L24","documentation":"Error \"KNOWLEDGE_FS_OPENAPI must point to the filtered pinned export\" thrown in langgenius/dify.","triggerScenarios":"Thrown at packages/contracts/openapi-ts.knowledge-fs.config.ts:6 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"ef8544b173fd6cd7a8e71df2cab576e52bebbfbc","analyzedAt":"2026-08-12T05:15:17.394Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}