mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-29 16:11:05 +01:00
Include ServerAPIVersion field in error message objects
This commit is contained in:
@@ -48,7 +48,7 @@ namespace Tgstation.Server.Api
|
||||
/// <summary>
|
||||
/// The current <see cref="AssemblyName"/>
|
||||
/// </summary>
|
||||
static readonly AssemblyName assemblyName = Assembly.GetExecutingAssembly().GetName();
|
||||
internal static readonly AssemblyName assemblyName = Assembly.GetExecutingAssembly().GetName();
|
||||
|
||||
/// <summary>
|
||||
/// The <see cref="Models.Instance.Id"/> being accessed
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace Tgstation.Server.Api.Models
|
||||
using System;
|
||||
|
||||
namespace Tgstation.Server.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents an error message returned by the server
|
||||
@@ -9,5 +11,10 @@
|
||||
/// A human readable description of the error
|
||||
/// </summary>
|
||||
public string Message { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The version of the API the server is using
|
||||
/// </summary>
|
||||
public Version SeverAPIVersion { get; set; } = ApiHeaders.assemblyName.Version;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user