Module Values.X12ElementLengthValidationRuleSource

Defines a validation rule that specifies custom length constraints for a specific X12 element. This rule allows you to override the standard minimum and maximum length requirements for an element, enabling validation of trading partner-specific length requirements that may differ from the X12 specification. Both minimum and maximum length values must be specified and must be between 1 and 200 characters.

Sourcetype nonrec t = {
  1. elementId : ElementId.t;
    (*

    Specifies the four-digit element ID to which the length constraints will be applied. This identifies which X12 element will have its length requirements modified.

    *)
  2. maxLength : X12ElementLengthValidationRuleMaxLengthInteger.t;
    (*

    Specifies the maximum allowed length for the identified element. This value must be between 1 and 200 characters and defines the upper limit for the element's content length.

    *)
  3. minLength : X12ElementLengthValidationRuleMinLengthInteger.t;
    (*

    Specifies the minimum required length for the identified element. This value must be between 1 and 200 characters and defines the lower limit for the element's content length.

    *)
}
Sourceval context_ : string
Sourceval to_value : t -> [> `Structure of (string * [> `Integer of X12ElementLengthValidationRuleMaxLengthInteger.t | `String of ElementId.t ]) 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