Skip to content

Commit 8e44428

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

6 files changed

Lines changed: 38 additions & 0 deletions

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ public class AnyOfJsonConverter<T1, T2> : global::System.Text.Json.Serialization
107107
catch (global::System.InvalidOperationException)
108108
{
109109
}
110+
}
110111

112+
if (value1 == null && value2 == null)
113+
{
111114
try
112115
{
113116

src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.AnyOf3.g.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ public class AnyOfJsonConverter<T1, T2, T3> : global::System.Text.Json.Serializa
137137
catch (global::System.InvalidOperationException)
138138
{
139139
}
140+
}
140141

142+
if (value1 == null && value2 == null && value3 == null)
143+
{
141144
try
142145
{
143146

@@ -151,7 +154,10 @@ public class AnyOfJsonConverter<T1, T2, T3> : global::System.Text.Json.Serializa
151154
catch (global::System.InvalidOperationException)
152155
{
153156
}
157+
}
154158

159+
if (value1 == null && value2 == null && value3 == null)
160+
{
155161
try
156162
{
157163

src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.OneOf2.g.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ public class OneOfJsonConverter<T1, T2> : global::System.Text.Json.Serialization
107107
catch (global::System.InvalidOperationException)
108108
{
109109
}
110+
}
110111

112+
if (value1 == null && value2 == null)
113+
{
111114
try
112115
{
113116

src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.OneOf4.g.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,10 @@ public class OneOfJsonConverter<T1, T2, T3, T4> : global::System.Text.Json.Seria
167167
catch (global::System.InvalidOperationException)
168168
{
169169
}
170+
}
170171

172+
if (value1 == null && value2 == null && value3 == null && value4 == null)
173+
{
171174
try
172175
{
173176

@@ -181,7 +184,10 @@ public class OneOfJsonConverter<T1, T2, T3, T4> : global::System.Text.Json.Seria
181184
catch (global::System.InvalidOperationException)
182185
{
183186
}
187+
}
184188

189+
if (value1 == null && value2 == null && value3 == null && value4 == null)
190+
{
185191
try
186192
{
187193

@@ -195,7 +201,10 @@ public class OneOfJsonConverter<T1, T2, T3, T4> : global::System.Text.Json.Seria
195201
catch (global::System.InvalidOperationException)
196202
{
197203
}
204+
}
198205

206+
if (value1 == null && value2 == null && value3 == null && value4 == null)
207+
{
199208
try
200209
{
201210

src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.OneOf5.g.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,10 @@ public class OneOfJsonConverter<T1, T2, T3, T4, T5> : global::System.Text.Json.S
197197
catch (global::System.InvalidOperationException)
198198
{
199199
}
200+
}
200201

202+
if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null)
203+
{
201204
try
202205
{
203206

@@ -211,7 +214,10 @@ public class OneOfJsonConverter<T1, T2, T3, T4, T5> : global::System.Text.Json.S
211214
catch (global::System.InvalidOperationException)
212215
{
213216
}
217+
}
214218

219+
if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null)
220+
{
215221
try
216222
{
217223

@@ -225,7 +231,10 @@ public class OneOfJsonConverter<T1, T2, T3, T4, T5> : global::System.Text.Json.S
225231
catch (global::System.InvalidOperationException)
226232
{
227233
}
234+
}
228235

236+
if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null)
237+
{
229238
try
230239
{
231240

@@ -239,7 +248,10 @@ public class OneOfJsonConverter<T1, T2, T3, T4, T5> : global::System.Text.Json.S
239248
catch (global::System.InvalidOperationException)
240249
{
241250
}
251+
}
242252

253+
if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null)
254+
{
243255
try
244256
{
245257

src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.SearchRequestLogsRequest.g.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ public class SearchRequestLogsRequestJsonConverter : global::System.Text.Json.Se
9090
{
9191
try
9292
{
93+
9394
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::PromptLayer.RequestLogQuery), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::PromptLayer.RequestLogQuery> ??
9495
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::PromptLayer.RequestLogQuery).Name}");
9596
requestLogQuery = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
@@ -100,9 +101,13 @@ public class SearchRequestLogsRequestJsonConverter : global::System.Text.Json.Se
100101
catch (global::System.InvalidOperationException)
101102
{
102103
}
104+
}
103105

106+
if (requestLogQuery == null && searchRequestLogsRequestVariant2 == null)
107+
{
104108
try
105109
{
110+
106111
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::PromptLayer.SearchRequestLogsRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::PromptLayer.SearchRequestLogsRequestVariant2> ??
107112
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::PromptLayer.SearchRequestLogsRequestVariant2).Name}");
108113
searchRequestLogsRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);

0 commit comments

Comments
 (0)