Skip to content

fix(deps): update module github.com/oapi-codegen/runtime to v1.7.0 - #10

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-oapi-codegen-runtime-1.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-oapi-codegen-runtime-1.x

Conversation

@renovate

@renovate renovate Bot commented Feb 26, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/oapi-codegen/runtime v1.1.2 → v1.7.0 age confidence

Release Notes

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

v1.7.0: : Extensions for OpenAPI 3.1 parameter binding

Compare Source

This release teaches the parameter binders about OpenAPI 3.1 multi-type unions, and fixes a long-standing panic on the request binding path. As with v1.6.0, new behavior is controlled by explicit settings rather than assumptions: binding stays exactly as it was unless the new options are used.

Notable Changes

Binding OpenAPI 3.1 multi-type union parameters

OpenAPI 3.1 allows a parameter's type to be a list, such as type: [string, integer]. Go has no type meaning "one of these", so generated code maps such parameters to any — which the binders previously rejected outright with can not bind to destination of type: interface, making these parameters unusable.

The binder options structs (BindStyledParameterOptions, BindQueryParameterOptions, BindStringToObjectOptions) gain a Types []string field carrying the union's member list. It is only consulted when the destination is an any; binding into every concrete Go type is completely unchanged. The value binds to the first member that parses, trying boolean, integer, number, then string — most restrictive first, since a string always parses. Member detection follows the JSON number grammar (RFC 8259), so values like 007 or +1 bind as strings rather than being silently reinterpreted as numbers.

The bound value's dynamic type is always one of bool, int64, float64, string, or (with format: byte) []byte, so a handler's type switch is stable regardless of what the spec's format says. Applications that want format: int32 / format: float to narrow the produced types to int32 / float32 can opt in via a new package-level setting, following the same pattern as DefaultQueryEncoder from v1.6.0:

func init() {
    runtime.NarrowUnionNumericFormats = true
}

Generator support for emitting Types is landing in oapi-codegen separately; the runtime side ships first so generated code can rely on it. Arrays of unions and deepObject-style parameters are not covered yet — see the Types field documentation for the exact scope.

Fix for a panic when binding numeric values into slice destinations

Since v1.2.0, binding a string that happens to parse as an integer into a non-[]byte slice destination panicked with reflect: call of reflect.Value.OverflowInt on slice Value, instead of returning an error. This was reachable from generated code on the request path: a nullable.Nullable[[]string] query parameter using the default form/explode serialization would panic on ?p=123 while returning a normal binding error on ?p=abc. These cases now return a clean can not bind to destination of type: slice error.

🚀 New features and improvements

🐛 Bug fixes

✍ Other changes

📦 Dependency updates

6 changes

Sponsors

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

DevZero logo

Cybozu logo

  • No new contributors

v1.6.0: Allow customization of parameter encoding

Compare Source

This is a small release which adds a global encoding setting on the runtime, to allow users to customize how to handle spaces in query arguments. This is a new minor release, since we're adding new API, even though this is a very minor feature. I imagine that in the future, we will add more settings, rather than making behavior assumptions.

🚀 New features and improvements

