swiftlang / swiftly

A Swift toolchain installer and manager, written in Swift.
https://swiftlang.github.io/swiftly/
Apache License 2.0
481 stars 28 forks source link

Adopt swift-openapi-generator for the GitHub client #175

Open czechboy0 opened 1 day ago

czechboy0 commented 1 day ago

swiftly makes API calls to GitHub and today that client code is hand maintained, requiring careful work to update it as the GitHub API evolves.

It'd be easier to just generate the client code from the GitHub OpenAPI document using swift-openapi-generator. We can filter only the operation(s) needed, without generating or compiling any other generated code.

czechboy0 commented 1 day ago

Might be unnecessary if the GitHub client is removed: https://github.com/swiftlang/swiftly/issues/166