New: Set Instance Name

This commit is contained in:
Robin Dadswell
2022-05-12 17:10:10 +01:00
committed by Qstick
parent 5a7b4d41d8
commit 21538b972d
6 changed files with 36 additions and 2 deletions
@@ -40,6 +40,7 @@ namespace Readarr.Api.V1.Config
SharedValidator.RuleFor(c => c.Port).ValidPort();
SharedValidator.RuleFor(c => c.UrlBase).ValidUrlBase();
SharedValidator.RuleFor(c => c.InstanceName).ContainsReadarr().When(c => c.InstanceName.IsNotNullOrWhiteSpace());
SharedValidator.RuleFor(c => c.Username).NotEmpty().When(c => c.AuthenticationMethod != AuthenticationType.None);
SharedValidator.RuleFor(c => c.Password).NotEmpty().When(c => c.AuthenticationMethod != AuthenticationType.None);