Skip to content

Commit fa4c49a

Browse files
committed
fix: validate email requirement
1 parent f24a9cd commit fa4c49a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

VirtualFinland.UserAPI/src/VirtualFinland.UsersAPI/Activities/Productizer/Operations/BasicInformation/UpdatePersonBasicInformation.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public class CommandValidator : AbstractValidator<Command>
3535
public CommandValidator(ICountriesRepository countriesRepository)
3636
{
3737
RuleFor(command => command.User.PersonId).NotNull().NotEmpty();
38+
RuleFor(command => command.Email).NotNull().NotEmpty();
3839

3940
var knownCountries = countriesRepository.GetAllCountries().Result;
4041
var knownCountryCodes = knownCountries.Select(x => x.IsoCodeThreeLetter).ToList();

0 commit comments

Comments
 (0)