Skip to content

Commit

Permalink
Replace x-ms-skip-url-encoding with allowReserved (#1512)
Browse files Browse the repository at this point in the history
  • Loading branch information
live1206 authored Sep 11, 2024
1 parent 628fcb4 commit dfeee05
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .chronus/changes/allow-reserved-2024-8-11-16-40-29.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: feature
packages:
- "@azure-tools/typespec-azure-resource-manager"
---

`x-ms-skip-url-encoding` should be replaced with `allowReserved`
Original file line number Diff line number Diff line change
Expand Up @@ -537,10 +537,9 @@ model ManagementGroupNameParameter {
@added(Versions.v4)
model ScopeParameter {
/** The scope at which the operation is performed. */
@path
@path(#{ allowReserved: true })
@segment("scope")
@minLength(1)
@extension("x-ms-skip-url-encoding", true)
scope: string;
}

Expand Down
3 changes: 1 addition & 2 deletions packages/typespec-azure-resource-manager/lib/parameters.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,8 @@ model ArmLocationResource<BaseType extends
*/
@doc("The default resourceUri parameter type.")
model ResourceUriParameter {
@path
@path(#{ allowReserved: true })
@doc("The fully qualified Azure Resource manager identifier of the resource.")
@extension("x-ms-skip-url-encoding", true)
@resourceParameterBaseFor([ResourceHome.Extension])
resourceUri: string;
}
Expand Down

0 comments on commit dfeee05

Please sign in to comment.