Skip to content

Commit

Permalink
fix: replace :: to . in operationid #321 (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn authored Jul 14, 2023
1 parent f307c62 commit 3c32a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oapi-macros/src/endpoint/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fn metadata(
let mut operation = #oapi::oapi::Operation::new();
modify(&mut components, &mut operation);
if operation.operation_id.is_none() {
operation.operation_id = Some(::std::any::type_name::<#name>().to_owned());
operation.operation_id = Some(::std::any::type_name::<#name>().replace("::", "."));
}
if !status_codes.is_empty() {
let responses = std::ops::DerefMut::deref_mut(&mut operation.responses);
Expand Down

0 comments on commit 3c32a48

Please sign in to comment.