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

Add Conformance To ClientTransport From swift-openapi-generator #3826

Open
1 task done
lilidotshi opened this issue Feb 6, 2024 · 1 comment
Open
1 task done

Add Conformance To ClientTransport From swift-openapi-generator #3826

lilidotshi opened this issue Feb 6, 2024 · 1 comment

Comments

@lilidotshi
Copy link

lilidotshi commented Feb 6, 2024

Problem

Currently Alamofire doesn't have conformance to ClientTransport which is needed if we want to use the new swift-openapi-generator: https://developer.apple.com/videos/play/wwdc2023/10171/

Feature Request

If we want to continue to use Alamofire in conjunction with the swift-openapi-generator, ClientTransport conformance is needed, as we need to supply it to the generated Client as a valid transport type to perform http operations: https://github.com/apple/swift-openapi-generator/tree/7bd8dadd99daafca1ece911209863124a07621f1?tab=readme-ov-file#using-a-generated-api-client

Value to Alamofire

Since this is an apple supported plugin, continuing to use the same Http library is going to be invaluable, and since alamofire is supported by openapi's cli, the next step would be to support it as a part of apple's tools as well.

@jshier
Copy link
Contributor

jshier commented Feb 6, 2024

I've never seen client API generators generate any API code I'd ever want to use, but I'll leave this here in case anyone wants to pick it up as a new feature. It seems rather involved, especially for the streaming version.

@jshier jshier changed the title Adding conformance to ClientTransport for swift-openapi-generator Add Conformance To ClientTransport From swift-openapi-generator Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants