From 0e7c85bd1129c698aa65f25ebbbf52b1268b62c8 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Mon, 28 Sep 2015 21:49:05 +0600 Subject: Remove the value field from message types to account for valueless nodes and the like. --- src/message.ml | 3 ++- src/message.mli | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/message.ml b/src/message.ml index 8f37c08..ec28922 100644 --- a/src/message.ml +++ b/src/message.ml @@ -1,7 +1,8 @@ +exception Invalid_operation of string + type operation = { method_name: string; path: string list option; - value: string option; options: (string * string) list option } [@@deriving yojson] diff --git a/src/message.mli b/src/message.mli index 6de77b7..af92d67 100644 --- a/src/message.mli +++ b/src/message.mli @@ -1,7 +1,6 @@ type operation = { method_name: string; path: string list option; - value: string option; options: (string * string) list option } -- cgit v1.2.3