Fixed: Disallow tags creation with empty label

This commit is contained in:
Bogdan
2025-04-07 15:54:06 +03:00
parent 5396dd3e8e
commit 214e4270ac

View File

@@ -1,4 +1,5 @@
using System.Collections.Generic;
using FluentValidation;
using Microsoft.AspNetCore.Mvc;
using NzbDrone.Core.Datastore.Events;
using NzbDrone.Core.Messaging.Events;
@@ -20,6 +21,8 @@ namespace Readarr.Api.V1.Tags
: base(signalRBroadcaster)
{
_tagService = tagService;
SharedValidator.RuleFor(c => c.Label).NotEmpty();
}
protected override TagResource GetResourceById(int id)