Closed ScatteredInk closed 5 years ago
Here's the spec. We need to validate that:
If Address.type is 'placeOfBirth', 'residence', or 'service', then the parent statement is a Person Statement.
if Address.type is 'registered', or 'business' then the parent statement is an Entity Statement.
if Address.type is 'alternative' then the parent Statement contains at least one other Address object with type not 'alternative'.
It looks like this should only be checked on 0.2 data?
Yes, this only needs to be checked for 0.2.
Having read the draft spec carefully, I think I'm safe in rewriting the first two points to:
A person statement should only have addresses of type 'placeOfBirth', 'residence', or 'service', or 'alternative'
A Entity statement should only have addresses of type 'registered', or 'business' or 'alternative'
Third point as above
Ok?
Looks good. I'll leave you to close it @odscjames
This has now been merged to master in cove and is just waiting for a deploy.
To spec properly later but: