[BUG][RUST] Twilio OpenAPI codegen errors
Created by: PiDelport
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:
-
#10419 -
#10420 -
#10432 (not a bug, but strongly affects API usability for Twilio) -
#10439
I collected the fixes into an integration testing branch:
With the fixes, the twilio-oai 1.20.2 output builds successfully: