Skip to content

chore(deps): bump github.com/oapi-codegen/runtime from 1.8.0 to 1.9.0 in the oapi-codegen group across 1 directory - #5568

Merged
chrisgacsal merged 1 commit into
mainfrom
dependabot/go_modules/oapi-codegen-dba42109dc
Nov 20, 2026
Merged

chrisgacsal merged 1 commit into
mainfrom
dependabot/go_modules/oapi-codegen-dba42109dc

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Bumps the oapi-codegen group with 1 update in the / directory: github.com/oapi-codegen/runtime.

Updates github.com/oapi-codegen/runtime from 1.8.0 to 1.9.0

Release notes

Sourced from github.com/oapi-codegen/runtime's releases.

v1.9.0: Slimmer dependencies and a pluggable JSON codec

This release removes the strictmiddleware packages, which pulled every supported web framework into the dependency graph of every program that imports the runtime, and which generated code has not used since oapi-codegen v2.7.0. It adds a process-wide JSON codec that the upcoming oapi-codegen v2.9.0 will route all generated JSON encoding and decoding through, binds uuid.UUID fields in deepObject parameters, and fixes label and matrix path parameters whose value contains the style's delimiter. The minimum Go version is now 1.26.

Notable Changes

☢️ Breaking: the strictmiddleware packages are gone

