openai / openai/openai-openapi

Has anyone been able to generate client code for rust?

Open
#447 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
No language data
Stars
2.5k
Forks
527
Avg merge
1h 46m
Merged PRs (30d)
2

Description

Hey all,
I am trying to generate client code for rust from the current openapi spec.

I tried multiple code generators, like:
openapi-generator-cli
swagger-codegen
progenitor

and a few others.

But so far I had no luck, none of the mentioned generators was able to validate the spec and generate valid rust code from it.

There are quite a few errors on build time, so I won't bore you with every detail.

Image

Did anyone else try something similar and had more luck without having to fix the openapi spec manually? All pointers are very welcome.

Best Regards,
Tim

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by validating the current OpenAPI spec with openapi-generator-cli, swagger-codegen, or progenitor, then capture the validation and Rust build errors reported by those tools. Done would mean identifying the spec incompatibilities and confirming that one of the listed generators produces valid Rust client code.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi, rust
Domain
api
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.