Open matyama opened 4 months ago
After few brief experiments:
paperclip
does not have full OpenAPI v3 support yetprogenitor
does not support multiple response types in the specSo this works is currently postponed (integrating the generic openapi-generator
does not seem as the best choice), till required features land.
Bitly has an OpenAPI specification for its API - it'd probably be better (easier, more maintainable) to automatically generate the API client via a generator.
Some generators (in Rust) that come to mind:
One drawback is that the generated modes will (probably) all be fully heap allocated (or at least the generic
openapi-generator
does so). Although at least for theshorten
command this is not strictly necessary, it probably won't be a big deal as the app is mostly I/O bound anyways.