mark required fields

This commit is contained in:
2023-10-23 21:34:00 +02:00
parent 1aa4f0b5f6
commit 64a065058a
9 changed files with 22 additions and 38 deletions

View File

@@ -2,10 +2,10 @@ namespace GerbilManagerWebAPI.Dtos
{
public record CreateGerbilDto
{
public string Name { get; init; }
public GenderDto Gender { get; init; }
public Guid Litter { get; init; }
public Guid Breeder { get; init; }
public required string Name { get; init; }
public required GenderDto Gender { get; init; }
public Guid? Litter { get; init; }
public Guid? Breeder { get; init; }
}
}