Skip to content

Commit

Permalink
fix: Do not allow empty content (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
oskogstad authored Feb 13, 2024
1 parent f264aec commit a083544
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ internal sealed class CreateDialogContentDtoValidator : AbstractValidator<Create
{
public CreateDialogContentDtoValidator()
{
ClassLevelCascadeMode = CascadeMode.Stop;
RuleFor(x => x.Type)
.IsInEnum();
RuleForEach(x => x.Value)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ internal sealed class UpdateDialogContentDtoValidator : AbstractValidator<Update
{
public UpdateDialogContentDtoValidator()
{
ClassLevelCascadeMode = CascadeMode.Stop;
RuleFor(x => x.Type)
.IsInEnum();
RuleForEach(x => x.Value)
Expand Down

0 comments on commit a083544

Please sign in to comment.