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

How to set x-ms-skip-url-encoding to resource name #1962

Closed
Tracked by #1850
pshao25 opened this issue Dec 9, 2024 · 1 comment
Closed
Tracked by #1850

How to set x-ms-skip-url-encoding to resource name #1962

pshao25 opened this issue Dec 9, 2024 · 1 comment
Assignees
Labels
bug Something isn't working emitter:autorest Issues for @azure-tools/typespec-autorest emitter

Comments

@pshao25
Copy link
Member

pshao25 commented Dec 9, 2024

I tried @@path(Employee.name, #{allowReserved: true}); in this playground. It seems not work.

Actual:

{
           "name": "employeeName",
           "in": "path",
           "description": "The name of the Employee",
           "required": true,
           "type": "string",
           "pattern": "^[a-zA-Z0-9-]{3,24}$"
         }

Expected:

{
            "name": "employeeName",
            "in": "path",
            "description": "The name of the Employee",
            "required": true,
            "type": "string",
            "x-ms-skip-url-encoding": true,
            "pattern": "^[a-zA-Z0-9-]{3,24}$"
          }
@pshao25
Copy link
Member Author

pshao25 commented Dec 9, 2024

Hybridconnectivity is going to release at the end of this month. Could you prioritize?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working emitter:autorest Issues for @azure-tools/typespec-autorest emitter
Projects
None yet
Development

No branches or pull requests

4 participants