Bump github.com/oapi-codegen/oapi-codegen/v2 from 2.4.1 to 2.7.1 - #13
Merged
patramsey merged 1 commit intoAug 2, 2026
Conversation
Bumps [github.com/oapi-codegen/oapi-codegen/v2](https://github.com/oapi-codegen/oapi-codegen) from 2.4.1 to 2.7.1. - [Release notes](https://github.com/oapi-codegen/oapi-codegen/releases) - [Commits](oapi-codegen/oapi-codegen@v2.4.1...v2.7.1) --- updated-dependencies: - dependency-name: github.com/oapi-codegen/oapi-codegen/v2 dependency-version: 2.7.1 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot
Bot
deleted the
dependabot/go_modules/github.com/oapi-codegen/oapi-codegen/v2-2.7.1
branch
August 2, 2026 02:22
This was referenced Aug 2, 2026
patramsey
added a commit
that referenced
this pull request
Aug 2, 2026
Two things that both trace back to merging a generator bump without regenerating. kin-openapi carries two open advisories, GHSA-r277-6w6q-xmqw (critical, fail-open authentication bypass in ValidationHandler.Load) and GHSA-jpcw-4wr7-c3vq (nil-pointer panic in openapi3filter), both patched in 0.144.0. Neither is reachable here: kin-openapi enters the graph only through the oapi-codegen tool, `go list -deps ./...` finds it in zero packages the binary imports, nothing in this repo imports openapi3filter, and govulncheck is clean. Bumping anyway — it costs nothing and clears the alert. Dependabot's own PR for this (#14) was cut against main before the oapi-codegen and Go bumps landed, so merging it would have reverted Go to 1.26.4 (reintroducing GO-2026-5856) and oapi-codegen to 2.4.1. This does the bump on current main instead. Regenerating: #13 moved oapi-codegen 2.4.1 -> 2.7.1 but left zz_generated.go untouched, so the committed output no longer matched what the generator produces — 1907 insertions and 843 deletions of drift. The regenerated file removes nothing from the exported surface (825 -> 936 declarations, all 111 additions are Valid() enum validators that 2.7.x emits). Build, full test suite, and lint all pass on it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NMbe9JETGG73ue5S181hkA
patramsey
added a commit
that referenced
this pull request
Aug 2, 2026
Adds `make verify-generate`, run in CI: regenerate, then `git diff --exit-code` on zz_generated.go. This is the systemic fix for the previous commit. Bumping oapi-codegen changes what it emits, but a dependency-bump PR regenerates nothing and touches no file that would show it — so #13 merged green while leaving the committed generated code 2750 lines away from what its own generator produces. Nothing in build, test, or lint notices, because the stale file still compiles and still passes. With this step, the bump PR itself goes red and names the fix, instead of the drift surfacing months later tangled into an unrelated change. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NMbe9JETGG73ue5S181hkA
patramsey
added a commit
that referenced
this pull request
Aug 2, 2026
…rator drift (#18) * fix: bump kin-openapi to 0.144.0 and regenerate Two things that both trace back to merging a generator bump without regenerating. kin-openapi carries two open advisories, GHSA-r277-6w6q-xmqw (critical, fail-open authentication bypass in ValidationHandler.Load) and GHSA-jpcw-4wr7-c3vq (nil-pointer panic in openapi3filter), both patched in 0.144.0. Neither is reachable here: kin-openapi enters the graph only through the oapi-codegen tool, `go list -deps ./...` finds it in zero packages the binary imports, nothing in this repo imports openapi3filter, and govulncheck is clean. Bumping anyway — it costs nothing and clears the alert. Dependabot's own PR for this (#14) was cut against main before the oapi-codegen and Go bumps landed, so merging it would have reverted Go to 1.26.4 (reintroducing GO-2026-5856) and oapi-codegen to 2.4.1. This does the bump on current main instead. Regenerating: #13 moved oapi-codegen 2.4.1 -> 2.7.1 but left zz_generated.go untouched, so the committed output no longer matched what the generator produces — 1907 insertions and 843 deletions of drift. The regenerated file removes nothing from the exported surface (825 -> 936 declarations, all 111 additions are Valid() enum validators that 2.7.x emits). Build, full test suite, and lint all pass on it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NMbe9JETGG73ue5S181hkA * ci: fail when generated code drifts from its generator Adds `make verify-generate`, run in CI: regenerate, then `git diff --exit-code` on zz_generated.go. This is the systemic fix for the previous commit. Bumping oapi-codegen changes what it emits, but a dependency-bump PR regenerates nothing and touches no file that would show it — so #13 merged green while leaving the committed generated code 2750 lines away from what its own generator produces. Nothing in build, test, or lint notices, because the stale file still compiles and still passes. With this step, the bump PR itself goes red and names the fix, instead of the drift surfacing months later tangled into an unrelated change. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NMbe9JETGG73ue5S181hkA --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps github.com/oapi-codegen/oapi-codegen/v2 from 2.4.1 to 2.7.1.
Release notes
Sourced from github.com/oapi-codegen/oapi-codegen/v2's releases.
... (truncated)
Commits
19c6282Improve string escaping and add tests (#2396)b363ca5refactor(codegen): better Swagger compression, modern naming (#1909)08b3018Route server enums through general enums codegen (#2358)fbc8e0drevert external-ref carve-out in strict-server response embedding (#2010) (#2...7517e09respect output file path on gofmt failure (#2356)9643421fix example codegen (#2354)036a54bper-operation middleware in Echo (#2353)3338f93Strict server: gate no-content response headers on nullable/optional (#2351)218effeSynchronize strict servers (#2350)81b9d95Overhaul anonymous schema hoisting (#2348)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)You can disable automated security fix PRs for this repo from the Security Alerts page.