fix yaml guid validation (#2257)

This commit is contained in:
Jason Dove
2025-08-04 22:22:37 +00:00
committed by GitHub
parent b40ac9ef52
commit 11100a788b
6 changed files with 17 additions and 8 deletions
@@ -24,6 +24,15 @@ public class ChannelEditViewModelValidator : AbstractValidator<ChannelEditViewMo
.Must(Artwork.IsExternalUrl)
.WithMessage("External logo url is invalid");
});
When(
x => x.IsEnabled == false,
() =>
{
RuleFor(x => x.ShowInEpg)
.Must(x => x == false)
.WithMessage("Disabled channels cannot be shown in EPG");
});
}
public Func<object, string, Task<IEnumerable<string>>> ValidateValue => async (model, propertyName) =>