refactor: add an understanding of nullable for swagger gen
This commit is contained in:
@ -1,4 +1,6 @@
|
||||
namespace Mirea.Api.Dto.Responses;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Mirea.Api.Dto.Responses;
|
||||
|
||||
/// <summary>
|
||||
/// Represents basic information about a campus.
|
||||
@ -8,11 +10,13 @@ public class CampusBasicInfoResponse
|
||||
/// <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>
|
||||
|
Reference in New Issue
Block a user