package ask

  1. Overview
  2. Docs
type required = bool
type label = string option
type help_text = string option
type text = string
type id = string
type regex = string
type possible_options = string list
type mime_types = string list
type max_file_size = int
type t =
  1. | Text of id * label * help_text * text * string option * regex * required
  2. | Country of id * label * help_text * text * required
  3. | Select of id * label * help_text * text * possible_options * required
  4. | YesNo of id * label * help_text * text * required
  5. | Date of id * label * help_text * text * required
  6. | File of id * label * help_text * text * mime_types * max_file_size * required
  7. | Year of id * label * help_text * text * required
val to_yojson : t -> Yojson.Safe.t
val pp : Format.formatter -> t -> unit
val equal : t -> t -> bool
val show : t -> string
val uuid : t -> string
val label : t -> string
val help_text : t -> string option
val text : t -> string
val is_file : t -> bool
val is_required : t -> bool
val set_optional : t -> t
val is_valid : t -> AnswerInput.t -> bool
val validate : t -> AnswerInput.t option -> (unit, string) Result.t
OCaml

Innovation. Community. Security.