Skip to content

Send Some Love

Pre-release
Pre-release

Choose a tag to compare

@mattpolzin mattpolzin released this 16 Feb 15:39
1d1f322

This release is mostly about rounding off concurrency support to the extent where strict concurrency checking can be enabled in CI and downstream projects can use OpenAPIKit in async contexts.

Breaking Changes

In order to conform to the Sendable protocol, some breaking changes were made to the AnyCodable type. This is the type used extensively for "examples" and "vendor extensions" in OpenAPIKit.

  1. The constructor for AnyCodable now requires knowledge at compile time that the value it is initialized with is Sendable.
  2. Array and Dictionary literal protocol conformances had to be dropped. Anywhere you were relying on implicit conversion from e.g. ["hello": 1] to an AnyCodable, wrap the literal with an explicit call to init: .init(["hello": 1]).