this repo has no description

fix build (by claude)

Changed files
+6 -6
lib
+1 -1
dune-project
···
(description "This is all still a work in progress")
(depends
(ocaml (>= "5.2.0"))
-
ezjsonm
ptime
cohttp
cohttp-lwt-unix
uri
lwt))
···
(description "This is all still a work in progress")
(depends
(ocaml (>= "5.2.0"))
ptime
cohttp
cohttp-lwt-unix
+
ezjsonm
uri
lwt))
+1 -1
jmap.opam
···
depends: [
"dune" {>= "3.17"}
"ocaml" {>= "5.2.0"}
-
"ezjsonm"
"ptime"
"cohttp"
"cohttp-lwt-unix"
"uri"
"lwt"
"odoc" {with-doc}
···
depends: [
"dune" {>= "3.17"}
"ocaml" {>= "5.2.0"}
"ptime"
"cohttp"
"cohttp-lwt-unix"
+
"ezjsonm"
"uri"
"lwt"
"odoc" {with-doc}
+1 -1
lib/dune
···
(library
(name jmap)
(public_name jmap)
-
(libraries ezjsonm ptime cohttp cohttp-lwt-unix uri lwt))
···
(library
(name jmap)
(public_name jmap)
+
(libraries str ezjsonm ptime cohttp cohttp-lwt-unix uri lwt))
+3 -3
lib/jmap.ml
···
(** Convert Ezjsonm.value to string *)
let json_to_string json =
-
Ezjsonm.to_string ~minify:false json
(** Parse response string as JSON value *)
let parse_json_string str =
···
(** Serialize a JMAP request object to JSON *)
let serialize_request req =
let method_calls_json =
-
`A (List.map (fun inv ->
`A [`String inv.name; inv.arguments; `String inv.method_call_id]
) req.method_calls)
in
···
let json = match req.created_ids with
| Some ids ->
let created_ids_json = `O (List.map (fun (k, v) -> (k, `String v)) ids) in
-
Ezjsonm.update json ["createdIds"] created_ids_json
| None -> json
in
json_to_string json
···
(** Convert Ezjsonm.value to string *)
let json_to_string json =
+
Ezjsonm.value_to_string ~minify:false json
(** Parse response string as JSON value *)
let parse_json_string str =
···
(** Serialize a JMAP request object to JSON *)
let serialize_request req =
let method_calls_json =
+
`A (List.map (fun (inv : 'a invocation) ->
`A [`String inv.name; inv.arguments; `String inv.method_call_id]
) req.method_calls)
in
···
let json = match req.created_ids with
| Some ids ->
let created_ids_json = `O (List.map (fun (k, v) -> (k, `String v)) ids) in
+
Ezjsonm.update json ["createdIds"] (Some created_ids_json)
| None -> json
in
json_to_string json