apple / swift-openapi-generator

Generate Swift client and server code from an OpenAPI document.
https://swiftpackageindex.com/apple/swift-openapi-generator/documentation
Apache License 2.0
1.23k stars 89 forks source link

Support for `multipart/mixed`? #571

Open leoshimo opened 3 weeks ago

leoshimo commented 3 weeks ago

Question

Hello! 👋

First of all, thank you for the team's work on this project.

As a follow up to https://github.com/apple/swift-openapi-generator/pull/366 and #36, I was wondering if support for multipart/mixed was on the roadmap.

I'm working against a batch endpoint that uses multipart/mixed - it works as a global proxy to other operations in OpenAPI document. I'd like to use this project if possible to generate Swift API client.

czechboy0 commented 3 weeks ago

Hi @leoshimo,

it was mentioned as out of scope of the original proposal: https://swiftpackageindex.com/apple/swift-openapi-generator/1.2.1/documentation/swift-openapi-generator/soar-0009#Other-multipart-subtypes

But we'd be open to accepting a PR adding that support. Can you elaborate on why the mixed subtype is used instead of the more common form-data? Can you include a snippet of the OpenAPI doc that uses it?