Titles were capped at 50 characters and the YouTube provisioner silently cut them there, which mangles anything with a feature or a remix suffix. Albums are about to make that far more visible, so the column now holds 200.
21 lines
473 B
C#
21 lines
473 B
C#
using FluentValidation;
|
|
using Musify.Api.DataTransferObjects.Tracks;
|
|
|
|
namespace Musify.Api.Validators.Tracks;
|
|
|
|
public sealed class CreateTrackRequestValidator : AbstractValidator<CreateTrackRequest>
|
|
{
|
|
public CreateTrackRequestValidator()
|
|
{
|
|
RuleFor(x => x.Title)
|
|
.NotEmpty()
|
|
.MaximumLength(200);
|
|
|
|
RuleFor(x => x.PictureIntentId)
|
|
.NotEmpty();
|
|
|
|
RuleFor(x => x.AudioIntentId)
|
|
.NotEmpty();
|
|
}
|
|
}
|