Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions pipeline/cb-schema/json.ml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ type t =
| `Float of float
| `String of string
| `Assoc of (string * t) list
| `List of t list
| `Tuple of t list
| `Variant of string * t option ]
| `List of t list ]

let error key value_type value =
match value with
Expand Down
2 changes: 1 addition & 1 deletion pipeline/cb-schema/schema.ml
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ let result_of_json t lines =
let of_json t =
let lines =
match Json.get_opt "lines" t with
| `Tuple [ `Int start; `Int finish ] -> [ (start, finish) ]
| `List [ `Int start; `Int finish ] -> [ (start, finish) ]
| _ -> []
in
{
Expand Down