add json.ml; add test.ml; timestamp jsont
This commit is contained in:
parent
04bb29b30c
commit
724a3d2b68
8 changed files with 89 additions and 22 deletions
|
|
@ -14,9 +14,10 @@
|
|||
along with this program. If not, see <https://www.gnu.org/licenses/>. *)
|
||||
|
||||
let error_detail ?hint _status =
|
||||
let open Types.ErrorDetail in
|
||||
let open Types.Error_detail in
|
||||
let open Json in
|
||||
let code = -1 in
|
||||
let s = to_string (make code hint) in
|
||||
let s = encode_exn Error_detail.jsont { code; hint } in
|
||||
s
|
||||
|
||||
module Respond_with = struct
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue