OpenAPITools / OpenAPITools/openapi-generator
[BUG] Rust
Open
Nobody has claimed this yet.
Issue: Bug
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
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?
- [Optional] Sponsorship to speed up the bug fix or feature request (example)
Repro
This also manifests on 5.2.1
echo '{"generator-cli": {"version": "6.0.1"}}' > openapitools.json
wget https://gist.githubusercontent.com/banool/d3dce131dc05c3dc8fa976357cfa5796/raw/859d61128aefdd0d7eb93af1fbdf5a4a2a9005b2/gistfile0.txt -O spec.yaml
npx @openapitools/openapi-generator-cli generate -g rust -i spec.yaml -o /tmp/myclient --package-name myclient
Resulting compliation errors: https://gist.github.com/banool/782490a3805b6bc58eabea08c822802f.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the commands in the issue with openapitools.json and spec.yaml, then inspect the generated client in /tmp/myclient and compare its compilation errors with the linked gist. Done means the same OpenAPI input generates Rust code that compiles successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100