Skip to content

Can not define multiple explicit clients with multiple services #3664

@v-jiaodi

Description

@v-jiaodi

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions