add api_types.ml

This commit is contained in:
swrup 2025-10-18 17:35:15 +02:00
parent d5abae41b6
commit 4611c1e057
6 changed files with 154 additions and 172 deletions

View file

@ -14,7 +14,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. *)
let error_detail ?hint _status =
let open Types.ErrorDetail in
let open Api_types.ErrorDetail in
let open Json in
let code = -1 in
let s = encode_exn ErrorDetail.jsont { code; hint } in