Fix ErrorMessageResponse improperly deserializing from 401 responses

This commit is contained in:
Jordan Dominion
2023-12-25 22:29:12 -05:00
parent fb9d0f6d27
commit 41762f7e6e
2 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -7,8 +7,8 @@
<TgsConfigVersion>5.0.0</TgsConfigVersion>
<TgsApiVersion>10.0.0</TgsApiVersion>
<TgsCommonLibraryVersion>7.0.0</TgsCommonLibraryVersion>
<TgsApiLibraryVersion>13.0.0</TgsApiLibraryVersion>
<TgsClientVersion>15.0.0</TgsClientVersion>
<TgsApiLibraryVersion>13.0.1</TgsApiLibraryVersion>
<TgsClientVersion>15.0.1</TgsClientVersion>
<TgsDmapiVersion>7.0.0</TgsDmapiVersion>
<TgsInteropVersion>5.7.0</TgsInteropVersion>
<TgsHostWatchdogVersion>1.4.1</TgsHostWatchdogVersion>
@@ -1,6 +1,8 @@
using System;
using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;
namespace Tgstation.Server.Api.Models.Response
{
/// <summary>
@@ -28,6 +30,7 @@ namespace Tgstation.Server.Api.Models.Response
/// The <see cref="ErrorCode"/> of the <see cref="ErrorMessageResponse"/>.
/// </summary>
[EnumDataType(typeof(ErrorCode))]
[JsonProperty(Required = Required.Always)]
public ErrorCode ErrorCode { get; set; }
/// <summary>