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

Mermaid - Class associations of objects with generics #64

Open
nicholasspencer opened this issue Feb 20, 2023 · 0 comments
Open

Mermaid - Class associations of objects with generics #64

nicholasspencer opened this issue Feb 20, 2023 · 0 comments

Comments

@nicholasspencer
Copy link

nicholasspencer commented Feb 20, 2023

It looks like there is an issue with the mermaid builder where you can't associate classes that have nested generics. An example of this would be:

classDiagram
class Foo
Foo : +bars List~Bar~Object~~
Foo o-- List~Bar~Object~~

class Bar~Object?~

However, this works fine.

classDiagram
class Foo
Foo : +bars List~Bar~Object~~
Foo o-- Bar~Object~

class Bar~Object?~
classDiagram
class Foo
Foo : +bars List~Bar~Object~~
Foo o-- Bar~Object~

Class Bar~Object?~

In my opinion, it probably makes sense to drop the iterable from the association and just associate the object. 🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant