Skip to content

Conversation

czechboy0
Copy link
Contributor

@czechboy0 czechboy0 commented Jul 31, 2023

Motivation

See apple/swift-openapi-runtime#30

Depends on Runtime 0.1.6

Modifications

Adapted the generator code for the runtime changes. Also, since this was factored out of the big PR (#146) adding multiple content types, you can see the code was prepared for handling multiple content types, even though still in this PR it only ever gets N=1.

Result

The generated code uses the new simplified runtime functions, and prepares us for multiple content types.

Test Plan

Adapted file-based reference tests to generate the new syntax.

@czechboy0 czechboy0 requested a review from simonjbeaumont July 31, 2023 08:59
@czechboy0 czechboy0 changed the title Design away EncodableBodyContent [Generator] Design away EncodableBodyContent Jul 31, 2023
@czechboy0 czechboy0 added the semver/none No version bump required. label Jul 31, 2023
@czechboy0 czechboy0 merged commit b1d310f into apple:main Jul 31, 2023
@czechboy0 czechboy0 deleted the hd-remove-EncodableBodyContent branch July 31, 2023 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants