Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to OpenAPIKit 3.0.0 #362

Merged
merged 1 commit into from
Nov 6, 2023
Merged

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