Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ partial void ProcessCreateResponse(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ partial void ProcessListResponseContent(
__response.EnsureSuccessStatusCode();

return
(global::System.Collections.Generic.IList<global::LabelStudio.ApiDmActionsRetrieveResponseItem>?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<global::LabelStudio.ApiDmActionsRetrieveResponseItem>), JsonSerializerContext) ??
global::System.Text.Json.JsonSerializer.Deserialize<global::System.Collections.Generic.IList<global::LabelStudio.ApiDmActionsRetrieveResponseItem>?>(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -142,7 +142,7 @@ partial void ProcessListResponseContent(
).ConfigureAwait(false);

return
(global::System.Collections.Generic.IList<global::LabelStudio.ApiDmActionsRetrieveResponseItem>?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::LabelStudio.ApiDmActionsRetrieveResponseItem>), JsonSerializerContext).ConfigureAwait(false) ??
await global::System.Text.Json.JsonSerializer.DeserializeAsync<global::System.Collections.Generic.IList<global::LabelStudio.ApiDmActionsRetrieveResponseItem>?>(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public sealed partial class ActionsClient : global::LabelStudio.IActionsClient,
/// <summary>
///
/// </summary>
public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default;
public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();


/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ partial void ProcessListResponseContent(
__response.EnsureSuccessStatusCode();

return
(global::System.Collections.Generic.IList<global::LabelStudio.ActivityLogResponse>?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<global::LabelStudio.ActivityLogResponse>), JsonSerializerContext) ??
global::System.Text.Json.JsonSerializer.Deserialize<global::System.Collections.Generic.IList<global::LabelStudio.ActivityLogResponse>?>(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -246,7 +246,7 @@ partial void ProcessListResponseContent(
).ConfigureAwait(false);

return
(global::System.Collections.Generic.IList<global::LabelStudio.ActivityLogResponse>?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::LabelStudio.ActivityLogResponse>), JsonSerializerContext).ConfigureAwait(false) ??
await global::System.Text.Json.JsonSerializer.DeserializeAsync<global::System.Collections.Generic.IList<global::LabelStudio.ActivityLogResponse>?>(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public sealed partial class ActivityLogsClient : global::LabelStudio.IActivityLo
/// <summary>
///
/// </summary>
public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default;
public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();


/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ partial void ProcessApiAnalyticsKpisRetrieveResponseContent(
__response.EnsureSuccessStatusCode();

return
(global::System.Collections.Generic.IList<global::LabelStudio.KPIMetadata>?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<global::LabelStudio.KPIMetadata>), JsonSerializerContext) ??
global::System.Text.Json.JsonSerializer.Deserialize<global::System.Collections.Generic.IList<global::LabelStudio.KPIMetadata>?>(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -133,7 +133,7 @@ partial void ProcessApiAnalyticsKpisRetrieveResponseContent(
).ConfigureAwait(false);

return
(global::System.Collections.Generic.IList<global::LabelStudio.KPIMetadata>?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::LabelStudio.KPIMetadata>), JsonSerializerContext).ConfigureAwait(false) ??
await global::System.Text.Json.JsonSerializer.DeserializeAsync<global::System.Collections.Generic.IList<global::LabelStudio.KPIMetadata>?>(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ partial void ProcessApiAnalyticsKpisRetrieve2ResponseContent(
__response.EnsureSuccessStatusCode();

return
global::LabelStudio.KPIDetailResponse.FromJson(__content, JsonSerializerContext) ??
global::LabelStudio.KPIDetailResponse.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -263,7 +263,7 @@ partial void ProcessApiAnalyticsKpisRetrieve2ResponseContent(
).ConfigureAwait(false);

return
await global::LabelStudio.KPIDetailResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
await global::LabelStudio.KPIDetailResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ partial void ProcessApiAnalyticsViewsCreateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
Expand Down Expand Up @@ -127,7 +127,7 @@ partial void ProcessApiAnalyticsViewsCreateResponseContent(
__response.EnsureSuccessStatusCode();

return
global::LabelStudio.AnalyticsView.FromJson(__content, JsonSerializerContext) ??
global::LabelStudio.AnalyticsView.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -158,7 +158,7 @@ partial void ProcessApiAnalyticsViewsCreateResponseContent(
).ConfigureAwait(false);

return
await global::LabelStudio.AnalyticsView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
await global::LabelStudio.AnalyticsView.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ partial void ProcessApiAnalyticsViewsListResponseContent(
__response.EnsureSuccessStatusCode();

return
(global::System.Collections.Generic.IList<global::LabelStudio.AnalyticsView>?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<global::LabelStudio.AnalyticsView>), JsonSerializerContext) ??
global::System.Text.Json.JsonSerializer.Deserialize<global::System.Collections.Generic.IList<global::LabelStudio.AnalyticsView>?>(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -152,7 +152,7 @@ partial void ProcessApiAnalyticsViewsListResponseContent(
).ConfigureAwait(false);

return
(global::System.Collections.Generic.IList<global::LabelStudio.AnalyticsView>?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::LabelStudio.AnalyticsView>), JsonSerializerContext).ConfigureAwait(false) ??
await global::System.Text.Json.JsonSerializer.DeserializeAsync<global::System.Collections.Generic.IList<global::LabelStudio.AnalyticsView>?>(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ partial void ProcessApiAnalyticsViewsPartialUpdateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
Expand Down Expand Up @@ -133,7 +133,7 @@ partial void ProcessApiAnalyticsViewsPartialUpdateResponseContent(
__response.EnsureSuccessStatusCode();

return
global::LabelStudio.AnalyticsView.FromJson(__content, JsonSerializerContext) ??
global::LabelStudio.AnalyticsView.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -164,7 +164,7 @@ partial void ProcessApiAnalyticsViewsPartialUpdateResponseContent(
).ConfigureAwait(false);

return
await global::LabelStudio.AnalyticsView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
await global::LabelStudio.AnalyticsView.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ partial void ProcessApiAnalyticsViewsRetrieveResponseContent(
__response.EnsureSuccessStatusCode();

return
global::LabelStudio.AnalyticsView.FromJson(__content, JsonSerializerContext) ??
global::LabelStudio.AnalyticsView.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -149,7 +149,7 @@ partial void ProcessApiAnalyticsViewsRetrieveResponseContent(
).ConfigureAwait(false);

return
await global::LabelStudio.AnalyticsView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
await global::LabelStudio.AnalyticsView.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ partial void ProcessApiAnalyticsViewsUpdateResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
Expand Down Expand Up @@ -133,7 +133,7 @@ partial void ProcessApiAnalyticsViewsUpdateResponseContent(
__response.EnsureSuccessStatusCode();

return
global::LabelStudio.AnalyticsView.FromJson(__content, JsonSerializerContext) ??
global::LabelStudio.AnalyticsView.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -164,7 +164,7 @@ partial void ProcessApiAnalyticsViewsUpdateResponseContent(
).ConfigureAwait(false);

return
await global::LabelStudio.AnalyticsView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
await global::LabelStudio.AnalyticsView.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public sealed partial class AnalyticsClient : global::LabelStudio.IAnalyticsClie
/// <summary>
///
/// </summary>
public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default;
public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();


/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ partial void ProcessDeleteResponseContent(
__response.EnsureSuccessStatusCode();

return
global::LabelStudio.ApiAnnotationHistoryDestroyResponse.FromJson(__content, JsonSerializerContext) ??
global::LabelStudio.ApiAnnotationHistoryDestroyResponse.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -162,7 +162,7 @@ partial void ProcessDeleteResponseContent(
).ConfigureAwait(false);

return
await global::LabelStudio.ApiAnnotationHistoryDestroyResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
await global::LabelStudio.ApiAnnotationHistoryDestroyResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ partial void ProcessListResponseContent(
__response.EnsureSuccessStatusCode();

return
(global::System.Collections.Generic.IList<global::LabelStudio.AnnotationHistory>?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<global::LabelStudio.AnnotationHistory>), JsonSerializerContext) ??
global::System.Text.Json.JsonSerializer.Deserialize<global::System.Collections.Generic.IList<global::LabelStudio.AnnotationHistory>?>(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -155,7 +155,7 @@ partial void ProcessListResponseContent(
).ConfigureAwait(false);

return
(global::System.Collections.Generic.IList<global::LabelStudio.AnnotationHistory>?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::LabelStudio.AnnotationHistory>), JsonSerializerContext).ConfigureAwait(false) ??
await global::System.Text.Json.JsonSerializer.DeserializeAsync<global::System.Collections.Generic.IList<global::LabelStudio.AnnotationHistory>?>(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Loading