Azure / typespec-azure

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

[Bug][TCGC]: `SdkMethodBase.details` could be meaningless sometimes #1097

Closed archerzz closed 4 days ago

archerzz commented 4 days ago

Describe the bug

I found that SdkMethodBase.details value of many operations seems just a splitting of operation names. For example, https://github.com/Azure/autorest.csharp/blob/72659d42a5067035f0c2d969ed07dd523cbda4dc/test/TestProjects/Spread-TypeSpec/Spread-TypeSpec.tsp#L89

op spreadModel( ...Thing ): void;

And its details property value is Spread Model. I feel this is quite meaningless. If we don't have a valid input, just leave the property value undefined.

Reproduction

Just parse the above spec

Checklist

archerzz commented 4 days ago

it is an issue in emitter