-
Notifications
You must be signed in to change notification settings - Fork 37
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
[TCGC] api-version
parameter should not be onClient===true
if the server is non-versioned
#1391
Comments
Our current behavior is that we will always elevate |
Sure, let's have discussion how the generated sdk should look like for non-versioned clients, I think we should not add api-version to the client parameter, otnerwise it is not non-versioned client. |
C# doesn't check What's |
Hi @archerzz , from my understanding, |
Summary on 9/5 meeting:
|
Another proposal: just delete
|
Hi @mingzhe, Personally I think these logics you mentioned on calculating |
@archerzz that is a good point, where we might no longer need |
I think we should keep |
Hi @iscai-msft, I would agree with @chunyu3 , I think checking |
Case:
https://github.com/Azure/cadl-ranch/blob/main/packages/cadl-ranch-specs/http/server/versions/not-versioned/main.tsp#L33
This is a non-versioned client, and I think the
api-version
should not be on client, but TCGC mark it asonClient
.TCGC output:
Seems a bug in TCGC?
The text was updated successfully, but these errors were encountered: