Skip to content

[Fix] Re-introduce deprecated methods #15

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

Merged

Conversation

czechboy0
Copy link
Contributor

Motivation

Unfortunately, as part of landing apple/swift-openapi-generator#43, I made a mistake during backwards compatibility testing and forgot to add a few deprecated methods still used by generator 0.1.0.

That means that generator 0.1.0 doesn't work with runtime 0.1.1, currently.

This PR reintroduces them, so that generator 0.1.0 can work with a hotfix 0.1.2 again.

Modifications

Re-added a few missing deprecated methods on Converter.

Result

Someone using generator 0.1.0 with the latest runtime library (e.g. if they locked their generator version to 0.1.0 but didn't lock their runtime version) will have the generated code compiling again with runtime 0.1.2 (once this fix is landed).

Test Plan

Checked locally by actually checking our the different tags of runtime and generator and built them together.

@czechboy0 czechboy0 requested a review from simonjbeaumont June 8, 2023 17:33
@czechboy0 czechboy0 merged commit 2c093b0 into apple:main Jun 8, 2023
@czechboy0 czechboy0 deleted the hd-reintroduce-missing-deprecated-methods branch June 8, 2023 17:59
@czechboy0 czechboy0 added the 🔨 semver/patch No public API change. label Jun 8, 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