Skip to content

Commit f9df88e

Browse files
committed
Fix split function in generator
1 parent 615dfd5 commit f9df88e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/gapi/gapiDriveV3Service.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ struct
838838
file
839839
session =
840840
let base_path = ["files"] in
841-
let media_path = ["resumable"; "upload"; "drive"; "v3"; "files"] in
841+
let media_path = [""; "resumable"; "upload"; "drive"; "v3"; "files"] in
842842
let path_to_add = if GapiOption.is_some media_source then media_path
843843
else base_path in
844844
let full_url = GapiUtils.add_path_to_url path_to_add base_url in
@@ -976,7 +976,7 @@ struct
976976
file
977977
session =
978978
let base_path = ["files"; ((fun x -> x) fileId)] in
979-
let media_path = ["resumable"; "upload"; "drive"; "v3"; "files";
979+
let media_path = [""; "resumable"; "upload"; "drive"; "v3"; "files";
980980
((fun x -> x) fileId)] in
981981
let path_to_add = if GapiOption.is_some media_source then media_path
982982
else base_path in

tools/serviceGenerator.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ let generate_rest_method formatter inner_module_lens (id, rest_method) =
737737
>>= fun parameters_module_name ->
738738
(* Build complete url *)
739739
let build_path_to_add path =
740-
let splitted_path = Str.split forward_slash_regxp path in
740+
let splitted_path = Str.split_delim forward_slash_regxp path in
741741
List.map
742742
(fun p ->
743743
if GapiUtils.string_starts_with p "{" then

0 commit comments

Comments
 (0)