-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing field in gitlab's answer when GETting merge request #96
Comments
Thanks for reporting the issue @vprevosto Could you include the URL (or an example of it) that you're requesting? Running your code with The field for |
Thanks for your answer. Here is an example (note that this is private repo, you can't access it as of now)
and then the error For the record, this is obtained from the small script below, linked against gitlab-unix let base_uri = Uri.of_string "https://git.frama-c.com/api/v4"
let add_path uri path = Uri.with_path uri (Uri.path uri ^ "/" ^ path)
let token = Sys.getenv "GITLAB_TOKEN";;
let token = Gitlab.Token.AccessToken token;;
let path = "projects/virgile%2ftest-ocaml-gitlab/merge_requests";;
let uri = add_path base_uri path;;
let parse s = Lwt.return (Gitlab_j.merge_requests_of_string s);;
let do_one_mr mr =
Gitlab.Monad.return
(Printf.printf "This is MR %d: %s\n%!"
mr.Gitlab_t.merge_request_iid mr.Gitlab_t.merge_request_title);;
let request = Gitlab.API.get_stream ~token ~uri parse;;
let iter_req = Gitlab.Stream.iter do_one_mr request;;
let () = iter_req |> Gitlab.Monad.run |> Lwt_main.run;; |
While toying with the library to get some merge requests from our gitlab server, I was met with
Making this field optional in
gitlab.atd
(where it is alreadynullable
) by adding a?
in front of the name makes the problem disappear.The text was updated successfully, but these errors were encountered: