From 5fbb2e34fb1c694c34285f9bbf59734cdcb56bc1 Mon Sep 17 00:00:00 2001 From: Awiteb Date: Thu, 25 Jul 2024 17:38:56 +0300 Subject: [PATCH] fix: Respect schemas name in short `FlexNamer` Signed-off-by: Awiteb --- crates/oapi/src/naming.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/oapi/src/naming.rs b/crates/oapi/src/naming.rs index 84e106c30..f5ba04d78 100644 --- a/crates/oapi/src/naming.rs +++ b/crates/oapi/src/naming.rs @@ -141,7 +141,7 @@ impl Namer for FlexNamer { NameRule::Force(force_name) => { let mut base = if self.short_mode { let re = Regex::new(r"([^<>]*::)+").expect("Invalid regex"); - re.replace_all(type_name, "").to_string() + re.replace_all(force_name, "").to_string() } else { format! {"{}{}", force_name, type_generic_part(type_name).replace("::", ".")} };