github.com/getkin/kin-openapi breaking changes
Updated December 4, 2026
On this page
Latest version v0.153.0, released November 7, 2026.
Its v0.136.0 release requires Go 1.26 or later. Go end of life dates.
github.com/getkin/kin-openapi v0.153.0 breaking changes
- Behavior changed
Number parameter values are now parsed as decimal only, which can change how existing inputs are decoded. github.com - Behavior changed
An empty query value is now rejected instead of being replaced by the default value, so requests that relied on the default may now fail validation. github.com - Behavior changed
An extension placed next to a $ref now reaches the schema it resolves to, which can change the resolved schema. github.com - Behavior changed
The callbacks of an operation are now validated, so documents that previously passed may now report errors. github.com - Behavior changed
A disallowed external $ref now returns a typed error, so code that checks the error must be updated. github.com - Behavior changed
Impossible days and offsets in the date and date-time formats are now rejected, so inputs that previously passed may now fail. github.com - Behavior changed
DefaultRefNameResolver
Reference names are now generated differently, so names derived from references may change for existing code. github.com - Behavior changed
openapi2conv.FromV3
A binary header is no longer turned into a form field during conversion, so code relying on the old output must be updated. github.com - Behavior changed
Schema.Validate
Schema.Validate now reports an error for a multipleOf value of zero or less, so schemas that previously validated may now fail. github.com - Behavior changed
Schema.WithMaxLengthDecodedBase64
Schema.WithMaxLengthDecodedBase64 now sets maxLength on the schema, which changes the schema it produces. github.com - Signature changed
github.com/getkin/kin-openapi/openapi3.Types.UnmarshalYAML
Was func UnmarshalYAML(func(any) error) error; now func UnmarshalYAML(*yaml.Node) error. pkg.go.dev
github.com/getkin/kin-openapi v0.152.0 breaking changes
- Behavior changed
Unmarshalling with json/v2 now matches field names case-sensitively, so input with different casing may no longer be accepted. github.com - Behavior changed
For OpenAPI 3.0 documents, sibling fields next to a $ref are ignored, which can change validation and loading results for existing specs. github.com - Behavior changed
openapi2conv
The OpenAPI 2 to 3 converter now moves path-level body and formData parameters into each operation, so converted output differs from before. github.com - Behavior changed
openapi3.Schema
A schema with an empty type list now marshals without the type field rather than as null, changing serialized output. github.com
github.com/getkin/kin-openapi v0.151.0 breaking changes
- Removed
github.com/getkin/kin-openapi/openapi3.IncludeOrigin
The deprecated package-global IncludeOrigin is gone. Code that references it will no longer compile. pkg.go.dev - Behavior changed
Enum values are compared by their JSON value rather than previously. Schemas that depended on the old comparison may validate differently. github.com - Behavior changed
Keys in additionalOperations that differ only in case from a fixed HTTP method are now rejected. Specs using such keys will fail to load. github.com - Behavior changed
openapi3filter
Media types with a +json suffix are now decoded and encoded as JSON. Code relying on the previous handling of these types may see different results. github.com
github.com/getkin/kin-openapi v0.150.0 breaking changes
- Behavior changed
All values of header arrays and objects are decoded, which changes the parsed values that code receives. github.com - Behavior changed
Header array values are trimmed of whitespace during request filtering, which changes the values seen by handlers. github.com - Behavior changed
Security requirements with invalid scheme names are now rejected during validation, which may break specs that previously passed. github.com - Behavior changed
JSON request bodies with duplicate member names are now rejected by openapi3filter, which may break clients that sent them. github.com - Behavior changed
Documents with integer values outside the int64 range are now rejected during validation, which may break existing inputs that were previously accepted. github.com - Behavior changed
Path parameter validation is stricter, so specs that previously passed may now fail validation. github.com - Behavior changed
Violations of readOnly and writeOnly are returned as SchemaError, so code that checks the error type or message may behave differently. github.com - Behavior changed
WalkSubtree
WalkSubtree walks a single schema and visits every subschema field, so callers that relied on the old traversal may see different results. github.com - Default changed
Encoding objects using spaceDelimited or pipeDelimited now default to explode false, so users relying on the old default must set it explicitly. github.com - Default changed
Parameters using spaceDelimited or pipeDelimited style now default to explode false, so users relying on the old default must set explode explicitly. github.com
And 2 more in this version. Sign up to see every change
github.com/getkin/kin-openapi v0.148.0 breaking changes
- Behavior changed
prefixItems are validated by position, which can change validation results for arrays that previously passed. github.com - Behavior changed
multipleOf checks use exact rational comparison instead of fixed-precision decimals, so values that previously passed may now be rejected. github.com - Behavior changed
Schema format validators are now applied when validating OAS 3.1 documents, so documents that previously passed may now fail validation. github.com
github.com/getkin/kin-openapi v0.146.0 breaking changes
- Signature changed
github.com/getkin/kin-openapi/openapi3.Origin.Fields
Was Fields map[string]Location; now Fields FieldLocations. pkg.go.dev
Older versions
32 older versions, each with its first changes. Sign up to see every change
Show 32 older versions
github.com/getkin/kin-openapi v0.144.0 breaking changes
- Behavior changed
openapi3filter
When a scalar query parameter is repeated, the filter now picks a non-empty value instead of the previous choice. Code that relies on the old value for repeated parameters may need review. github.com
github.com/getkin/kin-openapi v0.143.0 breaking changes
- Removed
github.com/getkin/kin-openapi/openapi3.Callbacks.UnmarshalJSON
github.com/getkin/kin-openapi/openapi3.Callbacks.UnmarshalJSON was removed in github.com/getkin/kin-openapi v0.143.0 pkg.go.dev - Removed
github.com/getkin/kin-openapi/openapi3.Content.UnmarshalJSON
github.com/getkin/kin-openapi/openapi3.Content.UnmarshalJSON was removed in github.com/getkin/kin-openapi v0.143.0 pkg.go.dev
And 14 more in this version.
github.com/getkin/kin-openapi v0.141.0 breaking changes
- Behavior changed
Validate
Validate() now enforces unique entries in a schema's required list and unique tag names. Documents that previously passed validation with duplicates will now fail, so fix those duplicates. github.com
github.com/getkin/kin-openapi v0.139.0 breaking changes
- Behavior changed
Validation now detects duplicated path templates, which earlier versions accepted. Documents with duplicate path templates will now fail validation and need to be fixed. github.com
github.com/getkin/kin-openapi v0.138.0 breaking changes
- Behavior changed
openapi3gen
openapi3gen now clears nullable on exported component bodies, so generated component schemas may differ from before. github.com
github.com/getkin/kin-openapi v0.136.0 breaking changes
- Removed
github.com/getkin/kin-openapi/openapi3.BoolPtr
github.com/getkin/kin-openapi/openapi3.BoolPtr was removed in github.com/getkin/kin-openapi v0.136.0 pkg.go.dev - Removed
github.com/getkin/kin-openapi/openapi3.Float64Ptr
github.com/getkin/kin-openapi/openapi3.Float64Ptr was removed in github.com/getkin/kin-openapi v0.136.0 pkg.go.dev
And 11 more in this version.
github.com/getkin/kin-openapi v0.135.0 breaking changes
- Removed
github.com/getkin/kin-openapi/openapi2.Parameters.Len
github.com/getkin/kin-openapi/openapi2.Parameters.Len was removed in github.com/getkin/kin-openapi v0.135.0 pkg.go.dev - Removed
github.com/getkin/kin-openapi/openapi2.Parameters.Less
github.com/getkin/kin-openapi/openapi2.Parameters.Less was removed in github.com/getkin/kin-openapi v0.135.0 pkg.go.dev
And 6 more in this version.
github.com/getkin/kin-openapi v0.134.0 breaking changes
- Behavior changed
Discriminator mapping values are now treated as $ref references, which can change how discriminator mappings resolve. Check schemas that use discriminator mappings for changed results. github.com - Behavior changed
openapi3filter now rejects requests that carry a body when the operation does not expect one. Code that sent such requests and relied on them passing validation must stop sending the body or update its expectations. github.com
And 3 more in this version.
github.com/getkin/kin-openapi v0.133.0 breaking changes
- Behavior changed
Validation now uses decimal128 instead of bigfloat, which can change results of numeric validation. github.com - Behavior changed
allOf
Validation of allOf now reports all validation errors instead of a subset, so code checking errors may see more failures. github.com
github.com/getkin/kin-openapi v0.131.0 breaking changes
- Behavior changed
openapi3filter.ZipFileBodyDecoder
The ZipFileBodyDecoder is de-registered in openapi3filter, so code that relied on it being registered by default must now register it explicitly. github.com
github.com/getkin/kin-openapi v0.130.0 breaking changes
- Removed
github.com/getkin/kin-openapi/openapi3.Loader.IncludeOrigin
github.com/getkin/kin-openapi/openapi3.Loader.IncludeOrigin was removed in github.com/getkin/kin-openapi v0.130.0 pkg.go.dev - Behavior changed
Origin metadata now uses the key __origin__ instead of the previous key. Code that reads or strips the old origin key must be updated to use __origin__. github.com
And 1 more in this version.
github.com/getkin/kin-openapi v0.129.0 breaking changes
- Behavior changed
Date-format validation for schemas is stricter, so date values with a month or day of 00 that previously passed may now fail validation. Check specs and data that use date formats. github.com - Signature changed
github.com/getkin/kin-openapi/openapi3.Discriminator.Mapping
Was Mapping map[string]string; now Mapping StringMap. pkg.go.dev
And 1 more in this version.
github.com/getkin/kin-openapi v0.128.0 breaking changes
- Signature changed
github.com/getkin/kin-openapi/openapi2.Header.Items
Was Items *openapi3.SchemaRef; now Items *SchemaRef. pkg.go.dev - Signature changed
github.com/getkin/kin-openapi/openapi2.Header.Schema
Was Schema *openapi3.SchemaRef; now Schema *SchemaRef. pkg.go.dev
And 8 more in this version.
github.com/getkin/kin-openapi v0.127.0 breaking changes
- Behavior changed
Schemas generated from Go pointer fields now include "nullable: true". Code that compares or validates generated schemas may need updating. github.com - Behavior changed
Array values in query parameters are now treated consistently, which can change validation results for existing requests. Review code that relies on the previous array query handling. github.com
And 4 more in this version.
github.com/getkin/kin-openapi v0.126.0 breaking changes
- Removed
github.com/getkin/kin-openapi/openapi3.CircularReferenceCounter
github.com/getkin/kin-openapi/openapi3.CircularReferenceCounter was removed in github.com/getkin/kin-openapi v0.126.0 pkg.go.dev - Removed
github.com/getkin/kin-openapi/openapi3.CircularReferenceError
github.com/getkin/kin-openapi/openapi3.CircularReferenceError was removed in github.com/getkin/kin-openapi v0.126.0 pkg.go.dev
And 9 more in this version.
github.com/getkin/kin-openapi v0.125.0 breaking changes
- Signature changed
github.com/getkin/kin-openapi/openapi3filter.ErrFunc
The ErrFunc callback of the Validator Middleware now receives a context. Update any custom ErrFunc implementations to accept the new context parameter. pkg.go.dev - Signature changed
github.com/getkin/kin-openapi/openapi3filter.LogFunc
The LogFunc callback of the Validator Middleware now receives a context. Update any custom LogFunc implementations to accept the new context parameter. pkg.go.dev
github.com/getkin/kin-openapi v0.124.0 breaking changes
- Signature changed
github.com/getkin/kin-openapi/openapi2.Header.Type
Was Type string; now Type *openapi3.Types. pkg.go.dev - Signature changed
github.com/getkin/kin-openapi/openapi2.Parameter.Type
Was Type string; now Type *openapi3.Types. pkg.go.dev
And 1 more in this version.
github.com/getkin/kin-openapi v0.122.0 breaking changes
- Renamed
github.com/getkin/kin-openapi/openapi3.Responses.Get
Use github.com/getkin/kin-openapi/openapi3.Responses.Status instead. pkg.go.dev - Signature changed
github.com/getkin/kin-openapi/openapi3.Callback
Was type Callback map[string]*PathItem; now type Callback struct. pkg.go.dev
And 5 more in this version.
github.com/getkin/kin-openapi v0.121.0 breaking changes
- Signature changed
github.com/getkin/kin-openapi/openapi3.Components.Responses
The type previously named Components.Responses is now called ResponseBodies. Update code that references the old type name. pkg.go.dev
github.com/getkin/kin-openapi v0.120.0 breaking changes
- Behavior changed
The module's Go version is updated to 1.20, so users must build with Go 1.20 or later. github.com
github.com/getkin/kin-openapi v0.116.0 breaking changes
- Removed
github.com/getkin/kin-openapi/openapi3filter.DefaultOptions
The openapi3filter DefaultOptions symbol was dropped as useless. Code that references it must stop using it. pkg.go.dev
github.com/getkin/kin-openapi v0.113.0 breaking changes
- Removed
github.com/getkin/kin-openapi/jsoninfo
The jsoninfo package is no longer part of the module. Code that imports it must stop using it. pkg.go.dev - Removed
github.com/getkin/kin-openapi/openapi2.Header.ExtensionProps
github.com/getkin/kin-openapi/openapi2.Header.ExtensionProps was removed in github.com/getkin/kin-openapi v0.113.0 pkg.go.dev
And 88 more in this version.
github.com/getkin/kin-openapi v0.112.0 breaking changes
- Removed
github.com/getkin/kin-openapi/openapi3.ValidationOptions.ExamplesValidationDisabled
github.com/getkin/kin-openapi/openapi3.ValidationOptions.ExamplesValidationDisabled was removed in github.com/getkin/kin-openapi v0.112.0 pkg.go.dev - Removed
github.com/getkin/kin-openapi/openapi3.ValidationOptions.SchemaFormatValidationEnabled
github.com/getkin/kin-openapi/openapi3.ValidationOptions.SchemaFormatValidationEnabled was removed in github.com/getkin/kin-openapi v0.112.0 pkg.go.dev
And 2 more in this version.
github.com/getkin/kin-openapi v0.111.0 breaking changes
- Signature changed
github.com/getkin/kin-openapi/openapi3.Callback.Validate
Was func Validate(context.Context) error; now func Validate(context.Context, ...ValidationOption) error. pkg.go.dev - Signature changed
github.com/getkin/kin-openapi/openapi3.CallbackRef.Validate
Was func Validate(context.Context) error; now func Validate(context.Context, ...ValidationOption) error. pkg.go.dev
And 41 more in this version.
github.com/getkin/kin-openapi v0.104.0 breaking changes
- Behavior changed
Schema default values are now checked during validation, so specs with defaults that do not match their schema may now fail. Fix the default values in the spec to match the schema. github.com - Signature changed
github.com/getkin/kin-openapi/routers/legacy.NewRouter
Was func NewRouter(*openapi3.T) (routers.Router, error); now func NewRouter(*openapi3.T, ...openapi3.ValidationOption) (routers.Router, error). pkg.go.dev
github.com/getkin/kin-openapi v0.101.0 breaking changes
- Signature changed
github.com/getkin/kin-openapi/openapi3.T.Validate
Was func Validate(context.Context) error; now func Validate(context.Context, ...ValidationOption) error. pkg.go.dev
github.com/getkin/kin-openapi v0.98.0 breaking changes
- Signature changed
github.com/getkin/kin-openapi/openapi2conv.ToV3Response
Was func ToV3Response(*openapi2.Response) (*openapi3.ResponseRef, error); now func ToV3Response(*openapi2.Response, []string) (*openapi3.ResponseRef, error). pkg.go.dev
github.com/getkin/kin-openapi v0.95.0 breaking changes
- Behavior changed
Documents with invalid examples, links or callbacks in components may now fail validation, so check existing specs against this release. github.com
github.com/getkin/kin-openapi v0.93.0 breaking changes
- Behavior changed
Request validation runs the Security schema checks first, before all other parameters, so the error returned for a request that fails several checks can differ. Code that matches on specific validation errors may need updating. github.com
github.com/getkin/kin-openapi v0.92.0 breaking changes
- Signature changed
github.com/getkin/kin-openapi/openapi3.Schema.XML
Was XML interface{}; now XML *XML. pkg.go.dev
github.com/getkin/kin-openapi v0.91.0 breaking changes
- Behavior changed
Validation now rejects OpenAPI 3 request bodies that have no content. Specs that previously validated may now fail and need a content entry added. github.com - Behavior changed
Validation now rejects OpenAPI 3 documents that reuse an operationId. Specs with duplicate operationIds that previously validated may now fail and need to be made unique. github.com
github.com/getkin/kin-openapi v0.90.0 breaking changes
- Behavior changed
Date-time values that previously passed the format check may now be rejected because the regexp fully complies with the standard. github.com - Behavior changed
Specs with path parameters not marked required may now fail validation. Mark path parameters as required in your specs. github.com
And 1 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.