Go back to swagger in regards to #3376, add cmdline switch to force openapi

This commit is contained in:
Łukasz Domeradzki
2025-01-20 11:49:35 +01:00
parent 2a66fce878
commit ac01cca55e
7 changed files with 283 additions and 10 deletions

View File

@@ -59,6 +59,7 @@ internal static class Program {
internal static bool Service { get; private set; }
internal static bool ShutdownSequenceInitialized { get; private set; }
internal static bool SteamParentalGeneration { get; private set; } = true;
internal static bool UseOpenApi { get; private set; }
private static readonly Dictionary<PosixSignal, PosixSignalRegistration> RegisteredPosixSignals = new();
private static readonly TaskCompletionSource<byte> ShutdownResetEvent = new();
@@ -610,6 +611,10 @@ internal static class Program {
case "--SYSTEM-REQUIRED" when noArgumentValueNext():
SystemRequired = true;
break;
case "--USE-OPENAPI" when noArgumentValueNext():
UseOpenApi = true;
break;
default:
if (cryptKeyNext) {