From cb3c9fcc1550ce4d60f54f0b687dcdb756dba73b Mon Sep 17 00:00:00 2001 From: Ionite Date: Mon, 5 Jun 2023 04:19:44 -0400 Subject: [PATCH] Apparently the response can be empty --- StabilityMatrix/Models/Api/CivitModelsResponse.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/StabilityMatrix/Models/Api/CivitModelsResponse.cs b/StabilityMatrix/Models/Api/CivitModelsResponse.cs index 7a51c422..62b5c8bc 100644 --- a/StabilityMatrix/Models/Api/CivitModelsResponse.cs +++ b/StabilityMatrix/Models/Api/CivitModelsResponse.cs @@ -5,8 +5,8 @@ namespace StabilityMatrix.Models.Api; public class CivitModelsResponse { [JsonPropertyName("items")] - public CivitModel[] Items { get; set; } + public CivitModel[]? Items { get; set; } [JsonPropertyName("metadata")] - public CivitMetadata Metadata { get; set; } + public CivitMetadata? Metadata { get; set; } }