package validate

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val min_length_error_code : string
val max_length_error_code : string
val length_equals_error_code : string
val value_equal_to_error_code : string
val value_not_equal_to_error_code : string
val value_greater_than_error_code : string
val value_greater_than_or_equal_error_code : string
val value_less_than_error_code : string
val value_less_than_or_equal_error_code : string
val value_between_error_code : string
val invalid_pattern_error_code : string
val invalid_uuid_error_code : string
val invalid_numeric_error_code : string
val invalid_alpha_error_code : string
val invalid_alphanumeric_error_code : string
val invalid_lowercase_error_code : string
val invalid_uppercase_error_code : string
val invalid_lowercase_alphanumeric_error_code : string
val invalid_uppercase_alphanumeric_error_code : string
val invalid_email_error_code : string
val invalid_url_error_code : string
type base_validation_error = {
  1. code : string;
  2. params : (string * string) list;
}
and field_validation_error = string * validation_error list
and index_validation_error = int * validation_error list
and validation_error =
  1. | BaseError of base_validation_error
  2. | RecordError of field_validation_error list
  3. | IterableError of index_validation_error list
val pp_base_validation_error : Ppx_deriving_runtime.Format.formatter -> base_validation_error -> Ppx_deriving_runtime.unit
val show_base_validation_error : base_validation_error -> Ppx_deriving_runtime.string
val pp_field_validation_error : Ppx_deriving_runtime.Format.formatter -> field_validation_error -> Ppx_deriving_runtime.unit
val show_field_validation_error : field_validation_error -> Ppx_deriving_runtime.string
val pp_index_validation_error : Ppx_deriving_runtime.Format.formatter -> index_validation_error -> Ppx_deriving_runtime.unit
val show_index_validation_error : index_validation_error -> Ppx_deriving_runtime.string
val pp_validation_error : Ppx_deriving_runtime.Format.formatter -> validation_error -> Ppx_deriving_runtime.unit
val show_validation_error : validation_error -> Ppx_deriving_runtime.string
val validate_min_length : ('a -> int) -> int -> 'a -> (unit, Validate__.Err.validation_error) Stdlib.result
val validate_max_length : ('a -> int) -> int -> 'a -> (unit, Validate__.Err.validation_error) Stdlib.result
val validate_length_between : ('a -> int) -> min:int -> max:int -> 'a -> (unit, Validate__.Err.validation_error) Stdlib.result
val validate_length_equals : ('a -> int) -> int -> 'a -> (unit, Validate__.Err.validation_error) Stdlib.result
type 'a validator = 'a -> (unit, Validate__.Err.validation_error) Stdlib.result
and ('a, 'b) field_extractor = 'a -> 'b
and 'a field_validator = 'a -> (unit, string * Validate__.Err.validation_error list) Stdlib.result
val validate : 'a validator -> 'a -> ('a, Validate__.Err.validation_error) Stdlib.result
val field : string -> ('a, 'b) field_extractor -> 'b validator list -> 'a -> (unit, string * Validate__.Err.validation_error list) Stdlib.result
val record : 'a field_validator list -> 'a -> (unit, Validate__.Err.validation_error) Stdlib.result
val iterable_item : int -> 'a validator list -> 'a -> (unit, int * Validate__.Err.validation_error list) Stdlib.result
val list : 'a validator list -> 'a list -> (unit, Validate__.Err.validation_error) Stdlib.result
val option : 'a validator -> 'a option validator
val ignore_ok : ('a -> ('b, 'c) Stdlib.result) -> 'a -> (unit, 'c) Stdlib.result
val validate_url : string -> (unit, Validate__.Err.validation_error) Stdlib.result
val uuid_regex : Re.re
val numeric_regex : Re.re
val alpha_regex : Re.re
val alphanumeric_regex : Re.re
val lowercase_regex : Re.re
val uppercase_regex : Re.re
val lowercase_alphanumeric_regex : Re.re
val uppercase_alphanumeric_regex : Re.re
val email_regex : Re.re
val _validate_regex : string -> Re.re -> string -> (unit, Validate__.Err.validation_error) Stdlib.result
val validate_regex : Re.re -> string -> (unit, Validate__.Err.validation_error) Stdlib.result
val validate_str_regex : string -> string -> (unit, Validate__.Err.validation_error) Stdlib.result
val validate_uuid : string -> (unit, Validate__.Err.validation_error) Stdlib.result
val validate_numeric : string -> (unit, Validate__.Err.validation_error) Stdlib.result
val validate_alpha : string -> (unit, Validate__.Err.validation_error) Stdlib.result
val validate_alphanumeric : string -> (unit, Validate__.Err.validation_error) Stdlib.result
val validate_lowercase : string -> (unit, Validate__.Err.validation_error) Stdlib.result
val validate_uppercase : string -> (unit, Validate__.Err.validation_error) Stdlib.result
val validate_lowercase_alphanumeric : string -> (unit, Validate__.Err.validation_error) Stdlib.result
val validate_uppercase_alphanumeric : string -> (unit, Validate__.Err.validation_error) Stdlib.result
val validate_email : string -> (unit, Validate__.Err.validation_error) Stdlib.result
val validate_equal_to : ('a -> string) -> 'a -> 'a -> (unit, Validate__.Err.validation_error) Stdlib.result
val validate_not_equal_to : ('a -> string) -> 'a -> 'a -> (unit, Validate__.Err.validation_error) Stdlib.result
val validate_greater_than : ('a -> string) -> 'a -> 'a -> (unit, Validate__.Err.validation_error) Stdlib.result
val validate_greater_than_or_equal : ('a -> string) -> 'a -> 'a -> (unit, Validate__.Err.validation_error) Stdlib.result
val validate_less_than : ('a -> string) -> 'a -> 'a -> (unit, Validate__.Err.validation_error) Stdlib.result
val validate_less_than_or_equal : ('a -> string) -> 'a -> 'a -> (unit, Validate__.Err.validation_error) Stdlib.result
OCaml

Innovation. Community. Security.