mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-31 00:50:45 +01:00
Fixed typo in HostApiDocumentation setting
- Config version patch bump (Yes, it is technically a breaking change but I think it's forgivable as this is how it was spelt in the changelog).
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@
|
||||
<!-- This is the authorative version list -->
|
||||
<!-- Integration tests will ensure they match across the board -->
|
||||
<TgsCoreVersion>4.5.4</TgsCoreVersion>
|
||||
<TgsConfigVersion>2.1.0</TgsConfigVersion>
|
||||
<TgsConfigVersion>2.1.1</TgsConfigVersion>
|
||||
<TgsApiVersion>7.4.0</TgsApiVersion>
|
||||
<TgsClientVersion>8.4.0</TgsClientVersion>
|
||||
<TgsDmapiVersion>5.2.7</TgsDmapiVersion>
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace Tgstation.Server.Host.Configuration
|
||||
/// <summary>
|
||||
/// If the swagger UI should be made avaiable.
|
||||
/// </summary>
|
||||
public bool HostApiDocumemtation { get; set; }
|
||||
public bool HostApiDocumentation { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GeneralConfiguration"/> <see langword="class"/>.
|
||||
|
||||
@@ -195,7 +195,7 @@ namespace Tgstation.Server.Host.Core
|
||||
options.SerializerSettings.Converters = new[] { new VersionConverter() };
|
||||
});
|
||||
|
||||
if (postSetupServices.GeneralConfiguration.HostApiDocumemtation)
|
||||
if (postSetupServices.GeneralConfiguration.HostApiDocumentation)
|
||||
{
|
||||
static string GetDocumentationFilePath(string assemblyLocation) => IOManager.ConcatPath(IOManager.GetDirectoryName(assemblyLocation), String.Concat(IOManager.GetFileNameWithoutExtension(assemblyLocation), ".xml"));
|
||||
var assemblyDocumentationPath = GetDocumentationFilePath(typeof(Application).Assembly.Location);
|
||||
@@ -396,7 +396,7 @@ namespace Tgstation.Server.Host.Core
|
||||
// suppress OperationCancelledExceptions, they are just aborted HTTP requests
|
||||
applicationBuilder.UseCancelledRequestSuppression();
|
||||
|
||||
if (generalConfiguration.HostApiDocumemtation)
|
||||
if (generalConfiguration.HostApiDocumentation)
|
||||
{
|
||||
applicationBuilder.UseSwagger();
|
||||
applicationBuilder.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "TGS API V4"));
|
||||
|
||||
@@ -613,7 +613,7 @@ namespace Tgstation.Server.Host.Setup
|
||||
if (String.IsNullOrWhiteSpace(newGeneralConfiguration.GitHubAccessToken))
|
||||
newGeneralConfiguration.GitHubAccessToken = null;
|
||||
|
||||
newGeneralConfiguration.HostApiDocumemtation = await PromptYesNo("Host API Documentation? (y/n): ", cancellationToken).ConfigureAwait(false);
|
||||
newGeneralConfiguration.HostApiDocumentation = await PromptYesNo("Host API Documentation? (y/n): ", cancellationToken).ConfigureAwait(false);
|
||||
|
||||
return newGeneralConfiguration;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"UserLimit": 100,
|
||||
"InstanceLimit": 10,
|
||||
"ValidInstancePaths": null,
|
||||
"HostApiDocumemtation": false
|
||||
"HostApiDocumentation": false
|
||||
},
|
||||
"FileLogging": {
|
||||
"Directory": null,
|
||||
|
||||
Reference in New Issue
Block a user