📦 Dependency updates

  • chore(deps): update module github.com/golangci/golangci-lint to v2.12.2 (#​112) @​renovate[bot]

Sponsors

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

Sponsors

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

DevZero logo

Cybozu logo

v1.5.0: : RFC3339 durations, and bug fixes

Compare Source

This is mainly a bugfix release, but we're bumping the minor version since we also introduce a new type, Duration into our types/ package, which allows for parsing and emitting RFC3339 durations. Rather than trying to parse a duration string into a time.Duration, which requires assumptions that may not be right for everyone, we decided not to make those decisions and just store all possible fields as provided. Users can convert this to Go Duration as they see fit.

🚀 New features and improvements

🐛 Bug fixes

📝 Documentation updates

📦 Dependency updates

6 changes

Sponsors

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

DevZero logo

Cybozu logo

v1.4.2: Bug fix for required parameters

Compare Source

This is a bug fix to address a regression introduced in oapi-codegen v2.7.0

🐛 Bug fixes

Sponsors

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

DevZero logo

Cybozu logo

v1.4.1: Bug fixes

Compare Source

This is a bug fix release.

Changes in v1.4.0, coupled with changes in v2.7.0 of oapi-codegen exposed some new problems. deepObject style marshaling behavior now supports encoding unicode. UTF-8 can't be directly included in parameters, so we need to % escape it.

Form binding now detects maps, which makes binding to a Nullable possible. We can't use generics around Nullable[T], so we handle maps generically, assuming they're a Nullable with its behavior assumptions.

🐛 Bug fixes

📦 Dependency updates

Sponsors

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

DevZero logo

Cybozu logo

v1.4.0: Parameter handling improvements and fixes

Compare Source

This release fixes some missing edge cases in parameter binding and styling. We now handle all the permutations of style and explode, for the first time. Lots of tests have been added to catch regressions.

🚀 New features and improvements

  • Improve deepobject unmarshalling to support nullable.Nullable and encode.TextUnmarshaler (#​45) @​j-waters
  • feat: support spaceDelimited and pipeDelimited query parameter binding (#​117) @​mromaszewicz

🐛 Bug fixes

  • Fix form/explode=false incorrectly splitting primitive string values on commas (#​119) @​f-kanari

📦 Dependency updates

Sponsors

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

DevZero logo

Cybozu logo

v1.3.1: Fix a parameter binding regression

Compare Source

v1.3.0 introduced a regression around binding styled parameters into primitive type destinations. This regression was due to a
fix in binding matrix and label parameters. Sorry about that.

🐛 Bug fixes

Sponsors

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

DevZero logo

Cybozu logo

v1.3.0: Echo V5, more parameter handling options, bug fixes

Compare Source

🚀 New features and improvements

🐛 Bug fixes

👻 Maintenance

📦 Dependency updates

Sponsors

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

DevZero logo

Cybozu logo

v1.2.0: Parameter binding extensions, bug fixes, dependency updates

Compare Source

Notable Changes

The main change in this release is the addition of new Parameter binding and styling functions, which allow the code generator to pass in the type and format from the spec. Previously, we inferred what we wanted to do based on the destination type, however, it's not always possible to decide this without information about the specification.

🚀 New features and improvements

🐛 Bug fixes

👻 Maintenance

📦 Dependency updates

Sponsors

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

DevZero logo

Cybozu logo


Configuration

📅 Schedule: (UTC)

  • 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot changed the title fix(deps): update module github.com/oapi-codegen/runtime to v1.2.0 fix(deps): update module github.com/oapi-codegen/runtime to v1.3.0 Mar 18, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-oapi-codegen-runtime-1.x branch from dee389a to 2251f82 Compare March 18, 2026 17:50
@renovate renovate Bot changed the title fix(deps): update module github.com/oapi-codegen/runtime to v1.3.0 fix(deps): update module github.com/oapi-codegen/runtime to v1.3.1 Mar 25, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-oapi-codegen-runtime-1.x branch from 2251f82 to 08711fe Compare March 25, 2026 21:01
@renovate renovate Bot changed the title fix(deps): update module github.com/oapi-codegen/runtime to v1.3.1 fix(deps): update module github.com/oapi-codegen/runtime to v1.4.0 Apr 8, 2026
@renovate

renovate Bot commented Apr 8, 2026

Copy link
Copy Markdown
Contributor Author

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 1 additional dependency was updated

Details:

Package Change
github.com/stretchr/testify v1.10.0 -> v1.11.1

@renovate
renovate Bot force-pushed the renovate/github.com-oapi-codegen-runtime-1.x branch from 08711fe to 40e12b6 Compare April 8, 2026 23:00
@renovate renovate Bot changed the title fix(deps): update module github.com/oapi-codegen/runtime to v1.4.0 fix(deps): update module github.com/oapi-codegen/runtime to v1.4.1 May 19, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-oapi-codegen-runtime-1.x branch from 40e12b6 to 6475219 Compare May 19, 2026 18:05
@renovate renovate Bot changed the title fix(deps): update module github.com/oapi-codegen/runtime to v1.4.1 fix(deps): update module github.com/oapi-codegen/runtime to v1.4.1 - autoclosed Jun 17, 2026
@renovate renovate Bot closed this Jun 17, 2026
@renovate
renovate Bot deleted the renovate/github.com-oapi-codegen-runtime-1.x branch June 17, 2026 06:01
@renovate renovate Bot changed the title fix(deps): update module github.com/oapi-codegen/runtime to v1.4.1 - autoclosed fix(deps): update module github.com/oapi-codegen/runtime to v1.4.1 Jun 17, 2026
@renovate renovate Bot reopened this Jun 17, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-oapi-codegen-runtime-1.x branch 2 times, most recently from 6475219 to 3a9406d Compare June 17, 2026 16:10
@renovate renovate Bot changed the title fix(deps): update module github.com/oapi-codegen/runtime to v1.4.1 fix(deps): update module github.com/oapi-codegen/runtime to v1.4.2 Jun 20, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-oapi-codegen-runtime-1.x branch from 3a9406d to ba3ddb2 Compare June 20, 2026 09:45
@renovate renovate Bot changed the title fix(deps): update module github.com/oapi-codegen/runtime to v1.4.2 fix(deps): update module github.com/oapi-codegen/runtime to v1.4.2 - autoclosed Jun 23, 2026
@renovate renovate Bot closed this Jun 23, 2026
@renovate renovate Bot changed the title fix(deps): update module github.com/oapi-codegen/runtime to v1.4.2 - autoclosed fix(deps): update module github.com/oapi-codegen/runtime to v1.4.2 Jun 23, 2026
@renovate renovate Bot reopened this Jun 23, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-oapi-codegen-runtime-1.x branch 2 times, most recently from ba3ddb2 to c1529ee Compare June 23, 2026 15:45
@renovate renovate Bot changed the title fix(deps): update module github.com/oapi-codegen/runtime to v1.4.2 fix(deps): update module github.com/oapi-codegen/runtime to v1.4.2 - autoclosed Jul 9, 2026
@renovate renovate Bot closed this Jul 9, 2026
@renovate renovate Bot changed the title fix(deps): update module github.com/oapi-codegen/runtime to v1.4.2 - autoclosed fix(deps): update module github.com/oapi-codegen/runtime to v1.4.2 Jul 10, 2026
@renovate renovate Bot reopened this Jul 10, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-oapi-codegen-runtime-1.x branch 2 times, most recently from c1529ee to 26e92d4 Compare July 10, 2026 02:49
@renovate
renovate Bot force-pushed the renovate/github.com-oapi-codegen-runtime-1.x branch from 26e92d4 to 48e88e4 Compare July 12, 2026 23:53
@renovate renovate Bot changed the title fix(deps): update module github.com/oapi-codegen/runtime to v1.4.2 fix(deps): update module github.com/oapi-codegen/runtime to v1.5.0 Jul 12, 2026
@renovate renovate Bot changed the title fix(deps): update module github.com/oapi-codegen/runtime to v1.5.0 fix(deps): update module github.com/oapi-codegen/runtime to v1.6.0 Jul 17, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-oapi-codegen-runtime-1.x branch from 48e88e4 to 69c652f Compare July 17, 2026 01:25
@renovate renovate Bot changed the title fix(deps): update module github.com/oapi-codegen/runtime to v1.6.0 fix(deps): update module github.com/oapi-codegen/runtime to v1.7.0 Aug 16, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-oapi-codegen-runtime-1.x branch from 69c652f to dd0a1dd Compare August 16, 2026 09:40
@renovate renovate Bot changed the title fix(deps): update module github.com/oapi-codegen/runtime to v1.7.0 fix(deps): update module github.com/oapi-codegen/runtime to v1.7.0 - autoclosed Aug 29, 2026
@renovate renovate Bot closed this Aug 29, 2026
@renovate renovate Bot changed the title fix(deps): update module github.com/oapi-codegen/runtime to v1.7.0 - autoclosed fix(deps): update module github.com/oapi-codegen/runtime to v1.7.0 Aug 30, 2026
@renovate renovate Bot reopened this Aug 30, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-oapi-codegen-runtime-1.x branch 2 times, most recently from dd0a1dd to 724daff Compare August 30, 2026 00:32
@renovate renovate Bot changed the title fix(deps): update module github.com/oapi-codegen/runtime to v1.7.0 fix(deps): update module github.com/oapi-codegen/runtime to v1.7.0 - autoclosed Sep 2, 2026
@renovate renovate Bot closed this Sep 2, 2026
@renovate renovate Bot changed the title fix(deps): update module github.com/oapi-codegen/runtime to v1.7.0 - autoclosed fix(deps): update module github.com/oapi-codegen/runtime to v1.7.0 Sep 2, 2026
@renovate renovate Bot reopened this Sep 2, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-oapi-codegen-runtime-1.x branch from 724daff to a48c869 Compare September 2, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants