chore(deps): update module github.com/oapi-codegen/oapi-codegen/v2 to v2.6.0 #71

Open
renovate-bot wants to merge 3 commits from renovate/github.com-oapi-codegen-oapi-codegen-v2-2.x into master
Collaborator

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/oapi-codegen/oapi-codegen/v2 v2.5.1v2.6.0 age adoption passing confidence

Release Notes

oapi-codegen/oapi-codegen (github.com/oapi-codegen/oapi-codegen/v2)

v2.6.0: : 7th anniversary release 🎂

Compare Source

For those that aren't aware, 7 years ago to the day, oapi-codegen was born!

(Well, technically it's tonight at midnight UTC, but who's splitting hairs?)

There's nothing too special planned for today, but we thought it'd be the perfect time to cut a slice of cake a release!

🎉 Notable changes

New generated code requires oapi-codegen/runtime v1.2.0+

As part of #​2256, github.com/oapi-codegen/runtime v1.2.0 is needed alongside github.com/oapi-codegen/oapi-codegen, for new generated code.

This is providing a more future-proofed means to bind parameters.

See the release notes for the runtime package, and #​2256 for more information.

oapi-codegen was part of the GitHub Secure Open Source Fund

oapi-codegen was one of the projects taking part in the third GitHub Secure Open Source Fund session.

We've written up more about what we've learned, and have some more things to share with you over the coming months about lessons we've learned and improvements we've taken that we can share.

We were pretty chuffed to be selected, and it's already helped improve our security posture as a project, which is also very important for the wider ecosystem!

go directive bump in next release

Long-time users will be aware that we work very hard to try and keep our requirement for Go source compatibility, through the go directive, especially as we recommend folks use oapi-codegen as a source-tracked dependency.

For more details about this, see our Support Model docs.

In the next minor release, we'll be setting our minimum go directive to Go 1.24 (End-of-Life on 2026-02-11), as it's required for a number of dependencies of ours to be updated any higher, and a change to the module import path for Speakeasy's OpenAPI Overlay library requires us fix this centrally for our users to be able to continue updating their libraries.

[!NOTE]
Nothing is changing as part of v2.6.0, this is a pre-announcement for v2.7.0.

Behind the scenes cleanup

There's also been some work behind-the-scenes to try and clean up outstanding issues (of which we know there are many!) that have been fixed, as well as Marcin's work on trying to do some more significant rework of the internals with help from Claude.

There's still, as ever, work to go with this - as we've mentioned before, sponsoring our work would be greatly appreciated, so we can continue to put in the work, considering this is a widely used and depended on project.

🚀 New features and improvements

🐛 Bug fixes

📝 Documentation updates

👻 Maintenance

📦 Dependency updates

