René's URL Explorer Experiment


Title: Prevent stack overflow on recursive schemas by tobio · Pull Request #2543 · oapi-codegen/oapi-codegen · GitHub

Open Graph Title: Prevent stack overflow on recursive schemas by tobio · Pull Request #2543 · oapi-codegen/oapi-codegen

X Title: Prevent stack overflow on recursive schemas by tobio · Pull Request #2543 · oapi-codegen/oapi-codegen

Description: Generate Go client and server boilerplate from OpenAPI 3 specifications - Prevent stack overflow on recursive schemas by tobio · Pull Request #2543 · oapi-codegen/oapi-codegen

Open Graph Description: Fixes #2542

X Description: Fixes #2542

Opengraph URL: https://github.com/oapi-codegen/oapi-codegen/pull/2543

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:40f4ef7c-b780-3539-d891-6ef9adbee8a4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE802:23AF91:2F47B7C:3DEF05A:6AF9CFCF
html-safe-nonce2abace2f8136cb1654a98205dcacbc079d5fda4002277ac4e015682b9cd4a90e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODAyOjIzQUY5MToyRjQ3QjdDOjNERUYwNUE6NkFGOUNGQ0YiLCJ2aXNpdG9yX2lkIjoiNDg0OTA0OTE5MDY5NDc4ODYzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb27170d62e650154f227730db7ac6a5320b6f4c52b49df3b0258a0c2982769a1
hovercard-subject-tagpull_request:4366825128
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/oapi-codegen/oapi-codegen/2543/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/e12e326fda872ed7b276688c0617d52d4458f91dce9cdec53d37e0955ea40709/oapi-codegen/oapi-codegen/pull/2543
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e12e326fda872ed7b276688c0617d52d4458f91dce9cdec53d37e0955ea40709/oapi-codegen/oapi-codegen/pull/2543
og:image:altFixes #2542
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametobio
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
turbo-cache-controlno-cache
go-importgithub.com/oapi-codegen/oapi-codegen git https://github.com/oapi-codegen/oapi-codegen.git
octolytics-dimension-user_id142752710
octolytics-dimension-user_loginoapi-codegen
octolytics-dimension-repository_id173009358
octolytics-dimension-repository_nwooapi-codegen/oapi-codegen
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id173009358
octolytics-dimension-repository_network_root_nwooapi-codegen/oapi-codegen
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/oapi-codegen/oapi-codegen/pull/2543#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Foapi-codegen%2Foapi-codegen%2Fpull%2F2543
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Foapi-codegen%2Foapi-codegen%2Fpull%2F2543
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=oapi-codegen%2Foapi-codegen
Reloadhttps://github.com/oapi-codegen/oapi-codegen/pull/2543
Reloadhttps://github.com/oapi-codegen/oapi-codegen/pull/2543
Reloadhttps://github.com/oapi-codegen/oapi-codegen/pull/2543
oapi-codegenhttps://github.com/oapi-codegen
oapi-codegenhttps://github.com/oapi-codegen/oapi-codegen
Codehttps://github.com/oapi-codegen/oapi-codegen
Issues228 (228)https://github.com/oapi-codegen/oapi-codegen/issues
Pull requests70 (70)https://github.com/oapi-codegen/oapi-codegen/pulls
Discussionshttps://github.com/oapi-codegen/oapi-codegen/discussions
Actionshttps://github.com/oapi-codegen/oapi-codegen/actions
Projectshttps://github.com/oapi-codegen/oapi-codegen/projects
Security and quality11 (11)https://github.com/oapi-codegen/oapi-codegen/security
Insightshttps://github.com/oapi-codegen/oapi-codegen/pulse
https://github.com/oapi-codegen/oapi-codegen
mromaszewiczhttps://github.com/mromaszewicz
oapi-codegen:mainhttps://github.com/oapi-codegen/oapi-codegen/tree/main
tobio:stack-overflowhttps://github.com/tobio/oapi-codegen/tree/stack-overflow
Conversationhttps://github.com/oapi-codegen/oapi-codegen/pull/2543
Commits5 (5)https://github.com/oapi-codegen/oapi-codegen/pull/2543/commits
Checkshttps://github.com/oapi-codegen/oapi-codegen/pull/2543/checks
Files changedhttps://github.com/oapi-codegen/oapi-codegen/pull/2543/files
Prevent stack overflow on recursive schemashttps://github.com/oapi-codegen/oapi-codegen/pull/2543#top
mromaszewiczhttps://github.com/mromaszewicz
oapi-codegen:mainhttps://github.com/oapi-codegen/oapi-codegen/tree/main
tobio:stack-overflowhttps://github.com/tobio/oapi-codegen/tree/stack-overflow
https://github.com/tobio
tobiohttps://github.com/tobio
Aug 26, 2026https://github.com/oapi-codegen/oapi-codegen/pull/2543#issue-5256773191
#2542https://github.com/oapi-codegen/oapi-codegen/issues/2542
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2543
https://github.com/tobio
Prevent stack overflow on recursive schemashttps://github.com/oapi-codegen/oapi-codegen/pull/2543/commits/11a28b12f53b957878297bd73f685a9d3d2bbcf6
11a28b1https://github.com/oapi-codegen/oapi-codegen/pull/2543/commits/11a28b12f53b957878297bd73f685a9d3d2bbcf6
https://github.com/tobio
tobiohttps://github.com/tobio
code ownerhttps://github.com/oapi-codegen/oapi-codegen/blob/de3a0e3a53006af56026a3694bca540df8eecb97/.github/CODEOWNERS#L1
August 26, 2026 12:04https://github.com/oapi-codegen/oapi-codegen/pull/2543#event-30040826820
https://github.com/apps/greptile-apps
greptile-appshttps://github.com/apps/greptile-apps
Aug 26, 2026https://github.com/oapi-codegen/oapi-codegen/pull/2543#issuecomment-5425021941
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2543
https://app.greptile.com/api/retrigger?id=57050099
"fix: generate concrete recursive types f..."https://github.com/oapi-codegen/oapi-codegen/commit/c89b9907a31a3203993342556caaf7c1aaf86510
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2543
https://github.com/apps/greptile-apps
greptile-appshttps://github.com/apps/greptile-apps
Aug 26, 2026 https://github.com/oapi-codegen/oapi-codegen/pull/2543#pullrequestreview-5030150288
View reviewed changes https://github.com/oapi-codegen/oapi-codegen/pull/2543/files/11a28b12f53b957878297bd73f685a9d3d2bbcf6
pkg/codegen/merge_schemas.gohttps://github.com/oapi-codegen/oapi-codegen/pull/2543/files/11a28b12f53b957878297bd73f685a9d3d2bbcf6#diff-423bfd1d22f4994f4f0c03f76f15af8371bee0bc5da50efa3ab696e1a60d7d49
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2543
pkg/codegen/merge_schemas.gohttps://github.com/oapi-codegen/oapi-codegen/pull/2543/files/11a28b12f53b957878297bd73f685a9d3d2bbcf6#diff-423bfd1d22f4994f4f0c03f76f15af8371bee0bc5da50efa3ab696e1a60d7d49
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2543
https://github.com/jamietanna
jamietannahttps://github.com/jamietanna
Aug 26, 2026https://github.com/oapi-codegen/oapi-codegen/pull/2543#issuecomment-5425100732
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2543
https://github.com/tobio
Preserve recursive schema shape via back-ref substitutionhttps://github.com/oapi-codegen/oapi-codegen/pull/2543/commits/f9de2838eea2ff98b647a9cd25bcc450fdd6112a
f9de283https://github.com/oapi-codegen/oapi-codegen/pull/2543/commits/f9de2838eea2ff98b647a9cd25bcc450fdd6112a
oapi-codegen#2543https://github.com/oapi-codegen/oapi-codegen/pull/2543
oapi-codegen#2470https://github.com/oapi-codegen/oapi-codegen/issues/2470
oapi-codegen#1373https://github.com/oapi-codegen/oapi-codegen/issues/1373
oapi-codegen#2542https://github.com/oapi-codegen/oapi-codegen/issues/2542
https://github.com/jamietanna
jamietannahttps://github.com/jamietanna
Aug 28, 2026 https://github.com/oapi-codegen/oapi-codegen/pull/2543#pullrequestreview-5048580212
View reviewed changes https://github.com/oapi-codegen/oapi-codegen/pull/2543/files/f9de2838eea2ff98b647a9cd25bcc450fdd6112a
internal/test/schemas/recursive/spec.yamlhttps://github.com/oapi-codegen/oapi-codegen/pull/2543/files/f9de2838eea2ff98b647a9cd25bcc450fdd6112a#diff-5a7e81f231378d36fe7a6d71f0e0dae146e836db138ab4f99eee5f56e65dae92
jamietannahttps://github.com/jamietanna
Aug 28, 2026https://github.com/oapi-codegen/oapi-codegen/pull/2543#discussion_r3878501970
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2543
https://github.com/jamietanna
jamietannahttps://github.com/jamietanna
Aug 28, 2026 https://github.com/oapi-codegen/oapi-codegen/pull/2543#pullrequestreview-5048599083
View reviewed changes https://github.com/oapi-codegen/oapi-codegen/pull/2543/files/f9de2838eea2ff98b647a9cd25bcc450fdd6112a
internal/test/schemas/recursive/recursive_test.gohttps://github.com/oapi-codegen/oapi-codegen/pull/2543/files/f9de2838eea2ff98b647a9cd25bcc450fdd6112a#diff-19c4d66f9f15386a7417cf6338dc4b7969fed37d52b42b7b92ac447c76ae9d3c
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2543
https://github.com/jamietanna
jamietannahttps://github.com/jamietanna
Aug 28, 2026 https://github.com/oapi-codegen/oapi-codegen/pull/2543#pullrequestreview-5048622832
View reviewed changes https://github.com/oapi-codegen/oapi-codegen/pull/2543/files/f9de2838eea2ff98b647a9cd25bcc450fdd6112a
jamietannahttps://github.com/jamietanna
https://github.com/oapi-codegen/oapi-codegen/pull/2543#pullrequestreview-5048622832
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2543
https://github.com/jamietanna
jamietannahttps://github.com/jamietanna
bug https://github.com/oapi-codegen/oapi-codegen/issues?q=state%3Aopen%20label%3Abug
Aug 28, 2026https://github.com/oapi-codegen/oapi-codegen/pull/2543#event-30149722373
https://github.com/tobio
Address review nits: single quotes + unwrapped commentshttps://github.com/oapi-codegen/oapi-codegen/pull/2543/commits/e1ba901d17ef8dade07703a8f5989846c4aae2ec
e1ba901https://github.com/oapi-codegen/oapi-codegen/pull/2543/commits/e1ba901d17ef8dade07703a8f5989846c4aae2ec
oapi-codegen#2543https://github.com/oapi-codegen/oapi-codegen/pull/2543
https://github.com/tobio
tobiohttps://github.com/tobio
jamietannahttps://github.com/jamietanna
September 1, 2026 06:13https://github.com/oapi-codegen/oapi-codegen/pull/2543#event-30325570091
https://github.com/mromaszewicz
mromaszewiczhttps://github.com/mromaszewicz
Sep 17, 2026https://github.com/oapi-codegen/oapi-codegen/pull/2543#issuecomment-5708432792
#1373https://github.com/oapi-codegen/oapi-codegen/issues/1373
#2471https://github.com/oapi-codegen/oapi-codegen/pull/2471
#2471https://github.com/oapi-codegen/oapi-codegen/pull/2471
#2471https://github.com/oapi-codegen/oapi-codegen/pull/2471
Claude Codehttps://claude.com/claude-code
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2543
mromaszewiczhttps://github.com/mromaszewicz
September 16, 2026 21:22https://github.com/oapi-codegen/oapi-codegen/pull/2543#commits-pushed-cc1f947
https://github.com/mromaszewicz
Merge remote-tracking branch 'upstream/main' into stack-overflowhttps://github.com/oapi-codegen/oapi-codegen/pull/2543/commits/cc1f947c01782cbdb5582d5ae7fe8773e2453dfa
cc1f947https://github.com/oapi-codegen/oapi-codegen/pull/2543/commits/cc1f947c01782cbdb5582d5ae7fe8773e2453dfa
https://github.com/mromaszewicz
https://github.com/claude
fix: generate concrete recursive types for self-composing allOfhttps://github.com/oapi-codegen/oapi-codegen/pull/2543/commits/c89b9907a31a3203993342556caaf7c1aaf86510
c89b990https://github.com/oapi-codegen/oapi-codegen/pull/2543/commits/c89b9907a31a3203993342556caaf7c1aaf86510
oapi-codegen#2542https://github.com/oapi-codegen/oapi-codegen/issues/2542
oapi-codegen#1957https://github.com/oapi-codegen/oapi-codegen/pull/1957
https://github.com/mromaszewicz
mromaszewiczhttps://github.com/mromaszewicz
Sep 17, 2026 https://github.com/oapi-codegen/oapi-codegen/pull/2543#ref-issue-5483279805
Stack overflow in propagateRemoteRefs when a self-recursive external schema is composed via allOf more than once #2557 https://github.com/oapi-codegen/oapi-codegen/issues/2557
https://github.com/mromaszewicz
mromaszewiczhttps://github.com/mromaszewicz
Sep 17, 2026 https://github.com/oapi-codegen/oapi-codegen/pull/2543#pullrequestreview-5231461564
View reviewed changes https://github.com/oapi-codegen/oapi-codegen/pull/2543/files/c89b9907a31a3203993342556caaf7c1aaf86510
https://github.com/mromaszewicz
mromaszewiczhttps://github.com/mromaszewicz
a6d9d25https://github.com/oapi-codegen/oapi-codegen/commit/a6d9d25c1094435542df240c607935cc313131dc
Sep 17, 2026https://github.com/oapi-codegen/oapi-codegen/pull/2543#event-31295578749
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2543
https://github.com/mromaszewicz
mromaszewiczhttps://github.com/mromaszewicz
Sep 26, 2026 https://github.com/oapi-codegen/oapi-codegen/pull/2543#ref-pullrequest-5591570176
fix: thread the recursion guard through schema-merging-behavior v1 #2583 https://github.com/oapi-codegen/oapi-codegen/pull/2583
mromaszewiczhttps://github.com/mromaszewicz
Sep 26, 2026 https://github.com/oapi-codegen/oapi-codegen/pull/2543#ref-commit-3a7db93
https://github.com/mromaszewicz
https://github.com/claude
fix: thread the recursion guard through schema-merging-behavior v1 (https://github.com/oapi-codegen/oapi-codegen/commit/3a7db93ad2dbab6e6e9fad22dd5f49c694bdcc28
#…https://github.com/oapi-codegen/oapi-codegen/pull/2583
3a7db93https://github.com/oapi-codegen/oapi-codegen/commit/3a7db93ad2dbab6e6e9fad22dd5f49c694bdcc28
…2583https://github.com/oapi-codegen/oapi-codegen/pull/2583
#2543https://github.com/oapi-codegen/oapi-codegen/pull/2543
#2542https://github.com/oapi-codegen/oapi-codegen/issues/2542
#2542https://github.com/oapi-codegen/oapi-codegen/issues/2542
#2542https://github.com/oapi-codegen/oapi-codegen/issues/2542
https://github.co/hiddenchars
https://github.com/oapi-codegen/oapi-codegen/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Foapi-codegen%2Foapi-codegen%2Fpull%2F2543
https://github.com/apps/greptile-apps
greptile-apps[bot] https://github.com/apps/greptile-apps
https://github.com/oapi-codegen/oapi-codegen/pull/2543/files/11a28b12f53b957878297bd73f685a9d3d2bbcf6
https://github.com/mromaszewicz
mromaszewicz https://github.com/mromaszewicz
https://github.com/oapi-codegen/oapi-codegen/pull/2543/files/c89b9907a31a3203993342556caaf7c1aaf86510
https://github.com/jamietanna
jamietanna https://github.com/jamietanna
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2543
bug https://github.com/oapi-codegen/oapi-codegen/issues?q=state%3Aopen%20label%3Abug
v2.8.0 regression: infinite recursion / stack overflow on self-referential allOf+anyOf schemas (side effect of #1904/#1905) https://github.com/oapi-codegen/oapi-codegen/issues/2542
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2543
https://github.com/tobio
https://github.com/jamietanna
https://github.com/mromaszewicz
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.