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

Support multiple namespaces in client library code generation #4537

Open
3 of 11 tasks
srnagar opened this issue Sep 25, 2024 · 0 comments
Open
3 of 11 tasks

Support multiple namespaces in client library code generation #4537

srnagar opened this issue Sep 25, 2024 · 0 comments
Assignees
Labels
emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp emitter:client:java Issue for the Java client emitter: @typespec/http-client-java emitter:client:python Issue for the Python client emitter: @typespec/http-client-python epic

Comments

@srnagar
Copy link
Member

srnagar commented Sep 25, 2024

Clear and concise description of the problem

Currently, code generators for .NET, Java and Python only support generating client library in a single namespace. Generators use the namespace defined in tspconfig.yaml and ignore the namespaces defined in TypeSpec. This works when we only have a single namespace.

However, there are cases where we need multiple namespaces in the generated library to allow different clients to be in different namespaces (for e.g. OpenAI and Search). So, the proposal is for generators to use the namespaces defined in TypeSpec as the namespaces in client libraries too and not use tspconfig.yaml.

More details on the proposal can be found here.

Checklist

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Spec

  1. weidongxu-microsoft
  2. docs lib:tcgc
    tadelesh

Implementation

  1. lib:tcgc
    iscai-msft
  2. DPG
    weidongxu-microsoft
  3. HRLC p0
    qiaozha
  4. ArcturusZhang
  5. jhendrixMSFT
  6. msyyc
  7. lib:tcgc
    tadelesh
@srnagar srnagar added emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp emitter:client:java Issue for the Java client emitter: @typespec/http-client-java emitter:client:python Issue for the Python client emitter: @typespec/http-client-python labels Sep 25, 2024
@srnagar srnagar self-assigned this Sep 25, 2024
@lmazuel lmazuel added the epic label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp emitter:client:java Issue for the Java client emitter: @typespec/http-client-java emitter:client:python Issue for the Python client emitter: @typespec/http-client-python epic
Projects
None yet
Development

No branches or pull requests

2 participants