Azure / typespec-azure

About TypeSpec Azure Libraries
https://azure.github.io/typespec-azure/
MIT License
11 stars 37 forks source link

[Bug][TCGC]: `@clientName` not work on namespace #1091

Closed archerzz closed 2 months ago

archerzz commented 3 months ago

Describe the bug

Check this spec: https://github.com/Azure/cadl-ranch/blob/bbd186faeb224113ff81dba82baccf15e2c58362/packages/cadl-ranch-specs/http/client/naming/main.tsp#L146-L147

namespace Model should be renamed to ClientModel through @clientName, but TCGC still return the original name.

image

Reproduction

Just parse the spec in the link above.

Checklist

tadelesh commented 2 months ago

fixed in: https://github.com/Azure/typespec-azure/pull/1203