Skip to content

docs(http-client-java): document how to inspect TCGC SDK output for a spec - #11421

Merged
weidongxu-microsoft merged 2 commits into
microsoft:mainfrom
weidongxu-microsoft:weidongxu/doc-tcgc-output-verification
Jul 28, 2026
Merged

docs(http-client-java): document how to inspect TCGC SDK output for a spec#11421
weidongxu-microsoft merged 2 commits into
microsoft:mainfrom
weidongxu-microsoft:weidongxu/doc-tcgc-output-verification

Conversation

@weidongxu-microsoft

Copy link
Copy Markdown
Contributor

Adds a generic step to the http-client-java code-generator instructions describing how to inspect the TCGC SDK model for a spec.

The emitter is built on top of TCGC (@azure-tools/typespec-client-generator-core). When investigating how a type is named, whether a response has a body vs. only headers, how operations are nested under clients, etc., it is often more reliable to inspect what TCGC hands to the emitter than to add debug logging in the emitter.

The documented flow runs TCGC as the emitter to dump tcgc-output.yaml (the serialized SdkPackage):

npx tsp compile <path-to-tsp> --emit @azure-tools/typespec-client-generator-core --option "@azure-tools/typespec-client-generator-core.emitter-output-dir=$PWD/tcgc-output"

This is the SDK view upstream of code-model.yaml, requires no emitter/generator changes, and should not be committed (verification-only).

Docs-only change.

… spec

Add a generic step to the code-generator instructions describing how to dump
the TCGC SDK model (tcgc-output.yaml) by running
@azure-tools/typespec-client-generator-core as the emitter, to inspect the
SDK view upstream of code-model.yaml without adding emitter debug logging.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: c5e83986-de71-4e8d-bfaa-abb4b62cb3a3
@github-actions

Copy link
Copy Markdown
Contributor

No changes needing a change description found.

@azure-sdk-automation

azure-sdk-automation Bot commented Jul 28, 2026

Copy link
Copy Markdown

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

Relocate the TCGC SDK-model inspection guidance into a concise subsection
of the 'Edit -> update emitter -> test loop' section, since it is a helper
for that loop, and tighten the wording.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: c5e83986-de71-4e8d-bfaa-abb4b62cb3a3
@weidongxu-microsoft
weidongxu-microsoft added this pull request to the merge queue Jul 28, 2026
Merged via the queue into microsoft:main with commit f2547d6 Jul 28, 2026
32 checks passed
@weidongxu-microsoft
weidongxu-microsoft deleted the weidongxu/doc-tcgc-output-verification branch July 28, 2026 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants