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
This commit is contained in:
parent
b22f571a92
commit
c48a1bef3c
1 changed files with 2 additions and 3 deletions
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
module String_map = struct
|
module String_map = struct
|
||||||
include Map.Make(String)
|
include Map.Make(String)
|
||||||
|
|
||||||
|
@ -16,8 +15,8 @@ let diff_map_to_json (left, right, different_versions) =
|
||||||
`List (List.map (fun (name, version1, version2) ->
|
`List (List.map (fun (name, version1, version2) ->
|
||||||
`Assoc [
|
`Assoc [
|
||||||
("name", `String name);
|
("name", `String name);
|
||||||
("version_in_left", `String version1);
|
("version_left", `String version1);
|
||||||
("version_in_right", `String version2)
|
("version_right", `String version2)
|
||||||
]
|
]
|
||||||
) lst)
|
) lst)
|
||||||
in
|
in
|
||||||
|
|
Loading…
Reference in a new issue