···534534 in
535535 Log.info (fun m ->
536536 m "Retrieved server info: %a"
537537- (Json.pp_value Control.Server_info.json ())
537537+ (Json.pp_value Control.Server_info.json)
538538 server_info);
539539 Server_info.of_control server_info
540540
+1-1
lib/content_block.ml
···138138 ~tag_to_string:Fun.id ~tag_compare:String.compare
139139 |> Object.seal
140140141141-let pp ppf t = Json.pp_value json () ppf t
141141+let pp ppf t = Json.pp_value json ppf t
142142let log_received t = Log.debug (fun m -> m "Received content block: %a" pp t)
143143let log_sending t = Log.debug (fun m -> m "Sending content block: %a" pp t)
+3-4
lib/control.ml
···450450 ~tag_to_string:Fun.id ~tag_compare:String.compare
451451 |> Object.seal
452452453453-let pp ppf t = Json.pp_value json () ppf t
453453+let pp ppf t = Json.pp_value json ppf t
454454455455let log_request req =
456456- Log.debug (fun m ->
457457- m "control request: %a" (Json.pp_value Request.json ()) req)
456456+ Log.debug (fun m -> m "control request: %a" (Json.pp_value Request.json) req)
458457459458let log_response resp =
460459 Log.debug (fun m ->
461461- m "control response: %a" (Json.pp_value Response.json ()) resp)
460460+ m "control response: %a" (Json.pp_value Response.json) resp)
462461463462(** Server information *)
464463module Server_info = struct
+5-5
lib/control.mli
···174174 (** [get_server_info ?unknown ()] creates a server info request. *)
175175176176 val json : t Json.codec
177177- (** [json] is the json codec for requests. Use [Json.pp_value json ()] for
177177+ (** [json] is the json codec for requests. Use [Json.pp_value json] for
178178 pretty-printing. *)
179179end
180180···260260 structured error detail. *)
261261262262 val json : t Json.codec
263263- (** [json] is the json codec for responses. Use [Json.pp_value json ()] for
263263+ (** [json] is the json codec for responses. Use [Json.pp_value json] for
264264 pretty-printing. *)
265265end
266266···300300(** [response ~response ?unknown ()] creates a control response message. *)
301301302302val json : t Json.codec
303303-(** [json] is the json codec for control messages. Use [Json.pp_value json ()]
304304- for pretty-printing. *)
303303+(** [json] is the json codec for control messages. Use [Json.pp_value json] for
304304+ pretty-printing. *)
305305306306val pp : Format.formatter -> t -> unit
307307(** [pp ppf t] pretty-prints the SDK control message. *)
···381381 (** [unknown t] returns the unknown fields. *)
382382383383 val json : t Json.codec
384384- (** [json] is the json codec for server info. Use [Json.pp_value json ()] for
384384+ (** [json] is the json codec for server info. Use [Json.pp_value json] for
385385 pretty-printing. *)
386386end
+1-1
lib/incoming.ml
···8787 ~tag_to_string:Fun.id ~tag_compare:String.compare
8888 |> Object.seal
89899090-let pp ppf t = Json.pp_value json () ppf t
9090+let pp ppf t = Json.pp_value json ppf t
+1-1
lib/incoming.mli
···24242525val json : t Json.codec
2626(** Codec for incoming messages. Uses the "type" field to discriminate. Use
2727- [Json.pp_value json ()] for pretty-printing. *)
2727+ [Json.pp_value json] for pretty-printing. *)
28282929val pp : Format.formatter -> t -> unit
3030(** [pp ppf t] pretty-prints the incoming message. *)
+1-1
lib/message.ml
···429429430430let user_string s = User (User.of_string s)
431431let user_blocks blocks = User (User.of_blocks blocks)
432432-let pp ppf t = Json.pp_value json () ppf t
432432+let pp ppf t = Json.pp_value json ppf t
433433let log_received t = Log.info (fun m -> m "<- %a" pp t)
434434let log_sending t = Log.info (fun m -> m "-> %a" pp t)
+2-2
lib/options.ml
···188188 |> Object.keep_unknown Unknown.mems ~enc:unknown
189189 |> Object.seal
190190191191- let pp ppf t = Json.pp_value json () ppf t
191191+ let pp ppf t = Json.pp_value json ppf t
192192end
193193194194type t = {
···362362 |> apply_opt t.output_format Wire.with_output_format
363363end
364364365365-let pp ppf t = Json.pp_value Wire.json () ppf (Advanced.to_wire t)
365365+let pp ppf t = Json.pp_value Wire.json ppf (Advanced.to_wire t)
+1-1
lib/outgoing.ml
···6060 ~tag_to_string:Fun.id ~tag_compare:String.compare
6161 |> Object.seal
62626363-let pp ppf t = Json.pp_value json () ppf t
6363+let pp ppf t = Json.pp_value json ppf t
6464let to_json t = Json.encode json t
65656666let of_json v =