Make record fields required

This commit is contained in:
Zaprit 2025-05-26 23:39:36 +01:00
commit 92f9113768

View file

@ -5,15 +5,15 @@ namespace LBPUnion.ProjectLighthouse.Servers.Website.Types;
public record AutoDiscoverResponse
{
[JsonProperty("version")]
public uint Version { get; set; }
public required uint Version { get; set; }
[JsonProperty("serverBrand")]
public string ServerBrand { get; set; }
public required string ServerBrand { get; set; }
[JsonProperty("serverDescription")]
public string ServerDescription { get; set; }
public required string ServerDescription { get; set; }
[JsonProperty("url")]
public string Url { get; set; }
public required string Url { get; set; }
[JsonProperty("bannerImageUrl")]
public string? BannerImageUrl { get; set; }
[JsonProperty("usesCustomDigestKey")]
public bool UsesCustomDigestKey { get; set; }
public required bool UsesCustomDigestKey { get; set; }
}