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 public record AutoDiscoverResponse
{ {
[JsonProperty("version")] [JsonProperty("version")]
public uint Version { get; set; } public required uint Version { get; set; }
[JsonProperty("serverBrand")] [JsonProperty("serverBrand")]
public string ServerBrand { get; set; } public required string ServerBrand { get; set; }
[JsonProperty("serverDescription")] [JsonProperty("serverDescription")]
public string ServerDescription { get; set; } public required string ServerDescription { get; set; }
[JsonProperty("url")] [JsonProperty("url")]
public string Url { get; set; } public required string Url { get; set; }
[JsonProperty("bannerImageUrl")] [JsonProperty("bannerImageUrl")]
public string? BannerImageUrl { get; set; } public string? BannerImageUrl { get; set; }
[JsonProperty("usesCustomDigestKey")] [JsonProperty("usesCustomDigestKey")]
public bool UsesCustomDigestKey { get; set; } public required bool UsesCustomDigestKey { get; set; }
} }