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

Handle recursive schema definitions #93

Merged
merged 2 commits into from
Apr 12, 2024

Conversation

piercefreeman
Copy link
Owner

@piercefreeman piercefreeman commented Apr 11, 2024

Our previous recursive walking in gather_all_models.walk_models would infinitely loop for self-referential refs. This PR fixes this recursion by keeping track of the parsed model names. These should be unique within one OpenAPI schema so we can reasonably use this as a unique identification key.

@piercefreeman piercefreeman merged commit 2d3b595 into main Apr 12, 2024
14 checks passed
@piercefreeman piercefreeman deleted the feature/recursive-model-definitions branch April 12, 2024 14:36
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.

1 participant