diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-05-16 18:54:15 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-05-16 18:54:15 -0500 |
| commit | aee67635e0c1048b890bc98812678086407d3b92 (patch) | |
| tree | cd0f5505b71e87a954ece167de5ae09844bc0ea5 /src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs | |
| parent | 21167d26a62add9ba54c50faa9b93970a478d27b (diff) | |
| download | slskd-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.cs | 4 |
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 |
