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 stackoverflow in recursive definitions #331

Merged

Conversation

mikkela
Copy link
Contributor

@mikkela mikkela commented Jan 31, 2022

The problem reported in issue #144 is alo bothering us. The problem is caused when trying to iterate the properties of schema A, when it refers to B and B recusively refering back to A. The fix I've done is to keep track of what schema has been handled and in case the schema is being handled again, an empty string is returned instead of giving the schema a second go.

Fixed #144

Copy link
Contributor

@joschi joschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mikkela LGTM, thanks for your contribution!

@joschi joschi added the bug label Mar 3, 2022
@joschi joschi added this to the 2.1.0 milestone Mar 3, 2022
@joschi joschi merged commit 72517cc into OpenAPITools:master Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stackoverflow Error with cyclic reference and adding new property
2 participants