Open kubajal opened 3 years ago
👍 Thanks for opening this issue! 🏷 I have applied any labels matching special text in your issue.
The team will review the labels and make any necessary changes.
cc @richardwhiuk
Did you generate with an older version, and then generate with a newer version over the top?
The latest generator doesn't produce examples/client.rs
, or examples/server.rs
, but these exist in your generated code.
This was changed in https://github.com/OpenAPITools/openapi-generator/pull/5405 where we updated the generator to match Rust's standard for multi-file examples, where we have examples/client/main.rs
and examples/server/main.rs
.
Bug Report Checklist
Description
I'm developing a small project here: https://github.com/kubajal/minimax-in-rust I cannot run code generated by openapi-generator-cli v5.0.1 through
cargo run --example server
in Docker imagerust:1.50
. I get the following error:I'd expect this to succeed as that is the step described in the README.md generated by
npx @openapitools/openapi-generator-cli generate -i swagger.yml -g rust-server
.openapi-generator version
v5.0.1 I downloaded it through https://openapi-generator.tech/docs/installation/.
OpenAPI declaration file content or url
https://github.com/kubajal/minimax-in-rust/blob/main/swagger.yml
Generation Details
I just used
npx @openapitools/openapi-generator-cli generate -i swagger.yml -g rust-server
.Steps to reproduce
Related issues/PRs
None that I found.
Suggest a fix
I have no idea. I am a beginner in Rust.