8 changes
  • chore(deps): update module github.com/golangci/golangci-lint to v2.10.1 (makefile) (#​2153) @​renovate[bot]
  • chore(deps): update github/codeql-action action to v4.32.4 (.github/workflows) (#​2157) @​renovate[bot]
  • chore(deps): update actions/setup-go action to v6.3.0 (.github/workflows) (#​2164) @​renovate[bot]
  • chore(deps): update actions/checkout action to v6 (.github/workflows) - autoclosed (#​2165) @​renovate[bot]
  • chore(deps): update release-drafter/release-drafter action to v6.2.0 (.github/workflows) (#​2253) @​renovate[bot]
  • chore(deps): update actions/upload-artifact action to v7 (.github/workflows) (#​2254) @​renovate[bot]
  • chore(deps): update dessant/label-actions action to v5 (.github/workflows) (#​2255) @​renovate[bot]
  • chore(deps): update release-drafter/release-drafter action to v6.1.0 (.github/workflows) (#​2132) @​renovate[bot]

Sponsors

We would like to thank our sponsors for their support during this release.

DevZero logo

Cybozu logo


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Adoption](https://docs.renovatebot.com/merge-confidence/) | [Passing](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---|---|---| | [github.com/oapi-codegen/oapi-codegen/v2](https://github.com/oapi-codegen/oapi-codegen) | `v2.5.1` → `v2.6.0` | ![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2foapi-codegen%2foapi-codegen%2fv2/v2.6.0?slim=true) | ![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2foapi-codegen%2foapi-codegen%2fv2/v2.6.0?slim=true) | ![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2foapi-codegen%2foapi-codegen%2fv2/v2.5.1/v2.6.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2foapi-codegen%2foapi-codegen%2fv2/v2.5.1/v2.6.0?slim=true) | --- ### Release Notes <details> <summary>oapi-codegen/oapi-codegen (github.com/oapi-codegen/oapi-codegen/v2)</summary> ### [`v2.6.0`](https://github.com/oapi-codegen/oapi-codegen/releases/tag/v2.6.0): : 7th anniversary release 🎂 [Compare Source](https://github.com/oapi-codegen/oapi-codegen/compare/v2.5.1...v2.6.0) For those that aren't aware, [7 years ago to the day](https://github.com/oapi-codegen/oapi-codegen/commit/e7757a98520dc622499143d9b56bd2046ef1b55e), `oapi-codegen` was born! (Well, technically it's tonight at midnight UTC, but who's splitting hairs?) There's nothing too special planned for today, but we thought it'd be the perfect time to cut ~~a slice of cake~~ a release! #### 🎉 Notable changes ##### New generated code requires `oapi-codegen/runtime` v1.2.0+ As part of [#&#8203;2256](https://github.com/oapi-codegen/oapi-codegen/issues/2256), [`github.com/oapi-codegen/runtime` v1.2.0](https://github.com/oapi-codegen/runtime/releases/tag/v1.2.0) is needed alongside `github.com/oapi-codegen/oapi-codegen`, for new generated code. This is providing a more future-proofed means to bind parameters. See the release notes for the runtime package, and [#&#8203;2256](https://github.com/oapi-codegen/oapi-codegen/issues/2256) for more information. ##### `oapi-codegen` was part of the GitHub Secure Open Source Fund `oapi-codegen` was one of the projects taking part in the third [GitHub Secure Open Source Fund](https://github.com/open-source/github-secure-open-source-fund) session. [We've written up more about what we've learned](https://www.jvt.me/posts/2026/02/17/oapi-codegen-github-secure/), and have some more things to share with you over the coming months about lessons we've learned and improvements we've taken that we can share. We were pretty chuffed to be selected, and it's already helped improve our security posture as a project, which is also very important for the wider ecosystem! ##### `go` directive bump in next release Long-time users will be aware that we work very hard to try and keep our requirement for Go source compatibility, through the `go` directive, especially as we recommend folks use `oapi-codegen` as a source-tracked dependency. For more details about this, see our [Support Model docs](https://github.com/oapi-codegen/oapi-codegen/blob/v2.6.0/SUPPORT.md#minimum-required-go-toolchain-version). In the next minor release, we'll be setting our minimum `go` directive to Go 1.24 ([End-of-Life on 2026-02-11](https://endoflife.date/go)), as it's required for a number of dependencies of ours to be updated any higher, and [a change to the module import path for Speakeasy's OpenAPI Overlay library](https://github.com/oapi-codegen/oapi-codegen/issues/2230) requires us fix this centrally for our users to be able to continue updating their libraries. > \[!NOTE] > Nothing is changing as part of v2.6.0, this is a pre-announcement for v2.7.0. ##### Behind the scenes cleanup There's also been some work behind-the-scenes to try and clean up outstanding issues (of which we know there are many!) that have been fixed, as well as Marcin's work on trying to do some more significant rework of the internals with help from Claude. There's still, as ever, work to go with this - as we've mentioned before, sponsoring our work would be greatly appreciated, so we can continue to put in the work, considering this is a widely used and depended on project. #### 🚀 New features and improvements - feat: Pass schema type/formats to runtime v1.2.0 to allow better parameter serialization ([#&#8203;2256](https://github.com/oapi-codegen/oapi-codegen/issues/2256)) [@&#8203;mromaszewicz](https://github.com/mromaszewicz) - feat: add Valid() method to generated enum types ([#&#8203;2227](https://github.com/oapi-codegen/oapi-codegen/issues/2227)) [@&#8203;mromaszewicz](https://github.com/mromaszewicz) - Support nullable slice elements and map values ([#&#8203;2185](https://github.com/oapi-codegen/oapi-codegen/issues/2185)) [@&#8203;iamtakingiteasy](https://github.com/iamtakingiteasy) - feat: add configurable type mapping for OpenAPI primitive types ([#&#8203;2223](https://github.com/oapi-codegen/oapi-codegen/issues/2223)) [@&#8203;mromaszewicz](https://github.com/mromaszewicz) - Support unions with multiple mappings pointing to a single underlying type ([#&#8203;2071](https://github.com/oapi-codegen/oapi-codegen/issues/2071)) [@&#8203;tobio](https://github.com/tobio) - feat: add support for custom package alias for external ref imports ([#&#8203;2211](https://github.com/oapi-codegen/oapi-codegen/issues/2211)) [@&#8203;InventivetalentDev](https://github.com/InventivetalentDev) - feat(output-options): add `resolve-type-name-collisions` to avoid name collisions ([#&#8203;200](https://github.com/oapi-codegen/oapi-codegen/issues/200)) [@&#8203;mgurevin](https://github.com/mgurevin) - Adopt fiber middleware template for updated GetReqHeaders() method signature ([#&#8203;1419](https://github.com/oapi-codegen/oapi-codegen/issues/1419)) [@&#8203;getBolted](https://github.com/getBolted) #### 🐛 Bug fixes - fix: qualify external ref schema types in default response codes ([#&#8203;2241](https://github.com/oapi-codegen/oapi-codegen/issues/2241)) [@&#8203;mromaszewicz](https://github.com/mromaszewicz) - fix: add omitempty to optional nullable fields ([#&#8203;2221](https://github.com/oapi-codegen/oapi-codegen/issues/2221)) [@&#8203;mromaszewicz](https://github.com/mromaszewicz) - fix(codegen): generate `nullable.Nullable` in arrays ([#&#8203;2242](https://github.com/oapi-codegen/oapi-codegen/issues/2242)) [@&#8203;jamietanna](https://github.com/jamietanna) - fix: support x-oapi-codegen-extra-tags on parameter schemas ([#&#8203;2232](https://github.com/oapi-codegen/oapi-codegen/issues/2232)) ([#&#8203;2235](https://github.com/oapi-codegen/oapi-codegen/issues/2235)) [@&#8203;mromaszewicz](https://github.com/mromaszewicz) - fix(templates/client): correctly nil check query parameters ([#&#8203;2237](https://github.com/oapi-codegen/oapi-codegen/issues/2237)) [@&#8203;jamietanna](https://github.com/jamietanna) - fix(server-urls): restore generation of constants ([#&#8203;2239](https://github.com/oapi-codegen/oapi-codegen/issues/2239)) [@&#8203;jamietanna](https://github.com/jamietanna) - fix(server-urls): use URL in GoDoc if `description` is empty ([#&#8203;2226](https://github.com/oapi-codegen/oapi-codegen/issues/2226)) [@&#8203;jamietanna](https://github.com/jamietanna) - fix: set indentation to 2 when marshalling spec for overlay ([#&#8203;2172](https://github.com/oapi-codegen/oapi-codegen/issues/2172)) [@&#8203;wndhydrnt](https://github.com/wndhydrnt) - fix: handle optional request bodies in strict server mode ([#&#8203;2222](https://github.com/oapi-codegen/oapi-codegen/issues/2222)) [@&#8203;mromaszewicz](https://github.com/mromaszewicz) - fix(strict-server): generate correct type for `$ref` text responses ([#&#8203;2225](https://github.com/oapi-codegen/oapi-codegen/issues/2225)) [@&#8203;mromaszewicz](https://github.com/mromaszewicz) - Fix schema gathering oversight ([#&#8203;2219](https://github.com/oapi-codegen/oapi-codegen/issues/2219)) [@&#8203;mromaszewicz](https://github.com/mromaszewicz) - fix: handle duplicate path parameters in OpenAPI specs ([#&#8203;2220](https://github.com/oapi-codegen/oapi-codegen/issues/2220)) [@&#8203;mromaszewicz](https://github.com/mromaszewicz) - fix: escape quoted media type directives ([#&#8203;2217](https://github.com/oapi-codegen/oapi-codegen/issues/2217)) [@&#8203;brahmlower](https://github.com/brahmlower) - Fix Iris strict server for no content case ([#&#8203;1411](https://github.com/oapi-codegen/oapi-codegen/issues/1411)) [@&#8203;ShouheiNishi](https://github.com/ShouheiNishi) - Fixes type collision for enum values that start with \_ (underscore) ([#&#8203;1438](https://github.com/oapi-codegen/oapi-codegen/issues/1438)) [@&#8203;ula](https://github.com/ula) #### 📝 Documentation updates - chore: readme update ([#&#8203;2209](https://github.com/oapi-codegen/oapi-codegen/issues/2209)) [@&#8203;mromaszewicz](https://github.com/mromaszewicz) - docs: fix link to example ([#&#8203;1884](https://github.com/oapi-codegen/oapi-codegen/issues/1884)) [@&#8203;rkosegi](https://github.com/rkosegi) - docs(extensions): correct links to examples ([#&#8203;1836](https://github.com/oapi-codegen/oapi-codegen/issues/1836)) [@&#8203;yuro241](https://github.com/yuro241) - docs(sponsors): update section ([#&#8203;2195](https://github.com/oapi-codegen/oapi-codegen/issues/2195)) [@&#8203;jamietanna](https://github.com/jamietanna) - docs(sponsors): remove Elastic as a sponsor ([#&#8203;2083](https://github.com/oapi-codegen/oapi-codegen/issues/2083)) [@&#8203;jamietanna](https://github.com/jamietanna) #### 👻 Maintenance - chore(renovate): add module path to security updates + override test-only dependencies' label ([#&#8203;2249](https://github.com/oapi-codegen/oapi-codegen/issues/2249)) [@&#8203;jamietanna](https://github.com/jamietanna) - Configure Greptile code review ([#&#8203;2236](https://github.com/oapi-codegen/oapi-codegen/issues/2236)) [@&#8203;mromaszewicz](https://github.com/mromaszewicz) - style(gofix): Apply `go fix` ([#&#8203;2229](https://github.com/oapi-codegen/oapi-codegen/issues/2229)) [@&#8203;gaiaz-iusipov](https://github.com/gaiaz-iusipov) - Run golangci-lint on a supported Go version ([#&#8203;2215](https://github.com/oapi-codegen/oapi-codegen/issues/2215)) [@&#8203;mromaszewicz](https://github.com/mromaszewicz) - refactor(internal): move Fiber tests into their own modules ([#&#8203;2212](https://github.com/oapi-codegen/oapi-codegen/issues/2212)) [@&#8203;mromaszewicz](https://github.com/mromaszewicz) - build: use a re-usable, single, workflow for running CI ([#&#8203;2205](https://github.com/oapi-codegen/oapi-codegen/issues/2205)) [@&#8203;jamietanna](https://github.com/jamietanna) - fix(renovate): only run `make tidy` after Go module updates ([#&#8203;2159](https://github.com/oapi-codegen/oapi-codegen/issues/2159)) [@&#8203;jamietanna](https://github.com/jamietanna) - chore(renovate): run `make tidy` after dependency updates to `go.mod` ([#&#8203;2150](https://github.com/oapi-codegen/oapi-codegen/issues/2150)) [@&#8203;jamietanna](https://github.com/jamietanna) #### 📦 Dependency updates <details> <summary>8 changes</summary> - chore(deps): update module github.com/golangci/golangci-lint to v2.10.1 (makefile) ([#&#8203;2153](https://github.com/oapi-codegen/oapi-codegen/issues/2153)) @&#8203;[renovate\[bot\]](https://github.com/apps/renovate) - chore(deps): update github/codeql-action action to v4.32.4 (.github/workflows) ([#&#8203;2157](https://github.com/oapi-codegen/oapi-codegen/issues/2157)) @&#8203;[renovate\[bot\]](https://github.com/apps/renovate) - chore(deps): update actions/setup-go action to v6.3.0 (.github/workflows) ([#&#8203;2164](https://github.com/oapi-codegen/oapi-codegen/issues/2164)) @&#8203;[renovate\[bot\]](https://github.com/apps/renovate) - chore(deps): update actions/checkout action to v6 (.github/workflows) - autoclosed ([#&#8203;2165](https://github.com/oapi-codegen/oapi-codegen/issues/2165)) @&#8203;[renovate\[bot\]](https://github.com/apps/renovate) - chore(deps): update release-drafter/release-drafter action to v6.2.0 (.github/workflows) ([#&#8203;2253](https://github.com/oapi-codegen/oapi-codegen/issues/2253)) @&#8203;[renovate\[bot\]](https://github.com/apps/renovate) - chore(deps): update actions/upload-artifact action to v7 (.github/workflows) ([#&#8203;2254](https://github.com/oapi-codegen/oapi-codegen/issues/2254)) @&#8203;[renovate\[bot\]](https://github.com/apps/renovate) - chore(deps): update dessant/label-actions action to v5 (.github/workflows) ([#&#8203;2255](https://github.com/oapi-codegen/oapi-codegen/issues/2255)) @&#8203;[renovate\[bot\]](https://github.com/apps/renovate) - chore(deps): update release-drafter/release-drafter action to v6.1.0 (.github/workflows) ([#&#8203;2132](https://github.com/oapi-codegen/oapi-codegen/issues/2132)) @&#8203;[renovate\[bot\]](https://github.com/apps/renovate) </details> #### Sponsors We would like to thank our sponsors for their support during this release. <p align="center"> <a href="https://www.devzero.io/lp/dev-environment?utm_campaign=github&utm_source=oapi-codegen%20repo&utm_medium=github%20sponsorship"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/oapi-codegen/oapi-codegen/v2.6.0/.github/sponsors/devzero-light.svg"> <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/oapi-codegen/oapi-codegen/v2.6.0/.github/sponsors/devzero-dark.svg"> <img alt="DevZero logo" src="https://raw.githubusercontent.com/oapi-codegen/oapi-codegen/v2.6.0/.github/sponsors/devzero-dark.svg" height="100px"> </picture> </a> </p> <p align="center"> <a href="https://cybozu.co.jp/?utm_source=oapi-codegen+repo&utm_medium=github+sponsorship"> <img alt="Cybozu logo" src="https://raw.githubusercontent.com/oapi-codegen/oapi-codegen/v2.6.0/.github/sponsors/cybozu.svg" height="100px"> </a> </p> </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi43Mi4wIiwidXBkYXRlZEluVmVyIjoiNDIuNzIuMCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->
renovate-bot force-pushed renovate/github.com-oapi-codegen-oapi-codegen-v2-2.x from 7f1aaab244 to ca2bb8c610 2026-03-07 05:15:00 +00:00 Compare
renovate-bot force-pushed renovate/github.com-oapi-codegen-oapi-codegen-v2-2.x from ca2bb8c610 to 06aacdbe2b 2026-03-07 07:15:04 +00:00 Compare
renovate-bot force-pushed renovate/github.com-oapi-codegen-oapi-codegen-v2-2.x from 06aacdbe2b to dcf357e4e2 2026-03-08 12:10:39 +00:00 Compare
Author
Collaborator

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

### Edited/Blocked Notification Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. ⚠️ **Warning**: custom changes will be lost.
This pull request has changes conflicting with the target branch.
  • pkg/analyzer/rbl.go
  • web/src/lib/components/WhitelistCard.svelte
  • web/src/routes/test/[test]/+page.svelte
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/github.com-oapi-codegen-oapi-codegen-v2-2.x:renovate/github.com-oapi-codegen-oapi-codegen-v2-2.x
git switch renovate/github.com-oapi-codegen-oapi-codegen-v2-2.x

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch master
git merge --no-ff renovate/github.com-oapi-codegen-oapi-codegen-v2-2.x
git switch renovate/github.com-oapi-codegen-oapi-codegen-v2-2.x
git rebase master
git switch master
git merge --ff-only renovate/github.com-oapi-codegen-oapi-codegen-v2-2.x
git switch renovate/github.com-oapi-codegen-oapi-codegen-v2-2.x
git rebase master
git switch master
git merge --no-ff renovate/github.com-oapi-codegen-oapi-codegen-v2-2.x
git switch master
git merge --squash renovate/github.com-oapi-codegen-oapi-codegen-v2-2.x
git switch master
git merge --ff-only renovate/github.com-oapi-codegen-oapi-codegen-v2-2.x
git switch master
git merge renovate/github.com-oapi-codegen-oapi-codegen-v2-2.x
git push origin master
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
happyDomain/happyDeliver!71
No description provided.