We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c60d5ba commit 8d30966Copy full SHA for 8d30966
src/rust/client_gen.rs
@@ -483,8 +483,15 @@ fn trait_method(
483
) -> Result<Method> {
484
let (result_code, result_type) = method_result(&op.op.responses.responses, ref_cache)?;
485
486
+ let name =
487
+ if let Some(op_id) = &op.op.operation_id {
488
+ op_id.to_case(Case::Snake)
489
+ } else {
490
+ op.path.strip_prefix(prefix_length).method_name(&op.method)
491
+ };
492
+
493
Ok(Method {
- name: op.path.strip_prefix(prefix_length).method_name(&op.method),
494
+ name,
495
path: op.path.clone(),
496
original_path: op.original_path.clone(),
497
http_method: op.method.to_string(),
0 commit comments