Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeguerin committed Jun 7, 2024
1 parent d3ddb2d commit e2e30ab
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
4 changes: 2 additions & 2 deletions packages/samples/common-types/openapi/v3/types.json
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@
"required": true,
"type": "string",
"minLength": 1,
"x-ms-parameter-location": "method",
"x-ms-parameter-location": "client",
"x-ms-client-name": "apiVersion"
},
"LocationParameter": {
Expand Down Expand Up @@ -747,7 +747,7 @@
"description": "The ID of the target subscription. The value must be an UUID.",
"required": true,
"type": "string",
"x-ms-parameter-location": "method"
"x-ms-parameter-location": "client"
}
}
}
4 changes: 2 additions & 2 deletions packages/samples/common-types/openapi/v4/types.json
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@
"required": true,
"type": "string",
"minLength": 1,
"x-ms-parameter-location": "method",
"x-ms-parameter-location": "client",
"x-ms-client-name": "apiVersion"
},
"LocationParameter": {
Expand Down Expand Up @@ -779,7 +779,7 @@
"required": true,
"type": "string",
"format": "uuid",
"x-ms-parameter-location": "method"
"x-ms-parameter-location": "client"
},
"TenantIdParameter": {
"name": "tenantId",
Expand Down
4 changes: 2 additions & 2 deletions packages/samples/common-types/openapi/v5/types.json
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@
"required": true,
"type": "string",
"minLength": 1,
"x-ms-parameter-location": "method",
"x-ms-parameter-location": "client",
"x-ms-client-name": "apiVersion"
},
"LocationParameter": {
Expand Down Expand Up @@ -779,7 +779,7 @@
"required": true,
"type": "string",
"format": "uuid",
"x-ms-parameter-location": "method"
"x-ms-parameter-location": "client"
},
"TenantIdParameter": {
"name": "tenantId",
Expand Down
7 changes: 2 additions & 5 deletions packages/samples/common-types/src/types.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ using OpenAPI;

namespace Azure.ResourceManager.CommonTypes;

@@extension(OperationIdParameter, "x-ms-parameter-location", "method");

@@extension(ResourceGroupNameParameter, "x-ms-parameter-location", "method");

@@extension(LocationParameter, "x-ms-parameter-location", "method");
@@extension(ApiVersionParameter.apiVersion, "x-ms-parameter-location", "client");
@@extension(SubscriptionIdParameter.subscriptionId, "x-ms-parameter-location", "client");

op registerParams(
...ApiVersionParameter,
Expand Down

0 comments on commit e2e30ab

Please sign in to comment.