René's URL Explorer Experiment


Title: Map OpenAPI 3.1 multi-type unions to `any` by bendrucker · Pull Request #2522 · oapi-codegen/oapi-codegen · GitHub

Open Graph Title: Map OpenAPI 3.1 multi-type unions to `any` by bendrucker · Pull Request #2522 · oapi-codegen/oapi-codegen

X Title: Map OpenAPI 3.1 multi-type unions to `any` by bendrucker · Pull Request #2522 · oapi-codegen/oapi-codegen

Description: Generate Go client and server boilerplate from OpenAPI 3 specifications - Map OpenAPI 3.1 multi-type unions to `any` by bendrucker · Pull Request #2522 · oapi-codegen/oapi-codegen

Open Graph Description: OpenAPI 3.1 allows type to be a list, so a value may be any one of several types. The primitive-type dispatch in pkg/codegen/schema.go uses Types.Is(...), which only matches a single-element list, ...

X Description: OpenAPI 3.1 allows type to be a list, so a value may be any one of several types. The primitive-type dispatch in pkg/codegen/schema.go uses Types.Is(...), which only matches a single-element list, ...

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

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:a0890a67-4ceb-43e3-07b9-530b38e19d5a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9BCE:2FFF08:2D60D24:3B88DE8:6AF9C2FC
html-safe-nonce52db4d660ec9767a97764bff516464088ebfa91cb9cfd7abcd8882ed75034ccd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkNFOjJGRkYwODoyRDYwRDI0OjNCODhERTg6NkFGOUMyRkMiLCJ2aXNpdG9yX2lkIjoiNTk4NTYzMjk3NTc0MjE1NzU2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8c540212fbb173f1f78e5704219244cabe83fe62c9fb5429c9574d10086ce98a
hovercard-subject-tagpull_request:4281857097
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/2522/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/7be9ae4e70af62aad37888f8ae89f41f32ebd581f02a0b244f71c2bbbde4e3d4/oapi-codegen/oapi-codegen/pull/2522
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7be9ae4e70af62aad37888f8ae89f41f32ebd581f02a0b244f71c2bbbde4e3d4/oapi-codegen/oapi-codegen/pull/2522
og:image:altOpenAPI 3.1 allows type to be a list, so a value may be any one of several types. The primitive-type dispatch in pkg/codegen/schema.go uses Types.Is(...), which only matches a single-element list, ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebendrucker
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/2522#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Foapi-codegen%2Foapi-codegen%2Fpull%2F2522
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%2F2522
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/2522
Reloadhttps://github.com/oapi-codegen/oapi-codegen/pull/2522
Reloadhttps://github.com/oapi-codegen/oapi-codegen/pull/2522
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
bendrucker:union-any-typehttps://github.com/bendrucker/oapi-codegen/tree/union-any-type
Conversationhttps://github.com/oapi-codegen/oapi-codegen/pull/2522
Commits3 (3)https://github.com/oapi-codegen/oapi-codegen/pull/2522/commits
Checkshttps://github.com/oapi-codegen/oapi-codegen/pull/2522/checks
Files changedhttps://github.com/oapi-codegen/oapi-codegen/pull/2522/files
Map OpenAPI 3.1 multi-type unions to anyhttps://github.com/oapi-codegen/oapi-codegen/pull/2522#top
mromaszewiczhttps://github.com/mromaszewicz
oapi-codegen:mainhttps://github.com/oapi-codegen/oapi-codegen/tree/main
bendrucker:union-any-typehttps://github.com/bendrucker/oapi-codegen/tree/union-any-type
https://github.com/bendrucker
bendruckerhttps://github.com/bendrucker
Aug 14, 2026https://github.com/oapi-codegen/oapi-codegen/pull/2522#issue-5154084468
#2521https://github.com/oapi-codegen/oapi-codegen/issues/2521
#2430https://github.com/oapi-codegen/oapi-codegen/issues/2430
#1977https://github.com/oapi-codegen/oapi-codegen/issues/1977
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2522
https://github.com/bendrucker
Map OpenAPI 3.1 multi-type unions to anyhttps://github.com/oapi-codegen/oapi-codegen/pull/2522/commits/a913a2a4bac504de5d18db4b71cf534b00a2de21
a913a2ahttps://github.com/oapi-codegen/oapi-codegen/pull/2522/commits/a913a2a4bac504de5d18db4b71cf534b00a2de21
oapi-codegen#2430https://github.com/oapi-codegen/oapi-codegen/issues/2430
https://github.com/bendrucker
bendruckerhttps://github.com/bendrucker
code ownerhttps://github.com/oapi-codegen/oapi-codegen/blob/6768b639b7e66eec3a46bddd232d87e4287912e3/.github/CODEOWNERS#L1
August 14, 2026 17:18https://github.com/oapi-codegen/oapi-codegen/pull/2522#event-29471689123
https://github.com/apps/greptile-apps
greptile-appshttps://github.com/apps/greptile-apps
Aug 14, 2026https://github.com/oapi-codegen/oapi-codegen/pull/2522#issuecomment-5296206707
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2522
"Extend OpenAPI 3.1 union type binding to..."https://github.com/oapi-codegen/oapi-codegen/commit/da3f2d89b3d5f0fb70b145ee2dbafd8e5f0d0841
Re-trigger Greptilehttps://app.greptile.com/api/retrigger?id=53402057
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2522
https://github.com/jamietanna
jamietannahttps://github.com/jamietanna
Aug 15, 2026 https://github.com/oapi-codegen/oapi-codegen/pull/2522#pullrequestreview-4943739494
View reviewed changes https://github.com/oapi-codegen/oapi-codegen/pull/2522/files/a913a2a4bac504de5d18db4b71cf534b00a2de21
jamietannahttps://github.com/jamietanna
https://github.com/oapi-codegen/oapi-codegen/pull/2522#pullrequestreview-4943739494
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@mromaszewiczhttps://github.com/mromaszewicz
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2522
https://github.com/mromaszewicz
mromaszewiczhttps://github.com/mromaszewicz
bug https://github.com/oapi-codegen/oapi-codegen/issues?q=state%3Aopen%20label%3Abug
Aug 15, 2026https://github.com/oapi-codegen/oapi-codegen/pull/2522#event-29508917643
https://github.com/mromaszewicz
mromaszewiczhttps://github.com/mromaszewicz
Aug 15, 2026https://github.com/oapi-codegen/oapi-codegen/pull/2522#issuecomment-5304396772
@mromaszewiczhttps://github.com/mromaszewicz
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2522
https://github.com/mromaszewicz
mromaszewiczhttps://github.com/mromaszewicz
Aug 15, 2026https://github.com/oapi-codegen/oapi-codegen/pull/2522#issuecomment-5304403558
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2522
Bind styled parameters into any destinations using a declared Types list (OpenAPI 3.1 multi-type unions) oapi-codegen/runtime#153 https://github.com/oapi-codegen/runtime/issues/153
Multi-type unions aren't handled for OpenAPI 3.1 #2521 https://github.com/oapi-codegen/oapi-codegen/issues/2521
https://github.com/mromaszewicz
mromaszewiczhttps://github.com/mromaszewicz
Aug 16, 2026https://github.com/oapi-codegen/oapi-codegen/pull/2522#issuecomment-5305957426
runtime v1.7.0https://github.com/oapi-codegen/runtime/releases/tag/v1.7.0
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2522
https://github.com/mromaszewicz
https://github.com/claude
Extend OpenAPI 3.1 union type binding to parametershttps://github.com/oapi-codegen/oapi-codegen/pull/2522/commits/da3f2d89b3d5f0fb70b145ee2dbafd8e5f0d0841
da3f2d8https://github.com/oapi-codegen/oapi-codegen/pull/2522/commits/da3f2d89b3d5f0fb70b145ee2dbafd8e5f0d0841
https://github.com/apps/socket-security
socket-securityhttps://github.com/apps/socket-security
Aug 16, 2026https://github.com/oapi-codegen/oapi-codegen/pull/2522#issuecomment-5306030219
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2522
Socket for GitHubhttps://socket.dev?utm_medium=gh
https://socket.dev/dashboard/org/oapi-codegen/diff-scan/9803f74d-a2b7-4af9-b77b-167649c7f8d3?tab=dependencies&dependency_item_key=101937297943
github.com/​oapi-codegen/​runtime@​v1.5.0 ⏵ v1.7.0https://socket.dev/dashboard/org/oapi-codegen/diff-scan/9803f74d-a2b7-4af9-b77b-167649c7f8d3?tab=dependencies&dependency_item_key=101937297943
https://socket.dev/dashboard/org/oapi-codegen/diff-scan/9803f74d-a2b7-4af9-b77b-167649c7f8d3?tab=dependencies&dependency_item_key=101937297943
https://socket.dev/dashboard/org/oapi-codegen/diff-scan/9803f74d-a2b7-4af9-b77b-167649c7f8d3?tab=dependencies&dependency_item_key=101937297943
https://socket.dev/dashboard/org/oapi-codegen/diff-scan/9803f74d-a2b7-4af9-b77b-167649c7f8d3?tab=dependencies&dependency_item_key=101937297943
https://socket.dev/dashboard/org/oapi-codegen/diff-scan/9803f74d-a2b7-4af9-b77b-167649c7f8d3?tab=dependencies&dependency_item_key=101937297943
https://socket.dev/dashboard/org/oapi-codegen/diff-scan/9803f74d-a2b7-4af9-b77b-167649c7f8d3?tab=dependencies&dependency_item_key=101937297943
View full reporthttps://socket.dev/dashboard/org/oapi-codegen/diff-scan/9803f74d-a2b7-4af9-b77b-167649c7f8d3?tab=dependencies
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2522
https://github.com/mromaszewicz
mromaszewiczhttps://github.com/mromaszewicz
Aug 16, 2026https://github.com/oapi-codegen/oapi-codegen/pull/2522#issuecomment-5306057731
@bendruckerhttps://github.com/bendrucker
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2522
https://github.com/mromaszewicz
https://github.com/claude
Pass type list to runtime only when neededhttps://github.com/oapi-codegen/oapi-codegen/pull/2522/commits/dfefb7ff38e466ea9663cce52e8ee13df6449275
dfefb7fhttps://github.com/oapi-codegen/oapi-codegen/pull/2522/commits/dfefb7ff38e466ea9663cce52e8ee13df6449275
MergeSchemas silently drops a member's type when an earlier allOf member has none (order-dependent output) #2524 https://github.com/oapi-codegen/oapi-codegen/issues/2524
strict-server: any-typed response bodies generate a method on an interface type, which does not compile #2525 https://github.com/oapi-codegen/oapi-codegen/issues/2525
https://github.com/mromaszewicz
mromaszewiczhttps://github.com/mromaszewicz
Aug 16, 2026 https://github.com/oapi-codegen/oapi-codegen/pull/2522#pullrequestreview-4946406304
View reviewed changes https://github.com/oapi-codegen/oapi-codegen/pull/2522/files/dfefb7ff38e466ea9663cce52e8ee13df6449275
https://github.com/mromaszewicz
mromaszewiczhttps://github.com/mromaszewicz
0bb3afehttps://github.com/oapi-codegen/oapi-codegen/commit/0bb3afeae595a6683e0347c17b9e7c80d2685e32
Aug 16, 2026https://github.com/oapi-codegen/oapi-codegen/pull/2522#event-29524349330
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2522
https://github.com/bendrucker
bendruckerhttps://github.com/bendrucker
Aug 19, 2026https://github.com/oapi-codegen/oapi-codegen/pull/2522#issuecomment-5336694134
#2525https://github.com/oapi-codegen/oapi-codegen/issues/2525
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2522
Cover remaining OpenAPI 3.1 union test positions #2530 https://github.com/oapi-codegen/oapi-codegen/pull/2530
fix(codegen): explain unhandled Schema type errors #2531 https://github.com/oapi-codegen/oapi-codegen/pull/2531
https://github.com/bendrucker
bendruckerhttps://github.com/bendrucker
Aug 19, 2026https://github.com/oapi-codegen/oapi-codegen/pull/2522#issuecomment-5344027584
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2522
#2525https://github.com/oapi-codegen/oapi-codegen/issues/2525
#1328https://github.com/oapi-codegen/oapi-codegen/issues/1328
#2514https://github.com/oapi-codegen/oapi-codegen/pull/2514
#2525https://github.com/oapi-codegen/oapi-codegen/issues/2525
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2522
https://github.com/bendrucker
bendruckerhttps://github.com/bendrucker
Aug 19, 2026 https://github.com/oapi-codegen/oapi-codegen/pull/2522#ref-pullrequest-5112965746
fix: handle untyped strict response bodies #2514 https://github.com/oapi-codegen/oapi-codegen/pull/2514
mromaszewiczhttps://github.com/mromaszewicz
Nov 9, 2026 https://github.com/oapi-codegen/oapi-codegen/pull/2522#ref-commit-e77fc90
https://github.com/bendrucker
Cover remaining OpenAPI 3.1 union test positions (https://github.com/oapi-codegen/oapi-codegen/commit/e77fc90f59c674e91d394b0fcf9ed792b2f9acfe
#2530https://github.com/oapi-codegen/oapi-codegen/pull/2530
)https://github.com/oapi-codegen/oapi-codegen/commit/e77fc90f59c674e91d394b0fcf9ed792b2f9acfe
e77fc90https://github.com/oapi-codegen/oapi-codegen/commit/e77fc90f59c674e91d394b0fcf9ed792b2f9acfe
#2522https://github.com/oapi-codegen/oapi-codegen/pull/2522
#2526https://github.com/oapi-codegen/oapi-codegen/pull/2526
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%2F2522
https://github.com/jamietanna
jamietanna https://github.com/jamietanna
https://github.com/oapi-codegen/oapi-codegen/pull/2522/files/a913a2a4bac504de5d18db4b71cf534b00a2de21
https://github.com/mromaszewicz
mromaszewicz https://github.com/mromaszewicz
https://github.com/oapi-codegen/oapi-codegen/pull/2522/files/dfefb7ff38e466ea9663cce52e8ee13df6449275
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2522
bug https://github.com/oapi-codegen/oapi-codegen/issues?q=state%3Aopen%20label%3Abug
Multi-type unions aren't handled for OpenAPI 3.1 https://github.com/oapi-codegen/oapi-codegen/issues/2521
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2522
https://github.com/bendrucker
https://github.com/mromaszewicz
https://github.com/jamietanna
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.