package ez_api

  1. Overview
  2. Docs

Module EzAPI.ArgSource

Sourcemodule Ty : sig ... end
Sourcetype descr = {
  1. name : string;
  2. descr : string option;
  3. example : string option;
  4. schema : Json_schema.schema option;
}
Sourcetype 'a t = {
  1. id : 'a Ty.id;
  2. destruct : string -> ('a, string) result;
  3. construct : 'a -> string;
  4. description : descr;
}
Sourceval make : ?example:??? -> ?descr:??? -> ?schema:??? -> name:string -> destruct:(string -> ('a, string) result) -> construct:('a -> string) -> unit -> 'a t
Sourceval descr : 'a t -> descr
Sourceval int : ?descr:??? -> ?example:??? -> ?schema:??? -> string -> int t
Sourceval float : ?descr:??? -> ?example:??? -> ?schema:??? -> string -> float t
Sourceval int32 : ?descr:??? -> ?example:??? -> ?schema:??? -> string -> int32 t
Sourceval int64 : ?descr:??? -> ?example:??? -> ?schema:??? -> string -> int64 t
Sourceval string : ?descr:??? -> ?example:??? -> ?schema:??? -> string -> string t