-
Notifications
You must be signed in to change notification settings - Fork 13
Experiment with other OpenAPI client generators #458
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
Comments
Or... maybe we can forget all that and get Dropshot to give us a |
🤷♂️ drpow/openapi-typescript
Generates one schema file, doesn't generate fetches, but does have 💩 ferdikoomen/openapi-typescript-codegen
Completely fucked on 👍 acacode/swagger-typescript-api
Didn't actually run any requests, but this is a solid candidate. Handles export type DiskState =
| { state: "creating" }
| { state: "detached" }
| { instance: string; state: "attaching" }
| { instance: string; state: "attached" }
| { instance: string; state: "detaching" }
| { state: "destroyed" }
| { state: "faulted" }; Testing the official generator with
|
We did it folks. #535 |
The official generator is doing really weird stuff with what seems like it should be a pretty standard AnyOf situation. So far we're hacking around it, but it's not sustainable.
It's time to trot out the alternative generators again and see how they fare.
Note that some generators, like the official one, generate request methods that wrap
fetch
for us. Others just generate all the types for the requests and responses, but wiring upfetch
es would be manual. This is not necessarily a dealbreaker — customizing fetch could potentially be a good thing (though it probably isn't) and there may be a way to add our own generation for the wrappers so that even though we're responsible for it, at least it's automatic.The text was updated successfully, but these errors were encountered: