feat: add container and input models in toc using new toc command#275
Merged
feat: add container and input models in toc using new toc command#275
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the portal TOC generation flow to use a new “toc” backend command that returns structured TOC data (including container models and input models), and expands the generated TOC “Models” section into subgroups.
Changes:
- Added TOC page types for container models and input models, plus a new
TocDatacontract and extraction helpers. - Switched TOC generation from SDL-based extraction to
TableOfContentsController.generateTocData(...)inPortalService. - Updated TOC structure generation to group models into “Structures / Enumerations / Exceptions / OneOf/AnyOf Definitions”.
Reviewed changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| src/types/toc/toc.ts | Adds TOC page interfaces for container and input model entries. |
| src/types/toc/toc-data.ts | New TocData contract and helpers to convert it into TOC components. |
| src/types/sdl/sdl.ts | Updates SDL type definitions (adds fields, removes old TOC extraction helpers). |
| src/prompts/portal/toc/new-toc.ts | Renames spinner method to extractTocData and updates spinner strings. |
| src/infrastructure/services/portal-service.ts | Adds generateTocData using TableOfContentsController. |
| src/application/portal/toc/toc-structure-generator.ts | Expands “Models” section into multiple subgroups and supports additional model categories. |
| src/actions/portal/toc/new-toc.ts | Switches action flow to request/consume TocData and pass new model-group structure to generator. |
| package.json | Changes @apimatic/sdk to a local tarball dependency and adds it to the publish file list. |
| package-lock.json | Updates lockfile to reflect the local tarball SDK dependency and version bump. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
saeedjamshaid
approved these changes
May 7, 2026
|
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.


No description provided.