From 7b98acdf96eda620aeca0c89b7ea8823831b8296 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Tue, 3 Nov 2020 11:36:32 -0500 Subject: [PATCH] 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). --- build/Version.props | 2 +- .../Configuration/GeneralConfiguration.cs | 2 +- src/Tgstation.Server.Host/Core/Application.cs | 4 ++-- src/Tgstation.Server.Host/Setup/SetupWizard.cs | 2 +- src/Tgstation.Server.Host/appsettings.json | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build/Version.props b/build/Version.props index 79bcb4fb8f..e6845264db 100644 --- a/build/Version.props +++ b/build/Version.props @@ -3,7 +3,7 @@ 4.5.4 - 2.1.0 + 2.1.1 7.4.0 8.4.0 5.2.7 diff --git a/src/Tgstation.Server.Host/Configuration/GeneralConfiguration.cs b/src/Tgstation.Server.Host/Configuration/GeneralConfiguration.cs index 4b925e9342..ad0e098be3 100644 --- a/src/Tgstation.Server.Host/Configuration/GeneralConfiguration.cs +++ b/src/Tgstation.Server.Host/Configuration/GeneralConfiguration.cs @@ -90,7 +90,7 @@ namespace Tgstation.Server.Host.Configuration /// /// If the swagger UI should be made avaiable. /// - public bool HostApiDocumemtation { get; set; } + public bool HostApiDocumentation { get; set; } /// /// Initializes a new instance of the . diff --git a/src/Tgstation.Server.Host/Core/Application.cs b/src/Tgstation.Server.Host/Core/Application.cs index dc235d3140..e8c6f11a48 100644 --- a/src/Tgstation.Server.Host/Core/Application.cs +++ b/src/Tgstation.Server.Host/Core/Application.cs @@ -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")); diff --git a/src/Tgstation.Server.Host/Setup/SetupWizard.cs b/src/Tgstation.Server.Host/Setup/SetupWizard.cs index b32bd9206d..31b934258e 100644 --- a/src/Tgstation.Server.Host/Setup/SetupWizard.cs +++ b/src/Tgstation.Server.Host/Setup/SetupWizard.cs @@ -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; } diff --git a/src/Tgstation.Server.Host/appsettings.json b/src/Tgstation.Server.Host/appsettings.json index bdc52afffc..63f9edf1ff 100644 --- a/src/Tgstation.Server.Host/appsettings.json +++ b/src/Tgstation.Server.Host/appsettings.json @@ -10,7 +10,7 @@ "UserLimit": 100, "InstanceLimit": 10, "ValidInstancePaths": null, - "HostApiDocumemtation": false + "HostApiDocumentation": false }, "FileLogging": { "Directory": null,