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

[http-client-csharp] Consider to introduce a hierarchy structure for namespace #6241

Closed
ArcturusZhang opened this issue Mar 4, 2025 · 1 comment
Labels
emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp

Comments

@ArcturusZhang
Copy link
Member

ArcturusZhang commented Mar 4, 2025

In our generator, we need to do some escaping on namespace names, for instance in clients, we might need to add underscore to namespace segments when there is a name collision.
Now we are doing this in ClientProvider - but now, we are using string to represent the namespaces, therefore when we change the namespace, it will not take effect on all the namespaces across our library.

If we could change the namespace to be represented by an object with hierarchical structure, we could modify it freely without having to maintain those strings manually.

@ArcturusZhang ArcturusZhang added emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp and removed needs-area labels Mar 4, 2025
@ArcturusZhang
Copy link
Member Author

I found a workaround for this maybe we could defer the discussion

@ArcturusZhang ArcturusZhang closed this as not planned Won't fix, can't repro, duplicate, stale Mar 4, 2025
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
Projects
None yet
Development

No branches or pull requests

1 participant