- 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.
19 lines
507 B
C#
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);
|
|
}
|
|
}
|