data-standard
data-standard copied to clipboard
Pep Status Details - Validation issue
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