GitHub - oxidecomputer/progenitor: An OpenAPI client generator - An OpenAPI client generator - had a 0.3 release 2 weeks ago, includes 8 months of active development since the v0.2 release.
In addition to lots of improvements to support all the varied ways people use OpenAPI, it includes two notable enhancements:
- Generation of
clap
-based CLIs - Generation of strongly-typed mocks with
httpmock
You can feed it rest-api-description/api.github.com.yaml at main · github/rest-api-description · GitHub , and with very minor tweaks to the input yaml, it can spit out a GitHub client Cargo.toml
and lib.rs
, and with a few lines of Rust you can use it to create a mock GitHub API service.