diff --git a/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Create/CreateDialogCommandValidator.cs b/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Create/CreateDialogCommandValidator.cs index c7b0c55d0..e35be4053 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Create/CreateDialogCommandValidator.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Create/CreateDialogCommandValidator.cs @@ -434,11 +434,11 @@ public CreateDialogDialogActivityDtoValidator( .When(x => x.Type != DialogActivityType.Values.Information); RuleFor(x => x.TransmissionId) .Null() - .WithMessage($"Only {nameof(DialogActivityType.Values.TransmissionOpened)} activity can reference a transmission.") + .WithMessage($"Only activities of type {nameof(DialogActivityType.Values.TransmissionOpened)} can reference a transmission.") .When(x => x.Type != DialogActivityType.Values.TransmissionOpened); RuleFor(x => x.TransmissionId) .NotEmpty() - .WithMessage($"A {nameof(DialogActivityType.Values.TransmissionOpened)} needs to reference a transmission.") + .WithMessage($"An activity of type {nameof(DialogActivityType.Values.TransmissionOpened)} needs to reference a transmission.") .When(x => x.Type == DialogActivityType.Values.TransmissionOpened); } } diff --git a/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Update/UpdateDialogCommandValidator.cs b/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Update/UpdateDialogCommandValidator.cs index c853763de..f7ea74dff 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Update/UpdateDialogCommandValidator.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Update/UpdateDialogCommandValidator.cs @@ -400,11 +400,11 @@ public UpdateDialogDialogActivityDtoValidator( .When(x => x.Type != DialogActivityType.Values.Information); RuleFor(x => x.TransmissionId) .Null() - .WithMessage($"Only {nameof(DialogActivityType.Values.TransmissionOpened)} activity can reference a transmission.") + .WithMessage($"Only activities of type {nameof(DialogActivityType.Values.TransmissionOpened)} can reference a transmission.") .When(x => x.Type != DialogActivityType.Values.TransmissionOpened); RuleFor(x => x.TransmissionId) .NotEmpty() - .WithMessage($"A {nameof(DialogActivityType.Values.TransmissionOpened)} needs to reference a transmission.") + .WithMessage($"An activity of type {nameof(DialogActivityType.Values.TransmissionOpened)} needs to reference a transmission.") .When(x => x.Type == DialogActivityType.Values.TransmissionOpened); } }