You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JoshLove-msft
changed the title
Nonalpha chars are removed from parameter templates
Cadl-Ranch scenario: Nonalpha chars are removed from parameter templates
Dec 3, 2024
JoshLove-msft
changed the title
Cadl-Ranch scenario: Nonalpha chars are removed from parameter templates
Cadl-Ranch scenario - Nonalpha chars are removed from parameter templates
Dec 3, 2024
Hi @JoshLove-msft
The Path here (corresponds to path property in TCGC) is by design to remove that dot character . because it is not part of the "path", but it is a feature of uri-template.
We did not do anything to it:
It is known issue that we did not fully support uri-template feature. Currently we only support allow-reserved and explode.
Since we did not really adopt uri-template here, it would not help if we have its original route with the dot.
And FYI we could get the original route in the uriTemplate property from SdkHttpOperation.
Given this information, I think we might need to retriage this again and put it into a bucket of "supporting uri-template".
Also because of this situation, we cannot implement those various scenarios in http/routes.
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.
The text was updated successfully, but these errors were encountered: