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.
2 parents 79ff401 + 8d30966 commit c6ffafdCopy full SHA for c6ffafd
src/rust/client_gen.rs
@@ -497,8 +497,15 @@ fn trait_method(
497
) -> Result<Method> {
498
let (result_code, result_type) = method_result(&op.op.responses.responses, ref_cache)?;
499
500
+ let name =
501
+ if let Some(op_id) = &op.op.operation_id {
502
+ op_id.to_case(Case::Snake)
503
+ } else {
504
+ op.path.strip_prefix(prefix_length).method_name(&op.method)
505
+ };
506
+
507
Ok(Method {
- name: op.path.strip_prefix(prefix_length).method_name(&op.method),
508
+ name,
509
path: op.path.clone(),
510
original_path: op.original_path.clone(),
511
http_method: op.method.to_string(),
0 commit comments