Skip to content

[BUG] Generated rust DigitalOcean API not compiling due to several errors #20500

@axos88

Description

@axos88

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?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

Running

docker run --rm -v $PWD:/local openapitools/openapi-generator-cli:latest generate     -i https://api-engineering.nyc3.digitaloceanspaces.com/spec-ci/DigitalOcean-public.v2.yaml     -g rust     -o /local

generates a project with several issues:

  • missing enum variant suffixes in droplet_actions_post_request.rs
  • unknown_base_type: models::UNKNOWN_BASE_TYPE in uptime_api.rs
  • combining serde_with with serde_as
  • Box<Vec> missing generic type parameters
  • SshKeysGetSshKeyIdentifierParameter seems to be empty and missing a Display implementation
openapi-generator version

latest

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