Azure / Azure/typespec-azure

Can not define multiple explicit clients with multiple services

Open
#4,707 3 comments 0 reactions 2 assignees Claimed by @JialinHuang803 View on GitHub
emitter:typescript
Dominant language
TypeScript
Stars
27
Forks
90
Avg merge
1d 22h
Merged PRs (30d)
156

Description

RLC case:
https://github.com/Azure/autorest.typescript/blob/main/packages/typespec-ts/test/unit/clientUtil.spec.ts#L78
https://github.com/Azure/autorest.typescript/blob/main/packages/typespec-ts/test/unit/clientUtil.spec.ts#L112

typespec:
```
import "@azure-tools/typespec-client-generator-core";
using Azure.ClientGenerator.Core;

@service
namespace MyService {
@client({
name: "MyClient",
service: MyService
})
interface MyInterface {
op1(): void
}
}

@service
namespace MySecondService {
@client({
name: "MySecondClient",
service: MySecondService
})
interface MySecondInterface {
op1(): void
}
}
```

error log:

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.