The strictmiddleware/{echo,echo-v5,gin,iris,nethttp} packages held a handful of StrictHandlerFunc and StrictMiddlewareFunc type definitions, and nothing else. To define them, the runtime had to import Echo, Gin and Iris, so every program importing github.com/oapi-codegen/runtime dragged all three frameworks and their transitive dependencies into its go.mod, whether it used them or not. Removing the packages (#181, closes #180) takes the root module from 5 direct and 66 indirect requirements down to 4 direct and 1 indirect, with no web framework among them. The separate strictmiddleware/echo-v5 module is removed as well.

Code generated by oapi-codegen v2.7.0 and later declares these types itself and never imports the packages, so for anyone on a current generator the upgrade is a go get and a go mod tidy that deletes a lot of lines. Code generated by oapi-codegen v2.6.0 or earlier still imports them and will not compile against this release.

[!IMPORTANT] If your project uses generated code from oapi-codegen v2.6.0 or earlier, stay on runtime v1.8.0 until you have regenerated with v2.7.0 or later. Do not upgrade the runtime first.

Pluggable JSON codec

Everything the runtime encodes or decodes as JSON now goes through a single, process-wide codec (#183). The default is encoding/json, unchanged, and a program can replace it in its main package:

runtime.SetJSONCodec(myCodec) // any value with Marshal(any) ([]byte, error) and Unmarshal([]byte, any) error

The API is:

  • JSONCodec: the two-method interface a replacement implements. StdJSONCodec is encoding/json's pair, and can be embedded to override just one method, for instance to turn off HTML escaping.
  • StreamingJSONCodec: an optional second interface, MarshalWrite(io.Writer, any) and UnmarshalRead(io.Reader, any), for codecs that can stream request and response bodies instead of buffering them. A codec without it is buffered through Marshal and Unmarshal.
  • JSONMarshal, JSONUnmarshal, JSONMarshalWrite and JSONUnmarshalRead: the functions that generated code and the runtime itself call. JSONUnmarshalRead returns io.EOF for an empty body whichever codec is in use, which is how strict servers detect an optional body that was left out.
  • SetJSONCodec(nil) restores the default.

Within the runtime, deepObject and form parameter encoding, BindJSONBody, and the types package's Date, Duration, Email and File all use the codec already. Generated code still calls encoding/json directly today. oapi-codegen v2.9.0 will switch every generated json.Marshal, json.Unmarshal and strict response encoder over to these functions, at which point one SetJSONCodec call covers a whole program: models, clients and servers. This replaces the per-package json-encoding configuration proposed in oapi-codegen/oapi-codegen#2371, where the design discussion lives, and it is the intended path to encoding/json/v2. Thanks to @​CRaLFa for the implementation.

uuid.UUID fields bind in deepObject parameters

A deepObject query parameter with a format: uuid field, such as ?filter[entity]=6ba7b810-9dad-11d1-80b4-00c04fd430c8, failed with unhandled type: uuid.UUID. uuid.UUID is a [16]byte, so it never reached the branch that checks for encoding.TextUnmarshaler. Array-kind types that implement UnmarshalText now bind, as they already did everywhere else in the runtime; uuid.UUID, *uuid.UUID, slices and map values all work. Other fixed-size arrays are still rejected as before. Thanks to @​youdie006 (#171).

label and matrix scalar path parameters are no longer split

A scalar label or matrix path parameter whose value contained the style's delimiter, such as big,red sent as .big%2Cred, was rejected with "expected single value, got N parts" once the router had decoded the segment. The primitive branch now strips only the style prefix and never splits the value, matching the fix #114 made for the simple style. Arrays, structs and maps are unchanged (#182, closes #175).

Go 1.26

The module now requires Go 1.26, the oldest supported Go release, and all remaining dependencies are at their latest versions (#178).

☢️ Breaking changes

🚀 New features and improvements

... (truncated)

Commits
  • 1b74ca8 fix: bind uuid.UUID fields in deepObject parameters (#171)
  • 171731d Remove strictmiddleware type definitions (#181)
  • 2de32b1 feat: add process-wide JSON codec (#183)
  • 754d5c0 Stop splitting label and matrix scalar path parameters (#182)
  • 108a45d Update Go to 1.26 and all dependencies to their latest versions (#178)
  • ce3e04f fix(deps): update module github.com/gin-gonic/gin to v1.11.0 (#168)
  • b2e1019 fix(deps): update module github.com/oapi-codegen/nullable to v1.2.0 (#169)
  • 694cd4a chore(deps): update module github.com/klauspost/compress to v1.18.7 [security...
  • a99390d fix(deps): update module github.com/stretchr/testify to v1.12.1 (#170)
  • e8d61e2 fix(deps): update module github.com/labstack/echo/v5 to v5.4.4 (#172)
  • Additional commits viewable in compare view

@dependabot
dependabot Bot requested a review from a team as a code owner November 18, 2026 11:55
@dependabot dependabot Bot added area/dependencies Pull requests that update a dependency file dependency/go Pull requests that update Go code release-note/dependency-update Release note: Dependency Updates labels Nov 18, 2026
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dependabot
dependabot Bot force-pushed the dependabot/go_modules/oapi-codegen-dba42109dc branch from 6953f86 to 6d63d47 Compare November 19, 2026 11:54
Bumps the oapi-codegen group with 1 update in the / directory: [github.com/oapi-codegen/runtime](https://github.com/oapi-codegen/runtime).


Updates `github.com/oapi-codegen/runtime` from 1.8.0 to 1.9.0
- [Release notes](https://github.com/oapi-codegen/runtime/releases)
- [Commits](oapi-codegen/runtime@v1.8.0...v1.9.0)

---
updated-dependencies:
- dependency-name: github.com/oapi-codegen/runtime
  dependency-version: 1.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: oapi-codegen
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot
dependabot Bot force-pushed the dependabot/go_modules/oapi-codegen-dba42109dc branch from 6d63d47 to 28bfb11 Compare November 20, 2026 06:39
@chrisgacsal
chrisgacsal enabled auto-merge (squash) November 20, 2026 08:05
@chrisgacsal
chrisgacsal merged commit b4fdcd6 into main Nov 20, 2026
38 of 39 checks passed
@chrisgacsal
chrisgacsal deleted the dependabot/go_modules/oapi-codegen-dba42109dc branch November 20, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/dependencies Pull requests that update a dependency file dependency/go Pull requests that update Go code release-note/dependency-update Release note: Dependency Updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant