package atdgen

  1. Overview
  2. Docs
type path_elem = [
  1. | `Field of string
  2. | `Index of int
]
type path = path_elem list

Path within a value, used to report validation errors.

val string_of_path : path -> string

Reverse and concatenate a path into a string such as ".settings.ports[0]"

type error = {
  1. error_path : path;
  2. error_msg : string option;
}
val error : ?msg:string -> path -> error
val string_of_error : error -> string
OCaml

Innovation. Community. Security.