Skip to content

[docs-sync] Update documentation for recent code changes - #4

Draft
github-actions[bot] wants to merge 1 commit into
mainfrom
docs-sync/update-2026-07-28-0f10d562234efe2f
Draft

[docs-sync] Update documentation for recent code changes#4
github-actions[bot] wants to merge 1 commit into
mainfrom
docs-sync/update-2026-07-28-0f10d562234efe2f

Conversation

@github-actions

Copy link
Copy Markdown

Summary

This PR updates the TCGC emitter guideline to document two recent additions to the TCGC public API.

Changes

website/src/content/docs/docs/libraries/typespec-client-generator-core/guideline.md

  1. SdkClientType.versionsEnum (introduced in #4977 / commit 84fe6d61):
    Added a paragraph in the Client section explaining the new optional versionsEnum property on SdkClientType. This property references the SdkEnumType representing the API versions enum for the client's service, allowing emitters to map a client to its versions enum — particularly useful for mixed API-version scenarios.

  2. streamMetadata / sseMetadata on body parameters and responses (introduced in #4882 / commit 383366f5):
    Added documentation in the HTTP Operation Parameters Handling and HTTP Operation Response Calculation sections for the new sseMetadata field (type SdkSseMetadata) added to SdkBodyParameter, SdkMethodResponse, and SdkHttpResponse. Also documented the newly added SdkSseMetadata and SdkSseEventMetadata interfaces, which give emitters the per-event information needed to deserialize SSE streams without re-deriving it from raw TypeSpec.

Not included

  • CI/pipeline changes (a665f432, 43e80a69) — no user-facing doc impact.
  • Rule markdown files in packages/*/src/rules/*.md (46683e57) — these are source files for generated website pages; the website pages themselves are regenerated by tspd doc and are .gitignored.
  • beb23044 (collection type serializationOptions) — already updated guideline.md in the same commit.
  • 91d21e94 (no-unnamed-types) — already updated the linter reference pages in the same commit.

Generated by Documentation Sync · 66.6 AIC · ⌖ 9.65 AIC · ⊞ 5.5K ·

- Add documentation for SdkClientType.versionsEnum, a new optional
  property that references the API versions enum for a client's service
  (added in Azure#4977)
- Document streamMetadata and sseMetadata on body parameters, describing
  SdkStreamMetadata and SdkSseMetadata / SdkSseEventMetadata structures
  added for SSE event-stream support (added in Azure#4882)
- Document streamMetadata and sseMetadata on HTTP responses

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants