Files
Tranga/API/Controllers/Requests/CreateLibraryRecord.cs
glax 55fb37d62b Fix #441
Fixes all request Records with Validations
2025-09-17 23:59:26 +02:00

21 lines
544 B
C#

using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace API.Controllers.Requests;
public sealed record CreateLibraryRecord
{
/// <summary>
/// The directory Path of the library
/// </summary>
[Required]
[Description("The directory Path of the library")]
public required string BasePath { get; init; }
/// <summary>
/// The Name of the library
/// </summary>
[Required]
[Description("The Name of the library")]
public required string LibraryName { get; init; }
}