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(recursion): resolve infinite loop with recursive links #717

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

glooer
Copy link

@glooer glooer commented Dec 5, 2024

Description:
This pull request fixes an issue where recursive references in schemas could cause infinite loops.

Linked Issue:
Resolves #608.

Details:
The fix ensures that recursive links are correctly handled without entering an endless cycle, improving the stability and reliability of the dereferencer.

Checklist:
• Added tests for recursive link scenarios.
• Verified that the issue no longer occurs with the provided test cases.

Let me know if you’d like to modify or expand this!

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.00%. Comparing base (600f02d) to head (0c448c3).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #717      +/-   ##
==========================================
+ Coverage   98.98%   99.00%   +0.01%     
==========================================
  Files           2        2              
  Lines          99      100       +1     
  Branches       30       30              
==========================================
+ Hits           98       99       +1     
  Misses          1        1              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

Infinite recursion when referencing self
2 participants