package atdgen-runtime

  1. Overview
  2. Docs

Module Util.ValidationSource

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

Path within a value, used to report validation errors.

Sourceval string_of_path : path -> string

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

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

Innovation. Community. Security.