From 1c926349d45941e5cf5a3e7099938d5be48021c3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 26 Oct 2026 12:24:10 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Generated/Revocalize.Exceptions.g.cs | 26 +++++++++++++++++++ .../Revocalize.JsonSerializerContext.g.cs | 1 + ...Revocalize.JsonSerializerContextTypes.g.cs | 5 ++++ ...calize.Training.JsonSerializerContext.g.cs | 1 + 4 files changed, 33 insertions(+) diff --git a/src/libs/Revocalize/Generated/Revocalize.Exceptions.g.cs b/src/libs/Revocalize/Generated/Revocalize.Exceptions.g.cs index 61ad2c3..d77d8fe 100644 --- a/src/libs/Revocalize/Generated/Revocalize.Exceptions.g.cs +++ b/src/libs/Revocalize/Generated/Revocalize.Exceptions.g.cs @@ -20,6 +20,32 @@ public partial class ApiException : global::System.Exception /// public string? ResponseBody { get; set; } + /// + /// Successful HTTP responses that fail during processing put the cause before a bounded body preview. + /// Inspect ResponseBody for the full response; HTTP service-error messages retain their existing format. + /// + public override string Message + { + get + { + if ((int)StatusCode < 200 || (int)StatusCode >= 300 || InnerException == null) + { + return base.Message; + } + + string? path = (InnerException as global::System.Text.Json.JsonException)?.Path; + return "Response processing failed after successful HTTP " + + ((int)StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture) + ": " + + InnerException.GetType().FullName + ": " + BoundDiagnosticText(InnerException.Message) + + (string.IsNullOrEmpty(path) ? string.Empty : " Path: " + BoundDiagnosticText(path, 256)) + + "\nResponse preview: " + BoundDiagnosticText(base.Message); + } + } + + private static string BoundDiagnosticText(string? value, int maximumLength = 512) => + value == null ? string.Empty : + value.Length <= maximumLength ? value : value.Substring(0, maximumLength) + "... [truncated]"; + /// /// The response headers. /// diff --git a/src/libs/Revocalize/Generated/Revocalize.JsonSerializerContext.g.cs b/src/libs/Revocalize/Generated/Revocalize.JsonSerializerContext.g.cs index c61b389..6e73029 100644 --- a/src/libs/Revocalize/Generated/Revocalize.JsonSerializerContext.g.cs +++ b/src/libs/Revocalize/Generated/Revocalize.JsonSerializerContext.g.cs @@ -24,6 +24,7 @@ namespace Revocalize #pragma warning restore CS3016 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Revocalize.JsonSerializerContextTypes))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(string[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Revocalize.ConvertAudioRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] diff --git a/src/libs/Revocalize/Generated/Revocalize.JsonSerializerContextTypes.g.cs b/src/libs/Revocalize/Generated/Revocalize.JsonSerializerContextTypes.g.cs index 2077133..1b09bdb 100644 --- a/src/libs/Revocalize/Generated/Revocalize.JsonSerializerContextTypes.g.cs +++ b/src/libs/Revocalize/Generated/Revocalize.JsonSerializerContextTypes.g.cs @@ -25,6 +25,11 @@ public sealed partial class JsonSerializerContextTypes /// public global::System.Collections.Generic.List? ObjectList { get; set; } + /// + /// String arrays used by dynamic JSON option values. + /// + public string[]? StringArray { get; set; } + /// /// /// diff --git a/src/libs/Revocalize/Generated/Revocalize.Training.JsonSerializerContext.g.cs b/src/libs/Revocalize/Generated/Revocalize.Training.JsonSerializerContext.g.cs index 14ec253..30cccc8 100644 --- a/src/libs/Revocalize/Generated/Revocalize.Training.JsonSerializerContext.g.cs +++ b/src/libs/Revocalize/Generated/Revocalize.Training.JsonSerializerContext.g.cs @@ -12,6 +12,7 @@ namespace Revocalize [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(string[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))]