Closed kd-ods closed 1 month ago
Valid data 1 (generic valid test file)
[
{
"statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7",
"declarationSubject": "c359f58d2977",
"statementDate": "2020-03-04",
"recordId": "c359f58d2977",
"recordType": "entity",
"recordDetails": {
"isComponent": false,
"entityType": {
"type": "registeredEntity"
}
}
},
{
"statementId": "019a93f1-e470-42e9-957b-03559861b2e2",
"declarationSubject": "c359f58d2977",
"statementDate": "2020-03-04",
"recordId": "10478c6cf6de",
"recordType": "person",
"recordDetails": {
"isComponent": false,
"personType": "knownPerson"
}
},
{
"statementId": "fbfd0547-d0c6-4a00-b559-5c5e91c34f5c",
"declarationSubject": "c359f58d2977",
"statementDate": "2020-03-04",
"recordId": "93b53022ae6a",
"recordType": "relationship",
"recordDetails": {
"isComponent": false,
"subject": "c359f58d2977",
"interestedParty": "10478c6cf6de"
}
}
]
invalid data 1 - recordId not in any statements
[
{
"statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7",
"declarationSubject": "d123jtcd2977",
"statementDate": "2020-03-04",
"recordId": "c359f58d2977",
"recordType": "entity",
"recordDetails": {
"isComponent": false,
"entityType": {
"type": "registeredEntity"
}
}
},
{
"statementId": "019a93f1-e470-42e9-957b-03559861b2e2",
"declarationSubject": "c359f58d2977",
"statementDate": "2020-03-04",
"recordId": "10478c6cf6de",
"recordType": "person",
"recordDetails": {
"isComponent": false,
"personType": "knownPerson"
}
},
{
"statementId": "fbfd0547-d0c6-4a00-b559-5c5e91c34f5c",
"declarationSubject": "c359f58d2977",
"statementDate": "2020-03-04",
"recordId": "93b53022ae6a",
"recordType": "relationship",
"recordDetails": {
"isComponent": false,
"subject": "c359f58d2977",
"interestedParty": "10478c6cf6de"
}
}
]
Invalid data 2 - declaration subject is a relationship
[
{
"statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7",
"declarationSubject": "c359f58d2977",
"statementDate": "2020-03-04",
"recordId": "c359f58d2977",
"recordType": "entity",
"recordDetails": {
"isComponent": false,
"entityType": {
"type": "registeredEntity"
}
}
},
{
"statementId": "019a93f1-e470-42e9-957b-03559861b2e2",
"declarationSubject": "93b53022ae6a",
"statementDate": "2020-03-04",
"recordId": "10478c6cf6de",
"recordType": "person",
"recordDetails": {
"isComponent": false,
"personType": "knownPerson"
}
},
{
"statementId": "fbfd0547-d0c6-4a00-b559-5c5e91c34f5c",
"declarationSubject": "c359f58d2977",
"statementDate": "2020-03-04",
"recordId": "93b53022ae6a",
"recordType": "relationship",
"recordDetails": {
"isComponent": false,
"subject": "c359f58d2977",
"interestedParty": "10478c6cf6de"
}
}
]
Specification for Check(s):
Check 1: That each statement's declarationSubject value appears as a recordId value within at least one Statement (including itself) in the dataset.
On fail:
On pass:
Check 2: That statements whose recordId value is a declarationSubject value (in any statement within the dataset) have a recordType of 'entity' or 'person'.
On fail: