-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Closed
Labels
Description
Bug Report Checklist
- Have you provided a full/minimal spec to reproduce the issue?
- Have you validated the input using an OpenAPI validator (example)?
- Have you tested with the latest master to confirm the issue still exists?
- Have you searched for related issues/PRs?
- What's the actual output vs expected output?
Description
Twilio provides OpenAPI specifications for all of their APIs:
- https://www.twilio.com/blog/introducing-twilio-open-api-specification-beta
- https://www.twilio.com/docs/openapi
Twilio's documentation showcases using OpenAPI Generator to generate Rust clients: however, the code generation currently fails for a number of their APIs.
openapi-generator version
- 5.3.0-SNAPSHOT (latest)
OpenAPI declarations repository
Generation Details
openapi-generator-cli generate with options:
--generator-name rust--library reqwest--additional-properties 'useSingleRequestParameter=true,supportMultipleResponses=true'
Steps to reproduce
See the failing checks in this PR:
Specifically, these specs are failing:
Related issues/PRs
Suggest a fix
I made PRs for the issues I've encountered so far:
- fix(rust,client): use local_var prefix for configuration #10419
- fix(rust,client): convert form isArray values to string #10420
- feat(rust,client): derive Default for operation parameter structs #10432 (not a bug, but strongly affects API usability for Twilio)
- fix(rust,client): re-enable TLS support for reqwest with supportAsync #10439
I collected the fixes into an integration testing branch:
With the fixes, the twilio-oai 1.20.2 output builds successfully:
Reactions are currently unavailable