From 59f8e366bb929b87c7c6100bc11b15169bc7b8a1 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 27 Jan 2026 03:21:26 +0000
Subject: [PATCH 01/11] Initial plan
From 1ea331e88e24c8f58a7e10007880b55e470ec222 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 27 Jan 2026 03:25:05 +0000
Subject: [PATCH 02/11] docs: Add comprehensive parameter renaming guide to
09renaming.mdx
Co-authored-by: tadelesh <1726438+tadelesh@users.noreply.github.com>
---
.../Generate client libraries/09renaming.mdx | 184 +++++++++++++++++-
1 file changed, 183 insertions(+), 1 deletion(-)
diff --git a/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx b/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
index b4cb462baa..4110294f00 100644
--- a/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
+++ b/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
@@ -290,7 +290,189 @@ func (client *PetStoreNamespaceClient) Read(ctx context.Context, name string, op
-You cannot at this moment rename parameters in the client.tsp file. You will need to add the `@clientName` decorator over the parameter directly, example:
+#### Renaming operation parameters
+
+Operation parameters can be renamed using the `@clientName` decorator. This is useful when you want different parameter names in the generated client SDK while keeping the wire name unchanged.
+
+:::note
+The name of an operation parameter is **not** part of the API definition for most parameter types. For query parameters, the wire name is controlled by the `@query` decorator (or the parameter name if `@query` has no arguments). Changing a parameter name is an **SDK breaking change** but not an API breaking change.
+:::
+
+There are two ways to rename operation parameters:
+
+**Option 1: Apply `@clientName` directly on the parameter in the main TypeSpec file**
+
+This is the recommended approach for most cases. Apply the decorator directly on the parameter:
+
+
+
+```typespec title=main.tsp
+namespace PetStoreNamespace;
+
+/** This is the input I need */
+@resource("input")
+model InputModel {
+ /** Id of this object */
+ @key
+ @visibility(Lifecycle.Read)
+ name: string;
+}
+
+/** Read my resource with a filter */
+op get(
+ @clientName("resourceName")
+ name: string,
+
+ @clientName("filterQuery")
+ @query
+ filter?: string
+): InputModel;
+```
+
+```python
+# The parameter 'name' becomes 'resource_name' in Python
+# The query parameter 'filter' becomes 'filter_query'
+response: InputModel = client.get(resource_name="name", filter_query="active")
+```
+
+```csharp
+namespace PetStoreNamespace
+{
+ public partial class PetStoreNamespaceClient
+ {
+ // protocol method
+ public virtual async Task GetAsync(string resourceName, string filterQuery, RequestContext context) {}
+ public virtual Response Get(string resourceName, string filterQuery, RequestContext context) {}
+ // convenience method
+ public virtual async Task> GetAsync(string resourceName, string filterQuery, CancellationToken cancellationToken = default) {}
+ public virtual Response Get(string resourceName, string filterQuery, CancellationToken cancellationToken = default) {}
+ }
+}
+```
+
+```typescript
+export async function get(
+ context: Client,
+ resourceName: string,
+ options: GetOptionalParams = { requestOptions: {} }
+): Promise;
+```
+
+```java
+package petstorenamespace;
+public final class PetStoreNamespaceClient {
+ public Response getWithResponse(String resourceName, String filterQuery, RequestOptions requestOptions)
+ public InputModel get(String resourceName, String filterQuery)
+}
+```
+
+```go
+type PetStoreNamespaceClient struct {}
+
+func NewPetStoreNamespaceClient() *PetStoreNamespaceClient {
+ return &PetStoreNamespaceClient{}
+}
+
+func (client *PetStoreNamespaceClient) Get(ctx context.Context, resourceName string, options *PetStoreNamespaceClientGetOptions) (PetStoreNamespaceClientGetResponse, error)
+```
+
+
+
+**Option 2: Apply `@clientName` from client.tsp using `@@` syntax**
+
+You can also apply the decorator from a separate client.tsp file, useful for language-specific customizations:
+
+
+
+```typespec title=client.tsp
+import "./main.tsp";
+import "@azure-tools/typespec-client-generator-core";
+
+using Azure.ClientGenerator.Core;
+
+// Apply @clientName to the 'name' parameter of the 'get' operation
+@@clientName(get::parameters.name, "resourceId");
+
+// Apply language-specific names
+@@clientName(get::parameters.filter, "search_filter", "python");
+```
+
+```python
+# Python uses the language-specific name
+response: InputModel = client.get(resource_id="name", search_filter="active")
+```
+
+```csharp
+namespace PetStoreNamespace
+{
+ public partial class PetStoreNamespaceClient
+ {
+ // C# uses the base client name since no language-specific override
+ public virtual async Task> GetAsync(string resourceId, string filter, CancellationToken cancellationToken = default) {}
+ public virtual Response Get(string resourceId, string filter, CancellationToken cancellationToken = default) {}
+ }
+}
+```
+
+```typescript
+// TypeScript uses the base client name
+export async function get(
+ context: Client,
+ resourceId: string,
+ options: GetOptionalParams = { requestOptions: {} }
+): Promise;
+```
+
+```java
+package petstorenamespace;
+public final class PetStoreNamespaceClient {
+ // Java uses the base client name
+ public InputModel get(String resourceId, String filter)
+}
+```
+
+```go
+type PetStoreNamespaceClient struct {}
+
+func NewPetStoreNamespaceClient() *PetStoreNamespaceClient {
+ return &PetStoreNamespaceClient{}
+}
+
+// Go uses the base client name
+func (client *PetStoreNamespaceClient) Get(ctx context.Context, resourceId string, options *PetStoreNamespaceClientGetOptions) (PetStoreNamespaceClientGetResponse, error)
+```
+
+
+
+#### Version-scoped parameter renaming
+
+When renaming a parameter as part of a new API version, use the `@renamedFrom` decorator to scope the change. This ensures the rename only applies to the new version:
+
+```typespec
+import "@typespec/versioning";
+
+using TypeSpec.Versioning;
+
+enum Versions {
+ v1: "2024-01-01",
+ v2: "2024-06-01",
+}
+
+@versioned(Versions)
+namespace PetStoreNamespace;
+
+op get(
+ // In v1, this was called 'id'. In v2, it's renamed to 'resourceId'
+ @renamedFrom(Versions.v2, "id")
+ @clientName("resourceId")
+ name: string
+): InputModel;
+```
+
+This ensures that:
+- In API version `2024-01-01` (v1), the SDK uses parameter name based on original name
+- In API version `2024-06-01` (v2), the SDK uses the new parameter name `resourceId`
+- The wire protocol remains unchanged across both versions
## Implementation
From f792e4c2f7c6a05b37513efe278263bb43bb2707 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 27 Jan 2026 03:25:55 +0000
Subject: [PATCH 03/11] docs: Add subheading for operation renaming for
consistency
Co-authored-by: tadelesh <1726438+tadelesh@users.noreply.github.com>
---
.../docs/docs/howtos/Generate client libraries/09renaming.mdx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx b/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
index 4110294f00..40aa272350 100644
--- a/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
+++ b/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
@@ -209,7 +209,9 @@ func (client *PetStoreNamespaceClient) Get(ctx context.Context, name string, opt
### Renaming operations and parameters
-Similarly, you can rename operations like in the example below:
+#### Renaming operations
+
+You can rename operations using the `@clientName` decorator:
From ccf1d8fd53b5e01cb88e8cbc8249436028392320 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 27 Jan 2026 03:52:35 +0000
Subject: [PATCH 04/11] docs: Update parameter renaming to only recommend
client.tsp approach and remove version-scoped section
Co-authored-by: tadelesh <1726438+tadelesh@users.noreply.github.com>
---
.../Generate client libraries/09renaming.mdx | 116 +-----------------
1 file changed, 2 insertions(+), 114 deletions(-)
diff --git a/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx b/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
index 40aa272350..5147ecb612 100644
--- a/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
+++ b/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
@@ -294,95 +294,13 @@ func (client *PetStoreNamespaceClient) Read(ctx context.Context, name string, op
#### Renaming operation parameters
-Operation parameters can be renamed using the `@clientName` decorator. This is useful when you want different parameter names in the generated client SDK while keeping the wire name unchanged.
+Operation parameters can be renamed using the `@clientName` decorator applied from the `client.tsp` file using the `@@` augment syntax. This is useful when you want different parameter names in the generated client SDK while keeping the wire name unchanged.
:::note
The name of an operation parameter is **not** part of the API definition for most parameter types. For query parameters, the wire name is controlled by the `@query` decorator (or the parameter name if `@query` has no arguments). Changing a parameter name is an **SDK breaking change** but not an API breaking change.
:::
-There are two ways to rename operation parameters:
-
-**Option 1: Apply `@clientName` directly on the parameter in the main TypeSpec file**
-
-This is the recommended approach for most cases. Apply the decorator directly on the parameter:
-
-
-
-```typespec title=main.tsp
-namespace PetStoreNamespace;
-
-/** This is the input I need */
-@resource("input")
-model InputModel {
- /** Id of this object */
- @key
- @visibility(Lifecycle.Read)
- name: string;
-}
-
-/** Read my resource with a filter */
-op get(
- @clientName("resourceName")
- name: string,
-
- @clientName("filterQuery")
- @query
- filter?: string
-): InputModel;
-```
-
-```python
-# The parameter 'name' becomes 'resource_name' in Python
-# The query parameter 'filter' becomes 'filter_query'
-response: InputModel = client.get(resource_name="name", filter_query="active")
-```
-
-```csharp
-namespace PetStoreNamespace
-{
- public partial class PetStoreNamespaceClient
- {
- // protocol method
- public virtual async Task GetAsync(string resourceName, string filterQuery, RequestContext context) {}
- public virtual Response Get(string resourceName, string filterQuery, RequestContext context) {}
- // convenience method
- public virtual async Task> GetAsync(string resourceName, string filterQuery, CancellationToken cancellationToken = default) {}
- public virtual Response Get(string resourceName, string filterQuery, CancellationToken cancellationToken = default) {}
- }
-}
-```
-
-```typescript
-export async function get(
- context: Client,
- resourceName: string,
- options: GetOptionalParams = { requestOptions: {} }
-): Promise;
-```
-
-```java
-package petstorenamespace;
-public final class PetStoreNamespaceClient {
- public Response getWithResponse(String resourceName, String filterQuery, RequestOptions requestOptions)
- public InputModel get(String resourceName, String filterQuery)
-}
-```
-
-```go
-type PetStoreNamespaceClient struct {}
-
-func NewPetStoreNamespaceClient() *PetStoreNamespaceClient {
- return &PetStoreNamespaceClient{}
-}
-
-func (client *PetStoreNamespaceClient) Get(ctx context.Context, resourceName string, options *PetStoreNamespaceClientGetOptions) (PetStoreNamespaceClientGetResponse, error)
-```
-
-
-
-**Option 2: Apply `@clientName` from client.tsp using `@@` syntax**
-
-You can also apply the decorator from a separate client.tsp file, useful for language-specific customizations:
+To rename operation parameters, apply the `@clientName` decorator from a separate `client.tsp` file:
@@ -446,36 +364,6 @@ func (client *PetStoreNamespaceClient) Get(ctx context.Context, resourceId strin
-#### Version-scoped parameter renaming
-
-When renaming a parameter as part of a new API version, use the `@renamedFrom` decorator to scope the change. This ensures the rename only applies to the new version:
-
-```typespec
-import "@typespec/versioning";
-
-using TypeSpec.Versioning;
-
-enum Versions {
- v1: "2024-01-01",
- v2: "2024-06-01",
-}
-
-@versioned(Versions)
-namespace PetStoreNamespace;
-
-op get(
- // In v1, this was called 'id'. In v2, it's renamed to 'resourceId'
- @renamedFrom(Versions.v2, "id")
- @clientName("resourceId")
- name: string
-): InputModel;
-```
-
-This ensures that:
-- In API version `2024-01-01` (v1), the SDK uses parameter name based on original name
-- In API version `2024-06-01` (v2), the SDK uses the new parameter name `resourceId`
-- The wire protocol remains unchanged across both versions
-
## Implementation
### Order of Operations
From 93fc63170f3c4a7e6d5ffc5917f7c1fee12115fb Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 27 Jan 2026 06:22:08 +0000
Subject: [PATCH 05/11] docs: Add generated API code and usage examples for all
languages in parameter renaming section
Co-authored-by: tadelesh <1726438+tadelesh@users.noreply.github.com>
---
.../Generate client libraries/09renaming.mdx | 63 ++++++++++++++++---
1 file changed, 55 insertions(+), 8 deletions(-)
diff --git a/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx b/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
index 5147ecb612..2039f8dc92 100644
--- a/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
+++ b/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
@@ -318,48 +318,95 @@ using Azure.ClientGenerator.Core;
```
```python
-# Python uses the language-specific name
+# Generated client code
+class PetStoreNamespaceClient:
+ def get(self, resource_id: str, *, search_filter: Optional[str] = None, **kwargs) -> InputModel:
+ """Get operation with renamed parameters.
+
+ :param resource_id: The resource identifier (wire name: 'name')
+ :param search_filter: Filter query (wire name: 'filter')
+ :return: InputModel
+ """
+ ...
+
+# Usage
response: InputModel = client.get(resource_id="name", search_filter="active")
```
```csharp
+// Generated client code
namespace PetStoreNamespace
{
public partial class PetStoreNamespaceClient
{
- // C# uses the base client name since no language-specific override
+ // protocol method
+ public virtual async Task GetAsync(string resourceId, string filter, RequestContext context) {}
+ public virtual Response Get(string resourceId, string filter, RequestContext context) {}
+ // convenience method
public virtual async Task> GetAsync(string resourceId, string filter, CancellationToken cancellationToken = default) {}
public virtual Response Get(string resourceId, string filter, CancellationToken cancellationToken = default) {}
}
}
+
+// Usage
+InputModel model = await client.GetAsync(resourceId: "name", filter: "active");
```
```typescript
-// TypeScript uses the base client name
+// Generated client code
+export interface GetOptionalParams extends OperationOptions {
+ filter?: string;
+}
+
export async function get(
context: Client,
resourceId: string,
options: GetOptionalParams = { requestOptions: {} }
-): Promise;
+): Promise;
+
+// Usage
+const result = await get(context, "name", { filter: "active" });
```
```java
+// Generated client code
package petstorenamespace;
public final class PetStoreNamespaceClient {
- // Java uses the base client name
- public InputModel get(String resourceId, String filter)
+ public Response getWithResponse(String resourceId, String filter, RequestOptions requestOptions) {
+ // implementation
+ }
+
+ public InputModel get(String resourceId, String filter) {
+ // implementation
+ }
}
+
+// Usage
+InputModel model = client.get("name", "active");
```
```go
+// Generated client code
type PetStoreNamespaceClient struct {}
func NewPetStoreNamespaceClient() *PetStoreNamespaceClient {
return &PetStoreNamespaceClient{}
}
-// Go uses the base client name
-func (client *PetStoreNamespaceClient) Get(ctx context.Context, resourceId string, options *PetStoreNamespaceClientGetOptions) (PetStoreNamespaceClientGetResponse, error)
+type PetStoreNamespaceClientGetOptions struct {
+ Filter *string
+}
+
+func (client *PetStoreNamespaceClient) Get(ctx context.Context, resourceID string, options *PetStoreNamespaceClientGetOptions) (PetStoreNamespaceClientGetResponse, error) {
+ // implementation
+}
+
+// Usage
+client := NewPetStoreNamespaceClient()
+filter := "active"
+resp, err := client.Get(context.TODO(), "name", &PetStoreNamespaceClientGetOptions{
+ Filter: &filter,
+})
```
From be6dcb6d102cdadb99822467eafd3a31514d7993 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 27 Jan 2026 06:25:32 +0000
Subject: [PATCH 06/11] docs: Make parameter renaming example self-contained
with complete TypeSpec definition
Co-authored-by: tadelesh <1726438+tadelesh@users.noreply.github.com>
---
.../Generate client libraries/09renaming.mdx | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx b/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
index 2039f8dc92..6b4ed29397 100644
--- a/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
+++ b/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
@@ -305,11 +305,27 @@ To rename operation parameters, apply the `@clientName` decorator from a separat
```typespec title=client.tsp
-import "./main.tsp";
import "@azure-tools/typespec-client-generator-core";
using Azure.ClientGenerator.Core;
+namespace PetStoreNamespace;
+
+/** This is the input I need */
+@resource("input")
+model InputModel {
+ /** Id of this object */
+ @key
+ @visibility(Lifecycle.Read)
+ name: string;
+}
+
+/** Read my resource */
+op get(
+ name: string,
+ @query filter?: string
+): InputModel;
+
// Apply @clientName to the 'name' parameter of the 'get' operation
@@clientName(get::parameters.name, "resourceId");
From ea4b2ae555270645e75cb6f279a1afbbd5b6702e Mon Sep 17 00:00:00 2001
From: Weidong Xu
Date: Tue, 27 Jan 2026 14:36:33 +0800
Subject: [PATCH 07/11] Update website/src/content/docs/docs/howtos/Generate
client libraries/09renaming.mdx
---
.../docs/docs/howtos/Generate client libraries/09renaming.mdx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx b/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
index 6b4ed29397..948fd13dc5 100644
--- a/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
+++ b/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
@@ -388,7 +388,7 @@ const result = await get(context, "name", { filter: "active" });
// Generated client code
package petstorenamespace;
public final class PetStoreNamespaceClient {
- public Response getWithResponse(String resourceId, String filter, RequestOptions requestOptions) {
+ public Response getWithResponse(BinaryData getRequest, RequestOptions requestOptions) {
// implementation
}
From 8c18a2a5172ac3dfc7b0df8eb824b650df664f1f Mon Sep 17 00:00:00 2001
From: Weidong Xu
Date: Tue, 27 Jan 2026 14:44:49 +0800
Subject: [PATCH 08/11] format
---
.../howtos/Generate client libraries/09renaming.mdx | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx b/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
index 948fd13dc5..cd5114a1c9 100644
--- a/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
+++ b/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
@@ -321,10 +321,7 @@ model InputModel {
}
/** Read my resource */
-op get(
- name: string,
- @query filter?: string
-): InputModel;
+op get(name: string, @query filter?: string): InputModel;
// Apply @clientName to the 'name' parameter of the 'get' operation
@@clientName(get::parameters.name, "resourceId");
@@ -338,7 +335,7 @@ op get(
class PetStoreNamespaceClient:
def get(self, resource_id: str, *, search_filter: Optional[str] = None, **kwargs) -> InputModel:
"""Get operation with renamed parameters.
-
+
:param resource_id: The resource identifier (wire name: 'name')
:param search_filter: Filter query (wire name: 'filter')
:return: InputModel
@@ -377,7 +374,7 @@ export interface GetOptionalParams extends OperationOptions {
export async function get(
context: Client,
resourceId: string,
- options: GetOptionalParams = { requestOptions: {} }
+ options: GetOptionalParams = { requestOptions: {} },
): Promise;
// Usage
@@ -391,7 +388,7 @@ public final class PetStoreNamespaceClient {
public Response getWithResponse(BinaryData getRequest, RequestOptions requestOptions) {
// implementation
}
-
+
public InputModel get(String resourceId, String filter) {
// implementation
}
From 766c47492ca97932ed64a9370f9de943be1b7cf9 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 27 Jan 2026 07:05:09 +0000
Subject: [PATCH 09/11] docs: Separate main.tsp and client.tsp in parameter
renaming example
Co-authored-by: tadelesh <1726438+tadelesh@users.noreply.github.com>
---
.../Generate client libraries/09renaming.mdx | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx b/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
index cd5114a1c9..9833ed1f5e 100644
--- a/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
+++ b/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
@@ -304,11 +304,7 @@ To rename operation parameters, apply the `@clientName` decorator from a separat
-```typespec title=client.tsp
-import "@azure-tools/typespec-client-generator-core";
-
-using Azure.ClientGenerator.Core;
-
+```typespec title=main.tsp
namespace PetStoreNamespace;
/** This is the input I need */
@@ -321,7 +317,17 @@ model InputModel {
}
/** Read my resource */
-op get(name: string, @query filter?: string): InputModel;
+op get(
+ name: string,
+ @query filter?: string
+): InputModel;
+```
+
+```typespec title=client.tsp
+import "./main.tsp";
+import "@azure-tools/typespec-client-generator-core";
+
+using Azure.ClientGenerator.Core;
// Apply @clientName to the 'name' parameter of the 'get' operation
@@clientName(get::parameters.name, "resourceId");
From 23efb8cabf69354df87be0c5a31f8eb0d66f36ec Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 27 Jan 2026 08:25:27 +0000
Subject: [PATCH 10/11] docs: Add using PetStoreNamespace statement to
client.tsp example
Co-authored-by: tadelesh <1726438+tadelesh@users.noreply.github.com>
---
.../docs/docs/howtos/Generate client libraries/09renaming.mdx | 1 +
1 file changed, 1 insertion(+)
diff --git a/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx b/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
index 9833ed1f5e..5b39cb82f1 100644
--- a/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
+++ b/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
@@ -328,6 +328,7 @@ import "./main.tsp";
import "@azure-tools/typespec-client-generator-core";
using Azure.ClientGenerator.Core;
+using PetStoreNamespace;
// Apply @clientName to the 'name' parameter of the 'get' operation
@@clientName(get::parameters.name, "resourceId");
From 4bc94263ef2956ef364953ea98c3d901dd303de0 Mon Sep 17 00:00:00 2001
From: tadelesh
Date: Fri, 30 Jan 2026 15:33:31 +0800
Subject: [PATCH 11/11] format
---
.../docs/howtos/Generate client libraries/09renaming.mdx | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx b/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
index 5b39cb82f1..2f1d9d6e26 100644
--- a/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
+++ b/website/src/content/docs/docs/howtos/Generate client libraries/09renaming.mdx
@@ -317,10 +317,7 @@ model InputModel {
}
/** Read my resource */
-op get(
- name: string,
- @query filter?: string
-): InputModel;
+op get(name: string, @query filter?: string): InputModel;
```
```typespec title=client.tsp