Skip to content

Conversation

Jai0987
Copy link

@Jai0987 Jai0987 commented Sep 16, 2025

Describe your changes

Fixes issue where resolve_schema_references could cause infinite recursion on OpenAPI schemas containing circular references between components.

  • Add visited_refs parameter to detect and break circular references
  • Add skip_components parameter to avoid unnecessary deep resolution
  • Add resolve_schema_for_display function for JIT schema resolution with caching
  • Prevents infinite recursion on schemas with circular references
  • Avoids resolution of entire components tree
  • Adding linting fixes based on ruff and mypy checks

Issue ticket number and link (if applicable)

Screenshots of the feature / bugfix

Checklist before requesting a review

  • Added relevant tests
  • Run ruff & mypy
  • All tests pass

…ence resolution

- Add visited_refs parameter to detect and break circular references
- Add skip_components parameter to avoid unnecessary deep resolution
- Add resolve_schema_for_display function for JIT schema resolution with caching
- Prevents infinite recursion on schemas with circular references
- Improves performance by avoiding resolution of entire components tree

Fixes issue where resolve_schema_references could cause infinite recursion
on OpenAPI schemas containing circular references between components.
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