Description
The ektepakt api at brreg was supposed to return the person we search for as the first role. This is no longer reliable and it should obviously not be trusted to remain accurate, so we need to add both spouses to the response model so our consumers can use name to select the other spouse correctly.
Steps To Reproduce
Get ektepaktv2 with ssn, return model returns the name of the person whose ssn was used
Return all roles
If only one role -> check påtegning for "Ektefelle:" and return the name as a role
Add "fullName" to roles to avoid guessing
Description
The ektepakt api at brreg was supposed to return the person we search for as the first role. This is no longer reliable and it should obviously not be trusted to remain accurate, so we need to add both spouses to the response model so our consumers can use name to select the other spouse correctly.
Steps To Reproduce
Get ektepaktv2 with ssn, return model returns the name of the person whose ssn was used
Return all roles
If only one role -> check påtegning for "Ektefelle:" and return the name as a role
Add "fullName" to roles to avoid guessing