Skip to content

Mermaid - Class associations of objects with generics #64

@nicholasspencer

Description

@nicholasspencer

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?~
Loading

However, this works fine.

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

class Bar~Object?~
Loading
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. 🤷

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions