Azure / typespec-azure

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

Support AllowReserved in Path #1318

Open lmazuel opened 1 month ago

lmazuel commented 1 month ago

Support:

@route("/c1/here") op c1(@path(#{ allowReserved: true }) path: string): void;

to mean that the path parameter should be escaped (skip url encoding)

### TypeSpec
- [ ] https://github.com/microsoft/typespec/issues/3736
### Spec
- [ ] https://github.com/Azure/cadl-ranch/issues/665
- [ ] https://github.com/Azure/typespec-azure/issues/1316
### Implementation
- [ ] https://github.com/Azure/typespec-azure/issues/1317
- [ ] https://github.com/Azure/autorest.python/issues/2754
- [ ] https://github.com/Azure/autorest.java/issues/2896
- [ ] https://github.com/Azure/autorest.typescript/issues/2734
- [ ] https://github.com/Azure/autorest.csharp/issues/4966
- [ ] https://github.com/Azure/autorest.go/issues/1422
- [ ] https://github.com/Azure/autorest.cpp/issues/373
- [ ] https://github.com/Azure/autorest.rust/issues/82
tadelesh commented 1 month ago

also this feature could cover the following uri template case:

@route("/{+scope}/action") op action(scope: string): void;