Skip to content

Ektepaktv2 returning wrong spouse #42

@erlendoksvoll

Description

@erlendoksvoll

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

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

Status
✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions