microsoft / typespec

https://typespec.io/
MIT License
4.53k stars 220 forks source link

Nonalpha chars are removed from parameter templates #5144

Open JoshLove-msft opened 3 days ago

JoshLove-msft commented 3 days ago

As an example, https://github.com/Azure/cadl-ranch/blob/main/packages/cadl-ranch-specs/http//routes/main.tsp#L226. But in our tspCodeModel.json, we have https://github.com/microsoft/typespec/blob/main/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/routes/tspCodeModel.json#L1483. So either in TCGC or in the csharp emitter, these chars are being incorrectly removed.