You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A similar issue was created for Rust Server (not Rust client), which correctly identified the issue with using _ but applied the prefix of param_ instead:
Description
In Rust the correct way to escape a reserved word is to use raw identifiers:
https://doc.rust-lang.org/book/appendix-01-keywords.html#raw-identifiers
Currently they are being prefixed with
_which in Rust is used to indicate an unused identifier:https://doc.rust-lang.org/stable/nightly-rustc/rustc_lint_defs/builtin/static.UNUSED_VARIABLES.html#explanation
openapi-generator version
All versions as far as I am aware:
https://github.com/OpenAPITools/openapi-generator/blob/7.0.x/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustClientCodegen.java#L418
Related issues/PRs
A similar issue was created for
Rust Server(notRustclient), which correctly identified the issue with using_but applied the prefix ofparam_instead:#5455
Suggest a fix/enhancement
I will create a PR to fix this