Open rxdiscovery opened 2 months ago
Use short FlexNamer
for now, like this
#[tokio::main]
async fn main() {
salvo::oapi::naming::set_namer(salvo::oapi::naming::FlexNamer::new().short_mode(true));
// ...
}
The openAPI will looks like this, it will not respect any name, but is better
@rxdiscovery You can close this issue, or change it to
"Short FlexNamer
doesn't respect schemas name", I prefer to change its name
@TheAwiteb thanks for the temporary solution, I'll try it out.
Hello,
Describe the bug :
I've noticed that when using structures with generics, serialization (ToSchema) doesn't take name changes into account with
Here is a complete code that shows the problem :
We have this result:
(for primitive types [String, u32,u64,f32,u64,bool,&str,etc..], it would be nice to display only their names without the path)
Expected result:
Salvo version :
Thanks in advance :1st_place_medal: