René's URL Explorer Experiment


Title: support optional/nullable response headers by mromaszewicz · Pull Request #2301 · oapi-codegen/oapi-codegen · GitHub

Open Graph Title: support optional/nullable response headers by mromaszewicz · Pull Request #2301 · oapi-codegen/oapi-codegen

X Title: support optional/nullable response headers by mromaszewicz · Pull Request #2301 · oapi-codegen/oapi-codegen

Description: Generate Go client and server boilerplate from OpenAPI 3 specifications - support optional/nullable response headers by mromaszewicz · Pull Request #2301 · oapi-codegen/oapi-codegen

Open Graph Description: Closes: #2267 Response headers in strict server code were always generated as direct value types regardless of whether they were required. This adds support for optional and nullable response heade...

X Description: Closes: #2267 Response headers in strict server code were always generated as direct value types regardless of whether they were required. This adds support for optional and nullable response heade...

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

X: @github

direct link

Domain: github.com

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:c5b23f09-4a43-b932-6037-cc80306a7072
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA476:111866:C53F1D:1036185:6A518F91
html-safe-nonceab72cc7802c359b13c9fb49d6409297fc8035744f11bd02b574e0bf8ca251b34
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDc2OjExMTg2NjpDNTNGMUQ6MTAzNjE4NTo2QTUxOEY5MSIsInZpc2l0b3JfaWQiOiIzNzE2MzY2Njg5Njk0MjI0MjczIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0e393db1f055d709420b7a7d2befb9e3deb39441759844c55c24ea10031d6566
hovercard-subject-tagpull_request:3436255264
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/2301/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/de6bffb9ed8c377344c31c41670b8523d81114d1c1489d9e3c0eb138186d7b47/oapi-codegen/oapi-codegen/pull/2301
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/de6bffb9ed8c377344c31c41670b8523d81114d1c1489d9e3c0eb138186d7b47/oapi-codegen/oapi-codegen/pull/2301
og:image:altCloses: #2267 Response headers in strict server code were always generated as direct value types regardless of whether they were required. This adds support for optional and nullable response heade...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemromaszewicz
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
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
release7aed05249554b889eb33d002851a973eebcc7e91
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/oapi-codegen/oapi-codegen/pull/2301#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Foapi-codegen%2Foapi-codegen%2Fpull%2F2301
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Foapi-codegen%2Foapi-codegen%2Fpull%2F2301
Sign up https://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/2301
Reloadhttps://github.com/oapi-codegen/oapi-codegen/pull/2301
Reloadhttps://github.com/oapi-codegen/oapi-codegen/pull/2301
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2301
oapi-codegen https://github.com/oapi-codegen
oapi-codegenhttps://github.com/oapi-codegen/oapi-codegen
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2301
Notifications https://github.com/login?return_to=%2Foapi-codegen%2Foapi-codegen
Fork 1k https://github.com/login?return_to=%2Foapi-codegen%2Foapi-codegen
Star 8.4k https://github.com/login?return_to=%2Foapi-codegen%2Foapi-codegen
Code https://github.com/oapi-codegen/oapi-codegen
Issues 291 https://github.com/oapi-codegen/oapi-codegen/issues
Pull requests 65 https://github.com/oapi-codegen/oapi-codegen/pulls
Discussions https://github.com/oapi-codegen/oapi-codegen/discussions
Actions https://github.com/oapi-codegen/oapi-codegen/actions
Projects https://github.com/oapi-codegen/oapi-codegen/projects
Security and quality 3 https://github.com/oapi-codegen/oapi-codegen/security
Insights https://github.com/oapi-codegen/oapi-codegen/pulse
Code https://github.com/oapi-codegen/oapi-codegen
Issues https://github.com/oapi-codegen/oapi-codegen/issues
Pull requests https://github.com/oapi-codegen/oapi-codegen/pulls
Discussions https://github.com/oapi-codegen/oapi-codegen/discussions
Actions https://github.com/oapi-codegen/oapi-codegen/actions
Projects https://github.com/oapi-codegen/oapi-codegen/projects
Security and quality https://github.com/oapi-codegen/oapi-codegen/security
Insights https://github.com/oapi-codegen/oapi-codegen/pulse
mromaszewiczhttps://github.com/mromaszewicz
oapi-codegen:mainhttps://github.com/oapi-codegen/oapi-codegen/tree/main
mromaszewicz:fix/issue-2267https://github.com/mromaszewicz/oapi-codegen/tree/fix/issue-2267
Conversationhttps://github.com/oapi-codegen/oapi-codegen/pull/2301
Commits2 (2)https://github.com/oapi-codegen/oapi-codegen/pull/2301/commits
Checkshttps://github.com/oapi-codegen/oapi-codegen/pull/2301/checks
Files changedhttps://github.com/oapi-codegen/oapi-codegen/pull/2301/files
support optional/nullable response headershttps://github.com/oapi-codegen/oapi-codegen/pull/2301#top
mromaszewiczhttps://github.com/mromaszewicz
oapi-codegen:mainhttps://github.com/oapi-codegen/oapi-codegen/tree/main
mromaszewicz:fix/issue-2267https://github.com/mromaszewicz/oapi-codegen/tree/fix/issue-2267
https://github.com/mromaszewicz
mromaszewiczhttps://github.com/mromaszewicz
Mar 23, 2026https://github.com/oapi-codegen/oapi-codegen/pull/2301#issue-4123853877
#2267https://github.com/oapi-codegen/oapi-codegen/issues/2267
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2301
https://github.com/mromaszewicz
mromaszewiczhttps://github.com/mromaszewicz
code ownerhttps://github.com/oapi-codegen/oapi-codegen/blob/ddd9e9093462dbc6c9338196e7b3ed178e3d8ab7/.github/CODEOWNERS#L1
March 23, 2026 21:33https://github.com/oapi-codegen/oapi-codegen/pull/2301#event-23829974100
https://github.com/mromaszewicz
mromaszewiczhttps://github.com/mromaszewicz
☢️ breaking change https://github.com/oapi-codegen/oapi-codegen/issues?q=state%3Aopen%20label%3A%22%E2%98%A2%EF%B8%8F%20breaking%20change%22
Mar 23, 2026https://github.com/oapi-codegen/oapi-codegen/pull/2301#event-23830045110
https://github.com/mromaszewicz
mromaszewiczhttps://github.com/mromaszewicz
March 23, 2026 22:04https://github.com/oapi-codegen/oapi-codegen/pull/2301#event-23830716177
https://github.com/jamietanna
jamietannahttps://github.com/jamietanna
Mar 25, 2026 https://github.com/oapi-codegen/oapi-codegen/pull/2301#pullrequestreview-4005140820
View reviewed changes https://github.com/oapi-codegen/oapi-codegen/pull/2301/files
jamietannahttps://github.com/jamietanna
https://github.com/oapi-codegen/oapi-codegen/pull/2301#pullrequestreview-4005140820
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2301
https://github.com/jamietanna
jamietannahttps://github.com/jamietanna
notable changes https://github.com/oapi-codegen/oapi-codegen/issues?q=state%3Aopen%20label%3A%22notable%20changes%22
Mar 25, 2026https://github.com/oapi-codegen/oapi-codegen/pull/2301#event-23882800996
https://github.com/mromaszewicz
mromaszewiczhttps://github.com/mromaszewicz
Mar 27, 2026https://github.com/oapi-codegen/oapi-codegen/pull/2301#issuecomment-4140152470
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2301
https://github.com/mromaszewicz
mromaszewiczhttps://github.com/mromaszewicz
force-pushedhttps://github.com/oapi-codegen/oapi-codegen/compare/f55a1b0257e788df32d5ef53ca9ea4798d2cebb8..843d5d62a13fa7cfd0d81f67055f9f2aa9d296c6
f55a1b0https://github.com/oapi-codegen/oapi-codegen/commit/f55a1b0257e788df32d5ef53ca9ea4798d2cebb8
843d5d6https://github.com/oapi-codegen/oapi-codegen/commit/843d5d62a13fa7cfd0d81f67055f9f2aa9d296c6
Compare https://github.com/oapi-codegen/oapi-codegen/compare/f55a1b0257e788df32d5ef53ca9ea4798d2cebb8..843d5d62a13fa7cfd0d81f67055f9f2aa9d296c6
March 27, 2026 04:52https://github.com/oapi-codegen/oapi-codegen/pull/2301#event-23959479509
https://github.com/mromaszewicz
mromaszewiczhttps://github.com/mromaszewicz
☢️ breaking change https://github.com/oapi-codegen/oapi-codegen/issues?q=state%3Aopen%20label%3A%22%E2%98%A2%EF%B8%8F%20breaking%20change%22
Mar 27, 2026https://github.com/oapi-codegen/oapi-codegen/pull/2301#event-23959484016
https://github.com/mromaszewicz
mromaszewiczhttps://github.com/mromaszewicz
March 27, 2026 04:52https://github.com/oapi-codegen/oapi-codegen/pull/2301#event-23959487913
https://github.com/mromaszewicz
mromaszewiczhttps://github.com/mromaszewicz
force-pushedhttps://github.com/oapi-codegen/oapi-codegen/compare/843d5d62a13fa7cfd0d81f67055f9f2aa9d296c6..241797e93d3ec8cd7a70ff8974a8e7e7c3d399e4
843d5d6https://github.com/oapi-codegen/oapi-codegen/commit/843d5d62a13fa7cfd0d81f67055f9f2aa9d296c6
241797ehttps://github.com/oapi-codegen/oapi-codegen/commit/241797e93d3ec8cd7a70ff8974a8e7e7c3d399e4
Compare https://github.com/oapi-codegen/oapi-codegen/compare/843d5d62a13fa7cfd0d81f67055f9f2aa9d296c6..241797e93d3ec8cd7a70ff8974a8e7e7c3d399e4
March 27, 2026 04:54https://github.com/oapi-codegen/oapi-codegen/pull/2301#event-23959511218
mromaszewiczhttps://github.com/mromaszewicz
March 26, 2026 22:02https://github.com/oapi-codegen/oapi-codegen/pull/2301#commits-pushed-603e70f
https://github.com/mromaszewicz
https://github.com/claude
support optional/nullable response headershttps://github.com/oapi-codegen/oapi-codegen/pull/2301/commits/603e70f4321fbc86fb93df77336d321e5d68e01f
603e70fhttps://github.com/oapi-codegen/oapi-codegen/pull/2301/commits/603e70f4321fbc86fb93df77336d321e5d68e01f
oapi-codegen#2267https://github.com/oapi-codegen/oapi-codegen/issues/2267
https://github.com/mromaszewicz
https://github.com/claude
Add HeadersImplicitlyRequired compatibility flag forhttps://github.com/oapi-codegen/oapi-codegen/pull/2301/commits/bf6c7692ae75973446b5a86d6e240a1bc151c4e0
oapi-codegen#2267https://github.com/oapi-codegen/oapi-codegen/issues/2267
bf6c769https://github.com/oapi-codegen/oapi-codegen/pull/2301/commits/bf6c7692ae75973446b5a86d6e240a1bc151c4e0
https://github.com/mromaszewicz
mromaszewiczhttps://github.com/mromaszewicz
force-pushedhttps://github.com/oapi-codegen/oapi-codegen/compare/241797e93d3ec8cd7a70ff8974a8e7e7c3d399e4..bf6c7692ae75973446b5a86d6e240a1bc151c4e0
241797ehttps://github.com/oapi-codegen/oapi-codegen/commit/241797e93d3ec8cd7a70ff8974a8e7e7c3d399e4
bf6c769https://github.com/oapi-codegen/oapi-codegen/commit/bf6c7692ae75973446b5a86d6e240a1bc151c4e0
Compare https://github.com/oapi-codegen/oapi-codegen/compare/241797e93d3ec8cd7a70ff8974a8e7e7c3d399e4..bf6c7692ae75973446b5a86d6e240a1bc151c4e0
March 27, 2026 05:02https://github.com/oapi-codegen/oapi-codegen/pull/2301#event-23959654225
https://github.com/jamietanna
jamietannahttps://github.com/jamietanna
Apr 11, 2026 https://github.com/oapi-codegen/oapi-codegen/pull/2301#pullrequestreview-4094009154
View reviewed changes https://github.com/oapi-codegen/oapi-codegen/pull/2301/files/bf6c7692ae75973446b5a86d6e240a1bc151c4e0
https://github.com/mromaszewicz
mromaszewiczhttps://github.com/mromaszewicz
a4c36dchttps://github.com/oapi-codegen/oapi-codegen/commit/a4c36dc26466d4d96dd985900a87101efd8ba66c
Apr 11, 2026https://github.com/oapi-codegen/oapi-codegen/pull/2301#event-24412105543
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2301
https://github.com/mromaszewicz
mromaszewiczhttps://github.com/mromaszewicz
Apr 21, 2026 https://github.com/oapi-codegen/oapi-codegen/pull/2301#ref-issue-4304506650
Strict-server templates: fiber and iris variants have drifted from stdhttp #2331 https://github.com/oapi-codegen/oapi-codegen/issues/2331
https://github.com/mromaszewicz
mromaszewiczhttps://github.com/mromaszewicz
April 29, 2026 21:31https://github.com/oapi-codegen/oapi-codegen/pull/2301#event-25009730058
Strict-server: no-content Visit*Response skips nullable/optional header gating #2349 https://github.com/oapi-codegen/oapi-codegen/issues/2349
Synchronize strict servers #2350 https://github.com/oapi-codegen/oapi-codegen/pull/2350
mromaszewiczhttps://github.com/mromaszewicz
Apr 30, 2026 https://github.com/oapi-codegen/oapi-codegen/pull/2301#ref-commit-218effe
https://github.com/mromaszewicz
https://github.com/claude
Synchronize strict servers (https://github.com/oapi-codegen/oapi-codegen/commit/218effec236f7f8a8dd8cfb424c7fb07756dc639
#2350https://github.com/oapi-codegen/oapi-codegen/pull/2350
)https://github.com/oapi-codegen/oapi-codegen/commit/218effec236f7f8a8dd8cfb424c7fb07756dc639
218effehttps://github.com/oapi-codegen/oapi-codegen/commit/218effec236f7f8a8dd8cfb424c7fb07756dc639
#2301https://github.com/oapi-codegen/oapi-codegen/pull/2301
#2225https://github.com/oapi-codegen/oapi-codegen/pull/2225
#2349https://github.com/oapi-codegen/oapi-codegen/issues/2349
#2331https://github.com/oapi-codegen/oapi-codegen/issues/2331
https://github.com/mromaszewicz
mromaszewiczhttps://github.com/mromaszewicz
Apr 30, 2026 https://github.com/oapi-codegen/oapi-codegen/pull/2301#ref-pullrequest-4355293319
Strict server: gate no-content response headers on nullable/optional #2351 https://github.com/oapi-codegen/oapi-codegen/pull/2351
mromaszewiczhttps://github.com/mromaszewicz
Apr 30, 2026 https://github.com/oapi-codegen/oapi-codegen/pull/2301#ref-commit-3338f93
https://github.com/mromaszewicz
https://github.com/claude
Strict server: gate no-content response headers on nullable/optional (https://github.com/oapi-codegen/oapi-codegen/commit/3338f939f211e618162b8dce75c88155e144bcb4
#…https://github.com/oapi-codegen/oapi-codegen/pull/2351
3338f93https://github.com/oapi-codegen/oapi-codegen/commit/3338f939f211e618162b8dce75c88155e144bcb4
…2351https://github.com/oapi-codegen/oapi-codegen/pull/2351
#2301https://github.com/oapi-codegen/oapi-codegen/pull/2301
#2301https://github.com/oapi-codegen/oapi-codegen/pull/2301
#2331https://github.com/oapi-codegen/oapi-codegen/issues/2331
#2349https://github.com/oapi-codegen/oapi-codegen/issues/2349
Optional response header #1412 https://github.com/oapi-codegen/oapi-codegen/pull/1412
Non-required header in the GIN strict server. #1301 https://github.com/oapi-codegen/oapi-codegen/issues/1301
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%2F2301
https://github.com/jamietanna
jamietanna https://github.com/jamietanna
https://github.com/oapi-codegen/oapi-codegen/pull/2301/files/bf6c7692ae75973446b5a86d6e240a1bc151c4e0
notable changes https://github.com/oapi-codegen/oapi-codegen/issues?q=state%3Aopen%20label%3A%22notable%20changes%22
Support nullable response headers https://github.com/oapi-codegen/oapi-codegen/issues/2267
Please reload this pagehttps://github.com/oapi-codegen/oapi-codegen/pull/2301
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.