[rust-server] doesn't support arrays of non-strings in query parameters
Created by: bjgill
Description
See https://github.com/swagger-api/swagger-codegen/issues/8169#issuecomment-388858171.
It looks as if we're currently assuming that arrays in query parameters must be arrays of strings. I suspect this probably just requires some tinkering with the mustache templates.
...
error[E0277]: `std::vec::Vec<i32>` doesn't implement `std::fmt::Display`
--> src/client/mod.rs:37212:134
|
37212 | let query_connections = param_connections.map_or_else(String::new, |query| format!("connections={connections}&", connections=query.join(",")));
| ^^^^^^^^^^^^^^^ `std::vec::Vec<i32>` cannot be formatted with the default formatter; try using `:?` instead if you are using a format string
|
= help: the trait `std::fmt::Display` is not implemented for `std::vec::Vec<i32>`
= note: required by `std::fmt::Display::fmt`
error[E0277]: the trait bound `std::vec::Vec<i32>: std::str::FromStr` is not satisfied
--> src/server/mod.rs:37122:71
|
37122 | .filter_map(|param_connections| param_connections.parse::<Vec<i32>>().ok())
| ^^^^^ the trait `std::str::FromStr` is not implemented for `std::vec::Ve
...