Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support AllowReserved in Path #1318

Open
1 task done
lmazuel opened this issue Aug 7, 2024 · 1 comment
Open
1 task done

Support AllowReserved in Path #1318

lmazuel opened this issue Aug 7, 2024 · 1 comment

Comments

@lmazuel
Copy link
Member

lmazuel commented Aug 7, 2024

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

Preview Give feedback
  1. compiler:core deprecation design:accepted lib:http
    archerzz timotheeguerin

Spec

Preview Give feedback

Implementation

Preview Give feedback
@tadelesh
Copy link
Member

tadelesh commented Aug 8, 2024

also this feature could cover the following uri template case:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants