1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-22 22:15:17 -04:00

Migrate to FluentValidation 9

(cherry picked from commit 40e54685b9e83ed24a3979bfe965c453339ad02e)
This commit is contained in:
Stepan Goremykin
2023-04-01 15:03:53 +02:00
committed by Bogdan
parent 89fd3e4671
commit d2787d8181
39 changed files with 93 additions and 181 deletions
@@ -51,7 +51,7 @@ namespace Radarr.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)