-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Add support for nested namespaces #5487
Comments
Hi, I just encountered the same problem. I also think that this item should be documented. However, I have found a solution, although this behavior is unpredictable and not obvious to me. So, I created 2 namespaces at the same level, and then I put the "children" as a class in the "main" one.
classDiagram
namespace presentation{
class auth
class main
}
namespace auth{
class AuthScreen
class AuthViewModel
}
namespace main{
class MainScreen
class MainViewModel
}
|
That's a nice workaround, the namespace is behaving like a class and therefore it is being surrounded by the box and then you change it to be a namespace, I hope they create this feature, No one replied to this issue so far apart from you :( |
Hello! Thanks for the suggestion. Is this workaround enough so we can close the issue, or you are still interested in something like
|
I think
or this are better than the workaround because it is somehow confusing when working with a large codebase.
|
@skillmaker-dev would you like to make a contribution? |
@nirname I will try my best after taking a look at the codebase. |
@nirname and @skillmaker-dev I've made an attempt to resolve this issue. Please see the following pull request: |
@nirname can I assign the pull request to you? |
Proposal
I think it would be a great feature to have, nested namespaces make it easier to represent packages or namespaces in which classes reside, and it should be possible either by creating a namespace inside another namespace or by separating namespaces with a dot like this
namespace example1.example2.example3 {}
Example
for example in PlantUML, nested packages or namespaces can be represented like this
package foo1.foo2.foo3 { class Object }
Screenshots
The previous example will be represented in this way in plantUML:
The text was updated successfully, but these errors were encountered: