Skip to content

Commit 8f06de1

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#288)
Co-authored-by: github-actions[bot] <dependabot@bot.com>
1 parent 594bd0c commit 8f06de1

5 files changed

Lines changed: 17 additions & 17 deletions

src/libs/AI21/Generated/AI21.JsonConverters.AnyOf2.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,13 @@ public override void Write(
145145
{
146146
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<T1?> ??
147147
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
148-
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeInfo);
148+
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo);
149149
}
150150
else if (value.IsValue2)
151151
{
152152
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<T2?> ??
153153
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
154-
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeInfo);
154+
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo);
155155
}
156156
}
157157
}

src/libs/AI21/Generated/AI21.JsonConverters.AnyOf4.g.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,25 +237,25 @@ public override void Write(
237237
{
238238
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<T1?> ??
239239
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
240-
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeInfo);
240+
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo);
241241
}
242242
else if (value.IsValue2)
243243
{
244244
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<T2?> ??
245245
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
246-
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeInfo);
246+
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo);
247247
}
248248
else if (value.IsValue3)
249249
{
250250
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<T3?> ??
251251
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}");
252-
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeInfo);
252+
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo);
253253
}
254254
else if (value.IsValue4)
255255
{
256256
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<T4?> ??
257257
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}");
258-
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4, typeInfo);
258+
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo);
259259
}
260260
}
261261
}

src/libs/AI21/Generated/AI21.JsonConverters.LanguageStudioApiServerDataTypesExecutionEngineToolDefinition.g.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,25 +77,25 @@ public override void Write(
7777
{
7878
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AI21.HTTPToolResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::AI21.HTTPToolResource?> ??
7979
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AI21.HTTPToolResource).Name}");
80-
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Http, typeInfo);
80+
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Http!, typeInfo);
8181
}
8282
else if (value.IsMcp)
8383
{
8484
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AI21.MCPToolResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::AI21.MCPToolResource?> ??
8585
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AI21.MCPToolResource).Name}");
86-
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mcp, typeInfo);
86+
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mcp!, typeInfo);
8787
}
8888
else if (value.IsFileSearch)
8989
{
9090
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AI21.FileSearchToolResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::AI21.FileSearchToolResource?> ??
9191
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AI21.FileSearchToolResource).Name}");
92-
global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearch, typeInfo);
92+
global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearch!, typeInfo);
9393
}
9494
else if (value.IsWebSearch)
9595
{
9696
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AI21.WebSearchToolResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::AI21.WebSearchToolResource?> ??
9797
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AI21.WebSearchToolResource).Name}");
98-
global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearch, typeInfo);
98+
global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearch!, typeInfo);
9999
}
100100
}
101101
}

src/libs/AI21/Generated/AI21.JsonConverters.MessagesItem.g.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,25 +77,25 @@ public override void Write(
7777
{
7878
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AI21.UserMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::AI21.UserMessage?> ??
7979
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AI21.UserMessage).Name}");
80-
global::System.Text.Json.JsonSerializer.Serialize(writer, value.User, typeInfo);
80+
global::System.Text.Json.JsonSerializer.Serialize(writer, value.User!, typeInfo);
8181
}
8282
else if (value.IsAssistant)
8383
{
8484
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AI21.AssistantMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::AI21.AssistantMessage?> ??
8585
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AI21.AssistantMessage).Name}");
86-
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Assistant, typeInfo);
86+
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Assistant!, typeInfo);
8787
}
8888
else if (value.IsTool)
8989
{
9090
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AI21.ToolMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::AI21.ToolMessage?> ??
9191
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AI21.ToolMessage).Name}");
92-
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tool, typeInfo);
92+
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tool!, typeInfo);
9393
}
9494
else if (value.IsSystem)
9595
{
9696
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AI21.SystemMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::AI21.SystemMessage?> ??
9797
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AI21.SystemMessage).Name}");
98-
global::System.Text.Json.JsonSerializer.Serialize(writer, value.System, typeInfo);
98+
global::System.Text.Json.JsonSerializer.Serialize(writer, value.System!, typeInfo);
9999
}
100100
}
101101
}

src/libs/AI21/Generated/AI21.JsonConverters.QueryFilter.g.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,19 +192,19 @@ public override void Write(
192192
{
193193
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AI21.ComparisonOperator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::AI21.ComparisonOperator?> ??
194194
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AI21.ComparisonOperator).Name}");
195-
global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComparisonOperator, typeInfo);
195+
global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComparisonOperator!, typeInfo);
196196
}
197197
else if (value.IsLogicalOperator)
198198
{
199199
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IList<object>>), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IList<object>>?> ??
200200
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IList<object>>).Name}");
201-
global::System.Text.Json.JsonSerializer.Serialize(writer, value.LogicalOperator, typeInfo);
201+
global::System.Text.Json.JsonSerializer.Serialize(writer, value.LogicalOperator!, typeInfo);
202202
}
203203
else if (value.IsValue3)
204204
{
205205
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::AI21.ComparisonOperator>), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::AI21.ComparisonOperator>?> ??
206206
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.Dictionary<string, global::AI21.ComparisonOperator>).Name}");
207-
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeInfo);
207+
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo);
208208
}
209209
}
210210
}

0 commit comments

Comments
 (0)