github.com/mattpolzin/openapikit breaking changes
Updated December 4, 2026
On this page
Latest version 7.0.0, released September 30, 2026. Source repository
Its 5.0.0 release requires iOS 12 or later. iOS end of life dates.
- From 6.0.0 to 7.0.0-beta.3: 5 breaking changes in 3 versions.
- From 0.4.0 to 7.0.0-beta.3: 151 breaking changes in 58 versions.
github.com/mattpolzin/openapikit 7.0.0-beta.3 breaking changes
- Removed
OpenAPI.Document.Version
Switches covering all Version cases must add the new 3.2.1 case, and Version.v3_2_x(x: 1) must be spelled Version.v3_2_1. github.com - Default changed
OpenAPI.Document.Version
New documents now default to version 3.2.1 instead of 3.2.0. github.com
github.com/mattpolzin/openapikit 7.0.0-beta.2 breaking changes
- Signature changed
ExternalLoader.componentKey
The componentKey function now receives the loaded object rather than its type, so existing ExternalLoader implementations must update their signature. github.com
github.com/mattpolzin/openapikit 7.0.0-alpha.1 breaking changes
- Behavior changed
The minimum Swift version has increased to Swift 6.2, so projects on older Swift toolchains must upgrade. github.com - Behavior changed
JSONReference.InternalReference
A $ref whose fragment has no leading slash is now parsed as an anchor, so it encodes back as written instead of being rewritten with a slash. github.com
github.com/mattpolzin/openapikit 6.0.0 breaking changes
- Configuration changed
The package now requires Swift 6.1 or later to build; users on older Swift toolchains must upgrade. github.com
github.com/mattpolzin/openapikit 5.0.0 breaking changes
- Removed
OpenAPI.HttpMethod
The OpenAPIKit30 module's HttpMethod was renamed to BuiltinHttpMethod. In the OpenAPI module, HttpMethod now has only .builtin and .other cases, so switches over it must be updated. github.com - Removed
OpenAPI.Parameter.Context.Location
A new querystring location was added, which breaks exhaustive switches over Parameter.Context or its Location. github.com - Removed
OpenAPI.Parameter.init
Many Parameter initializers were removed; use the header, query, path or cookie constructors instead. github.com - Removed
ParameterContext.header
Convenience constructors like ParameterContext.header were removed; schema or content must now be specified. github.com - Behavior changed
Compiling on iOS now requires v12 or later. github.com - Behavior changed
Support for Swift versions before 5.10 was dropped. github.com - Behavior changed
application.x-yaml
application/x-yaml is still read but YAML is always encoded as application/yaml. github.com - Behavior changed
OpenAPI.Components.init
Components dictionaries accept references, so in-code construction may need Components.direct() or Either wrapping, and lookups can throw ReferenceCycleError. github.com - Behavior changed
OpenAPI.Content.encoding
The encoding property is now an Either of an encoding map or positional encodings; use encodingMap for the old behavior. github.com - Behavior changed
OpenAPI.Content.Map
Content.Map values can be references, so code reading contents must dig one level deeper or use .direct(). github.com
And 8 more in this version. Sign up to see every change
github.com/mattpolzin/openapikit 5.0.0-beta.3 breaking changes
- Removed
codableValue
Read legacyValue, dataOrLegacyValue or dataValue instead of codableValue. github.com - Removed
urlValue
Read externalValue on the example instead of urlValue. github.com - Signature changed
OpenAPI.Example.value
The value property is now OpenAPI.Example.Value; use legacyValue, dataValue or externalValue instead. github.com
Older versions
53 older versions, each with its first changes. Sign up to see every change
Show 53 older versions
github.com/mattpolzin/openapikit 5.0.0-beta.2 breaking changes
- Default changed
OpenAPI.Document
New documents default to OAS 3.2.0; pass v3_1_x in the Document constructor to produce 3.1.x documents. github.com - Signature changed
ExternalLoader
Custom ExternalLoader conformances must also conform to SendableMetatype. github.com
And 1 more in this version.
github.com/mattpolzin/openapikit 5.0.0-beta.1 breaking changes
- Signature changed
OpenAPI.SecurityScheme.type
Code switching on the oauth2 case must match oauth2(flows:metadataUrl:) now. github.com
github.com/mattpolzin/openapikit 5.0.0-alpha.7 breaking changes
- Signature changed
OpenAPI.Content.encoding
The encoding property is now an Either; use encodingMap for the old map behavior. github.com - Signature changed
OpenAPI.Content.schema
The schema property is a JSONSchema directly, so code must drop one wrapping layer and switch on schema.value. github.com
github.com/mattpolzin/openapikit 5.0.0-alpha.6 breaking changes
- Behavior changed
lookup
Component lookup functions now follow references and can throw ReferenceCycleError; lookupOnce returns a reference unresolved. github.com - Signature changed
Components.init
Components initializer entries must be wrapped in Either, or use Components.direct() instead. github.com
And 1 more in this version.
github.com/mattpolzin/openapikit 5.0.0-alpha.5 breaking changes
- Removed
ParameterContext.header
Use the constructors that take a schema or content, such as ParameterContext.header(schema:), instead. github.com - Signature changed
OpenAPI.Parameter.Context
Exhaustive switches on the parameter context must handle querystring and the schemaOrContent values now added to each case. github.com
And 2 more in this version.
github.com/mattpolzin/openapikit 5.0.0-alpha.4 breaking changes
- Renamed
OpenAPI.HttpMethod
In the OpenAPIKit30 module, use OpenAPI.BuiltinHttpMethod wherever OpenAPI.HttpMethod was used. github.com - Signature changed
OpenAPI.HttpMethod
HttpMethod has only .builtin and .other cases; the old standard methods move to BuiltinHttpMethod. github.com
github.com/mattpolzin/openapikit 5.0.0-alpha.2 breaking changes
- Behavior changed
Encoding now always uses the official application/yaml media type instead of application/x-yaml, which is still accepted when decoding. github.com - Signature changed
OpenAPI.Document.Version
Code that switches exhaustively over the Document Version enum must handle the new 3.2.x cases. github.com
github.com/mattpolzin/openapikit 5.0.0-alpha.1 breaking changes
- Signature changed
Versions
Code that switches over the Versions enum exhaustively must handle the new 3.1.2 case. github.com
github.com/mattpolzin/openapikit 4.0.0 breaking changes
- Removed
Projects on older Swift versions must upgrade the toolchain. github.com
github.com/mattpolzin/openapikit 4.0.0-rc.4 breaking changes
- Renamed
InconsistencyError
Update references to the new GenericError type. github.com
github.com/mattpolzin/openapikit 4.0.0-rc.1 breaking changes
- Behavior changed
OpenAPI.Document.Version
Exhaustive switches over the document version must handle the new x-version cases. github.com
github.com/mattpolzin/openapikit 4.0.0-beta.3 breaking changes
- Removed
AnyCodable
Wrap array and dictionary literals with an explicit AnyCodable init call. github.com - Signature changed
AnyCodable.init
Values passed to AnyCodable must be known to be Sendable at compile time. github.com
github.com/mattpolzin/openapikit 4.0.0-beta.2 breaking changes
- Removed
VendorExtensionsConfiguration.isEnabled
Disable vendor extensions through encoder or decoder user info instead. github.com
github.com/mattpolzin/openapikit 4.0.0-beta.1 breaking changes
- Behavior changed
Code switching exhaustively on the OpenAPI version value may need updates. github.com - Default changed
Documents without an explicit version will now output the newer OAS version. github.com
github.com/mattpolzin/openapikit 4.0.0-alpha.6 breaking changes
- Removed
JSONSchemaContext.anchor
Third-party conformances must now implement these members themselves. github.com - Removed
JSONSchemaContext.dynamicAnchor
Third-party conformances must now implement these members themselves. github.com
And 2 more in this version.
github.com/mattpolzin/openapikit 4.0.0-alpha.5 breaking changes
- Renamed
externallyDereference
The first argument label changed from in to with; update call sites. github.com - Signature changed
ExternalLoader.load
Custom loaders must return a messages array; return an empty array if unused. github.com
github.com/mattpolzin/openapikit 4.0.0-alpha.4 breaking changes
- Removed
Code must target macOS 10.15 or later. github.com - Configuration changed
Projects pinning an older Yams version must upgrade Yams. github.com
github.com/mattpolzin/openapikit 4.0.0-alpha.1 breaking changes
- Removed
Code must build with Swift 5.8 or later. github.com - Renamed
serverVarialbeDefaultExistsInEnum
The misspelled symbol was renamed; update callers to the corrected name. github.com
And 1 more in this version.
github.com/mattpolzin/openapikit 3.0.0 breaking changes
- Behavior changed
Code that imports OpenAPIKit now gets the OAS 3.1 API. To keep working with OAS 3.0 documents, switch to the OpenAPIKit30 module, or migrate to OpenAPIKit using the migration guide. github.com
github.com/mattpolzin/openapikit 3.0.0-rc.4 breaking changes
- Removed
JSONSchema.string.byte
Use contentEncoding base64 or binary instead of the removed formats. github.com - Removed
JSONSchema.string.extended
Replace .extended(.uuid) and similar with the regular .string formats. github.com
And 2 more in this version.
github.com/mattpolzin/openapikit 3.0.0-rc.2 breaking changes
- Signature changed
Discriminator.mapping
Dictionary-only methods on mapping may fail to compile. github.com
github.com/mattpolzin/openapikit 3.0.0-beta.5 breaking changes
- Behavior changed
JSONSchema.enum
Schemas with one allowed value are now serialized with const rather than enum. github.com - Signature changed
DereferencedResponse.links
links is now an OrderedDictionary of OpenAPI.Link instead of OpenAPI.Link.Map. github.com
And 2 more in this version.
github.com/mattpolzin/openapikit 3.0.0-beta.4 breaking changes
- Behavior changed
Document.validate
Validation no longer checks for responses by default; add the validation explicitly to keep it. github.com - Signature changed
JSONSchema.null
Call .null() with parentheses instead of using the property. github.com
And 1 more in this version.
github.com/mattpolzin/openapikit 3.0.0-beta.2 breaking changes
- Removed
JSONSchema.referenceContext
Use the coreContext accessor instead. github.com - Signature changed
JSONSchema.reference
ReferenceContext is replaced by CoreContext; referenceContext accessor removed in favor of coreContext. github.com
github.com/mattpolzin/openapikit 3.0.0-beta.1 breaking changes
- Signature changed
OpenAPI.Example.value
Code switching on or accessing Example value must handle nil. github.com
github.com/mattpolzin/openapikit 3.0.0-alpha.9 breaking changes
- Signature changed
OpenAPI.Document.paths
Path items must be written as .pathItem(...) and read via pathItemValue or reference. github.com
github.com/mattpolzin/openapikit 3.0.0-alpha.4 breaking changes
- Renamed
JSONSchemas.example
Code in the OpenAPIKit module referencing example must switch to the examples array. github.com - Signature changed
ContentType
Switch statements over ContentType no longer work; compare rawValue for custom types. github.com
And 2 more in this version.
github.com/mattpolzin/openapikit 3.0.0-alpha.2 breaking changes
- Removed
JSONReference.internal(.path(.))
Code creating references with JSONReference.internal(.path(...)) must use OpenAPI.Reference.internal(path: ...) instead. github.com
github.com/mattpolzin/openapikit 3.0.0-alpha.1 breaking changes
- Renamed
OpenAPIKit30
Code importing OpenAPIKit for OpenAPI v3.0 must switch to the OpenAPIKit30 module; the OpenAPIKit module now targets v3.1. github.com - Signature changed
JSONSchema.reference
Switches matching .reference(let ref) must now also bind the new context, e.g. .reference(let ref, let context). github.com
github.com/mattpolzin/openapikit 2.0.0 breaking changes
- Removed
OpenAPI.Components.dereference
Components dereferencing and lookup methods were renamed; use subscript, lookup(_:) and dereferenced(in:). github.com - Removed
OpenAPI.Server.url
OpenAPI.Server loses its url property; use urlTemplate and derive a URL from it when it has no variables. github.com
And 2 more in this version.
github.com/mattpolzin/openapikit 2.0.0-alpha.4 breaking changes
- Behavior changed
JSONSchema.simplified
Behavior previously attached to dereferencing a JSONSchema moved to simplified(given:) and DereferencedJSONSchema simplified(), called on demand. github.com
github.com/mattpolzin/openapikit 2.0.0-alpha.3 breaking changes
- Signature changed
JSONSchema.any
The discriminator associated value of any(of:), all(of:) and one(of:) was replaced by core: CoreContext; read the discriminator from coreContext.discriminator. github.com - Signature changed
JSONSchema.not
Matches on .not(let schema) must now be written .not(let schema, core: let coreContext). github.com
github.com/mattpolzin/openapikit 2.0.0-alpha.1 breaking changes
- Removed
DereferencedJSONSchema.all
DereferencedJSONSchema no longer has an all(of:) case; schemas are resolved during dereferencing instead. This was reintroduced in alpha 4. github.com - Removed
DereferencedPathItem
The Dereferenced types no longer have public initializers; construct them with the dereferenced(in:) method of the originating OpenAPI type. github.com
And 9 more in this version.
github.com/mattpolzin/openapikit 1.0.0 breaking changes
- Renamed
OpenAPI.HttpVerb
The HTTP verb type is renamed to HttpMethod. github.com - Renamed
OpenAPI.Parameter.Schema
The parameter schema wrapper struct is renamed; update references to SchemaContext. github.com
And 6 more in this version.
github.com/mattpolzin/openapikit 0.30.0 breaking changes
- Renamed
Parameter.Location
The Parameter.Location type is renamed to Parameter.Context. Update code that refers to the old name. github.com - Renamed
Parameter.parameterLocation
The Parameter.parameterLocation property is renamed to Parameter.context. Update code that uses the old name. github.com
github.com/mattpolzin/openapikit 0.29.0 breaking changes
- Renamed
all
The wildcard ContentTypes case all is renamed to any. Update code that refers to all to use any. github.com - Renamed
applicationAll
The wildcard content type case applicationAll is renamed to anyApplication. Update code that refers to it. github.com
And 5 more in this version.
github.com/mattpolzin/openapikit 0.28.0 breaking changes
- Signature changed
JSONSchema
Example properties on JSONSchema changed type from String to AnyCodable, so code passing or reading String examples must wrap values in AnyCodable. Any Encodable value can still be turned into a String and wrapped in AnyCodable to get the... github.com
github.com/mattpolzin/openapikit 0.27.0 breaking changes
- Signature changed
openAPISchema
The throwing openAPISchema() function is now the openAPISchema property, so code must read it without parentheses. github.com
github.com/mattpolzin/openapikit 0.26.0 breaking changes
- Renamed
Poly2
Support is now offered by the in-library Either type instead of Poly2, so code that names Poly2 must switch to Either. github.com
github.com/mattpolzin/openapikit 0.25.0 breaking changes
- Signature changed
Keys in Components Object dictionaries are now OpenAPI.ComponentKey instead of String, so code that builds or reads these keys as plain strings must use ComponentKey. ComponentKey is ExpressibleByStringLiteral, so string literals still... github.com
github.com/mattpolzin/openapikit 0.24.0 breaking changes
- Removed
AnyCodable
Other libraries that use the AnyCodable API directly must now import it explicitly. github.com - Renamed
OpenAPI.ExternalDoc
Update references from OpenAPI.ExternalDoc to OpenAPI.ExternalDocumentation. github.com
And 9 more in this version.
github.com/mattpolzin/openapikit 0.23.0 breaking changes
- Removed
Reflection code and code that turns Swift types into OpenAPISchema using a JSONEncoder moved out of this package. Use the new mattpolzin/OpenAPIReflection library instead. github.com
github.com/mattpolzin/openapikit 0.21.0 breaking changes
- Behavior changed
Errors thrown while decoding are largely new types, so code that catches or inspects specific decoding errors may need updating. github.com
github.com/mattpolzin/openapikit 0.17.0 breaking changes
- Behavior changed
PathItem.Map
PathItem.Map can no longer hold JSON references as values, which breaks declarative initialization and code that reads those values. Stop using references for path item values. github.com
github.com/mattpolzin/openapikit 0.13.0 breaking changes
- Signature changed
Many Dictionary-typed values are now OrderedDictionary, so code that expects Dictionary types must be updated to use OrderedDictionary. github.com
github.com/mattpolzin/openapikit 0.12.0 breaking changes
- Signature changed
Either
In a few places, the Either types now put JSONReference first among their generic specialization parameters when it is present. Code that spells out these generic parameters must be updated to the new order. github.com
github.com/mattpolzin/openapikit 0.11.0 breaking changes
- Removed
Functions responsible for generating JSONSchemas were removed. Code calling them must be changed to the new API. github.com - Renamed
Protocols responsible for generating JSONSchemas were renamed or removed, and functions were renamed. Update code that uses these names to the 0.11.0 API. github.com
github.com/mattpolzin/openapikit 0.9.0 breaking changes
- Renamed
The release notes say a few functions were renamed but do not name them. Check your call sites against the new API before upgrading. github.com - Behavior changed
Node generation was substantially reworked, which may break downstream code that depends on the generated OpenAPI nodes. The notes do not specify the changes. github.com
github.com/mattpolzin/openapikit 0.8.0 breaking changes
- Behavior changed
Some properties that were previously encoded as null are now left out of the encoded value entirely. Code that expects a null entry in the encoded output must be updated. github.com
github.com/mattpolzin/openapikit 0.7.0 breaking changes
- Signature changed
Parameter
The release restructured Parameter so its JSONSchema is nested under Parameter.Schema. Code that accesses Parameter's schema directly must be updated to go through Parameter.Schema. github.com
github.com/mattpolzin/openapikit 0.6.0 breaking changes
- Signature changed
Several function and initializer arguments or argument names were changed for declarative document definitions. The release notes do not list the affected symbols, so check call sites that build OpenAPI documents. github.com
github.com/mattpolzin/openapikit 0.5.0 breaking changes
- Configuration changed
The release now requires Swift 5.1; projects on older Swift toolchains must upgrade their compiler to build against it. github.com
github.com/mattpolzin/openapikit 0.4.0 breaking changes
- Behavior changed
JSONReference
The release notes list JSONReference as a breaking change but do not say what changed. Check the 0.4.0 release for details before upgrading. github.com - Behavior changed
JSONSchema
The release notes list JSONSchema as a breaking change but do not say what changed. Check the 0.4.0 release for details before upgrading. github.com
And 1 more in this version.
Related packages
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.