diff --git a/ProjBobcat/ProjBobcat/Class/Model/Fabric/FabricLoaderArtifactModel.cs b/ProjBobcat/ProjBobcat/Class/Model/Fabric/FabricLoaderArtifactModel.cs index 6c34367c..228b3036 100644 --- a/ProjBobcat/ProjBobcat/Class/Model/Fabric/FabricLoaderArtifactModel.cs +++ b/ProjBobcat/ProjBobcat/Class/Model/Fabric/FabricLoaderArtifactModel.cs @@ -9,5 +9,5 @@ public class FabricLoaderArtifactModel [JsonPropertyName("launcherMeta")] public FabricLauncherMeta LauncherMeta { get; set; } } -[JsonSerializable(typeof(FabricLoaderArtifactModel[]))] +[JsonSerializable(typeof(FabricLoaderArtifactModel))] public partial class FabricLoaderArtifactModelContext : JsonSerializerContext {} \ No newline at end of file diff --git a/ProjBobcat/ProjBobcat/Class/Model/NeoForge/NeoForgeVersionsModel.cs b/ProjBobcat/ProjBobcat/Class/Model/NeoForge/NeoForgeVersionsModel.cs index fa32028e..a7e38696 100644 --- a/ProjBobcat/ProjBobcat/Class/Model/NeoForge/NeoForgeVersionsModel.cs +++ b/ProjBobcat/ProjBobcat/Class/Model/NeoForge/NeoForgeVersionsModel.cs @@ -9,5 +9,5 @@ public class NeoForgeVersionModel [JsonPropertyName("mcversion")] public string MineCraftVersion { get; set; } } -[JsonSerializable(typeof(NeoForgeVersionModel[]))] +[JsonSerializable(typeof(NeoForgeVersionModel))] public partial class NeoForgeVersionsModelContext : JsonSerializerContext { } \ No newline at end of file diff --git a/ProjBobcat/ProjBobcat/Class/Model/Optifine/OptifineDownloadVersionModel.cs b/ProjBobcat/ProjBobcat/Class/Model/Optifine/OptifineDownloadVersionModel.cs index bb931956..683fb4e0 100644 --- a/ProjBobcat/ProjBobcat/Class/Model/Optifine/OptifineDownloadVersionModel.cs +++ b/ProjBobcat/ProjBobcat/Class/Model/Optifine/OptifineDownloadVersionModel.cs @@ -5,12 +5,12 @@ namespace ProjBobcat.Class.Model.Optifine; public class OptifineDownloadVersionModel { [JsonPropertyName("_id")] public string Id { get; set; } - [JsonPropertyName("mcversion")] public string McVersion { get; set; } - [JsonPropertyName("patch")] public string Patch { get; set; } - [JsonPropertyName("type")] public string Type { get; set; } + [JsonPropertyName("mcversion")] public string? McVersion { get; set; } + [JsonPropertyName("patch")] public string? Patch { get; set; } + [JsonPropertyName("type")] public string? Type { get; set; } [JsonPropertyName("__v")] public int VersionLocker { get; set; } [JsonPropertyName("filename")] public string FileName { get; set; } } -[JsonSerializable(typeof(OptifineDownloadVersionModel[]))] +[JsonSerializable(typeof(OptifineDownloadVersionModel))] public partial class OptifineDownloadVersionModelContext : JsonSerializerContext {} \ No newline at end of file diff --git a/ProjBobcat/ProjBobcat/Class/Model/Quilt/QuiltLoaderModel.cs b/ProjBobcat/ProjBobcat/Class/Model/Quilt/QuiltLoaderModel.cs index e615b507..2dae2d03 100644 --- a/ProjBobcat/ProjBobcat/Class/Model/Quilt/QuiltLoaderModel.cs +++ b/ProjBobcat/ProjBobcat/Class/Model/Quilt/QuiltLoaderModel.cs @@ -13,5 +13,5 @@ public class QuiltLoaderModel [JsonPropertyName("version")] public string Version { get; set; } } -[JsonSerializable(typeof(QuiltLoaderModel[]))] +[JsonSerializable(typeof(QuiltLoaderModel))] public partial class QuiltLoaderModelContext : JsonSerializerContext {} \ No newline at end of file