-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional check: alternative address is an alternative to another address #123
Comments
Original spec "If an address in the addresses array is of type "alternative" then there is also another address in the array" 2 possible edge cases here.
@kd-ods thoughts? |
Valid
Invalid 1
Invalid 2
Edge case 1 - alternative address & address with no type
Edge case 2 - 2 alternative addresses
|
Good point. tbh, it's made me think that 'alternative' is just an unhelpful code. We should probably turn it into 'other', make the field required and reduce constraints. I can't see that loosening constraints would open up any particular loophole wrt BO verification. (For example, I don't imagine that red-flagging would depend on categorisation of addresses: if a BODS statement from one source categorised an entity's address as 'business' but the same entity's address in another source was categorised as 'other' that would not be of great interest. The address itself is the target of interest.) Depending on what you think about the above, Kathryn, we may want to NOT work on this check during this round of work, pending a review of address type codes in the data standard. |
Yes I think this is sensible. I'm happy to leave this check out for now. Do we already have an appropriate ticket to document this suggestion against? |
I have added a new ticket here openownership/data-standard#725 |
Check:
If an address in the addresses array is of type "alternative" then there is also another address in the array with a different type
On fail:
Error message: An alternative address has been provided with no primary address.
Info message: Address: [
address
VALUE]The text was updated successfully, but these errors were encountered: