Skip to content

Commit a083544

Browse files
authored
fix: Do not allow empty content (#436)
1 parent f264aec commit a083544

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Create/CreateDialogCommandValidator.cs

+1
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ internal sealed class CreateDialogContentDtoValidator : AbstractValidator<Create
124124
{
125125
public CreateDialogContentDtoValidator()
126126
{
127+
ClassLevelCascadeMode = CascadeMode.Stop;
127128
RuleFor(x => x.Type)
128129
.IsInEnum();
129130
RuleForEach(x => x.Value)

src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Update/UpdateDialogCommandValidator.cs

+1
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ internal sealed class UpdateDialogContentDtoValidator : AbstractValidator<Update
120120
{
121121
public UpdateDialogContentDtoValidator()
122122
{
123+
ClassLevelCascadeMode = CascadeMode.Stop;
123124
RuleFor(x => x.Type)
124125
.IsInEnum();
125126
RuleForEach(x => x.Value)

0 commit comments

Comments
 (0)