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

Refine comments for renaming part in client generation #2241

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,34 @@ By default, any language code generator will assume the TYPESPEC name is the cli
<ClientTabs>

```typespec title=main.tsp
import "@typespec/http";
import "@typespec/rest";
import "@typespec/versioning";
import "@azure-tools/typespec-azure-core";

using TypeSpec.Http;
using TypeSpec.Rest;
using Azure.Core;
using TypeSpec.Versioning;

@service({
title: "Pet Store Client",
})
@server(
"{endpoint}/widget",
"Pet Store APIs",
{
endpoint: string,
}
)
@versioned(PetStoreNamespace.Versions)
namespace PetStoreNamespace;

enum Versions {
@useDependency(Azure.Core.Versions.v1_0_Preview_2)
`2022-08-30`,
}

/** This is the input I need */
@resource("input")
model InputModel {
Expand Down Expand Up @@ -66,6 +92,7 @@ namespace PetStoreNamespace
```

```typescript
// Here is the generated code for TypeScript RLC
interface InputModel {
name: string;
}
Expand Down Expand Up @@ -147,7 +174,7 @@ namespace PetStoreNamespace
```

```typescript
// Typescript do not change behavior based on protocolAPI or convenientAPI
// TypeScript RLC won't change behavior based on protocolAPI or convenientAPI
```

```java
Expand Down Expand Up @@ -211,7 +238,7 @@ namespace PetStoreNamespace
```

```typescript
// Typescript do not change behavior based on protocolAPI or convenientAPI
// TypeScript RLC won't change behavior based on protocolAPI or convenientAPI
```

```java
Expand Down
Loading