[Fix] Re-introduce deprecated methods #15
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.