From 6fcfa8905022a10056b2fd4575740e8a7107469c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 10 May 2026 03:41:01 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...iter.JsonConverters.ApplicationInputOptions.g.cs | 13 +++++++++++++ .../Writer.JsonConverters.CompositeContent.g.cs | 5 +++++ .../Generated/Writer.JsonConverters.OneOf2.g.cs | 3 +++ .../Generated/Writer.JsonConverters.ToolChoice.g.cs | 5 +++++ 4 files changed, 26 insertions(+) diff --git a/src/libs/Writer/Generated/Writer.JsonConverters.ApplicationInputOptions.g.cs b/src/libs/Writer/Generated/Writer.JsonConverters.ApplicationInputOptions.g.cs index 5e2bce9..46d6116 100644 --- a/src/libs/Writer/Generated/Writer.JsonConverters.ApplicationInputOptions.g.cs +++ b/src/libs/Writer/Generated/Writer.JsonConverters.ApplicationInputOptions.g.cs @@ -120,6 +120,7 @@ public class ApplicationInputOptionsJsonConverter : global::System.Text.Json.Ser { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Writer.ApplicationInputDropdownOptions), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Writer.ApplicationInputDropdownOptions).Name}"); dropdown = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -130,9 +131,13 @@ public class ApplicationInputOptionsJsonConverter : global::System.Text.Json.Ser catch (global::System.InvalidOperationException) { } + } + if (dropdown == null && file == null && media == null && text == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Writer.ApplicationInputFileOptions), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Writer.ApplicationInputFileOptions).Name}"); file = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -143,9 +148,13 @@ public class ApplicationInputOptionsJsonConverter : global::System.Text.Json.Ser catch (global::System.InvalidOperationException) { } + } + if (dropdown == null && file == null && media == null && text == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Writer.ApplicationInputMediaOptions), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Writer.ApplicationInputMediaOptions).Name}"); media = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -156,9 +165,13 @@ public class ApplicationInputOptionsJsonConverter : global::System.Text.Json.Ser catch (global::System.InvalidOperationException) { } + } + if (dropdown == null && file == null && media == null && text == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Writer.ApplicationInputTextOptions), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Writer.ApplicationInputTextOptions).Name}"); text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Writer/Generated/Writer.JsonConverters.CompositeContent.g.cs b/src/libs/Writer/Generated/Writer.JsonConverters.CompositeContent.g.cs index 0604dcc..bd449e2 100644 --- a/src/libs/Writer/Generated/Writer.JsonConverters.CompositeContent.g.cs +++ b/src/libs/Writer/Generated/Writer.JsonConverters.CompositeContent.g.cs @@ -86,6 +86,7 @@ public class CompositeContentJsonConverter : global::System.Text.Json.Serializat { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Writer.TextFragment), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Writer.TextFragment).Name}"); text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -96,9 +97,13 @@ public class CompositeContentJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (text == null && image == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Writer.ImageFragment), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Writer.ImageFragment).Name}"); image = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Writer/Generated/Writer.JsonConverters.OneOf2.g.cs b/src/libs/Writer/Generated/Writer.JsonConverters.OneOf2.g.cs index 77919d7..6bb6a94 100644 --- a/src/libs/Writer/Generated/Writer.JsonConverters.OneOf2.g.cs +++ b/src/libs/Writer/Generated/Writer.JsonConverters.OneOf2.g.cs @@ -107,7 +107,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null) + { try { diff --git a/src/libs/Writer/Generated/Writer.JsonConverters.ToolChoice.g.cs b/src/libs/Writer/Generated/Writer.JsonConverters.ToolChoice.g.cs index 8a8d383..16bde82 100644 --- a/src/libs/Writer/Generated/Writer.JsonConverters.ToolChoice.g.cs +++ b/src/libs/Writer/Generated/Writer.JsonConverters.ToolChoice.g.cs @@ -76,6 +76,7 @@ public class ToolChoiceJsonConverter : global::System.Text.Json.Serialization.Js { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Writer.StringToolChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Writer.StringToolChoice).Name}"); @string = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -86,9 +87,13 @@ public class ToolChoiceJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (@string == null && jsonObject == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Writer.JsonObjectToolChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Writer.JsonObjectToolChoice).Name}"); jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);