Skip to content

[BUG][RUST] Twilio OpenAPI codegen errors #10421

@PiDelport

Description

@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:

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:

I collected the fixes into an integration testing branch:

With the fixes, the twilio-oai 1.20.2 output builds successfully:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions