From c48a1bef3c68e9f736efe6b025ffcfac23da46ac Mon Sep 17 00:00:00 2001 From: PixieDust Date: Sun, 29 Dec 2024 07:38:51 +0000 Subject: [PATCH] Make json structure uniform In `opamndiff` we have a similar structure but simply `version_left` and `version_right`. https://git.robur.coop/robur/builder-web/src/branch/main/opamdiff/opamdiff.ml#L284-L286 --- lib/utils.ml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/utils.ml b/lib/utils.ml index 76f7031..190ef75 100644 --- a/lib/utils.ml +++ b/lib/utils.ml @@ -1,4 +1,3 @@ - module String_map = struct include Map.Make(String) @@ -16,8 +15,8 @@ let diff_map_to_json (left, right, different_versions) = `List (List.map (fun (name, version1, version2) -> `Assoc [ ("name", `String name); - ("version_in_left", `String version1); - ("version_in_right", `String version2) + ("version_left", `String version1); + ("version_right", `String version2) ] ) lst) in