Skip to content

ReflectionEnricher Stackoverflow exception #17

@wwwlicious

Description

@wwwlicious

The reflectionenricher fails to detect circular type references in properties which leads to a stackoverflow exception.

Found this issue when trying to use ValidationResult as a property in a DtoResponse. It contains a property of IRequest which itself contains an IResponse property which contains an IRequest property and thus creates an infinite loop.

Need to add a check when using the property enricher that it does not process a type already in the parent tree and if so instead create a symbolic link in the spec (something we don't really have afaik)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions