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

Fix for issue #56 Cannot read property 'name' of undefined when ApiModelsProperties are circular references. #58

Closed
wants to merge 3 commits into from

Conversation

cardnetwork
Copy link

This is to address issue #56. The root cause of this issue appears to be the TypeScript compiler and the inner workings of emitDecoratorMetadata. This is intended to be an, "elegant," workaround to this issue without negative side effects as solving the root cause is out of our hands.

@cardnetwork
Copy link
Author

Anything?

@chathura86
Copy link

chathura86 commented Feb 19, 2020

Anything?

@ApiModelProperty({
    description: "Description goes here",
    model: "User",
    required: true
})
@Reflect.metadata('design:type', { name: "User" })
user: User;

I do the above as a temporary fix. Hope this helps

thinkingmik added a commit that referenced this pull request Jun 18, 2021
@thinkingmik
Copy link
Collaborator

Merged with commit 95371ef

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

Successfully merging this pull request may close these issues.

4 participants