Skip to content

[BUG] Recursive types currently result in an endless loop. #5

@bauer-andreas

Description

@bauer-andreas

Describe the bug

Currently creating a TypeInformation of a type will recurse into its properties without checking if the type was already encountered.
This is problematic for types like classes which may contain themselves.

Propose Solution

The TypeStore could be extended to resolve this problem, introducing references when parsing types which were already encountered.

Note: In the context of ApodiniOpenAPI, the OpenAPI exporter would probably need to ship support for Polymorphism. We countering such self references types (e.g. a tree) where no optionals are involved, you would typically introduce a terminating node in order to not get into an endless cycle. This would need to be documented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions