mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-04 18:43:47 +01:00
Merge pull request #147 from programble/fix/repeated-props
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