Skip to content

Fix nested service api-version configuration - #5270

Merged
iscai-msft merged 5 commits into
Azure:mainfrom
tadelesh:tadelesh/fix-nested-service-api-version
Aug 20, 2026
Merged

Fix nested service api-version configuration#5270
iscai-msft merged 5 commits into
Azure:mainfrom
tadelesh:tadelesh/fix-nested-service-api-version

Conversation

@tadelesh

Copy link
Copy Markdown
Member

Summary

  • allow nested namespace maps for per-service api-version configuration in tspconfig.yaml
  • resolve nested namespace segments while preserving existing flat-map behavior
  • document the supported YAML syntax
  • verify configured versions are used when locating multi-service examples

Fixes #5252

Validation

  • pnpm --filter @azure-tools/typespec-client-generator-core build
  • pnpm --filter @azure-tools/typespec-client-generator-core test (1419 passed, 2 skipped)
  • pnpm lint
  • Prettier checks for all changed files

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 57fad988-4074-401f-bedf-7320432503d7
@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 - fix ✏️

Support nested service namespaces in per-service api-version configuration.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 57fad988-4074-401f-bedf-7320432503d7
@github-actions

github-actions Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

📦 Package size report

✅ No notable package size changes compared to the base branch.

13 package(s) with no notable change
Package Packed (base → head) Δ Packed Unpacked (base → head) Δ Unpacked
@azure-tools/typespec-client-generator-core 228.20 KB → 228.65 KB +462 B (+0.2%) 1.23 MB → 1.23 MB +1.92 KB (+0.2%)
@azure-tools/typespec-java 13.51 MB → 13.51 MB +158 B (+0.0%) 15.03 MB → 15.03 MB +65 B (+0.0%)
@azure-tools/typespec-python 42.20 KB → 42.22 KB +20 B (+0.0%) 164.85 KB → 164.91 KB +65 B (+0.0%)
@azure-tools/typespec-ts 527.17 KB → 527.17 KB -2 B (-0.0%) 2.54 MB → 2.54 MB
@azure-tools/azure-http-specs 146.63 KB → 146.63 KB 1.16 MB → 1.16 MB
@azure-tools/typespec-autorest 80.93 KB → 80.93 KB 395.06 KB → 395.06 KB
@azure-tools/typespec-autorest-canonical 7.42 KB → 7.42 KB 26.00 KB → 26.00 KB
@azure-tools/typespec-azure-core 129.43 KB → 129.43 KB 702.77 KB → 702.77 KB
@azure-tools/typespec-azure-portal-core 42.40 KB → 42.40 KB 192.91 KB → 192.91 KB
@azure-tools/typespec-azure-resource-manager 171.92 KB → 171.92 KB 1.04 MB → 1.04 MB
@azure-tools/typespec-azure-rulesets 5.16 KB → 5.16 KB 32.09 KB → 32.09 KB
@azure-tools/typespec-go 258.42 KB → 258.42 KB 1.32 MB → 1.32 MB
@azure-tools/typespec-metadata 15.91 KB → 15.91 KB 62.26 KB → 62.26 KB

Packed = gzipped .tgz published to npm. Unpacked = total extracted size. 🆕 added, 🗑️ removed. Packages from the core/ submodule are not included.
🔴 grew · 🟢 shrank — only changes of at least 512 B and 0.5% are marked.

@pkg-pr-new

pkg-pr-new Bot commented Aug 20, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: 65bc447

@azure-sdk-automation

Copy link
Copy Markdown
Contributor

You can try these changes here

🛝 Playground 🌐 Website

tadelesh and others added 2 commits August 20, 2026 16:05
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 57fad988-4074-401f-bedf-7320432503d7
… remove stale tcgc example

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@iscai-msft
iscai-msft added this pull request to the merge queue Aug 20, 2026
Merged via the queue into Azure:main with commit bda72b1 Aug 20, 2026
44 checks passed
github-actions Bot added a commit to iscai-msft/typespec-azure that referenced this pull request Aug 20, 2026
…026)

- Go emitter: add emit-content-type-header option (Azure#5261)
- Java emitter: update api-version description for nested namespaces (Azure#5270)
- Python emitter: sync reference docs
- TCGC how-tos: update @convenientAPI/@protocolAPI scope guidance, refine clientOptions docs (Azure#5267)
- TCGC decorators reference: update @convenientAPI, @protocolAPI, @clientoption parameter tables and examples with correct scope requirements (Azure#5119)
- TCGC guideline: minor fix
- TCGC emitter reference: minor fix
- ARM how-to: agent-base-type fixes
- ARM reference: data-types and decorators updates
- Generate client libraries how-to: add C# operation overload note, clarify type docs

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

emitter:java Issues for @azure-tools/typespec-java emitter emitter:python Issues for @azure-tools/typespec-python emitter lib:tcgc Issues for @azure-tools/typespec-client-generator-core library meta:website TypeSpec.io updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TCGC] Per-service api-version map cannot target nested namespaces from tspconfig.yaml

3 participants