aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs
diff options
context:
space:
mode:
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