mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
17 lines
441 B
C#
17 lines
441 B
C#
using FluentValidation;
|
|
|
|
namespace ModernKeePass.Application.Entry.Commands.UpsertField
|
|
{
|
|
public class UpsertFieldCommandValidator: AbstractValidator<UpsertFieldCommand>
|
|
{
|
|
public UpsertFieldCommandValidator()
|
|
{
|
|
RuleFor(v => v.EntryId)
|
|
.NotNull()
|
|
.NotEmpty();
|
|
RuleFor(v => v.FieldName)
|
|
.NotNull()
|
|
.NotEmpty();
|
|
}
|
|
}
|
|
} |