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 basic information about a faculty.
@ -8,11 +10,13 @@ public class FacultyResponse
/// <summary>
/// Gets or sets the unique identifier of the faculty.
/// </summary>
[Required]
public int Id { get; set; }
/// <summary>
/// Gets or sets the name of the faculty.
/// </summary>
[Required]
public required string Name { get; set; }
/// <summary>