1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-26 22:56:23 -04:00

Migrate to FluentValidation 9

This commit is contained in:
Stepan Goremykin
2023-04-01 15:03:53 +02:00
committed by Mark McDowall
parent dec6e14036
commit 40e54685b9
40 changed files with 114 additions and 221 deletions
@@ -51,7 +51,7 @@ namespace Sonarr.Api.V3.Config
SharedValidator.RuleFor(c => c.SslPort).NotEqual(c => c.Port).When(c => c.EnableSsl);
SharedValidator.RuleFor(c => c.SslCertPath)
.Cascade(CascadeMode.StopOnFirstFailure)
.Cascade(CascadeMode.Stop)
.NotEmpty()
.IsValidPath()
.SetValidator(fileExistsValidator)