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

Use the OpenAPI spec to generate the client #28

Open
j-martin opened this issue May 26, 2020 · 3 comments
Open

Use the OpenAPI spec to generate the client #28

j-martin opened this issue May 26, 2020 · 3 comments

Comments

@j-martin
Copy link
Collaborator

j-martin commented May 26, 2020

Clubhouse now publishes the spec for their API.

It might make sense to use it for code generation instead of manually maintaining the lower-level details and Type hints.

I am not sure which code generator should be used and if any of them can generate Type hints for example.

@j-martin j-martin changed the title Use the Open Use the OpenAPI spec to generate the client May 26, 2020
@allardbrain
Copy link
Owner

Thanks, @j-martin ! I'll look into this in more detail this week.

@allardbrain
Copy link
Owner

Hey @j-martin it's been awhile, but I've gotten back to working on this project. I spent some time learning about OpenAPI and client generators, and thanks for introducing these concepts.

I'm going to continue developing this package manually because I value the learning experience of creating an API wrapper from scratch for the first time. However, I'm open to re-working this in the future using an OpenAPI code generator.

@j-martin
Copy link
Collaborator Author

No worries. Looking at the dev branch you are doing admirable work with the heredocs and everything else. :) My gut reaction is always "can't a computer do that for me instead" though. ;)

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