diff --git a/src/libs/Mubert/Generated/Mubert.Exceptions.g.cs b/src/libs/Mubert/Generated/Mubert.Exceptions.g.cs index 9efbf72..1fa6be0 100644 --- a/src/libs/Mubert/Generated/Mubert.Exceptions.g.cs +++ b/src/libs/Mubert/Generated/Mubert.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/Mubert/Generated/Mubert.JsonSerializerContext.g.cs b/src/libs/Mubert/Generated/Mubert.JsonSerializerContext.g.cs index fc9e492..76a78c7 100644 --- a/src/libs/Mubert/Generated/Mubert.JsonSerializerContext.g.cs +++ b/src/libs/Mubert/Generated/Mubert.JsonSerializerContext.g.cs @@ -242,6 +242,7 @@ namespace Mubert #pragma warning restore CS3016 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mubert.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::Mubert.CommentModelTypeEnum), TypeInfoPropertyName = "CommentModelTypeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mubert.CompanyStatusEnum), TypeInfoPropertyName = "CompanyStatusEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mubert.CustomerStatusEnum), TypeInfoPropertyName = "CustomerStatusEnum2")] diff --git a/src/libs/Mubert/Generated/Mubert.JsonSerializerContextTypes.g.cs b/src/libs/Mubert/Generated/Mubert.JsonSerializerContextTypes.g.cs index e39b90c..a2630c0 100644 --- a/src/libs/Mubert/Generated/Mubert.JsonSerializerContextTypes.g.cs +++ b/src/libs/Mubert/Generated/Mubert.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/Mubert/Generated/Mubert.PublicService.JsonSerializerContext.g.cs b/src/libs/Mubert/Generated/Mubert.PublicService.JsonSerializerContext.g.cs index 19236d6..555277e 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicService.JsonSerializerContext.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicService.JsonSerializerContext.g.cs @@ -12,6 +12,7 @@ namespace Mubert [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(global::Mubert.FeatureEnum), TypeInfoPropertyName = "FeatureEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mubert.AccessTokenExpiredException))] diff --git a/src/libs/Mubert/Generated/Mubert.Service.JsonSerializerContext.g.cs b/src/libs/Mubert/Generated/Mubert.Service.JsonSerializerContext.g.cs index d086a43..c35eac9 100644 --- a/src/libs/Mubert/Generated/Mubert.Service.JsonSerializerContext.g.cs +++ b/src/libs/Mubert/Generated/Mubert.Service.JsonSerializerContext.g.cs @@ -12,6 +12,7 @@ namespace Mubert [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(global::Mubert.PriceNotFoundException))]