diff --git a/lib/core/JupyterShellMessage.ml b/lib/core/JupyterShellMessage.ml index 24c20d5..fd47595 100644 --- a/lib/core/JupyterShellMessage.ml +++ b/lib/core/JupyterShellMessage.ml @@ -117,13 +117,19 @@ type language_info = nbconverter_exporter : string option; } [@@deriving yojson { strict = false }] +type help_link = + { + text : string; + url : string; + } [@@deriving yojson { strict = false }] + type kernel_info_reply = { protocol_version : string; implemenation : string; implementation_version : string; banner : string option; - help_links : Yojson.Safe.json; + help_links : help_link list; language_info : language_info; language : string; } [@@deriving yojson { strict = false }] @@ -135,7 +141,12 @@ let kernel_info_reply = implemenation = "ocaml-jupyter"; implementation_version = JupyterVersion.kernel_version; banner = None; - help_links = `Assoc []; + help_links = [ + { + text = "ocaml-jupyter"; + url = "https://akabe.github.io/ocaml-jupyter/"; + }; + ]; language = "OCaml"; language_info = { diff --git a/test/Fixture.ml b/test/Fixture.ml index 3fad475..436405c 100644 --- a/test/Fixture.ml +++ b/test/Fixture.ml @@ -60,7 +60,7 @@ end module KernelInfoReply = struct let key = "167ff8c8-fe494afc147b4fa62758ed82" - let hmac = "7cd42e8ad6577c8dcd56eebac4f5d516311160df81f0a06d6ea22ec898dd0b94" + let hmac = "94ef4fd43f3611069e32d96512b0db3a20aa8be73a435dd2c7458b073e254452" let header = "{\"msg_id\":\"3a21737c-0287-30f3-bfa9-12e193dfd00a\",\ \"msg_type\":\"kernel_info_reply\",\ \"session\":\"A32B9A2038D043F2A0718550AAAFC9DA\",\ @@ -77,7 +77,7 @@ struct \"implemenation\":\"ocaml-jupyter\",\ \"implementation_version\":\"5.0.0\",\ \"banner\":null,\ - \"help_links\":{},\ + \"help_links\":[],\ \"language_info\":{\ \"name\":\"OCaml\",\ \"version\":\"4.04.1\",\ @@ -114,7 +114,7 @@ struct implemenation = "ocaml-jupyter"; implementation_version = "5.0.0"; banner = None; - help_links = `Assoc []; + help_links = []; language = "OCaml"; language_info = {