Validation Configuration Files

The validation configuration files contain several configurable parameters to control the behavior of the Universal Confirmation validation example.

These files are shipped with api and csv validation examples. These files are in config folder and identified by the trailing codeword _cfg in the filename.

The configuration file contains the configurable parameters for each field to control the behavior of the Universal Confirmation validation. These parameters specify certain validation options.

When you run the api or csv validation maps, the configuration files must be present. See "Configuration file location" topic for more details.

If the configuration and translation files are not found, the map execution terminates.

debug=true|false

Controls the content of validation results.
  • true: This is a default value and the recommended setting. Validation results contain all field name, value, offset, data type, and error description (if there is any validation failures).
  • false: When you set the value to false, it shows only the field that has an error with the field name, value, offset, data type, and error description.

validate=true|false

This flag appears for each field or group and controls the validation of respective field or group.
  • true: This is a default value. It requires the field or group validation.
  • false: When you set the value to false, it does not require the field or group validation.

min=0|1

Identifies the field or group being optional or mandatory.
  • 0: Indicates that the field or group is optional.
  • 1: Indicates that the field or group is mandatory.

Max=n

Identifies the number of occurrences of respected the field or group.
  • n: Indicates the maximum number of times field or group can be repeated.
  • *: Indicates that the field or group can be repeated infinite time.

type

Identifies the type of field or group.

constraints

Identifies the validation to be applied on the respected field or group.

codelist

Contains the list of valid codewords for the respected field or group.