1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 10:32:35 +01:00

Added Path validator for SeriesModule

This commit is contained in:
Mark McDowall 2013-05-23 22:49:41 -07:00
parent 347bcb0cf4
commit da9838f032

View File

@ -29,6 +29,7 @@ public SeriesModule(ISeriesService seriesService, ISeriesStatisticsService serie
Get["/{slug}"] = o => GetSeries((string)o.slug.ToString());
SharedValidator.RuleFor(s => s.Path).NotEmpty();
SharedValidator.RuleFor(s => s.QualityProfileId).ValidId();
PostValidator.RuleFor(s => s.Title).NotEmpty();