Azure / typespec-azure

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

[Bug]: incorrect paths for some routes that contain query params #1899

Open jhendrixMSFT opened 1 week ago

jhendrixMSFT commented 1 week ago

Describe the bug

For this route.

@route("/{containerName}/{blob}?comp=appendblock")

The sdkMethod.operation.path has an incorrect value: /{containerName}/{blob}?AppendBlob/{containerName}/{blob}?comp=appendblock

Reproduction

Build blob storage tsp https://github.com/Azure/azure-rest-api-specs/blob/feature/blob-tsp/specification/storage/Microsoft.BlobStorage

Checklist

tadelesh commented 5 days ago

i could not repro with the spec. could you upgrade to latest version to see it is resolved?

tadelesh commented 4 days ago

Image from the debug screenshot, the compiler return path is already wrong (see __raw path value). it should not be a tcgc issue.