refactor: add an understanding of nullable for swagger gen

This commit is contained in:
2024-02-17 09:07:47 +03:00
parent 84872a5d6d
commit 6396d8a318
9 changed files with 47 additions and 9 deletions

View File

@ -1,4 +1,6 @@
namespace Mirea.Api.Dto.Responses;
using System.ComponentModel.DataAnnotations;
namespace Mirea.Api.Dto.Responses;
/// <summary>
/// Represents detailed information about a campus.
@ -8,11 +10,13 @@ public class CampusDetailsResponse
/// <summary>
/// Gets or sets the unique identifier of the campus.
/// </summary>
[Required]
public int Id { get; set; }
/// <summary>
/// Gets or sets the code name of the campus.
/// </summary>
[Required]
public required string CodeName { get; set; }
/// <summary>