1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-25 17:17:02 +00: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();