chore: import Musify.WebApi into monorepo (preserving history)
git-subtree-dir: Musify.WebApi git-subtree-mainline:9d433868ccgit-subtree-split:ca8750c3b4
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
using FluentValidation;
|
||||
using WebApi.DataTransferObjects.PlayLists;
|
||||
|
||||
namespace WebApi.Validators.PlayLists;
|
||||
|
||||
public sealed class RequestPlayListPictureUploadRequestValidator : AbstractValidator<RequestPlayListPictureUploadRequest>
|
||||
{
|
||||
public RequestPlayListPictureUploadRequestValidator()
|
||||
{
|
||||
RuleFor(x => x.FileType)
|
||||
.NotEmpty();
|
||||
|
||||
RuleFor(x => x.ContentType)
|
||||
.NotEmpty();
|
||||
|
||||
RuleFor(x => x.ExpectedSizeBytes)
|
||||
.GreaterThan(0)
|
||||
.When(x => x.ExpectedSizeBytes.HasValue);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user