---
title: "github.com/go-openapi/runtime v0.32.0 Breaking Changes"
description: "What each github.com/go-openapi/runtime release removed, renamed or changed: 21 breaking changes in 5 versions on Go modules, each with its source."
canonical_url: https://since.dev/packages/go/github.com/go-openapi/runtime
last_updated: 2026-12-04
---

# github.com/go-openapi/runtime breaking changes

github.com/go-openapi/runtime v0.32.0 (May 25, 2026) is its newest release with breaking changes, 2 of them. The first: Signature changed github.com/go-openapi/runtime/client.Runtime.WithOpenTelemetry. Every breaking API change we have recorded in github.com/go-openapi/runtime on Go modules: 21 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `v0.33.5`, released November 18, 2026. 

Packages on Go modules run on Go. [Go end of life dates](https://since.dev/calendar/go.md).

- From [v0.27.0](#v-v0-27-0) to [v0.32.0](#v-v0-32-0): 15 breaking changes in 4 versions.

## github.com/go-openapi/runtime v0.32.0 breaking changes

github.com/go-openapi/runtime v0.32.0, released May 25, 2026: 2 breaking changes.

- **Signature changed** `github.com/go-openapi/runtime/client.Runtime.WithOpenTelemetry`  

Was func WithOpenTelemetry(...OpenTelemetryOpt) runtime.ClientTransport; now func WithOpenTelemetry(...OpenTelemetryOpt) ContextualTransport. [pkg.go.dev](https://pkg.go.dev/github.com/go-openapi/runtime@v0.32.0)
- **Signature changed** `github.com/go-openapi/runtime/client.Runtime.WithOpenTracing`  

Was func WithOpenTracing(...any) runtime.ClientTransport; now func WithOpenTracing(...any) ContextualTransport. [pkg.go.dev](https://pkg.go.dev/github.com/go-openapi/runtime@v0.32.0)

## github.com/go-openapi/runtime v0.31.0 breaking changes

github.com/go-openapi/runtime v0.31.0, released May 17, 2026: 3 breaking changes.

- **Behavior changed**  

Untyped formData uploads with overly long filenames are now capped, so long names may be truncated or rejected. [github.com](https://github.com/go-openapi/runtime/releases/tag/v0.31.0)
- **Behavior changed**  

Negotiation headers with a q-value above 1 are now rejected, where they were previously accepted. Callers sending such headers must fix them. [github.com](https://github.com/go-openapi/runtime/releases/tag/v0.31.0)
- **Behavior changed**  

Multipart filenames and field names now have CR and LF characters removed, so values containing them are altered on the wire. [github.com](https://github.com/go-openapi/runtime/releases/tag/v0.31.0)

## github.com/go-openapi/runtime v0.30.0 breaking changes

github.com/go-openapi/runtime v0.30.0, released May 13, 2026: 9 breaking changes.

- **Removed** `BuildHTTP`  

Callers must switch to BuildHTTPContext, which is the only request-building entry point left. [github.com](https://github.com/go-openapi/runtime/commit/4049a8d8822e76960848130d07c6f57315f2b23a)
- **Removed** `github.com/go-openapi/runtime/middleware.RapiDocOpts.EnsureDefaults`  

github.com/go-openapi/runtime/middleware.RapiDocOpts.EnsureDefaults was removed in github.com/go-openapi/runtime v0.30.0 [pkg.go.dev](https://pkg.go.dev/github.com/go-openapi/runtime@v0.30.0)
- **Removed** `github.com/go-openapi/runtime/middleware.RedocOpts.EnsureDefaults`  

github.com/go-openapi/runtime/middleware.RedocOpts.EnsureDefaults was removed in github.com/go-openapi/runtime v0.30.0 [pkg.go.dev](https://pkg.go.dev/github.com/go-openapi/runtime@v0.30.0)
- **Removed** `github.com/go-openapi/runtime/middleware.SwaggerUIOpts.EnsureDefaults`  

github.com/go-openapi/runtime/middleware.SwaggerUIOpts.EnsureDefaults was removed in github.com/go-openapi/runtime v0.30.0 [pkg.go.dev](https://pkg.go.dev/github.com/go-openapi/runtime@v0.30.0)
- **Removed** `github.com/go-openapi/runtime/middleware.SwaggerUIOpts.EnsureDefaultsOauth2`  

github.com/go-openapi/runtime/middleware.SwaggerUIOpts.EnsureDefaultsOauth2 was removed in github.com/go-openapi/runtime v0.30.0 [pkg.go.dev](https://pkg.go.dev/github.com/go-openapi/runtime@v0.30.0)
- **Behavior changed** `ClientRequestWriter`  

Callers that set a per-request timeout via ClientRequestWriter must migrate so the cancel func is not dropped and the timer does not leak. [github.com](https://github.com/go-openapi/runtime/commit/4049a8d8822e76960848130d07c6f57315f2b23a)
- **Signature changed** `github.com/go-openapi/runtime/middleware.NegotiateContentType`  

Was func NegotiateContentType(\*http.Request, \[\]string, string) string; now func NegotiateContentType(\*http.Request, \[\]string, string, ...NegotiateOption) string. [pkg.go.dev](https://pkg.go.dev/github.com/go-openapi/runtime@v0.30.0)
- **Signature changed** `github.com/go-openapi/runtime/middleware.UIOption`  

Was type UIOption func(\*uiOptions); now type UIOption func(\*UIOptions). [pkg.go.dev](https://pkg.go.dev/github.com/go-openapi/runtime@v0.30.0)
- **Signature changed** `github.com/go-openapi/runtime/middleware/header.AcceptSpec`  

Was type AcceptSpec struct; now type AcceptSpec = upstream.AcceptSpec. [pkg.go.dev](https://pkg.go.dev/github.com/go-openapi/runtime@v0.30.0)

## github.com/go-openapi/runtime v0.29.0 breaking changes

github.com/go-openapi/runtime v0.29.0, released September 27, 2025: 1 breaking change.

- **Signature changed** `github.com/go-openapi/runtime/client.Runtime.WithOpenTracing`  

Was func WithOpenTracing(...opentracing.StartSpanOption) runtime.ClientTransport; now func WithOpenTracing(...any) runtime.ClientTransport. [pkg.go.dev](https://pkg.go.dev/github.com/go-openapi/runtime@v0.29.0)

## github.com/go-openapi/runtime v0.27.0 breaking changes

github.com/go-openapi/runtime v0.27.0, released January 23, 2024: 6 breaking changes.

- **Signature changed** `github.com/go-openapi/runtime.CSVConsumer`  

Was func CSVConsumer() Consumer; now func CSVConsumer(...CSVOpt) Consumer. [pkg.go.dev](https://pkg.go.dev/github.com/go-openapi/runtime@v0.27.0)
- **Signature changed** `github.com/go-openapi/runtime.CSVProducer`  

Was func CSVProducer() Producer; now func CSVProducer(...CSVOpt) Producer. [pkg.go.dev](https://pkg.go.dev/github.com/go-openapi/runtime@v0.27.0)
- **Signature changed** `github.com/go-openapi/runtime/middleware.Context.APIHandler`  

Was func APIHandler(Builder) http.Handler; now func APIHandler(Builder, ...UIOption) http.Handler. [pkg.go.dev](https://pkg.go.dev/github.com/go-openapi/runtime@v0.27.0)
- **Signature changed** `github.com/go-openapi/runtime/middleware.Context.APIHandlerSwaggerUI`  

Was func APIHandlerSwaggerUI(Builder) http.Handler; now func APIHandlerSwaggerUI(Builder, ...UIOption) http.Handler. [pkg.go.dev](https://pkg.go.dev/github.com/go-openapi/runtime@v0.27.0)
- **Signature changed** `github.com/go-openapi/runtime/middleware.DefaultRouter`  

Was func DefaultRouter(\*loads.Document, RoutableAPI) Router; now func DefaultRouter(\*loads.Document, RoutableAPI, ...DefaultRouterOpt) Router. [pkg.go.dev](https://pkg.go.dev/github.com/go-openapi/runtime@v0.27.0)
- **Signature changed** `github.com/go-openapi/runtime/middleware.Spec`  

Was func Spec(string, \[\]byte, http.Handler) http.Handler; now func Spec(string, \[\]byte, http.Handler, ...SpecOption) http.Handler. [pkg.go.dev](https://pkg.go.dev/github.com/go-openapi/runtime@v0.27.0)

## Related packages

- [github.com/go-openapi/jsonpointer](https://since.dev/packages/go/github.com/go-openapi/jsonpointer.md)
- [github.com/go-openapi/strfmt](https://since.dev/packages/go/github.com/go-openapi/strfmt.md)
- [github.com/go-openapi/swag](https://since.dev/packages/go/github.com/go-openapi/swag.md)
- [github.com/go-openapi/validate](https://since.dev/packages/go/github.com/go-openapi/validate.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
