diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-05-17 13:40:48 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-05-17 13:40:48 -0500 |
| commit | 946333991d4f06aa139e9659952b2ce2ca9e988d (patch) | |
| tree | 9f77ce336372a3e96bad8a1b7cbb6604b088a992 /src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs | |
| parent | 5d16f6f9cccf72c29b8bbf206c851005e3375d79 (diff) | |
| download | slskd-946333991d4f06aa139e9659952b2ce2ca9e988d.tar.gz | |
mess with tests and validation
Diffstat (limited to 'src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs')
| -rw-r--r-- | src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs b/src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs index 53f5290f..c1b7d725 100644 --- a/src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs +++ b/src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs @@ -61,8 +61,7 @@ public record QueueDownloadBatchRequest /// The username of the user from which to download. /// </summary> [Required] - [NotNullOrWhiteSpace] - [StringLength(maximumLength: 500)] + [String(AllowNull = false, AllowEmpty = false, AllowWhiteSpace = false, MinimumLength = 1, MaximumLength = 500)] public string Username { get; init; } /// <summary> |
