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

StackOverflow when examples have cyclic references #173 #416

Open
vishalbinodruplal opened this issue Mar 1, 2021 · 0 comments
Open

StackOverflow when examples have cyclic references #173 #416

vishalbinodruplal opened this issue Mar 1, 2021 · 0 comments

Comments

@vishalbinodruplal
Copy link

Thanks for raising a Swagger2Markup issue. Please provide a brief description of your problem along with the Swagger2Markup version you are using. If possible, please also consider putting together a complete Swagger specification that reproduces the issue. It's better if the Swagger specification is small and isolate the issue.

Swagger2Markup version: 1.3.7

Problem description: While using the version 1.3.7 of swagger2markup I'm getting below exception
Exception in thread "main" java.lang.StackOverflowError
at io.github.swagger2markup.internal.utils.ModelUtils.getType(ModelUtils.java:80)
at io.github.swagger2markup.internal.utils.ExamplesUtil.generateExampleForRefModel(ExamplesUtil.java:190)
at io.github.swagger2markup.internal.utils.ExamplesUtil.exampleMapForProperties(ExamplesUtil.java:246)

This issue seems to be due to the cyclic dependency exists in our yaml file in definition tag.
I have seen on github "issue: StackOverflow when examples have cyclic references #173" that this is fixed in 1.0.2-snapshot version. But I cannot see this version of plugin present in public Maven repository.

Could you please help us with this issue and let us know that in which version of Swagger2Markup plugin this issue is fixed.

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

No branches or pull requests

1 participant