Validation Configuration File scenarios
For example, camt.a01.001.04_cfg.json file in universal_confirmation/api/data/config has below configuration for field update_payment_scenario:
"update_payment_scenario": {
"validate": true,
"min": 1,
"max": 1,
"type": "PaymentScenario1Code",
"codelist": [
"COVE",
"CCTR"
]
}
“validate”:- If the Validate property is set to true, the field will be validated for configurations provided.
- If the Validate property is set to false, the field will not be validated for configurations provided.
"max": 1: Indicates only 1 maximum allowed occurrence for the field.
“codelist”: Indicates the codewords “COVE” and
“CCTR” being valid codewords for the field.
Constraints: Indicates the validation rules to be enforced.