Skip to content

Conversation

@czechboy0
Copy link
Contributor

Motivation

OpenAPIKit released 3.0.0, so let's move to it.

Modifications

They (correctly) removed the format: byte and format: binary fields in the OpenAPI 3.1 mode, instead contentEncoding: base64 and contentEncoding: binary should be used.

For docs that load as 3.0 and get converted to 3.1 in memory, this translation happens automatically in OpenAPIKit, so we just need to be able to handle 3.1 documents here.

Result

Using the stable v3 version of OpenAPIKit, which will allow Swift OpenAPI Generator to coexist with other projects that depend on OpenAPIKit v3 (previously, locking to an exact version of OpenAPIKit meant more difficult version resolution for adopters.)

Test Plan

Adapted tests, all pass now.

@czechboy0 czechboy0 merged commit 63174f3 into apple:main Nov 6, 2023
@czechboy0 czechboy0 deleted the hd-openapikit-v3 branch November 6, 2023 08:23
@czechboy0 czechboy0 added the 🔨 semver/patch No public API change. label Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants