Repository navigation
Conversation
Generate the API schema from the TypeScript ApiIconSchema type and write it to schemas/api/v1/schema.json.
JimiC
requested review from
KingDarBoja,
NaufalK25,
remcohaszing and
robertohuertasm
October 27, 2026 14:44
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4459 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 72 72
Lines 7696 7767 +71
Branches 365 370 +5
=========================================
+ Hits 7696 7767 +71 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
robertohuertasm
left a comment
Member
There was a problem hiding this comment.
Hi @JimiC, thanks for this! 🙌
I checked out the branch locally. npm test passes, but npm run build:dev fails when it generates the schema. It also fails after a clean npm ci:
Unhandled Error: Error: Type check error
The underlying diagnostics are:
src/types/vscode.ts: Cannot find name 'Thenable'.
ts-json-schema-generator bundles its own typescript@^5.9.3 (pinned in the lockfile), which can't resolve Thenable with our tsconfig (we're on TS 6). CI doesn't catch this because it only runs npm test, where the generator is stubbed.
Suggestions:
- Fix: pass
skipTypeCheck: truetocreateGenerator.tscalready type-checks the project incompile:devright before, so nothing is lost. I tried it locally and it produces the expected schema. - Guard (optional, could be a follow-up): add a CI step that runs
npm run build:devand thengit diff --exit-code schemas/. That way, CI fails if the generation breaks again or ifApiIconSchemachanges without regenerating the schema.
Let me know what you think!
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes proposed:
Generate the API schema from the TypeScript ApiIconSchema type and write it to schemas/api/v1/schema.json.