using System.ComponentModel.DataAnnotations; using Timeline.Controllers; using Timeline.Models.Validation; namespace Timeline.Models.Http { /// /// Request model for . /// public class HttpUserPostRequest { /// /// Username of the new user. /// [Required, Username] public string Username { get; set; } = default!; /// /// Password of the new user. /// [Required, MinLength(1)] public string Password { get; set; } = default!; [Nickname] public string? Nickname { get; set; } } }