Fixed: Validation for nested settings not running

Prevents #1243
This commit is contained in:
Qstick
2022-12-18 23:20:46 -06:00
parent dfe132cda2
commit 57dcd861a9
8 changed files with 19 additions and 14 deletions
@@ -6,6 +6,11 @@ namespace NzbDrone.Core.Indexers.Settings
{
public class NoAuthSettingsValidator : AbstractValidator<NoAuthTorrentBaseSettings>
{
public NoAuthSettingsValidator()
{
RuleFor(x => x.BaseSettings).SetValidator(new IndexerCommonSettingsValidator());
RuleFor(x => x.TorrentBaseSettings).SetValidator(new IndexerTorrentSettingsValidator());
}
}
public class NoAuthTorrentBaseSettings : ITorrentIndexerSettings