Skip to content

fix(deps): update module github.com/oapi-codegen/oapi-codegen/v2 to v2.8.2 - #733

Merged
renovate[bot] merged 1 commit into
mainfrom
renovate/go-dependencies-(non-major)
Nov 1, 2026
Merged

renovate[bot] merged 1 commit into
mainfrom
renovate/go-dependencies-(non-major)

Conversation

@renovate

@renovate renovate Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/oapi-codegen/oapi-codegen/v2 v2.8.1 → v2.8.2 age confidence

Release Notes

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

v2.8.2: : Security fixes for code generation

Compare Source

🎉 Notable changes

This is a security release on top of v2.8.1. It addresses two further security findings reported against oapi-codegen, both in code generation:

Both only matter when you generate code from a specification, or a document it references, that you do not control. Thanks to @​manus-use for reporting them.

Implicit discriminator mapping keys are validated

When a discriminated oneOf or anyOf lists a $ref variant that the mapping does not name, the generator maps it under the schema's name and writes that name into the generated ValueByDiscriminator switch. Explicit mapping keys were already checked, but the implicit ones were not, and a schema name is otherwise allowed to contain quotes. The derived key is now validated like an explicit one, including when the union is assembled by an allOf merge from a member holding the variants and another holding the discriminator, and a backslash is now rejected in any mapping key, since it would start an escape sequence in the generated case label. A null-typed branch, which the generator skips as a nullability marker, is left alone.

The contents of whole-document $refs are validated

A $ref without a fragment, such as $ref: ./other.yaml, has no name the generated code could refer to, so the generator inlines the referenced document as if it were written in place. Spec validation stopped at every $ref on the assumption that external content is never copied into the output, so the property names, parameter names and header names of such a document reached struct tags and string literals unchecked. The validator now walks a whole-document reference's contents for schemas, parameters, request bodies, responses, headers and callbacks, visiting each document once. References with a fragment are still not followed, and a document replaced by an x-go-type override is not walked either, since none of it reaches the generated code.

As with v2.8.1, valid specifications generate byte-for-byte the same code as before; a specification that would have produced code it had no business producing is now rejected with an error that points at the offending value.

🐛 Bug fixes

  • Validate implicit discriminator mapping keys and the contents of whole-document $refs (2.8.x backport) (#​2649) @​mromaszewicz

Sponsors

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

DevZero logo

Cybozu logo

We'd also like to thank Greptile for allowing our project to use their code review system.

Greptile logo


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the deps label Nov 1, 2026
@renovate
renovate Bot enabled auto-merge (squash) November 1, 2026 01:34
@codecov

codecov Bot commented Nov 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.80%. Comparing base (02cd682) to head (b0cdb65).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #733      +/-   ##
==========================================
+ Coverage   89.77%   89.80%   +0.02%     
==========================================
  Files        1306     1306              
  Lines      132987   132987              
==========================================
+ Hits       119387   119424      +37     
+ Misses      13591    13554      -37     
  Partials        9        9              

see 29 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@renovate
renovate Bot merged commit 672293f into main Nov 1, 2026
34 checks passed
@renovate
renovate Bot deleted the renovate/go-dependencies-(non-major) branch November 1, 2026 02:00
@fclairamb fclairamb mentioned this pull request Nov 1, 2026
fclairamb added a commit that referenced this pull request Nov 5, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.43.1](v0.43.0...v0.43.1)
(2026-11-05)


### Bug Fixes

* **ai:** send DeepSeek's reasoning_content back on assistant turns
([#739](#739))
([d62bfc6](d62bfc6))
* **dash0:** email-scanner filter, non-admin crash, audit incident
target ([#755](#755))
([920d231](920d231))
* **deps:** update dependency @hookform/resolvers to v7
([#736](#736))
([f44707a](f44707a))
* **deps:** update github.com/dop251/goja digest to 2413f21
([#756](#756))
([166579c](166579c))
* **deps:** update github.com/dop251/goja digest to 622d100
([#746](#746))
([f46b46c](f46b46c))
* **deps:** update github.com/dop251/goja digest to a177d21
([#747](#747))
([09b0d72](09b0d72))
* **deps:** update github.com/dop251/goja digest to a537e0c
([#754](#754))
([70ca3d6](70ca3d6))
* **deps:** update github.com/dop251/goja digest to a7bf126
([#753](#753))
([962eff3](962eff3))
* **deps:** update github.com/dop251/goja digest to cf2ff0e
([#730](#730))
([92b6c17](92b6c17))
* **deps:** update github.com/dop251/goja digest to f5d1d00
([#750](#750))
([44c6ecc](44c6ecc))
* **deps:** update go dependencies (non-major)
([#748](#748))
([e3c2416](e3c2416))
* **deps:** update go dependencies (non-major)
([#751](#751))
([146bec5](146bec5))
* **deps:** update go dependencies (non-major)
([#758](#758))
([17b0d6d](17b0d6d))
* **deps:** update module github.com/dlclark/regexp2/v2 to v2.12.0
([#737](#737))
([50fdb8d](50fdb8d))
* **deps:** update module github.com/oapi-codegen/oapi-codegen/v2 to
v2.8.2 ([#733](#733))
([672293f](672293f))
* **deps:** update module modernc.org/sqlite to v1.61.1
([#732](#732))
([02cd682](02cd682))
* **docs:** tour video under 500 KB
([#752](#752))
([1cdcce4](1cdcce4))
* **reports:** point "Open dashboard" at the organization's dashboard
([#744](#744))
([061eca0](061eca0))
* **security:** JS check memory budget gaps and regexp time limit,
Discord link re-authentication, invitation cap
([#735](#735))
([6026b05](6026b05))
* **security:** JS check memory budget residuals, regexp call time and
process isolation, crawl link scheme, subscriber list role, reset links
on password change
([#742](#742))
([de9aac0](de9aac0))
* **security:** JS isolation parent decode budget, RegExp symbol methods
budget, single-use TOTP codes
([#749](#749))
([d55abe5](d55abe5))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants