data-standard icon indicating copy to clipboard operation
data-standard copied to clipboard

Pep Status Details - Validation issue

Open kathryn-ods opened this issue 2 years ago • 0 comments

In the schema we have missingInfoReason is required if politicalExposureStatus is unknown

missingInfoReason is currently a field in the 'PEP Status' object and details is an array of these objects.

Because the missing info field is within an array this requirement can't be validated used JSON conditionals.

We could move missingInfoReason into politicalExposure and then it would be easy to use dependentRequired to enforce this requirement https://json-schema.org/understanding-json-schema/reference/conditionals#dependentRequired

kathryn-ods avatar Apr 29 '24 11:04 kathryn-ods