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:
Jordan Brown
2020-11-03 11:36:52 -05:00
parent 5d20fa76c0
commit 7b98acdf96
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -10,7 +10,7 @@
"UserLimit": 100,
"InstanceLimit": 10,
"ValidInstancePaths": null,
"HostApiDocumemtation": false
"HostApiDocumentation": false
},
"FileLogging": {
"Directory": null,