Skip to content

Fix infinite recursion in swagger.py for circular models#656

Open
Drarok wants to merge 3 commits into
noirbizarre:masterfrom
Drarok:fix/infinite-recursion-bug
Open

Fix infinite recursion in swagger.py for circular models#656
Drarok wants to merge 3 commits into
noirbizarre:masterfrom
Drarok:fix/infinite-recursion-bug

Conversation

@Drarok

@Drarok Drarok commented Jun 18, 2019

Copy link
Copy Markdown

With thanks to @edwardfung123 from Dec 2016 for identifying this fix, fixes #190.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.005%) to 96.822% when pulling fd8358a on Drarok:fix/infinite-recursion-bug into e911078 on noirbizarre:master.

@coveralls

coveralls commented Jun 18, 2019

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.04%) to 96.867% when pulling 9ab99ea on Drarok:fix/infinite-recursion-bug into a7e363a on noirbizarre:master.

@StephS

StephS commented Aug 22, 2019

Copy link
Copy Markdown

any update on this? i ran into the same bug. This PR fixes it.

@j5awry

j5awry commented Aug 22, 2019

Copy link
Copy Markdown
Collaborator

Thank you for contributing. Please add relevant tests to cover the issue.

@gvoropaev

gvoropaev commented Aug 30, 2019

Copy link
Copy Markdown

I'm waiting for @Drarok to merge new test in his branch. It will fix the coverage issue.

@Drarok

Drarok commented Aug 30, 2019

Copy link
Copy Markdown
Author

@buggyspace it’s a two line change, and I’m not even sure how I would begin to test for the failure case.

@gvoropaev

gvoropaev commented Aug 30, 2019

Copy link
Copy Markdown

@Drarok I've already done it

Drarok#1

@Drarok Drarok force-pushed the fix/infinite-recursion-bug branch from fd8358a to cd26463 Compare August 30, 2019 18:58
@Drarok

Drarok commented Aug 30, 2019

Copy link
Copy Markdown
Author

@buggyspace oh, amazing! Thank you! For some reason I didn't get a notification about that.

I've brought your commit over and rebased on current master, so we should be good to go?

@gvoropaev

Copy link
Copy Markdown

@Drarok yes, thank you.

@j5awry can you start the review, please?

@idchlife

idchlife commented Sep 8, 2019

Copy link
Copy Markdown
Contributor

Any news on merging this, guys? I think circular model reference for api doc is pretty usual thing occuring from time to time in any project.

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.

Swagger UI crashes when circular model defined

6 participants