Closed archerzz closed 2 weeks ago
Try to parse a tsp spec without specific api version parameter, like https://github.com/Azure/autorest.csharp/blob/5ff421832c6037a563b346407cad1a781933bf2c/test/TestProjects/MixAPIVersion-TypeSpec/MixAPIVersion-TypeSpec.tsp#L12-L27
TCGC will output a default api version parameter of which the name is apiVersion. I think for Azure flavor, TCGC should use api-version as the name.
apiVersion
api-version
Looks like it's due to emitter's implementation. We should prefer serializedName over name.
serializedName
name
Clear and concise description of the problem
Try to parse a tsp spec without specific api version parameter, like https://github.com/Azure/autorest.csharp/blob/5ff421832c6037a563b346407cad1a781933bf2c/test/TestProjects/MixAPIVersion-TypeSpec/MixAPIVersion-TypeSpec.tsp#L12-L27
TCGC will output a default api version parameter of which the name is
apiVersion
. I think for Azure flavor, TCGC should useapi-version
as the name.Checklist