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
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
When building openapi schema that use kebab case in path parameters (ie. /v1/pet/pet-id) the Rust client does not compile
86 | ... let local_var_uri_str = format!("{}/pet/{pet-id}", local_var_configuration.base_path, pet-id=pet_id);
| - ^ expected `'}'` in format string
| |
| because of this opening brace
Bug Report Checklist
Description
When building openapi schema that use kebab case in path parameters (ie.
/v1/pet/pet-id
) the Rust client does not compileopenapi-generator version
OpenAPI declaration file content or url
https://gist.github.com/ranger-ross/c2f6fd836c5bb3196c5d9c18eff712f4
Generation Details
Steps to reproduce
cargo build
Related issues/PRs
none
Suggest a fix
I believe that params should be normalized to underscore_snake_case to avoid compilation issues.
The text was updated successfully, but these errors were encountered: