Skip to content

feat(tcgc): add isPreview to SdkPackageType metadata - #5071

Open
iscai-msft wants to merge 1 commit into
Azure:mainfrom
iscai-msft:iscai-msft-tcgc-ispreview-metadata
Open

feat(tcgc): add isPreview to SdkPackageType metadata#5071
iscai-msft wants to merge 1 commit into
Azure:mainfrom
iscai-msft:iscai-msft-tcgc-ispreview-metadata

Conversation

@iscai-msft

Copy link
Copy Markdown
Contributor

Adds isPreview field to SdkPackageType.metadata so language emitters can determine whether the resolved API version is a preview version.

Split out from #5065.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the lib:tcgc Issues for @azure-tools/typespec-client-generator-core library label Jul 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

All changed packages have been documented.

  • @azure-tools/typespec-client-generator-core
Show changes

@azure-tools/typespec-client-generator-core - feature ✏️

Add isPreview boolean to SdkPackageType.metadata to indicate whether the SDK targets any preview API versions.

@pkg-pr-new

pkg-pr-new Bot commented Jul 27, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@azure-tools/typespec-client-generator-core@5071

commit: 3f7e6e5

@azure-sdk-automation

Copy link
Copy Markdown
Contributor

You can try these changes here

🛝 Playground 🌐 Website

Add an isPreview boolean field to sdkPackage.metadata so consumers can
determine if the SDK targets preview API versions without recomputing
from version strings.

- true if any targeted API version matches the preview string regex
- false if all versions are stable
- undefined if no versioning is present

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 4d3f5528-7e0e-4828-ab85-b85ba9dffc5d
@iscai-msft
iscai-msft force-pushed the iscai-msft-tcgc-ispreview-metadata branch from 0aa5c09 to 3f7e6e5 Compare July 27, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lib:tcgc Issues for @azure-tools/typespec-client-generator-core library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant