Support multiple namespaces in client library code generation #4537
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
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
Spec
Implementation
The text was updated successfully, but these errors were encountered: