From aee67635e0c1048b890bc98812678086407d3b92 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 16 May 2026 18:54:15 -0500 Subject: readonly fils, validatie destination --- src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs') diff --git a/src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs b/src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs index 77f7e7a9..53f5290f 100644 --- a/src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs +++ b/src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs @@ -70,7 +70,7 @@ public record QueueDownloadBatchRequest /// [Required] [MinLength(1)] - public List Files { get; init; } = []; + public IReadOnlyCollection Files { get; init; } = []; /// /// Options for the Batch. @@ -109,6 +109,6 @@ public record EnqueueDownloadBatchOptions /// [RelativePath] [NonTraversingPath] - [MinLength(1)] + [String(AllowNull = true, AllowEmpty = false, AllowWhiteSpace = false, MinimumLength = 1)] public string Destination { get; init; } } \ No newline at end of file -- cgit v1.2.3