Skip to content

Commit

Permalink
fix: Add PartyIdentifier.Separator to party validation error (#595)
Browse files Browse the repository at this point in the history
Was lost in refactoring
  • Loading branch information
oskogstad authored Apr 5, 2024
1 parent 71b77d2 commit 14ee4a1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static IRuleBuilderOptions<T, string> IsValidPartyIdentifier<T>(this IRul
&& id is NorwegianPersonIdentifier or NorwegianOrganizationIdentifier
))
.WithMessage(
$"'{{PropertyName}}' must be on format '{NorwegianOrganizationIdentifier.Prefix}{{norwegian org-nr}}' or " +
$"'{NorwegianPersonIdentifier.Prefix}{{{{norwegian f-nr/d-nr}}}}' with valid numbers respectively.");
$"'{{PropertyName}}' must be on format '{NorwegianOrganizationIdentifier.Prefix}{PartyIdentifier.Separator}{{norwegian org-nr}}' or " +
$"'{NorwegianPersonIdentifier.Prefix}{PartyIdentifier.Separator}{{{{norwegian f-nr/d-nr}}}}' with valid numbers respectively.");
}
}

0 comments on commit 14ee4a1

Please sign in to comment.