Files
Musify/backend/Musify.Api/Validators/PlayLists/UpdatePlayListRequestValidator.cs
T
Admin f2933caa90 chore: group .NET into backend/ and drop non-.NET test artifacts
- Move all .NET (6 projects, solution, Directory.*.props, nuget.config)
  into backend/ so the monorepo root can host non-.NET projects later
- Remove throwaway test artifacts: player.html, pl.json
- Trim dead Flutter rules from .gitignore

Build from backend/Musify.slnx: 0 warnings, 0 errors.
2026-07-05 03:43:52 +02:00

19 lines
507 B
C#

using FluentValidation;
using Musify.Api.DataTransferObjects.PlayLists;
namespace Musify.Api.Validators.PlayLists;
public sealed class UpdatePlayListRequestValidator : AbstractValidator<UpdatePlayListRequest>
{
public UpdatePlayListRequestValidator()
{
RuleFor(x => x.NewName)
.MaximumLength(50)
.When(x => x.NewName is not null);
RuleFor(x => x.NewDescription)
.MaximumLength(256)
.When(x => x.NewDescription is not null);
}
}