Module Values_0.ValidationEnumSource

Defines enumeration validation for attribute values. Allows specifying a list of permitted values and whether custom values beyond the enumerated list are allowed.

Sourcetype nonrec t = {
  1. strict : Boolean.t option;
    (*

    Boolean that defaults to false. When true, only values specified in the enum list are allowed. When false, custom values beyond the enumerated list are permitted.

    *)
  2. values : ValidationEnumValues.t option;
    (*

    A list of predefined values that are allowed for this attribute. These values are always permitted regardless of the Strict setting.

    *)
}
Sourceval make : ?strict:??? -> ?values:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of Boolean.t | `List of [> `String of String_.t ] list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t