Repository navigation
Cherry-pick: feat(typespec-metadata): add apiVersion field using TCGC resolution (#5065) - #5087
Closed
iscai-msft wants to merge 1 commit into
Closed
iscai-msft wants to merge 1 commit into
iscai-msft wants to merge 1 commit into
Conversation
iscai-msft
requested review from
Brian Terlson (bterlson),
Mark Cowlishaw (markcowl) and
Timothee Guerin (timotheeguerin)
as code owners
July 28, 2026 19:23
…5065) Adds an `apiVersion` field to the `LanguagePackageMetadata` interface in `packages/typespec-metadata`, resolved via `createSdkContext` from `@azure-tools/typespec-client-generator-core`. - **`src/metadata.ts`**: Added `apiVersion?: string` to `LanguagePackageMetadata` with doc comment explaining possible values - **`src/emitter.ts`**: Calls `createSdkContext` and resolves `sdkPackage.metadata.apiVersions` map - **`src/collector.ts`**: Threads `resolvedApiVersion` through `collectLanguagePackages` → `buildLanguageMetadata` → `createLanguageMetadata` - **`package.json`**: Added `@azure-tools/typespec-client-generator-core` as `"workspace:^"` dependency - **`test/collector.test.ts`**: Added "apiVersion extraction" describe block with 5 tests | Map state | Resolved value | |-----------|---------------| | size > 1 | `"multiple-versions"` | | size == 1 | The single value (`"all"` or actual version like `"2023-10-01"`) | | empty/undefined | `undefined` | --------- Co-authored-by: iscai-msft <isabellavcai@gmail.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: c95a24d5-2785-44e4-9599-ac2f5cb37a2c Copilot-Session: 7d63e253-0c42-46ea-88b1-3e0aa1dddebe Copilot-Session: 75e5e691-2de3-4305-9855-bee4534c6690 Copilot-Session: 4d3f5528-7e0e-4828-ab85-b85ba9dffc5d
iscai-msft
force-pushed
the
iscai-msft-cherry-pick-api-version-to-july-2026
branch
from
July 28, 2026 19:25
e0480a9 to
93b40c1
Compare
Contributor
|
❌ There is undocummented changes. Run The following packages have changes but are not documented.
The following packages have already been documented:
Show changes
|
commit: |
Contributor
|
You can try these changes here
|
iscai-msft
requested review from
Jialin Huang (JialinHuang803),
Mary Gao (MaryGao),
Xiaofei Cao (XiaofeiCao),
Alan Zimmer (alzimmermsft),
Haoling Dong (haolingdong-msft),
Laurent Mazuel (lmazuel),
m-nash,
Maor Leger (maorleger),
Qiaoqiao Zhang (qiaozha),
Srikanta (srnagar),
Weidong Xu (weidongxu-microsoft) and
Jeff Fisher (xirzec)
as code owners
July 28, 2026 19:56
iscai-msft
force-pushed
the
iscai-msft-cherry-pick-api-version-to-july-2026
branch
from
July 28, 2026 19:57
e4d63c4 to
93b40c1
Compare
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.
Cherry-pick of 6fd24e3 onto release/july-2026.