Skip to content

Commit 968fa49

Browse files
axe ruby generation script details
1 parent 1fa07cd commit 968fa49

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

AGENTS.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -275,18 +275,6 @@ Entry point for response type generation. It:
275275
3. Executes `scripts/code_generator.rb`
276276
4. Runs `npm run lint:fix` on `packages/web-api`
277277

278-
### `scripts/code_generator.rb`
279-
280-
The Ruby script that does the actual generation:
281-
282-
- Iterates over JSON files in `tmp/java-slack-sdk/json-logs/samples/api/`
283-
- Converts method names to PascalCase (e.g., `chat.postMessage``ChatPostMessage`)
284-
- Runs quicktype with `--just-types --all-properties-optional` to generate TypeScript interfaces
285-
- Prepends a "DO NOT EDIT" banner and `import type { WebAPICallResult } from '../../WebClient'`
286-
- Converts the root interface to a type alias intersected with `WebAPICallResult`
287-
- Regenerates `packages/web-api/src/types/response/index.ts` with all exports
288-
- Special handling: `admin.analytics.getFile` exports multiple types (`AdminAnalyticsGetFileResponse`, `AdminAnalyticsMemberDetails`, `AdminAnalyticsPublicChannelDetails`, `AdminAnalyticsPublicChannelMetadataDetails`)
289-
290278
## Testing
291279

292280
- **Unit tests**: Mocha + chai + sinon (`*.spec.ts` files), coverage via c8

0 commit comments

Comments
 (0)