Conversation
There was a problem hiding this comment.
Bug: API Docs Endpoint Fails Due to Missing JSON File
The handler attempts to serve the API documentation at the /docs.json endpoint by reading openapi.json from path.resolve(__dirname, 'openapi.json'). However, __dirname points to the compiled dist directory, and the openapi.json file is not present there. The provided diff also indicates that OpenAPI specifications are structured as individual files in an openapi/ subdirectory, suggesting openapi.json may not exist as a single file or requires a build step to be generated. This leads to a runtime "file not found" error.
packages/slack/sls/src/index.ts#L21-L24
microfox/packages/slack/sls/src/index.ts
Lines 21 to 24 in 1931fb9
Bug: SDKConfig Missing Required Property
The SDKConfig interface no longer explicitly declares SLACK_BOT_TOKEN as a required property, despite the sdkInit function still expecting it and throwing an error if missing. This creates a type safety issue where TypeScript won't enforce its presence, leading to potential runtime failures.
packages/slack/sls/src/sdkInit.ts#L2-L12
microfox/packages/slack/sls/src/sdkInit.ts
Lines 2 to 12 in 1931fb9
Was this report helpful? Give feedback by reacting with 👍 or 👎
No description provided.