aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-05-16 18:54:15 -0500
committerJP Dillingham <jp@dillingham.me>2026-05-16 18:54:15 -0500
commitaee67635e0c1048b890bc98812678086407d3b92 (patch)
treecd0f5505b71e87a954ece167de5ae09844bc0ea5 /src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs
parent21167d26a62add9ba54c50faa9b93970a478d27b (diff)
downloadslskd-aee67635e0c1048b890bc98812678086407d3b92.tar.gz
readonly fils, validatie destination
Diffstat (limited to 'src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs')
-rw-r--r--src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs4
1 files changed, 2 insertions, 2 deletions
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
/// </summary>
[Required]
[MinLength(1)]
- public List<EnqueueDownloadBatchItem> Files { get; init; } = [];
+ public IReadOnlyCollection<EnqueueDownloadBatchItem> Files { get; init; } = [];
/// <summary>
/// Options for the Batch.
@@ -109,6 +109,6 @@ public record EnqueueDownloadBatchOptions
/// </summary>
[RelativePath]
[NonTraversingPath]
- [MinLength(1)]
+ [String(AllowNull = true, AllowEmpty = false, AllowWhiteSpace = false, MinimumLength = 1)]
public string Destination { get; init; }
} \ No newline at end of file