Values.X12ElementLengthValidationRuleSourceDefines 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.
type nonrec t = {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.
*)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.
*)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.
*)}val make :
elementId:ElementId.t ->
maxLength:X12ElementLengthValidationRuleMaxLengthInteger.t ->
minLength:X12ElementLengthValidationRuleMinLengthInteger.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Integer of X12ElementLengthValidationRuleMaxLengthInteger.t
| `String of ElementId.t ])
list ]