From 5656c843dd1e245dc36f3e572ff584b1d1cc43a8 Mon Sep 17 00:00:00 2001 From: Zaprit Date: Mon, 26 May 2025 23:39:36 +0100 Subject: [PATCH] Make record fields required --- .../Types/AutoDiscoverResponse.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ProjectLighthouse.Servers.Website/Types/AutoDiscoverResponse.cs b/ProjectLighthouse.Servers.Website/Types/AutoDiscoverResponse.cs index c8a3f5fc..e309ed63 100644 --- a/ProjectLighthouse.Servers.Website/Types/AutoDiscoverResponse.cs +++ b/ProjectLighthouse.Servers.Website/Types/AutoDiscoverResponse.cs @@ -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; } }