mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-25 01:02:05 +00:00
Added Path validator for SeriesModule
This commit is contained in:
parent
347bcb0cf4
commit
da9838f032
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue