-
Notifications
You must be signed in to change notification settings - Fork 51
[Bug]: TCGC getClientNameOverride returns an object (instead of string or null) #699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @weidongxu-microsoft , |
It likely present in the csharp emitter as well. But you may want to contact csharp dev on this, as it may not be the only cause. I'm Java and this is the only problem on Java emitter. |
I could not reproduce locally. You mean call |
@timotheeguerin in tcgc, the decorator function could not get |
@timotheeguerin i could repro with this tsp. |
ok so the trigger is augmenting a templated type with |
hhm actually happens to |
Filed this microsoft/typespec#3211 and fix here microsoft/typespec#3212 |
@weidongxu-microsoft @tadelesh can you confirm this has been fixed with latest compiler and so can we close this issue? |
@timotheeguerin I've tested in TCGC and it has been fixed. Thank you so much. |
Describe the bug
but it returns an object when the issue happens

Reproduction
loadtesting
https://github.com/Azure/azure-rest-api-specs-pr/blob/c4b80c74909bf593825e29ce7ff459decba35efd/specification/loadtestservice/LoadTestService/tspconfig.yaml
PR https://github.com/Azure/azure-rest-api-specs-pr/pull/17749
operation is
they also have a
in routes.tsp, not sure if related.
call to
getClientNameOverride
is on the ModelProperty of theTest
model.Checklist
The text was updated successfully, but these errors were encountered: