Module Values.X12ValidationRuleSource

Represents a single validation rule that can be applied during X12 EDI processing. This is a union type that can contain one of several specific validation rule types: code list validation rules for modifying allowed element codes, element length validation rules for enforcing custom length constraints, or element requirement validation rules for changing mandatory/optional status. Each validation rule targets specific aspects of EDI document validation to ensure compliance with trading partner requirements and business rules.

Sourcetype nonrec t = {
  1. codeListValidationRule : X12CodeListValidationRule.t option;
    (*

    Specifies a code list validation rule that modifies the allowed code values for a specific X12 element. This rule enables you to customize which codes are considered valid for an element, allowing for trading partner-specific code requirements.

    *)
  2. elementLengthValidationRule : X12ElementLengthValidationRule.t option;
    (*

    Specifies an element length validation rule that defines custom length constraints for a specific X12 element. This rule allows you to enforce minimum and maximum length requirements that may differ from the standard X12 specification.

    *)
  3. elementRequirementValidationRule : X12ElementRequirementValidationRule.t option;
    (*

    Specifies an element requirement validation rule that modifies whether a specific X12 element is required or optional within a segment. This rule provides flexibility to accommodate different trading partner requirements for element presence.

    *)
}
Sourceval make : ?codeListValidationRule:??? -> ?elementLengthValidationRule:??? -> ?elementRequirementValidationRule:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `Enum of string | `Integer of X12ElementLengthValidationRuleMaxLengthInteger.t | `List of [> `String of String_.t ] list | `String of ElementId.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