From a79bdd727648cb401c1bb56eeda8c74384e15cf2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 6 Apr 2026 15:54:19 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Generated/Ultravox.JsonConverters.OneOf2.g.cs | 2 +- src/libs/Ultravox/Generated/Ultravox.Polyfills.g.cs | 8 ++++++++ .../Ultravox/Generated/Ultravox.Realtime.Polyfills.g.cs | 8 ++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/libs/Ultravox/Generated/Ultravox.JsonConverters.OneOf2.g.cs b/src/libs/Ultravox/Generated/Ultravox.JsonConverters.OneOf2.g.cs index e6d38b6..5461fdb 100644 --- a/src/libs/Ultravox/Generated/Ultravox.JsonConverters.OneOf2.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.JsonConverters.OneOf2.g.cs @@ -3,7 +3,7 @@ namespace Ultravox.JsonConverters { /// - public class OneOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> + public class OneOfJsonConverter<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T1, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T2> : global::System.Text.Json.Serialization.JsonConverter> { /// public override global::Ultravox.OneOf Read( diff --git a/src/libs/Ultravox/Generated/Ultravox.Polyfills.g.cs b/src/libs/Ultravox/Generated/Ultravox.Polyfills.g.cs index ddf1eb0..19921a9 100644 --- a/src/libs/Ultravox/Generated/Ultravox.Polyfills.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.Polyfills.g.cs @@ -53,6 +53,10 @@ public static partial class AutoSdkPolyfills /// /// Creates a JSON request content instance. /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif public static global::System.Net.Http.HttpContent CreateJsonContent( T inputValue, string mediaType, @@ -124,6 +128,10 @@ public static partial class AutoSdkPolyfills /// /// Reads JSON content into the specified type using serializer options. /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif public static async global::System.Threading.Tasks.Task ReadFromJsonAsync( this global::System.Net.Http.HttpContent content, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions, diff --git a/src/libs/Ultravox/Generated/Ultravox.Realtime.Polyfills.g.cs b/src/libs/Ultravox/Generated/Ultravox.Realtime.Polyfills.g.cs index e44ffbb..b2314d6 100644 --- a/src/libs/Ultravox/Generated/Ultravox.Realtime.Polyfills.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.Realtime.Polyfills.g.cs @@ -53,6 +53,10 @@ public static partial class AutoSdkPolyfills /// /// Creates a JSON request content instance. /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif public static global::System.Net.Http.HttpContent CreateJsonContent( T inputValue, string mediaType, @@ -124,6 +128,10 @@ public static partial class AutoSdkPolyfills /// /// Reads JSON content into the specified type using serializer options. /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif public static async global::System.Threading.Tasks.Task ReadFromJsonAsync( this global::System.Net.Http.HttpContent content, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions,