Describe the bug
As per Azure/typespec-rust#849, after upgrading to tcgc 0.65.0, for multi-client Spector tests, tcgc now tells us that api-version client parameter is optional. But when it comes to operation, that same parameter is given to us by tcgc as not optional. Parameter is .onClient == true, and there is never a default value.
I think the fact that the api-version parameter is reported as optional on the client is a bug.
Before 0.65.0, api-version always had .optional == false - be it among the client params or the operation params.
Reproduction
Here are the related tsps:
Checklist
Describe the bug
As per Azure/typespec-rust#849, after upgrading to tcgc
0.65.0, for multi-client Spector tests, tcgc now tells us thatapi-versionclient parameter is optional. But when it comes to operation, that same parameter is given to us by tcgc as not optional. Parameter is.onClient == true, and there is never a default value.I think the fact that the api-version parameter is reported as optional on the client is a bug.
Before
0.65.0, api-version always had.optional == false- be it among the client params or the operation params.Reproduction
Here are the related tsps:
Checklist