swift-openapi-runtime

1.12.0

API package for code generated by Swift OpenAPI Generator.
apple/swift-openapi-runtime

What's New

1.12.0

2026-05-21T10:51:13Z

What's Changed

SemVer Minor

  • Drop Swift 6.0 by @rnro in #185
  • Add QuerySpaceNormalizingMiddleware server middleware to handle clients using plus-encoding by @rbranche in #194

Other Changes

  • Bump swiftlang/github-workflows/.github/workflows/soundness.yml from 0.0.7 to 0.0.8 by @dependabot[bot] in #182
  • Use org security policy instead of our bespoke version by @madrob in #183
  • Enable Swift 6.3 jobs in CI by @rnro in #184
  • Bump swiftlang/github-workflows/.github/workflows/soundness.yml from 0.0.8 to 0.0.10 by @dependabot[bot] in #188
  • Update dependabot to daily schedule by @kukushechkin in #189
  • Bump swiftlang/github-workflows/.github/workflows/soundness.yml from 0.0.10 to 0.0.11 by @dependabot[bot] in #190
  • Make dependabot set label by @kukushechkin in #191
  • update .spi build to request 6.3 and extended HTML output by @heckj in #193
  • [CI] Add automated release workflow using swift-temporal-sdk by @inductor in #192
  • Deduplicate package Swift settings by @fhwvtqdc2q-svg in #196

New Contributors

Full Changelog: 1.11.0...1.12.0

Swift OpenAPI Generator Runtime

This library provides common abstractions and helper functions used by the client and server code generated by Swift OpenAPI Generator.

Overview

It contains:

Many of the HTTP currency types used are defined in the Swift HTTP Types library.

Tip: Check out the example projects focused on middlewares.

Usage

Add the package dependency in your Package.swift:

.package(url: "https://github.com/apple/swift-openapi-runtime", from: "1.0.0"),

Next, in your target, add OpenAPIRuntime to your dependencies:

.target(name: "MyTarget", dependencies: [
    .product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
]),

The next step depends on your use case.

Using Swift OpenAPI Generator for code generation

The generated code depends on types from this library. Check out the adoption guides in the Swift OpenAPI Generator documentation to see how the packages fit together.

Implementing transports and middlewares

Swift OpenAPI Generator generates client and server code that is designed to be used with pluggable transports and middlewares.

Implement a new transport or middleware by providing a type that adopts one of the protocols from the runtime library:

You can also publish your transport or middleware as a Swift package to allow others to use it with their generated code.

Documentation

To learn more, check out the full documentation.

Description

  • Swift Tools 6.1.0
View More Packages from this Author

Dependencies

Last updated: Thu Jul 30 2026 12:09:04 GMT-0900 (Hawaii-Aleutian Daylight Time)