mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-12-22 21:07:21 -05:00
16 lines
350 B
C#
16 lines
350 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace API.DTOs.Account;
|
|
#nullable enable
|
|
|
|
public sealed record RotateAuthKeyRequestDto
|
|
{
|
|
[Required]
|
|
[Range(8, 32)]
|
|
public int KeyLength { get; set; }
|
|
|
|
[Required(AllowEmptyStrings = false)]
|
|
public required string Name { get; set; }
|
|
public string? ExpiresUtc { get; set; }
|
|
}
|