diff --git a/src/Digdir.Domain.Dialogporten.Application/Common/Extensions/FluentValidation/FluentValidation_PartyIdentifier_Extensions.cs b/src/Digdir.Domain.Dialogporten.Application/Common/Extensions/FluentValidation/FluentValidation_PartyIdentifier_Extensions.cs index b5b2edcd4..7cbd9d3b6 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Common/Extensions/FluentValidation/FluentValidation_PartyIdentifier_Extensions.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Common/Extensions/FluentValidation/FluentValidation_PartyIdentifier_Extensions.cs @@ -15,7 +15,7 @@ public static IRuleBuilderOptions IsValidPartyIdentifier(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."); } }