Skip to content

Prevent StackOverflowError in ResolverFully#2297

Open
thc202 wants to merge 1 commit intoswagger-api:masterfrom
thc202:bug/1751-fix-stackoverflow
Open

Prevent StackOverflowError in ResolverFully#2297
thc202 wants to merge 1 commit intoswagger-api:masterfrom
thc202:bug/1751-fix-stackoverflow

Conversation

@thc202
Copy link
Copy Markdown

@thc202 thc202 commented Mar 24, 2026

Description

Add guard to resolve schemas just once to prevent loops/stack overflows.

Fix #1751.

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • ♻️ Refactor (non-breaking change)
  • 🧪 Tests
  • 📝 Documentation
  • 🧹 Chore (build or tooling)

Checklist

  • I have added/updated tests as needed
  • I have added/updated documentation where applicable
  • The PR title is descriptive
  • The code builds and passes tests locally
  • I have linked related issues (if any)

Add guard to resolve just once to prevent loops/stack overflows.

Issue swagger-api#1751.

Signed-off-by: thc202 <thc202@gmail.com>
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.

java.lang.StackOverflowError during parsing recursive schemas/components in ResolverFully.resolveSchema()

1 participant