mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-24 20:26:25 +01:00
Send repeated properties as repeated query parameters
This commit is contained in:
@@ -521,11 +521,9 @@ match result {
|
||||
% endif ## p.name == 'part' and request_value:
|
||||
% if p.get('repeated', False):
|
||||
if ${pname}.len() > 0 {
|
||||
let mut s = String::new();
|
||||
for f in ${pname}.iter() {
|
||||
s.push_str(&("/".to_string() + &f.to_string()));
|
||||
params.push(("${p.name}", f.to_string()));
|
||||
}
|
||||
params.push(("${p.name}", s));
|
||||
}
|
||||
% elif not is_required_property(p):
|
||||
if let Some(value) = ${pname} {
|
||||
|
||||
Reference in New Issue
Block a user