From 7d7f35591582b6a2598a3e3d691cb682a857afb9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 6 Apr 2026 15:50:15 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../LabelStudio.ActionsClient.Create.g.cs | 2 +- .../LabelStudio.ActionsClient.List.g.cs | 4 +- .../Generated/LabelStudio.ActionsClient.g.cs | 2 +- .../LabelStudio.ActivityLogsClient.List.g.cs | 4 +- .../LabelStudio.ActivityLogsClient.g.cs | 2 +- ...lyticsClient.ApiAnalyticsKpisRetrieve.g.cs | 4 +- ...yticsClient.ApiAnalyticsKpisRetrieve2.g.cs | 4 +- ...alyticsClient.ApiAnalyticsViewsCreate.g.cs | 6 +- ...AnalyticsClient.ApiAnalyticsViewsList.g.cs | 4 +- ...Client.ApiAnalyticsViewsPartialUpdate.g.cs | 6 +- ...yticsClient.ApiAnalyticsViewsRetrieve.g.cs | 4 +- ...alyticsClient.ApiAnalyticsViewsUpdate.g.cs | 6 +- .../LabelStudio.AnalyticsClient.g.cs | 2 +- ...Studio.AnnotationHistoryClient.Delete.g.cs | 4 +- ...elStudio.AnnotationHistoryClient.List.g.cs | 4 +- ...nnotationHistoryClient.ListForProject.g.cs | 4 +- ...udio.AnnotationHistoryClient.Retrieve.g.cs | 4 +- .../LabelStudio.AnnotationHistoryClient.g.cs | 2 +- ...tudio.AnnotationReviews2Client.Create.g.cs | 6 +- ...elStudio.AnnotationReviews2Client.Get.g.cs | 4 +- ...lStudio.AnnotationReviews2Client.List.g.cs | 4 +- ...tudio.AnnotationReviews2Client.Update.g.cs | 6 +- .../LabelStudio.AnnotationReviews2Client.g.cs | 2 +- ...iewsClient.ApiAnnotationReviewsUpdate.g.cs | 6 +- .../LabelStudio.AnnotationReviewsClient.g.cs | 2 +- .../LabelStudio.AnnotationsClient.Create.g.cs | 6 +- ...elStudio.AnnotationsClient.CreateBulk.g.cs | 6 +- ...elStudio.AnnotationsClient.DeleteBulk.g.cs | 6 +- .../LabelStudio.AnnotationsClient.Get.g.cs | 4 +- .../LabelStudio.AnnotationsClient.List.g.cs | 4 +- .../LabelStudio.AnnotationsClient.Update.g.cs | 6 +- .../LabelStudio.AnnotationsClient.g.cs | 2 +- .../Generated/LabelStudio.AwsClient.g.cs | 2 +- .../LabelStudio.BillingClient.Info.g.cs | 4 +- .../Generated/LabelStudio.BillingClient.g.cs | 2 +- .../LabelStudio.Blueprints2Client.Create.g.cs | 6 +- .../LabelStudio.Blueprints2Client.Update.g.cs | 6 +- .../LabelStudio.Blueprints2Client.g.cs | 2 +- .../LabelStudio.BlueprintsClient.g.cs | 2 +- .../LabelStudio.Comments2Client.Create.g.cs | 6 +- .../LabelStudio.Comments2Client.Get.g.cs | 4 +- .../LabelStudio.Comments2Client.List.g.cs | 4 +- .../LabelStudio.Comments2Client.Update.g.cs | 6 +- .../LabelStudio.Comments2Client.g.cs | 2 +- ...udio.CommentsClient.ApiCommentsUpdate.g.cs | 6 +- .../Generated/LabelStudio.CommentsClient.g.cs | 2 +- ...plorerClient.ApiDatasetsTasksRetrieve.g.cs | 4 +- .../LabelStudio.DataExplorerClient.g.cs | 2 +- ...io.DataManagerClient.ApiDmViewsUpdate.g.cs | 6 +- .../LabelStudio.DataManagerClient.g.cs | 2 +- ...setStoragesAzureCheckForRecordsCreate.g.cs | 6 +- ...eClient.ApiDatasetStoragesAzureCreate.g.cs | 6 +- ...ureClient.ApiDatasetStoragesAzureList.g.cs | 4 +- ....ApiDatasetStoragesAzurePartialUpdate.g.cs | 6 +- ...lient.ApiDatasetStoragesAzureRetrieve.g.cs | 4 +- ...ent.ApiDatasetStoragesAzureSyncCreate.g.cs | 6 +- ...ApiDatasetStoragesAzureValidateCreate.g.cs | 6 +- ...LabelStudio.DatasetStorageAzureClient.g.cs | 2 +- ...tasetStoragesGcsCheckForRecordsCreate.g.cs | 6 +- ...GcsClient.ApiDatasetStoragesGcsCreate.g.cs | 6 +- ...geGcsClient.ApiDatasetStoragesGcsList.g.cs | 4 +- ...nt.ApiDatasetStoragesGcsPartialUpdate.g.cs | 6 +- ...sClient.ApiDatasetStoragesGcsRetrieve.g.cs | 4 +- ...lient.ApiDatasetStoragesGcsSyncCreate.g.cs | 6 +- ...t.ApiDatasetStoragesGcsValidateCreate.g.cs | 6 +- .../LabelStudio.DatasetStorageGcsClient.g.cs | 2 +- ...atasetStoragesS3CheckForRecordsCreate.g.cs | 6 +- ...geS3Client.ApiDatasetStoragesS3Create.g.cs | 6 +- ...rageS3Client.ApiDatasetStoragesS3List.g.cs | 4 +- ...ent.ApiDatasetStoragesS3PartialUpdate.g.cs | 6 +- ...S3Client.ApiDatasetStoragesS3Retrieve.g.cs | 4 +- ...Client.ApiDatasetStoragesS3SyncCreate.g.cs | 6 +- ...nt.ApiDatasetStoragesS3ValidateCreate.g.cs | 6 +- .../LabelStudio.DatasetStorageS3Client.g.cs | 2 +- ...udio.DatasetsClient.ApiDatasetsCreate.g.cs | 6 +- ...Studio.DatasetsClient.ApiDatasetsList.g.cs | 4 +- ...tasetsClient.ApiDatasetsMembersCreate.g.cs | 6 +- ...DatasetsClient.ApiDatasetsMembersList.g.cs | 4 +- ...tasetsClient.ApiDatasetsPartialUpdate.g.cs | 6 +- ...io.DatasetsClient.ApiDatasetsRetrieve.g.cs | 4 +- ...udio.DatasetsClient.ApiDatasetsUpdate.g.cs | 6 +- ...DatasetsClient.ApiDatasetsViewsCreate.g.cs | 6 +- ...o.DatasetsClient.ApiDatasetsViewsList.g.cs | 4 +- ...sClient.ApiDatasetsViewsPartialUpdate.g.cs | 6 +- ...tasetsClient.ApiDatasetsViewsRetrieve.g.cs | 4 +- ...DatasetsClient.ApiDatasetsViewsUpdate.g.cs | 6 +- .../Generated/LabelStudio.DatasetsClient.g.cs | 2 +- ...udio.Dimensions2Client.CancelBackfill.g.cs | 12 +- .../LabelStudio.Dimensions2Client.Create.g.cs | 6 +- .../LabelStudio.Dimensions2Client.Get.g.cs | 4 +- ...o.Dimensions2Client.GetBackfillStatus.g.cs | 12 +- .../LabelStudio.Dimensions2Client.List.g.cs | 4 +- ...tudio.Dimensions2Client.ListBackfills.g.cs | 12 +- ...dio.Dimensions2Client.TriggerBackfill.g.cs | 18 +- .../LabelStudio.Dimensions2Client.Update.g.cs | 6 +- .../LabelStudio.Dimensions2Client.g.cs | 2 +- ...onsClient.ApiProjectsDimensionsUpdate.g.cs | 6 +- .../LabelStudio.DimensionsClient.Get2.g.cs | 4 +- .../LabelStudio.DimensionsClient.g.cs | 2 +- .../LabelStudio.ExportClient.Convert.g.cs | 6 +- .../LabelStudio.ExportClient.Create.g.cs | 6 +- .../LabelStudio.ExportClient.Get.g.cs | 4 +- .../LabelStudio.ExportClient.List.g.cs | 4 +- .../Generated/LabelStudio.ExportClient.g.cs | 2 +- .../Generated/LabelStudio.IActionsClient.g.cs | 2 +- .../LabelStudio.IActivityLogsClient.g.cs | 2 +- .../LabelStudio.IAnalyticsClient.g.cs | 2 +- .../LabelStudio.IAnnotationHistoryClient.g.cs | 2 +- ...LabelStudio.IAnnotationReviews2Client.g.cs | 2 +- .../LabelStudio.IAnnotationReviewsClient.g.cs | 2 +- .../LabelStudio.IAnnotationsClient.g.cs | 2 +- .../Generated/LabelStudio.IAwsClient.g.cs | 2 +- .../Generated/LabelStudio.IBillingClient.g.cs | 2 +- .../LabelStudio.IBlueprints2Client.g.cs | 2 +- .../LabelStudio.IBlueprintsClient.g.cs | 2 +- .../LabelStudio.IComments2Client.g.cs | 2 +- .../LabelStudio.ICommentsClient.g.cs | 2 +- .../LabelStudio.IDataExplorerClient.g.cs | 2 +- .../LabelStudio.IDataManagerClient.g.cs | 2 +- ...abelStudio.IDatasetStorageAzureClient.g.cs | 2 +- .../LabelStudio.IDatasetStorageGcsClient.g.cs | 2 +- .../LabelStudio.IDatasetStorageS3Client.g.cs | 2 +- .../LabelStudio.IDatasetsClient.g.cs | 2 +- .../LabelStudio.IDimensions2Client.g.cs | 2 +- .../LabelStudio.IDimensionsClient.g.cs | 2 +- .../Generated/LabelStudio.IExportClient.g.cs | 2 +- .../Generated/LabelStudio.IImportClient.g.cs | 2 +- .../LabelStudio.IJwtSettingsClient.g.cs | 2 +- .../LabelStudio.ILabelStudioClient.g.cs | 2 +- .../Generated/LabelStudio.ILabels2Client.g.cs | 2 +- .../Generated/LabelStudio.ILabelsClient.g.cs | 2 +- .../Generated/LabelStudio.ILlmClient.g.cs | 2 +- .../Generated/LabelStudio.IMlClient.g.cs | 2 +- ...Studio.IModelProviderConnectionClient.g.cs | 2 +- .../LabelStudio.IModelProvidersClient.g.cs | 2 +- .../LabelStudio.IOrganizations2Client.g.cs | 2 +- .../LabelStudio.IOrganizationsClient.g.cs | 2 +- .../Generated/LabelStudio.IPausesClient.g.cs | 2 +- .../LabelStudio.IPredictions2Client.g.cs | 2 +- .../LabelStudio.IPredictionsClient.g.cs | 2 +- .../LabelStudio.IProjectRolesClient.g.cs | 2 +- .../LabelStudio.IProjectTemplatesClient.g.cs | 2 +- .../LabelStudio.IProjects2Client.g.cs | 2 +- .../LabelStudio.IProjectsClient.g.cs | 2 +- .../LabelStudio.IPrompts2Client.g.cs | 2 +- .../Generated/LabelStudio.IPromptsClient.g.cs | 2 +- .../LabelStudio.ISessionPolicyClient.g.cs | 2 +- .../Generated/LabelStudio.ISsoClient.g.cs | 2 +- .../Generated/LabelStudio.IStatesClient.g.cs | 2 +- .../Generated/LabelStudio.IStatsClient.g.cs | 2 +- .../LabelStudio.IStorageAzureClient.g.cs | 2 +- .../LabelStudio.IStorageAzureSpiClient.g.cs | 2 +- .../Generated/LabelStudio.IStorageClient.g.cs | 2 +- ...lStudio.IStorageDatabricksFilesClient.g.cs | 2 +- .../LabelStudio.IStorageGcsClient.g.cs | 2 +- .../LabelStudio.IStorageGcsWifClient.g.cs | 2 +- .../LabelStudio.IStorageLocalClient.g.cs | 2 +- .../LabelStudio.IStorageRedisClient.g.cs | 2 +- .../LabelStudio.IStorageS3Client.g.cs | 2 +- .../LabelStudio.IStorageS3RolesClient.g.cs | 2 +- .../Generated/LabelStudio.ITasks2Client.g.cs | 2 +- .../Generated/LabelStudio.ITasksClient.g.cs | 2 +- .../Generated/LabelStudio.ITokensClient.g.cs | 2 +- .../Generated/LabelStudio.IUsersClient.g.cs | 2 +- .../LabelStudio.IVersionsClient.g.cs | 2 +- .../Generated/LabelStudio.IViewsClient.g.cs | 2 +- .../LabelStudio.IWebhooks2Client.g.cs | 2 +- .../LabelStudio.IWebhooksClient.g.cs | 2 +- .../LabelStudio.IWorkspaces2Client.g.cs | 2 +- .../LabelStudio.IWorkspacesClient.g.cs | 2 +- .../LabelStudio.ImportClient.Get.g.cs | 4 +- .../LabelStudio.ImportClient.List.g.cs | 4 +- .../LabelStudio.ImportClient.Update.g.cs | 6 +- .../Generated/LabelStudio.ImportClient.g.cs | 2 +- ...o.JsonConverters.MaybeExpandedComment.g.cs | 30 +- .../LabelStudio.JsonConverters.OneOf2.g.cs | 52 +- .../LabelStudio.JsonConverters.OneOf6.g.cs | 140 +- ...elStudio.JsonConverters.RoleBasedTask.g.cs | 42 +- .../LabelStudio.JsonSerializerContext.g.cs | 1177 ++++++ ...abelStudio.JsonSerializerContextTypes.g.cs | 3314 +++++++++++++++++ .../LabelStudio.JwtSettingsClient.Get.g.cs | 4 +- .../LabelStudio.JwtSettingsClient.Update.g.cs | 6 +- .../LabelStudio.JwtSettingsClient.g.cs | 2 +- .../LabelStudio.LabelStudioClient.g.cs | 308 +- .../LabelStudio.Labels2Client.Create2.g.cs | 6 +- .../LabelStudio.Labels2Client.Get2.g.cs | 4 +- .../LabelStudio.Labels2Client.List2.g.cs | 4 +- .../LabelStudio.Labels2Client.Update2.g.cs | 6 +- .../Generated/LabelStudio.Labels2Client.g.cs | 2 +- .../LabelStudio.LabelsClient.Create.g.cs | 6 +- .../LabelStudio.LabelsClient.Get.g.cs | 4 +- .../LabelStudio.LabelsClient.List.g.cs | 4 +- .../LabelStudio.LabelsClient.Update.g.cs | 6 +- .../Generated/LabelStudio.LabelsClient.g.cs | 2 +- ...ent.ApiLlmOpenaiChatCompletionsCreate.g.cs | 6 +- .../Generated/LabelStudio.LlmClient.g.cs | 2 +- .../LabelStudio.MlClient.Create.g.cs | 6 +- .../Generated/LabelStudio.MlClient.Get.g.cs | 4 +- .../Generated/LabelStudio.MlClient.List.g.cs | 4 +- ...abelStudio.MlClient.ListModelVersions.g.cs | 4 +- ...belStudio.MlClient.PredictInteractive.g.cs | 2 +- .../LabelStudio.MlClient.TestPredict.g.cs | 6 +- .../Generated/LabelStudio.MlClient.Train.g.cs | 6 +- .../LabelStudio.MlClient.Update.g.cs | 6 +- .../Generated/LabelStudio.MlClient.g.cs | 2 +- ...ent.ApiModelProviderConnectionsUpdate.g.cs | 6 +- ...lStudio.ModelProviderConnectionClient.g.cs | 2 +- ...belStudio.ModelProvidersClient.Create.g.cs | 6 +- .../LabelStudio.ModelProvidersClient.Get.g.cs | 4 +- ...LabelStudio.ModelProvidersClient.List.g.cs | 4 +- ...vidersClient.ListModelProviderChoices.g.cs | 4 +- ...belStudio.ModelProvidersClient.Update.g.cs | 6 +- .../LabelStudio.ModelProvidersClient.g.cs | 2 +- .../LabelStudio.Organizations2Client.Get.g.cs | 4 +- ...LabelStudio.Organizations2Client.List.g.cs | 4 +- ...tudio.Organizations2Client.ResetToken.g.cs | 4 +- .../LabelStudio.Organizations2Client.g.cs | 2 +- ...abelStudio.OrganizationsClient.Assign.g.cs | 6 +- ...abelStudio.OrganizationsClient.Create.g.cs | 6 +- ...belStudio.OrganizationsClient.Create2.g.cs | 6 +- ...abelStudio.OrganizationsClient.Delete.g.cs | 4 +- .../LabelStudio.OrganizationsClient.Get2.g.cs | 4 +- .../LabelStudio.OrganizationsClient.Get3.g.cs | 4 +- .../LabelStudio.OrganizationsClient.Get4.g.cs | 4 +- ...lStudio.OrganizationsClient.GetImport.g.cs | 4 +- ...dio.OrganizationsClient.GetInviteLink.g.cs | 4 +- ...Studio.OrganizationsClient.GetOptions.g.cs | 4 +- ...abelStudio.OrganizationsClient.Import.g.cs | 6 +- ...LabelStudio.OrganizationsClient.List2.g.cs | 4 +- ...LabelStudio.OrganizationsClient.List3.g.cs | 4 +- ...LabelStudio.OrganizationsClient.List4.g.cs | 4 +- .../LabelStudio.OrganizationsClient.Post.g.cs | 6 +- ...belStudio.OrganizationsClient.Replace.g.cs | 6 +- ...udio.OrganizationsClient.RevokeInvite.g.cs | 2 +- ...lStudio.OrganizationsClient.SendEmail.g.cs | 2 +- ...abelStudio.OrganizationsClient.Update.g.cs | 6 +- ...belStudio.OrganizationsClient.Update2.g.cs | 6 +- ...belStudio.OrganizationsClient.Update3.g.cs | 6 +- ...belStudio.OrganizationsClient.Update4.g.cs | 6 +- ...OrganizationsClient.UpdateDefaultRole.g.cs | 6 +- .../LabelStudio.OrganizationsClient.g.cs | 2 +- ...Client.ApiProjectsMembersPausesUpdate.g.cs | 6 +- .../LabelStudio.PausesClient.Create.g.cs | 6 +- .../LabelStudio.PausesClient.Get.g.cs | 4 +- .../LabelStudio.PausesClient.List.g.cs | 4 +- .../LabelStudio.PausesClient.Update.g.cs | 6 +- .../Generated/LabelStudio.PausesClient.g.cs | 2 +- .../Generated/LabelStudio.Polyfills.g.cs | 8 + ...LabelStudio.Predictions2Client.Create.g.cs | 6 +- .../LabelStudio.Predictions2Client.Get.g.cs | 4 +- .../LabelStudio.Predictions2Client.List.g.cs | 4 +- ...LabelStudio.Predictions2Client.Update.g.cs | 6 +- .../LabelStudio.Predictions2Client.g.cs | 2 +- ...redictionsClient.ApiPredictionsUpdate.g.cs | 6 +- .../LabelStudio.PredictionsClient.g.cs | 2 +- .../LabelStudio.ProjectRolesClient.Add.g.cs | 6 +- .../LabelStudio.ProjectRolesClient.Get.g.cs | 4 +- .../LabelStudio.ProjectRolesClient.List.g.cs | 4 +- .../LabelStudio.ProjectRolesClient.g.cs | 2 +- ...latesClient.ApiProjectTemplatesUpdate.g.cs | 6 +- ...lStudio.ProjectTemplatesClient.Create.g.cs | 6 +- ...latesClient.CreateProjectFromTemplate.g.cs | 6 +- ...abelStudio.ProjectTemplatesClient.Get.g.cs | 4 +- ...belStudio.ProjectTemplatesClient.List.g.cs | 4 +- ...lStudio.ProjectTemplatesClient.Update.g.cs | 6 +- .../LabelStudio.ProjectTemplatesClient.g.cs | 2 +- .../LabelStudio.Projects2Client.Create.g.cs | 6 +- ...LabelStudio.Projects2Client.Duplicate.g.cs | 6 +- .../LabelStudio.Projects2Client.Get.g.cs | 4 +- ...dio.Projects2Client.ImportPredictions.g.cs | 6 +- ...belStudio.Projects2Client.ImportTasks.g.cs | 10 +- .../LabelStudio.Projects2Client.List.g.cs | 4 +- ...abelStudio.Projects2Client.ListCounts.g.cs | 4 +- ....Projects2Client.ListUniqueAnnotators.g.cs | 4 +- .../LabelStudio.Projects2Client.Update.g.cs | 6 +- ...o.Projects2Client.ValidateLabelConfig.g.cs | 6 +- .../LabelStudio.Projects2Client.g.cs | 2 +- .../LabelStudio.ProjectsClient.Add.g.cs | 6 +- ...tsClient.ApiProjectsReimportsRetrieve.g.cs | 4 +- ...o.ProjectsClient.ApiProjectsTasksList.g.cs | 4 +- ...jectsClient.ApiProjectsValidateCreate.g.cs | 2 +- ...elStudio.ProjectsClient.CheckFunction.g.cs | 2 +- .../LabelStudio.ProjectsClient.Create2.g.cs | 6 +- .../LabelStudio.ProjectsClient.Delete2.g.cs | 4 +- .../LabelStudio.ProjectsClient.Get3.g.cs | 4 +- .../LabelStudio.ProjectsClient.Get4.g.cs | 4 +- .../LabelStudio.ProjectsClient.GetLambda.g.cs | 4 +- .../LabelStudio.ProjectsClient.List2.g.cs | 4 +- .../LabelStudio.ProjectsClient.Post.g.cs | 6 +- .../LabelStudio.ProjectsClient.Update2.g.cs | 6 +- ...belStudio.ProjectsClient.UpdateLambda.g.cs | 2 +- .../Generated/LabelStudio.ProjectsClient.g.cs | 2 +- ...Prompts2Client.BatchFailedPredictions.g.cs | 6 +- ...tudio.Prompts2Client.BatchPredictions.g.cs | 6 +- ...dio.Prompts2Client.CompatibleProjects.g.cs | 4 +- .../LabelStudio.Prompts2Client.Create.g.cs | 6 +- .../LabelStudio.Prompts2Client.Get2.g.cs | 4 +- .../LabelStudio.Prompts2Client.List2.g.cs | 4 +- ...abelStudio.Prompts2Client.SubsetTasks.g.cs | 4 +- .../LabelStudio.Prompts2Client.Subsets.g.cs | 4 +- .../LabelStudio.Prompts2Client.Update.g.cs | 6 +- .../Generated/LabelStudio.Prompts2Client.g.cs | 2 +- ...Studio.PromptsClient.ApiPromptsUpdate.g.cs | 6 +- ...romptsClient.ApiPromptsVersionsUpdate.g.cs | 6 +- .../LabelStudio.PromptsClient.Cancel.g.cs | 4 +- ...abelStudio.PromptsClient.CostEstimate.g.cs | 4 +- .../LabelStudio.PromptsClient.Create2.g.cs | 6 +- .../LabelStudio.PromptsClient.Create3.g.cs | 6 +- .../LabelStudio.PromptsClient.Get.g.cs | 4 +- .../LabelStudio.PromptsClient.Get3.g.cs | 4 +- ...Studio.PromptsClient.GetRefinedPrompt.g.cs | 4 +- .../LabelStudio.PromptsClient.List.g.cs | 4 +- .../LabelStudio.PromptsClient.List3.g.cs | 4 +- .../LabelStudio.PromptsClient.List4.g.cs | 4 +- ...abelStudio.PromptsClient.RefinePrompt.g.cs | 6 +- .../LabelStudio.PromptsClient.Update2.g.cs | 6 +- .../Generated/LabelStudio.PromptsClient.g.cs | 2 +- .../LabelStudio.SessionPolicyClient.Get.g.cs | 4 +- ...abelStudio.SessionPolicyClient.Update.g.cs | 6 +- .../LabelStudio.SessionPolicyClient.g.cs | 2 +- .../Generated/LabelStudio.SsoClient.Get.g.cs | 4 +- .../Generated/LabelStudio.SsoClient.Get2.g.cs | 4 +- .../LabelStudio.SsoClient.Update.g.cs | 6 +- .../LabelStudio.SsoClient.Update2.g.cs | 6 +- ...lStudio.SsoClient.ValidateMetadataUrl.g.cs | 6 +- .../Generated/LabelStudio.SsoClient.g.cs | 2 +- ...belStudio.StatesClient.CancelBackfill.g.cs | 12 +- ...Studio.StatesClient.ExecuteTransition.g.cs | 6 +- ...Studio.StatesClient.GetBackfillStatus.g.cs | 12 +- ...abelStudio.StatesClient.ListBackfills.g.cs | 16 +- ...LabelStudio.StatesClient.StateHistory.g.cs | 4 +- ...elStudio.StatesClient.TriggerBackfill.g.cs | 16 +- .../Generated/LabelStudio.StatesClient.g.cs | 2 +- ...Studio.StatsClient.AgreementAnnotator.g.cs | 4 +- ...tudio.StatsClient.AgreementAnnotators.g.cs | 4 +- .../LabelStudio.StatsClient.DataFilters.g.cs | 4 +- ...LabelStudio.StatsClient.FinishedTasks.g.cs | 4 +- .../LabelStudio.StatsClient.Iaa.g.cs | 4 +- ...o.StatsClient.LabelDistributionCounts.g.cs | 4 +- ...tatsClient.LabelDistributionStructure.g.cs | 4 +- .../LabelStudio.StatsClient.LeadTime.g.cs | 4 +- ...Client.ModelVersionAnnotatorAgreement.g.cs | 4 +- ...ient.ModelVersionGroundTruthAgreement.g.cs | 4 +- ...lient.ModelVersionPredictionAgreement.g.cs | 4 +- ...abelStudio.StatsClient.TotalAgreement.g.cs | 4 +- ....StatsClient.UserGroundTruthAgreement.g.cs | 4 +- ...o.StatsClient.UserPredictionAgreement.g.cs | 4 +- ...belStudio.StatsClient.UserReviewScore.g.cs | 4 +- ...StatsClient.UsersGroundTruthAgreement.g.cs | 4 +- ....StatsClient.UsersPredictionAgreement.g.cs | 4 +- ...elStudio.StatsClient.UsersReviewScore.g.cs | 4 +- .../Generated/LabelStudio.StatsClient.g.cs | 2 +- ...LabelStudio.StorageAzureClient.Create.g.cs | 6 +- ...abelStudio.StorageAzureClient.Create2.g.cs | 6 +- .../LabelStudio.StorageAzureClient.Get.g.cs | 4 +- .../LabelStudio.StorageAzureClient.Get2.g.cs | 4 +- .../LabelStudio.StorageAzureClient.List.g.cs | 4 +- .../LabelStudio.StorageAzureClient.List2.g.cs | 4 +- .../LabelStudio.StorageAzureClient.Sync.g.cs | 4 +- .../LabelStudio.StorageAzureClient.Sync2.g.cs | 4 +- ...LabelStudio.StorageAzureClient.Update.g.cs | 6 +- ...abelStudio.StorageAzureClient.Update2.g.cs | 6 +- ...belStudio.StorageAzureClient.Validate.g.cs | 2 +- ...elStudio.StorageAzureClient.Validate2.g.cs | 2 +- .../LabelStudio.StorageAzureClient.g.cs | 2 +- ...elStudio.StorageAzureSpiClient.Create.g.cs | 6 +- ...lStudio.StorageAzureSpiClient.Create2.g.cs | 6 +- ...LabelStudio.StorageAzureSpiClient.Get.g.cs | 4 +- ...abelStudio.StorageAzureSpiClient.Get2.g.cs | 4 +- ...abelStudio.StorageAzureSpiClient.List.g.cs | 4 +- ...belStudio.StorageAzureSpiClient.List2.g.cs | 4 +- ...abelStudio.StorageAzureSpiClient.Sync.g.cs | 4 +- ...belStudio.StorageAzureSpiClient.Sync2.g.cs | 4 +- ...elStudio.StorageAzureSpiClient.Update.g.cs | 6 +- ...lStudio.StorageAzureSpiClient.Update2.g.cs | 6 +- ...Studio.StorageAzureSpiClient.Validate.g.cs | 2 +- ...tudio.StorageAzureSpiClient.Validate2.g.cs | 2 +- .../LabelStudio.StorageAzureSpiClient.g.cs | 2 +- .../LabelStudio.StorageClient.List.g.cs | 4 +- .../LabelStudio.StorageClient.List2.g.cs | 4 +- .../LabelStudio.StorageClient.ListTypes.g.cs | 4 +- .../LabelStudio.StorageClient.ListTypes2.g.cs | 4 +- .../Generated/LabelStudio.StorageClient.g.cs | 2 +- ...o.StorageDatabricksFilesClient.Create.g.cs | 6 +- ....StorageDatabricksFilesClient.Create2.g.cs | 6 +- ...udio.StorageDatabricksFilesClient.Get.g.cs | 4 +- ...dio.StorageDatabricksFilesClient.Get2.g.cs | 4 +- ...dio.StorageDatabricksFilesClient.List.g.cs | 4 +- ...io.StorageDatabricksFilesClient.List2.g.cs | 4 +- ...dio.StorageDatabricksFilesClient.Sync.g.cs | 4 +- ...io.StorageDatabricksFilesClient.Sync2.g.cs | 4 +- ...o.StorageDatabricksFilesClient.Update.g.cs | 6 +- ....StorageDatabricksFilesClient.Update2.g.cs | 6 +- ...StorageDatabricksFilesClient.Validate.g.cs | 2 +- ...torageDatabricksFilesClient.Validate2.g.cs | 2 +- ...elStudio.StorageDatabricksFilesClient.g.cs | 2 +- .../LabelStudio.StorageGcsClient.Create.g.cs | 6 +- .../LabelStudio.StorageGcsClient.Create2.g.cs | 6 +- .../LabelStudio.StorageGcsClient.Get.g.cs | 4 +- .../LabelStudio.StorageGcsClient.Get2.g.cs | 4 +- .../LabelStudio.StorageGcsClient.List.g.cs | 4 +- .../LabelStudio.StorageGcsClient.List2.g.cs | 4 +- .../LabelStudio.StorageGcsClient.Sync.g.cs | 4 +- .../LabelStudio.StorageGcsClient.Sync2.g.cs | 4 +- .../LabelStudio.StorageGcsClient.Update.g.cs | 6 +- .../LabelStudio.StorageGcsClient.Update2.g.cs | 6 +- ...LabelStudio.StorageGcsClient.Validate.g.cs | 2 +- ...abelStudio.StorageGcsClient.Validate2.g.cs | 2 +- .../LabelStudio.StorageGcsClient.g.cs | 2 +- ...abelStudio.StorageGcsWifClient.Create.g.cs | 6 +- ...belStudio.StorageGcsWifClient.Create2.g.cs | 6 +- .../LabelStudio.StorageGcsWifClient.Get.g.cs | 4 +- .../LabelStudio.StorageGcsWifClient.Get2.g.cs | 4 +- .../LabelStudio.StorageGcsWifClient.List.g.cs | 4 +- ...LabelStudio.StorageGcsWifClient.List2.g.cs | 4 +- .../LabelStudio.StorageGcsWifClient.Sync.g.cs | 4 +- ...LabelStudio.StorageGcsWifClient.Sync2.g.cs | 4 +- ...abelStudio.StorageGcsWifClient.Update.g.cs | 6 +- ...belStudio.StorageGcsWifClient.Update2.g.cs | 6 +- ...elStudio.StorageGcsWifClient.Validate.g.cs | 2 +- ...lStudio.StorageGcsWifClient.Validate2.g.cs | 2 +- .../LabelStudio.StorageGcsWifClient.g.cs | 2 +- ...LabelStudio.StorageLocalClient.Create.g.cs | 6 +- ...abelStudio.StorageLocalClient.Create2.g.cs | 6 +- .../LabelStudio.StorageLocalClient.Get.g.cs | 4 +- .../LabelStudio.StorageLocalClient.Get2.g.cs | 4 +- .../LabelStudio.StorageLocalClient.List.g.cs | 4 +- .../LabelStudio.StorageLocalClient.List2.g.cs | 4 +- .../LabelStudio.StorageLocalClient.Sync.g.cs | 4 +- .../LabelStudio.StorageLocalClient.Sync2.g.cs | 4 +- ...LabelStudio.StorageLocalClient.Update.g.cs | 6 +- ...abelStudio.StorageLocalClient.Update2.g.cs | 6 +- ...belStudio.StorageLocalClient.Validate.g.cs | 2 +- ...elStudio.StorageLocalClient.Validate2.g.cs | 2 +- .../LabelStudio.StorageLocalClient.g.cs | 2 +- ...LabelStudio.StorageRedisClient.Create.g.cs | 6 +- ...abelStudio.StorageRedisClient.Create2.g.cs | 6 +- .../LabelStudio.StorageRedisClient.Get.g.cs | 4 +- .../LabelStudio.StorageRedisClient.Get2.g.cs | 4 +- .../LabelStudio.StorageRedisClient.List.g.cs | 4 +- .../LabelStudio.StorageRedisClient.List2.g.cs | 4 +- .../LabelStudio.StorageRedisClient.Sync.g.cs | 4 +- .../LabelStudio.StorageRedisClient.Sync2.g.cs | 4 +- ...LabelStudio.StorageRedisClient.Update.g.cs | 6 +- ...abelStudio.StorageRedisClient.Update2.g.cs | 6 +- ...belStudio.StorageRedisClient.Validate.g.cs | 2 +- ...elStudio.StorageRedisClient.Validate2.g.cs | 2 +- .../LabelStudio.StorageRedisClient.g.cs | 2 +- .../LabelStudio.StorageS3Client.Create.g.cs | 6 +- .../LabelStudio.StorageS3Client.Create2.g.cs | 6 +- .../LabelStudio.StorageS3Client.Get.g.cs | 4 +- .../LabelStudio.StorageS3Client.Get2.g.cs | 4 +- .../LabelStudio.StorageS3Client.List.g.cs | 4 +- .../LabelStudio.StorageS3Client.List2.g.cs | 4 +- .../LabelStudio.StorageS3Client.Sync.g.cs | 4 +- .../LabelStudio.StorageS3Client.Sync2.g.cs | 4 +- .../LabelStudio.StorageS3Client.Update.g.cs | 6 +- .../LabelStudio.StorageS3Client.Update2.g.cs | 6 +- .../LabelStudio.StorageS3Client.Validate.g.cs | 2 +- ...LabelStudio.StorageS3Client.Validate2.g.cs | 2 +- .../LabelStudio.StorageS3Client.g.cs | 2 +- ...belStudio.StorageS3RolesClient.Create.g.cs | 6 +- ...elStudio.StorageS3RolesClient.Create2.g.cs | 6 +- .../LabelStudio.StorageS3RolesClient.Get.g.cs | 4 +- ...LabelStudio.StorageS3RolesClient.Get2.g.cs | 4 +- ...LabelStudio.StorageS3RolesClient.List.g.cs | 4 +- ...abelStudio.StorageS3RolesClient.List2.g.cs | 4 +- ...LabelStudio.StorageS3RolesClient.Sync.g.cs | 4 +- ...abelStudio.StorageS3RolesClient.Sync2.g.cs | 4 +- ...belStudio.StorageS3RolesClient.Update.g.cs | 6 +- ...elStudio.StorageS3RolesClient.Update2.g.cs | 6 +- ...lStudio.StorageS3RolesClient.Validate.g.cs | 2 +- ...Studio.StorageS3RolesClient.Validate2.g.cs | 2 +- .../LabelStudio.StorageS3RolesClient.g.cs | 2 +- .../LabelStudio.Tasks2Client.Create.g.cs | 6 +- .../LabelStudio.Tasks2Client.CreateEvent.g.cs | 6 +- ...lStudio.Tasks2Client.CreateManyStatus.g.cs | 4 +- .../LabelStudio.Tasks2Client.Get.g.cs | 4 +- .../LabelStudio.Tasks2Client.List2.g.cs | 4 +- .../LabelStudio.Tasks2Client.Update2.g.cs | 6 +- .../Generated/LabelStudio.Tasks2Client.g.cs | 2 +- .../LabelStudio.TasksClient.Assign.g.cs | 6 +- .../LabelStudio.TasksClient.BulkAssign.g.cs | 6 +- .../LabelStudio.TasksClient.List.g.cs | 4 +- .../LabelStudio.TasksClient.Update.g.cs | 6 +- .../Generated/LabelStudio.TasksClient.g.cs | 2 +- .../LabelStudio.TokensClient.Blacklist.g.cs | 6 +- .../LabelStudio.TokensClient.Create.g.cs | 4 +- .../LabelStudio.TokensClient.List.g.cs | 4 +- .../LabelStudio.TokensClient.Refresh.g.cs | 6 +- .../LabelStudio.TokensClient.Rotate.g.cs | 10 +- .../Generated/LabelStudio.TokensClient.g.cs | 2 +- .../LabelStudio.UsersClient.Create.g.cs | 6 +- .../LabelStudio.UsersClient.Get.g.cs | 4 +- ...abelStudio.UsersClient.GetCurrentUser.g.cs | 4 +- .../LabelStudio.UsersClient.GetHotkeys.g.cs | 4 +- .../LabelStudio.UsersClient.GetToken.g.cs | 4 +- .../LabelStudio.UsersClient.List.g.cs | 4 +- .../LabelStudio.UsersClient.ResetToken.g.cs | 4 +- .../LabelStudio.UsersClient.Update.g.cs | 6 +- ...lStudio.UsersClient.UpdateCurrentUser.g.cs | 6 +- ...LabelStudio.UsersClient.UpdateHotkeys.g.cs | 6 +- .../LabelStudio.UsersClient.Whoami.g.cs | 4 +- .../Generated/LabelStudio.UsersClient.g.cs | 2 +- .../LabelStudio.VersionsClient.Get.g.cs | 4 +- .../Generated/LabelStudio.VersionsClient.g.cs | 2 +- .../LabelStudio.ViewsClient.Create2.g.cs | 6 +- .../LabelStudio.ViewsClient.Get.g.cs | 4 +- .../LabelStudio.ViewsClient.List2.g.cs | 4 +- .../LabelStudio.ViewsClient.Update.g.cs | 6 +- .../LabelStudio.ViewsClient.UpdateOrder.g.cs | 2 +- .../Generated/LabelStudio.ViewsClient.g.cs | 2 +- .../LabelStudio.Webhooks2Client.Create.g.cs | 6 +- .../LabelStudio.Webhooks2Client.Get.g.cs | 4 +- .../LabelStudio.Webhooks2Client.Info.g.cs | 4 +- .../LabelStudio.Webhooks2Client.List.g.cs | 4 +- .../LabelStudio.Webhooks2Client.Update.g.cs | 6 +- .../LabelStudio.Webhooks2Client.g.cs | 2 +- ...udio.WebhooksClient.ApiWebhooksUpdate.g.cs | 6 +- .../Generated/LabelStudio.WebhooksClient.g.cs | 2 +- .../LabelStudio.Workspaces2Client.Create.g.cs | 6 +- .../LabelStudio.Workspaces2Client.Get.g.cs | 4 +- .../LabelStudio.Workspaces2Client.List.g.cs | 4 +- .../LabelStudio.Workspaces2Client.Update.g.cs | 6 +- .../LabelStudio.Workspaces2Client.g.cs | 2 +- .../LabelStudio.WorkspacesClient.Add.g.cs | 2 +- .../LabelStudio.WorkspacesClient.Create2.g.cs | 6 +- .../LabelStudio.WorkspacesClient.Delete3.g.cs | 4 +- .../LabelStudio.WorkspacesClient.List2.g.cs | 4 +- .../LabelStudio.WorkspacesClient.List3.g.cs | 4 +- .../LabelStudio.WorkspacesClient.List4.g.cs | 4 +- .../LabelStudio.WorkspacesClient.Post.g.cs | 6 +- .../LabelStudio.WorkspacesClient.g.cs | 2 +- 533 files changed, 5877 insertions(+), 1388 deletions(-) create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ActionsClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ActionsClient.Create.g.cs index 981908c..adb4415 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ActionsClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ActionsClient.Create.g.cs @@ -83,7 +83,7 @@ partial void ProcessCreateResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ActionsClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ActionsClient.List.g.cs index 4a1d68c..9e20c08 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ActionsClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ActionsClient.List.g.cs @@ -111,7 +111,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -141,7 +141,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ActionsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ActionsClient.g.cs index c83cefb..da338e4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ActionsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ActionsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class ActionsClient : global::LabelStudio.IActionsClient, /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ActivityLogsClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ActivityLogsClient.List.g.cs index c7796c8..13dda7d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ActivityLogsClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ActivityLogsClient.List.g.cs @@ -215,7 +215,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -245,7 +245,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ActivityLogsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ActivityLogsClient.g.cs index b602f69..d01661e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ActivityLogsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ActivityLogsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class ActivityLogsClient : global::LabelStudio.IActivityLo /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsKpisRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsKpisRetrieve.g.cs index 7e88fd6..d3c6813 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsKpisRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsKpisRetrieve.g.cs @@ -102,7 +102,7 @@ partial void ProcessApiAnalyticsKpisRetrieveResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -132,7 +132,7 @@ partial void ProcessApiAnalyticsKpisRetrieveResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsKpisRetrieve2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsKpisRetrieve2.g.cs index 0c81ab8..34870af 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsKpisRetrieve2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsKpisRetrieve2.g.cs @@ -232,7 +232,7 @@ partial void ProcessApiAnalyticsKpisRetrieve2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.KPIDetailResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.KPIDetailResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -262,7 +262,7 @@ partial void ProcessApiAnalyticsKpisRetrieve2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.KPIDetailResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.KPIDetailResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsCreate.g.cs index 5443667..20ab45d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsCreate.g.cs @@ -78,7 +78,7 @@ partial void ProcessApiAnalyticsViewsCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -127,7 +127,7 @@ partial void ProcessApiAnalyticsViewsCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AnalyticsView.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AnalyticsView.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -157,7 +157,7 @@ partial void ProcessApiAnalyticsViewsCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AnalyticsView.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AnalyticsView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsList.g.cs index b7d2eb7..d8b9a30 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsList.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsList.g.cs @@ -121,7 +121,7 @@ partial void ProcessApiAnalyticsViewsListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -151,7 +151,7 @@ partial void ProcessApiAnalyticsViewsListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsPartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsPartialUpdate.g.cs index 4977ec6..1124333 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsPartialUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsPartialUpdate.g.cs @@ -83,7 +83,7 @@ partial void ProcessApiAnalyticsViewsPartialUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -133,7 +133,7 @@ partial void ProcessApiAnalyticsViewsPartialUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AnalyticsView.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AnalyticsView.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -163,7 +163,7 @@ partial void ProcessApiAnalyticsViewsPartialUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AnalyticsView.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AnalyticsView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsRetrieve.g.cs index 41201f1..20dd208 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsRetrieve.g.cs @@ -118,7 +118,7 @@ partial void ProcessApiAnalyticsViewsRetrieveResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AnalyticsView.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AnalyticsView.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessApiAnalyticsViewsRetrieveResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AnalyticsView.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AnalyticsView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsUpdate.g.cs index e3a9289..360a1c2 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsUpdate.g.cs @@ -83,7 +83,7 @@ partial void ProcessApiAnalyticsViewsUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -133,7 +133,7 @@ partial void ProcessApiAnalyticsViewsUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AnalyticsView.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AnalyticsView.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -163,7 +163,7 @@ partial void ProcessApiAnalyticsViewsUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AnalyticsView.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AnalyticsView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.g.cs index ae839ac..3e003be 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class AnalyticsClient : global::LabelStudio.IAnalyticsClie /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.Delete.g.cs index 62fd541..70eeadd 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.Delete.g.cs @@ -131,7 +131,7 @@ partial void ProcessDeleteResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiAnnotationHistoryDestroyResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiAnnotationHistoryDestroyResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -161,7 +161,7 @@ partial void ProcessDeleteResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiAnnotationHistoryDestroyResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiAnnotationHistoryDestroyResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.List.g.cs index 67a0474..a207607 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.List.g.cs @@ -124,7 +124,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.ListForProject.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.ListForProject.g.cs index 60d14ae..ab9b323 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.ListForProject.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.ListForProject.g.cs @@ -130,7 +130,7 @@ partial void ProcessListForProjectResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.PaginatedAnnotationHistoryList.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.PaginatedAnnotationHistoryList.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessListForProjectResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedAnnotationHistoryList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedAnnotationHistoryList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.Retrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.Retrieve.g.cs index 8e8e2d2..a9fbd5a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.Retrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.Retrieve.g.cs @@ -114,7 +114,7 @@ partial void ProcessRetrieveResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AnnotationHistory.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AnnotationHistory.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessRetrieveResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AnnotationHistory.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AnnotationHistory.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.g.cs index f8704ec..f724c20 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class AnnotationHistoryClient : global::LabelStudio.IAnnot /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Create.g.cs index cd0899e..31ce3b7 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Create.g.cs @@ -82,7 +82,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -132,7 +132,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AnnotationReview.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AnnotationReview.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -162,7 +162,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AnnotationReview.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AnnotationReview.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Get.g.cs index 8ab9873..0a386e2 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Get.g.cs @@ -114,7 +114,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AnnotationReview.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AnnotationReview.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AnnotationReview.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AnnotationReview.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.List.g.cs index 75a1963..43091f9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.List.g.cs @@ -131,7 +131,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -161,7 +161,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Update.g.cs index 373b741..0d80651 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Update.g.cs @@ -79,7 +79,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AnnotationReview.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AnnotationReview.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AnnotationReview.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AnnotationReview.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.g.cs index 72c0bc7..6400cb8 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.g.cs @@ -33,7 +33,7 @@ public sealed partial class AnnotationReviews2Client : global::LabelStudio.IAnno /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviewsClient.ApiAnnotationReviewsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviewsClient.ApiAnnotationReviewsUpdate.g.cs index 06c0740..bff32d4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviewsClient.ApiAnnotationReviewsUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviewsClient.ApiAnnotationReviewsUpdate.g.cs @@ -79,7 +79,7 @@ partial void ProcessApiAnnotationReviewsUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessApiAnnotationReviewsUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AnnotationReview.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AnnotationReview.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessApiAnnotationReviewsUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AnnotationReview.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AnnotationReview.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviewsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviewsClient.g.cs index 6d2845b..d520914 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviewsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviewsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class AnnotationReviewsClient : global::LabelStudio.IAnnot /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Create.g.cs index 9881581..19d18db 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Create.g.cs @@ -86,7 +86,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -136,7 +136,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Annotation.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Annotation.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -166,7 +166,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Annotation.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Annotation.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.CreateBulk.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.CreateBulk.g.cs index bf19034..c40a88a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.CreateBulk.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.CreateBulk.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreateBulkResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCreateBulkResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateBulkResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.DeleteBulk.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.DeleteBulk.g.cs index 1401128..4a436f0 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.DeleteBulk.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.DeleteBulk.g.cs @@ -68,7 +68,7 @@ partial void ProcessDeleteBulkResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -183,7 +183,7 @@ partial void ProcessDeleteBulkResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiAnnotationsBulkDeleteCreateResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiAnnotationsBulkDeleteCreateResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -213,7 +213,7 @@ partial void ProcessDeleteBulkResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiAnnotationsBulkDeleteCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiAnnotationsBulkDeleteCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Get.g.cs index aaa0271..7d22d81 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Get.g.cs @@ -108,7 +108,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Annotation.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Annotation.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Annotation.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Annotation.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.List.g.cs index 351cd53..53076a9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.List.g.cs @@ -117,7 +117,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Update.g.cs index f729578..188a0bc 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Update.g.cs @@ -73,7 +73,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Annotation.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Annotation.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Annotation.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Annotation.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.g.cs index 8870f7c..6c222ac 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class AnnotationsClient : global::LabelStudio.IAnnotations /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AwsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AwsClient.g.cs index 29a71d5..2ba060f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AwsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AwsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class AwsClient : global::LabelStudio.IAwsClient, global:: /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.BillingClient.Info.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.BillingClient.Info.g.cs index 846e5e6..2c92158 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.BillingClient.Info.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.BillingClient.Info.g.cs @@ -108,7 +108,7 @@ partial void ProcessInfoResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.BillingInfoResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.BillingInfoResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessInfoResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.BillingInfoResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.BillingInfoResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.BillingClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.BillingClient.g.cs index f9a5a0e..9d3af94 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.BillingClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.BillingClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class BillingClient : global::LabelStudio.IBillingClient, /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.Create.g.cs index 3581f0e..8a239c6 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.Create.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Blueprint.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Blueprint.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Blueprint.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Blueprint.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.Update.g.cs index fe66782..4e9a40d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.Update.g.cs @@ -73,7 +73,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Blueprint.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Blueprint.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Blueprint.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Blueprint.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.g.cs index f99dc51..0f7e5ee 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.g.cs @@ -33,7 +33,7 @@ public sealed partial class Blueprints2Client : global::LabelStudio.IBlueprints2 /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.BlueprintsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.BlueprintsClient.g.cs index d59d0c0..9a7fd16 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.BlueprintsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.BlueprintsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class BlueprintsClient : global::LabelStudio.IBlueprintsCl /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Create.g.cs index ea59d48..d756e06 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Create.g.cs @@ -82,7 +82,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -132,7 +132,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.MaybeExpandedComment.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.MaybeExpandedComment.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -162,7 +162,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.MaybeExpandedComment.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.MaybeExpandedComment.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Get.g.cs index 87ec684..179bb6f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Get.g.cs @@ -123,7 +123,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.MaybeExpandedComment.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.MaybeExpandedComment.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.MaybeExpandedComment.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.MaybeExpandedComment.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.List.g.cs index 9dee962..f39acf6 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.List.g.cs @@ -154,7 +154,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -184,7 +184,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Update.g.cs index 2d5e6f8..74619c9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Update.g.cs @@ -87,7 +87,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -138,7 +138,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.MaybeExpandedComment.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.MaybeExpandedComment.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -168,7 +168,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.MaybeExpandedComment.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.MaybeExpandedComment.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.g.cs index 4fe0af4..1586a8e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.g.cs @@ -33,7 +33,7 @@ public sealed partial class Comments2Client : global::LabelStudio.IComments2Clie /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.CommentsClient.ApiCommentsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.CommentsClient.ApiCommentsUpdate.g.cs index 97d0966..20d415b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.CommentsClient.ApiCommentsUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.CommentsClient.ApiCommentsUpdate.g.cs @@ -87,7 +87,7 @@ partial void ProcessApiCommentsUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -138,7 +138,7 @@ partial void ProcessApiCommentsUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Comment.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Comment.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -168,7 +168,7 @@ partial void ProcessApiCommentsUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Comment.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Comment.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.CommentsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.CommentsClient.g.cs index 9528da5..3ece956 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.CommentsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.CommentsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class CommentsClient : global::LabelStudio.ICommentsClient /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsTasksRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsTasksRetrieve.g.cs index f31397b..e0723d5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsTasksRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsTasksRetrieve.g.cs @@ -147,7 +147,7 @@ partial void ProcessApiDatasetsTasksRetrieveResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.DatasetView.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.DatasetView.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -177,7 +177,7 @@ partial void ProcessApiDatasetsTasksRetrieveResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatasetView.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.DatasetView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.g.cs index f2c3739..1421696 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class DataExplorerClient : global::LabelStudio.IDataExplor /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DataManagerClient.ApiDmViewsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DataManagerClient.ApiDmViewsUpdate.g.cs index 269e88e..b0de1b5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DataManagerClient.ApiDmViewsUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DataManagerClient.ApiDmViewsUpdate.g.cs @@ -73,7 +73,7 @@ partial void ProcessApiDmViewsUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessApiDmViewsUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.View.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.View.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessApiDmViewsUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.View.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.View.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DataManagerClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DataManagerClient.g.cs index 873fe39..d922955 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DataManagerClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DataManagerClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class DataManagerClient : global::LabelStudio.IDataManager /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureCheckForRecordsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureCheckForRecordsCreate.g.cs index d1e1843..cbadb68 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureCheckForRecordsCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureCheckForRecordsCreate.g.cs @@ -68,7 +68,7 @@ partial void ProcessApiDatasetStoragesAzureCheckForRecordsCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessApiDatasetStoragesAzureCheckForRecordsCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AzureDatasetStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AzureDatasetStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessApiDatasetStoragesAzureCheckForRecordsCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureCreate.g.cs index 0b4b3c1..4307c23 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureCreate.g.cs @@ -68,7 +68,7 @@ partial void ProcessApiDatasetStoragesAzureCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessApiDatasetStoragesAzureCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AzureDatasetStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AzureDatasetStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessApiDatasetStoragesAzureCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureList.g.cs index 700cc97..6230c81 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureList.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureList.g.cs @@ -118,7 +118,7 @@ partial void ProcessApiDatasetStoragesAzureListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessApiDatasetStoragesAzureListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzurePartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzurePartialUpdate.g.cs index d6debd0..0c5da57 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzurePartialUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzurePartialUpdate.g.cs @@ -73,7 +73,7 @@ partial void ProcessApiDatasetStoragesAzurePartialUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessApiDatasetStoragesAzurePartialUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AzureDatasetStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AzureDatasetStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessApiDatasetStoragesAzurePartialUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureRetrieve.g.cs index 9cbca17..a324cf5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureRetrieve.g.cs @@ -108,7 +108,7 @@ partial void ProcessApiDatasetStoragesAzureRetrieveResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AzureDatasetStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AzureDatasetStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessApiDatasetStoragesAzureRetrieveResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureSyncCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureSyncCreate.g.cs index 81236a1..83bc0dd 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureSyncCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureSyncCreate.g.cs @@ -73,7 +73,7 @@ partial void ProcessApiDatasetStoragesAzureSyncCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessApiDatasetStoragesAzureSyncCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AzureDatasetStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AzureDatasetStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessApiDatasetStoragesAzureSyncCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureValidateCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureValidateCreate.g.cs index 8469d6b..ed61375 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureValidateCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureValidateCreate.g.cs @@ -68,7 +68,7 @@ partial void ProcessApiDatasetStoragesAzureValidateCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessApiDatasetStoragesAzureValidateCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AzureDatasetStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AzureDatasetStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessApiDatasetStoragesAzureValidateCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.g.cs index 0ea7286..422e7a9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class DatasetStorageAzureClient : global::LabelStudio.IDat /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsCheckForRecordsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsCheckForRecordsCreate.g.cs index ba12c9d..d9a27e3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsCheckForRecordsCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsCheckForRecordsCreate.g.cs @@ -68,7 +68,7 @@ partial void ProcessApiDatasetStoragesGcsCheckForRecordsCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessApiDatasetStoragesGcsCheckForRecordsCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.GCSDatasetStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.GCSDatasetStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessApiDatasetStoragesGcsCheckForRecordsCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsCreate.g.cs index 94a3673..4ea53a8 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsCreate.g.cs @@ -68,7 +68,7 @@ partial void ProcessApiDatasetStoragesGcsCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessApiDatasetStoragesGcsCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.GCSDatasetStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.GCSDatasetStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessApiDatasetStoragesGcsCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsList.g.cs index b852bb6..816b921 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsList.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsList.g.cs @@ -118,7 +118,7 @@ partial void ProcessApiDatasetStoragesGcsListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessApiDatasetStoragesGcsListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsPartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsPartialUpdate.g.cs index 6a07b3f..b64d0d2 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsPartialUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsPartialUpdate.g.cs @@ -73,7 +73,7 @@ partial void ProcessApiDatasetStoragesGcsPartialUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessApiDatasetStoragesGcsPartialUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.GCSDatasetStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.GCSDatasetStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessApiDatasetStoragesGcsPartialUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsRetrieve.g.cs index 740676e..c5ae18d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsRetrieve.g.cs @@ -108,7 +108,7 @@ partial void ProcessApiDatasetStoragesGcsRetrieveResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.GCSDatasetStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.GCSDatasetStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessApiDatasetStoragesGcsRetrieveResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsSyncCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsSyncCreate.g.cs index bca342c..0c533a7 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsSyncCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsSyncCreate.g.cs @@ -73,7 +73,7 @@ partial void ProcessApiDatasetStoragesGcsSyncCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessApiDatasetStoragesGcsSyncCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.GCSDatasetStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.GCSDatasetStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessApiDatasetStoragesGcsSyncCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsValidateCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsValidateCreate.g.cs index 425f7f2..25e09c7 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsValidateCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsValidateCreate.g.cs @@ -68,7 +68,7 @@ partial void ProcessApiDatasetStoragesGcsValidateCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessApiDatasetStoragesGcsValidateCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.GCSDatasetStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.GCSDatasetStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessApiDatasetStoragesGcsValidateCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.g.cs index 194fae6..a7f3283 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class DatasetStorageGcsClient : global::LabelStudio.IDatas /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3CheckForRecordsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3CheckForRecordsCreate.g.cs index 7d32a29..b477f7f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3CheckForRecordsCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3CheckForRecordsCreate.g.cs @@ -68,7 +68,7 @@ partial void ProcessApiDatasetStoragesS3CheckForRecordsCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessApiDatasetStoragesS3CheckForRecordsCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.S3DatasetStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.S3DatasetStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessApiDatasetStoragesS3CheckForRecordsCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Create.g.cs index de087c8..f727b99 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Create.g.cs @@ -68,7 +68,7 @@ partial void ProcessApiDatasetStoragesS3CreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessApiDatasetStoragesS3CreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.S3DatasetStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.S3DatasetStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessApiDatasetStoragesS3CreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3List.g.cs index 5cc23ef..2f1bec6 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3List.g.cs @@ -118,7 +118,7 @@ partial void ProcessApiDatasetStoragesS3ListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessApiDatasetStoragesS3ListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3PartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3PartialUpdate.g.cs index 432f90f..e3a091f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3PartialUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3PartialUpdate.g.cs @@ -73,7 +73,7 @@ partial void ProcessApiDatasetStoragesS3PartialUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessApiDatasetStoragesS3PartialUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.S3DatasetStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.S3DatasetStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessApiDatasetStoragesS3PartialUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Retrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Retrieve.g.cs index b7a1433..cc4c96b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Retrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Retrieve.g.cs @@ -108,7 +108,7 @@ partial void ProcessApiDatasetStoragesS3RetrieveResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.S3DatasetStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.S3DatasetStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessApiDatasetStoragesS3RetrieveResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3SyncCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3SyncCreate.g.cs index 60c96a5..cda3abc 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3SyncCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3SyncCreate.g.cs @@ -73,7 +73,7 @@ partial void ProcessApiDatasetStoragesS3SyncCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessApiDatasetStoragesS3SyncCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.S3DatasetStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.S3DatasetStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessApiDatasetStoragesS3SyncCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3ValidateCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3ValidateCreate.g.cs index 86978a5..776e316 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3ValidateCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3ValidateCreate.g.cs @@ -68,7 +68,7 @@ partial void ProcessApiDatasetStoragesS3ValidateCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessApiDatasetStoragesS3ValidateCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.S3DatasetStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.S3DatasetStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessApiDatasetStoragesS3ValidateCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.g.cs index 19c44cc..1c2e782 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.g.cs @@ -33,7 +33,7 @@ public sealed partial class DatasetStorageS3Client : global::LabelStudio.IDatase /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsCreate.g.cs index f4d088f..ccd512b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsCreate.g.cs @@ -68,7 +68,7 @@ partial void ProcessApiDatasetsCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessApiDatasetsCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Dataset.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Dataset.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessApiDatasetsCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Dataset.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Dataset.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsList.g.cs index fd96660..04f2e7b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsList.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsList.g.cs @@ -111,7 +111,7 @@ partial void ProcessApiDatasetsListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -141,7 +141,7 @@ partial void ProcessApiDatasetsListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersCreate.g.cs index 79ec981..ef6e4bc 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersCreate.g.cs @@ -73,7 +73,7 @@ partial void ProcessApiDatasetsMembersCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessApiDatasetsMembersCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.DatasetMember.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.DatasetMember.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessApiDatasetsMembersCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatasetMember.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.DatasetMember.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersList.g.cs index fcdf4d9..c705cac 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersList.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersList.g.cs @@ -117,7 +117,7 @@ partial void ProcessApiDatasetsMembersListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessApiDatasetsMembersListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsPartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsPartialUpdate.g.cs index 80d299d..b8761cc 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsPartialUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsPartialUpdate.g.cs @@ -73,7 +73,7 @@ partial void ProcessApiDatasetsPartialUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessApiDatasetsPartialUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Dataset.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Dataset.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessApiDatasetsPartialUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Dataset.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Dataset.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsRetrieve.g.cs index 30d00ef..8336948 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsRetrieve.g.cs @@ -108,7 +108,7 @@ partial void ProcessApiDatasetsRetrieveResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Dataset.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Dataset.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessApiDatasetsRetrieveResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Dataset.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Dataset.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsUpdate.g.cs index b4ba818..2ced43a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsUpdate.g.cs @@ -73,7 +73,7 @@ partial void ProcessApiDatasetsUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessApiDatasetsUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Dataset.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Dataset.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessApiDatasetsUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Dataset.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Dataset.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsCreate.g.cs index 8720ed9..11c44af 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsCreate.g.cs @@ -68,7 +68,7 @@ partial void ProcessApiDatasetsViewsCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessApiDatasetsViewsCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.DatasetView.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.DatasetView.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessApiDatasetsViewsCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatasetView.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.DatasetView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsList.g.cs index 4b418f6..0a6935d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsList.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsList.g.cs @@ -111,7 +111,7 @@ partial void ProcessApiDatasetsViewsListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -141,7 +141,7 @@ partial void ProcessApiDatasetsViewsListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsPartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsPartialUpdate.g.cs index 5f9591c..0ca9396 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsPartialUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsPartialUpdate.g.cs @@ -73,7 +73,7 @@ partial void ProcessApiDatasetsViewsPartialUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessApiDatasetsViewsPartialUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.DatasetView.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.DatasetView.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessApiDatasetsViewsPartialUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatasetView.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.DatasetView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsRetrieve.g.cs index 92ada4b..73102dd 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsRetrieve.g.cs @@ -108,7 +108,7 @@ partial void ProcessApiDatasetsViewsRetrieveResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.DatasetView.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.DatasetView.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessApiDatasetsViewsRetrieveResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatasetView.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.DatasetView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsUpdate.g.cs index 8d1e448..5750a3b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsUpdate.g.cs @@ -73,7 +73,7 @@ partial void ProcessApiDatasetsViewsUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessApiDatasetsViewsUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.DatasetView.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.DatasetView.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessApiDatasetsViewsUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatasetView.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.DatasetView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.g.cs index 10ed255..339e6b5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class DatasetsClient : global::LabelStudio.IDatasetsClient /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.CancelBackfill.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.CancelBackfill.g.cs index d5aa3b2..070040b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.CancelBackfill.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.CancelBackfill.g.cs @@ -112,13 +112,13 @@ partial void ProcessCancelBackfillResponseContent( if (ReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -150,13 +150,13 @@ partial void ProcessCancelBackfillResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); + __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); + __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -200,7 +200,7 @@ partial void ProcessCancelBackfillResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AgreementV2BackfillCancelResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AgreementV2BackfillCancelResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -230,7 +230,7 @@ partial void ProcessCancelBackfillResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AgreementV2BackfillCancelResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AgreementV2BackfillCancelResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Create.g.cs index b5717e2..2ba0308 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Create.g.cs @@ -79,7 +79,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Dimension.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Dimension.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Dimension.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Dimension.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Get.g.cs index e03d942..4b620f2 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Get.g.cs @@ -120,7 +120,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Dimension.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Dimension.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -150,7 +150,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Dimension.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Dimension.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.GetBackfillStatus.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.GetBackfillStatus.g.cs index cc152c0..cb2e9b4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.GetBackfillStatus.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.GetBackfillStatus.g.cs @@ -112,13 +112,13 @@ partial void ProcessGetBackfillStatusResponseContent( if (ReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -150,13 +150,13 @@ partial void ProcessGetBackfillStatusResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); + __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); + __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -200,7 +200,7 @@ partial void ProcessGetBackfillStatusResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AgreementV2BackfillJob.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AgreementV2BackfillJob.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -230,7 +230,7 @@ partial void ProcessGetBackfillStatusResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AgreementV2BackfillJob.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AgreementV2BackfillJob.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.List.g.cs index 227791b..d61d1cf 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.List.g.cs @@ -137,7 +137,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -167,7 +167,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.ListBackfills.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.ListBackfills.g.cs index 2416237..0fe98d4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.ListBackfills.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.ListBackfills.g.cs @@ -105,13 +105,13 @@ partial void ProcessListBackfillsResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); + __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); + __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -143,13 +143,13 @@ partial void ProcessListBackfillsResponseContent( if (ReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -193,7 +193,7 @@ partial void ProcessListBackfillsResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -223,7 +223,7 @@ partial void ProcessListBackfillsResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.TriggerBackfill.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.TriggerBackfill.g.cs index 69c9218..ac0e5e8 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.TriggerBackfill.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.TriggerBackfill.g.cs @@ -78,7 +78,7 @@ partial void ProcessTriggerBackfillResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -115,13 +115,13 @@ partial void ProcessTriggerBackfillResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); + __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); + __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -153,13 +153,13 @@ partial void ProcessTriggerBackfillResponseContent( if (ReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -191,13 +191,13 @@ partial void ProcessTriggerBackfillResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); + __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); + __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -241,7 +241,7 @@ partial void ProcessTriggerBackfillResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AgreementV2BackfillTriggerResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AgreementV2BackfillTriggerResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -271,7 +271,7 @@ partial void ProcessTriggerBackfillResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AgreementV2BackfillTriggerResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AgreementV2BackfillTriggerResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Update.g.cs index 4958f0c..2c6a953 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Update.g.cs @@ -84,7 +84,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -135,7 +135,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Dimension.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Dimension.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -165,7 +165,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Dimension.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Dimension.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.g.cs index fdd6059..1ba33f3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.g.cs @@ -33,7 +33,7 @@ public sealed partial class Dimensions2Client : global::LabelStudio.IDimensions2 /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DimensionsClient.ApiProjectsDimensionsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DimensionsClient.ApiProjectsDimensionsUpdate.g.cs index c2f1cc1..afeb8e2 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DimensionsClient.ApiProjectsDimensionsUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DimensionsClient.ApiProjectsDimensionsUpdate.g.cs @@ -84,7 +84,7 @@ partial void ProcessApiProjectsDimensionsUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -135,7 +135,7 @@ partial void ProcessApiProjectsDimensionsUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Dimension.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Dimension.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -165,7 +165,7 @@ partial void ProcessApiProjectsDimensionsUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Dimension.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Dimension.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DimensionsClient.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DimensionsClient.Get2.g.cs index 27288fa..55c570a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DimensionsClient.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DimensionsClient.Get2.g.cs @@ -135,7 +135,7 @@ partial void ProcessGet2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.TaskAgreementMatrixResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.TaskAgreementMatrixResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -165,7 +165,7 @@ partial void ProcessGet2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.TaskAgreementMatrixResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.TaskAgreementMatrixResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DimensionsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DimensionsClient.g.cs index 128da99..0e2d598 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DimensionsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DimensionsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class DimensionsClient : global::LabelStudio.IDimensionsCl /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Convert.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Convert.g.cs index c05a7d0..e906840 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Convert.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Convert.g.cs @@ -78,7 +78,7 @@ partial void ProcessConvertResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessConvertResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiProjectsExportsConvertCreateResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiProjectsExportsConvertCreateResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessConvertResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsExportsConvertCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsExportsConvertCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Create.g.cs index bf5c1f8..6e93ea5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Create.g.cs @@ -73,7 +73,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LseExportCreate.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LseExportCreate.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseExportCreate.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LseExportCreate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Get.g.cs index 0f3e50d..2277c60 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Get.g.cs @@ -114,7 +114,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Export.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Export.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Export.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Export.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.List.g.cs index 5523bb7..c072dce 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.List.g.cs @@ -117,7 +117,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.g.cs index 39cde5d..79dbe79 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class ExportClient : global::LabelStudio.IExportClient, gl /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IActionsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IActionsClient.g.cs index 71c266a..f7d515e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IActionsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IActionsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IActionsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IActivityLogsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IActivityLogsClient.g.cs index 1931f38..b454a48 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IActivityLogsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IActivityLogsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IActivityLogsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IAnalyticsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IAnalyticsClient.g.cs index 1a785a8..ad643c6 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IAnalyticsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IAnalyticsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IAnalyticsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IAnnotationHistoryClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IAnnotationHistoryClient.g.cs index fb584a9..30cae7c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IAnnotationHistoryClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IAnnotationHistoryClient.g.cs @@ -36,7 +36,7 @@ public partial interface IAnnotationHistoryClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IAnnotationReviews2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IAnnotationReviews2Client.g.cs index 63920f5..bacc7dd 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IAnnotationReviews2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IAnnotationReviews2Client.g.cs @@ -36,7 +36,7 @@ public partial interface IAnnotationReviews2Client : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IAnnotationReviewsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IAnnotationReviewsClient.g.cs index 85785f6..3e1af93 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IAnnotationReviewsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IAnnotationReviewsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IAnnotationReviewsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IAnnotationsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IAnnotationsClient.g.cs index 1ac2b48..6c98bb6 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IAnnotationsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IAnnotationsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IAnnotationsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IAwsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IAwsClient.g.cs index a491659..5658f09 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IAwsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IAwsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IAwsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IBillingClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IBillingClient.g.cs index 7cbfd8e..f3c04af 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IBillingClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IBillingClient.g.cs @@ -36,7 +36,7 @@ public partial interface IBillingClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IBlueprints2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IBlueprints2Client.g.cs index a4a5203..26e929b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IBlueprints2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IBlueprints2Client.g.cs @@ -36,7 +36,7 @@ public partial interface IBlueprints2Client : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IBlueprintsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IBlueprintsClient.g.cs index 0336f59..ad5d65c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IBlueprintsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IBlueprintsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IBlueprintsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IComments2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IComments2Client.g.cs index f9cc1e0..e73e24a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IComments2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IComments2Client.g.cs @@ -36,7 +36,7 @@ public partial interface IComments2Client : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ICommentsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ICommentsClient.g.cs index 2ac5275..0417dae 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ICommentsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ICommentsClient.g.cs @@ -36,7 +36,7 @@ public partial interface ICommentsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDataExplorerClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDataExplorerClient.g.cs index 9a48563..7d39beb 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDataExplorerClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IDataExplorerClient.g.cs @@ -36,7 +36,7 @@ public partial interface IDataExplorerClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDataManagerClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDataManagerClient.g.cs index 983c6a6..bf8ddf0 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDataManagerClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IDataManagerClient.g.cs @@ -36,7 +36,7 @@ public partial interface IDataManagerClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.g.cs index 7da2734..96eb2b8 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.g.cs @@ -36,7 +36,7 @@ public partial interface IDatasetStorageAzureClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.g.cs index 03d8e12..0604881 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IDatasetStorageGcsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.g.cs index 2c28d4b..a359632 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.g.cs @@ -36,7 +36,7 @@ public partial interface IDatasetStorageS3Client : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.g.cs index 57c5755..05a2b58 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IDatasetsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDimensions2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDimensions2Client.g.cs index 547b652..a21dacf 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDimensions2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IDimensions2Client.g.cs @@ -36,7 +36,7 @@ public partial interface IDimensions2Client : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDimensionsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDimensionsClient.g.cs index c9fdaee..0d73979 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IDimensionsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IDimensionsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IDimensionsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IExportClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IExportClient.g.cs index 934fec0..c867b29 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IExportClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IExportClient.g.cs @@ -36,7 +36,7 @@ public partial interface IExportClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IImportClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IImportClient.g.cs index 5187349..3dd4c2f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IImportClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IImportClient.g.cs @@ -36,7 +36,7 @@ public partial interface IImportClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IJwtSettingsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IJwtSettingsClient.g.cs index 0e73805..82d8469 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IJwtSettingsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IJwtSettingsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IJwtSettingsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ILabelStudioClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ILabelStudioClient.g.cs index 69447ba..df41915 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ILabelStudioClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ILabelStudioClient.g.cs @@ -37,7 +37,7 @@ public partial interface ILabelStudioClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ILabels2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ILabels2Client.g.cs index a1020cd..879814c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ILabels2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ILabels2Client.g.cs @@ -36,7 +36,7 @@ public partial interface ILabels2Client : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ILabelsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ILabelsClient.g.cs index 2991cba..3b0775a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ILabelsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ILabelsClient.g.cs @@ -36,7 +36,7 @@ public partial interface ILabelsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ILlmClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ILlmClient.g.cs index 9db0187..9462811 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ILlmClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ILlmClient.g.cs @@ -36,7 +36,7 @@ public partial interface ILlmClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IMlClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IMlClient.g.cs index 981d1bc..98dddac 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IMlClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IMlClient.g.cs @@ -36,7 +36,7 @@ public partial interface IMlClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IModelProviderConnectionClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IModelProviderConnectionClient.g.cs index 0944691..be68b3c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IModelProviderConnectionClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IModelProviderConnectionClient.g.cs @@ -36,7 +36,7 @@ public partial interface IModelProviderConnectionClient : global::System.IDispos /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IModelProvidersClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IModelProvidersClient.g.cs index 367430d..4a1cd00 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IModelProvidersClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IModelProvidersClient.g.cs @@ -36,7 +36,7 @@ public partial interface IModelProvidersClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IOrganizations2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IOrganizations2Client.g.cs index e2ddd5c..3b14bf6 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IOrganizations2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IOrganizations2Client.g.cs @@ -36,7 +36,7 @@ public partial interface IOrganizations2Client : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IOrganizationsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IOrganizationsClient.g.cs index 87e890c..ccf3dbb 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IOrganizationsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IOrganizationsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IOrganizationsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IPausesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPausesClient.g.cs index d213bb3..b836e89 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IPausesClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IPausesClient.g.cs @@ -36,7 +36,7 @@ public partial interface IPausesClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IPredictions2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPredictions2Client.g.cs index a3e424e..0709f94 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IPredictions2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IPredictions2Client.g.cs @@ -36,7 +36,7 @@ public partial interface IPredictions2Client : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IPredictionsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPredictionsClient.g.cs index 6109326..e4a0367 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IPredictionsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IPredictionsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IPredictionsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IProjectRolesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IProjectRolesClient.g.cs index aaf1532..d117b75 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IProjectRolesClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IProjectRolesClient.g.cs @@ -36,7 +36,7 @@ public partial interface IProjectRolesClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IProjectTemplatesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IProjectTemplatesClient.g.cs index bba1b05..057202b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IProjectTemplatesClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IProjectTemplatesClient.g.cs @@ -36,7 +36,7 @@ public partial interface IProjectTemplatesClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IProjects2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IProjects2Client.g.cs index 30f868c..ab497c2 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IProjects2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IProjects2Client.g.cs @@ -36,7 +36,7 @@ public partial interface IProjects2Client : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.g.cs index b093774..dc44466 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IProjectsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IPrompts2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPrompts2Client.g.cs index 61333d7..b17b9d3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IPrompts2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IPrompts2Client.g.cs @@ -36,7 +36,7 @@ public partial interface IPrompts2Client : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.g.cs index 31ea597..cb0c699 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IPromptsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ISessionPolicyClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ISessionPolicyClient.g.cs index 1e1def2..beb21ab 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ISessionPolicyClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ISessionPolicyClient.g.cs @@ -36,7 +36,7 @@ public partial interface ISessionPolicyClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ISsoClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ISsoClient.g.cs index a1d658b..aafe712 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ISsoClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ISsoClient.g.cs @@ -36,7 +36,7 @@ public partial interface ISsoClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStatesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStatesClient.g.cs index 744027e..96c861b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IStatesClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStatesClient.g.cs @@ -36,7 +36,7 @@ public partial interface IStatesClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStatsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStatsClient.g.cs index b0e4283..494ece2 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IStatsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStatsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IStatsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageAzureClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageAzureClient.g.cs index ac645e6..abcfa00 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IStorageAzureClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStorageAzureClient.g.cs @@ -36,7 +36,7 @@ public partial interface IStorageAzureClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageAzureSpiClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageAzureSpiClient.g.cs index b4b0758..ff6c299 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IStorageAzureSpiClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStorageAzureSpiClient.g.cs @@ -36,7 +36,7 @@ public partial interface IStorageAzureSpiClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageClient.g.cs index 91aad69..58298c3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IStorageClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStorageClient.g.cs @@ -36,7 +36,7 @@ public partial interface IStorageClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageDatabricksFilesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageDatabricksFilesClient.g.cs index 3598de7..6b5752f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IStorageDatabricksFilesClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStorageDatabricksFilesClient.g.cs @@ -36,7 +36,7 @@ public partial interface IStorageDatabricksFilesClient : global::System.IDisposa /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsClient.g.cs index 6dff929..687c765 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IStorageGcsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsWifClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsWifClient.g.cs index fe66d98..d985dfc 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsWifClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsWifClient.g.cs @@ -36,7 +36,7 @@ public partial interface IStorageGcsWifClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageLocalClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageLocalClient.g.cs index 1cf551f..aa6be8e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IStorageLocalClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStorageLocalClient.g.cs @@ -36,7 +36,7 @@ public partial interface IStorageLocalClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageRedisClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageRedisClient.g.cs index cf43196..23bc372 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IStorageRedisClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStorageRedisClient.g.cs @@ -36,7 +36,7 @@ public partial interface IStorageRedisClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageS3Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageS3Client.g.cs index 5ddb966..9ed5302 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IStorageS3Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStorageS3Client.g.cs @@ -36,7 +36,7 @@ public partial interface IStorageS3Client : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageS3RolesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageS3RolesClient.g.cs index f678f55..a363531 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IStorageS3RolesClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStorageS3RolesClient.g.cs @@ -36,7 +36,7 @@ public partial interface IStorageS3RolesClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ITasks2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ITasks2Client.g.cs index f343d00..ebe5287 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ITasks2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ITasks2Client.g.cs @@ -36,7 +36,7 @@ public partial interface ITasks2Client : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ITasksClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ITasksClient.g.cs index 248111a..77879d8 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ITasksClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ITasksClient.g.cs @@ -36,7 +36,7 @@ public partial interface ITasksClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ITokensClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ITokensClient.g.cs index 92eea46..a53d73d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ITokensClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ITokensClient.g.cs @@ -36,7 +36,7 @@ public partial interface ITokensClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IUsersClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IUsersClient.g.cs index 343b205..5fbf7c8 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IUsersClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IUsersClient.g.cs @@ -36,7 +36,7 @@ public partial interface IUsersClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IVersionsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IVersionsClient.g.cs index ff725c6..c14fab1 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IVersionsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IVersionsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IVersionsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IViewsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IViewsClient.g.cs index 5754e59..ecbae1a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IViewsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IViewsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IViewsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IWebhooks2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IWebhooks2Client.g.cs index b4cef37..0c9052b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IWebhooks2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IWebhooks2Client.g.cs @@ -36,7 +36,7 @@ public partial interface IWebhooks2Client : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IWebhooksClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IWebhooksClient.g.cs index aa5d550..db02176 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IWebhooksClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IWebhooksClient.g.cs @@ -36,7 +36,7 @@ public partial interface IWebhooksClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IWorkspaces2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IWorkspaces2Client.g.cs index 8d0f725..b02d847 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IWorkspaces2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IWorkspaces2Client.g.cs @@ -36,7 +36,7 @@ public partial interface IWorkspaces2Client : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IWorkspacesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IWorkspacesClient.g.cs index 284a0eb..8edaa23 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IWorkspacesClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IWorkspacesClient.g.cs @@ -36,7 +36,7 @@ public partial interface IWorkspacesClient : global::System.IDisposable /// /// /// - global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.Get.g.cs index f71c583..a4ed969 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.Get.g.cs @@ -108,7 +108,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.FileUpload.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.FileUpload.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.FileUpload.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.FileUpload.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.List.g.cs index 84811d9..dec0959 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.List.g.cs @@ -132,7 +132,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -162,7 +162,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.Update.g.cs index 67ecd51..b1f243d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.Update.g.cs @@ -73,7 +73,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.FileUpload.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.FileUpload.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.FileUpload.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.FileUpload.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.g.cs index d4dedaa..28c0ae4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class ImportClient : global::LabelStudio.IImportClient, gl /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.MaybeExpandedComment.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.MaybeExpandedComment.g.cs index 31cddd7..2b7a463 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.MaybeExpandedComment.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.MaybeExpandedComment.g.cs @@ -12,7 +12,8 @@ public class MaybeExpandedCommentJsonConverter : global::System.Text.Json.Serial global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -68,7 +69,9 @@ public class MaybeExpandedCommentJsonConverter : global::System.Text.Json.Serial { try { - comment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LabelStudio.Comment), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LabelStudio.Comment).Name}"); + comment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -81,7 +84,9 @@ public class MaybeExpandedCommentJsonConverter : global::System.Text.Json.Serial { try { - serializerWithUser = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LabelStudio.CommentSerializerWithExpandedUser), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LabelStudio.CommentSerializerWithExpandedUser).Name}"); + serializerWithUser = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -96,7 +101,9 @@ public class MaybeExpandedCommentJsonConverter : global::System.Text.Json.Serial { try { - comment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LabelStudio.Comment), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LabelStudio.Comment).Name}"); + comment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -107,7 +114,9 @@ public class MaybeExpandedCommentJsonConverter : global::System.Text.Json.Serial try { - serializerWithUser = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LabelStudio.CommentSerializerWithExpandedUser), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LabelStudio.CommentSerializerWithExpandedUser).Name}"); + serializerWithUser = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -132,15 +141,20 @@ public override void Write( global::LabelStudio.MaybeExpandedComment value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); if (value.IsComment) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Comment, typeof(global::LabelStudio.Comment), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LabelStudio.Comment), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LabelStudio.Comment).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Comment!, typeInfo); } else if (value.IsSerializerWithUser) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SerializerWithUser, typeof(global::LabelStudio.CommentSerializerWithExpandedUser), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LabelStudio.CommentSerializerWithExpandedUser), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LabelStudio.CommentSerializerWithExpandedUser).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SerializerWithUser!, typeInfo); } } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.OneOf2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.OneOf2.g.cs index 5d92e62..e652719 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.OneOf2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.OneOf2.g.cs @@ -3,7 +3,7 @@ namespace LabelStudio.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::LabelStudio.OneOf Read( @@ -11,7 +11,8 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -26,7 +27,27 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization } var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -41,7 +62,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization try { - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -56,7 +79,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization try { - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -72,7 +97,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization try { - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -84,7 +111,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization try { - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -109,15 +138,20 @@ public override void Write( global::LabelStudio.OneOf value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); if (value.IsValue1) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); } else if (value.IsValue2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); } } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.OneOf6.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.OneOf6.g.cs index 3c8fe24..3428685 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.OneOf6.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.OneOf6.g.cs @@ -3,7 +3,7 @@ namespace LabelStudio.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.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T3, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T4, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T5, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T6> : global::System.Text.Json.Serialization.JsonConverter> { /// public override global::LabelStudio.OneOf Read( @@ -11,7 +11,8 @@ public class OneOfJsonConverter : global::System.Text.Js global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -26,11 +27,71 @@ public class OneOfJsonConverter : global::System.Text.Js } var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } var __score2 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T3), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score2++; + } + } + } var __score3 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T4), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score3++; + } + } + } var __score4 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T5), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score4++; + } + } + } var __score5 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T6), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score5++; + } + } + } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -53,7 +114,9 @@ public class OneOfJsonConverter : global::System.Text.Js try { - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -68,7 +131,9 @@ public class OneOfJsonConverter : global::System.Text.Js try { - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -83,7 +148,9 @@ public class OneOfJsonConverter : global::System.Text.Js try { - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -98,7 +165,9 @@ public class OneOfJsonConverter : global::System.Text.Js try { - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); + value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -113,7 +182,9 @@ public class OneOfJsonConverter : global::System.Text.Js try { - value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); + value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -128,7 +199,9 @@ public class OneOfJsonConverter : global::System.Text.Js try { - value6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); + value6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -144,7 +217,9 @@ public class OneOfJsonConverter : global::System.Text.Js try { - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -156,7 +231,9 @@ public class OneOfJsonConverter : global::System.Text.Js try { - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -168,7 +245,9 @@ public class OneOfJsonConverter : global::System.Text.Js try { - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -180,7 +259,9 @@ public class OneOfJsonConverter : global::System.Text.Js try { - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); + value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -192,7 +273,9 @@ public class OneOfJsonConverter : global::System.Text.Js try { - value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); + value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -204,7 +287,9 @@ public class OneOfJsonConverter : global::System.Text.Js try { - value6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); + value6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -237,31 +322,44 @@ public override void Write( global::LabelStudio.OneOf value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); if (value.IsValue1) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); } else if (value.IsValue2) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); } else if (value.IsValue3) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeof(T3), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); } else if (value.IsValue4) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4, typeof(T4), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); } else if (value.IsValue5) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5, typeof(T5), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); } else if (value.IsValue6) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6, typeof(T6), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6!, typeInfo); } } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.RoleBasedTask.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.RoleBasedTask.g.cs index f428e8d..81d7e90 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.RoleBasedTask.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.RoleBasedTask.g.cs @@ -12,7 +12,8 @@ public class RoleBasedTaskJsonConverter : global::System.Text.Json.Serialization global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -155,7 +156,9 @@ public class RoleBasedTaskJsonConverter : global::System.Text.Json.Serialization { try { - lse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LabelStudio.LseTask), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LabelStudio.LseTask).Name}"); + lse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -168,7 +171,9 @@ public class RoleBasedTaskJsonConverter : global::System.Text.Json.Serialization { try { - lseSerializerForReviewers = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LabelStudio.LseTaskSerializerForReviewers), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LabelStudio.LseTaskSerializerForReviewers).Name}"); + lseSerializerForReviewers = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -181,7 +186,9 @@ public class RoleBasedTaskJsonConverter : global::System.Text.Json.Serialization { try { - lseSerializerForAnnotators = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LabelStudio.LseTaskSerializerForAnnotators), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LabelStudio.LseTaskSerializerForAnnotators).Name}"); + lseSerializerForAnnotators = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -196,7 +203,9 @@ public class RoleBasedTaskJsonConverter : global::System.Text.Json.Serialization { try { - lse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LabelStudio.LseTask), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LabelStudio.LseTask).Name}"); + lse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -207,7 +216,9 @@ public class RoleBasedTaskJsonConverter : global::System.Text.Json.Serialization try { - lseSerializerForReviewers = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LabelStudio.LseTaskSerializerForReviewers), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LabelStudio.LseTaskSerializerForReviewers).Name}"); + lseSerializerForReviewers = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -218,7 +229,9 @@ public class RoleBasedTaskJsonConverter : global::System.Text.Json.Serialization try { - lseSerializerForAnnotators = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LabelStudio.LseTaskSerializerForAnnotators), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LabelStudio.LseTaskSerializerForAnnotators).Name}"); + lseSerializerForAnnotators = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -245,19 +258,26 @@ public override void Write( global::LabelStudio.RoleBasedTask value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); if (value.IsLse) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Lse, typeof(global::LabelStudio.LseTask), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LabelStudio.LseTask), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LabelStudio.LseTask).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Lse!, typeInfo); } else if (value.IsLseSerializerForReviewers) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LseSerializerForReviewers, typeof(global::LabelStudio.LseTaskSerializerForReviewers), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LabelStudio.LseTaskSerializerForReviewers), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LabelStudio.LseTaskSerializerForReviewers).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LseSerializerForReviewers!, typeInfo); } else if (value.IsLseSerializerForAnnotators) { - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LseSerializerForAnnotators, typeof(global::LabelStudio.LseTaskSerializerForAnnotators), options); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::LabelStudio.LseTaskSerializerForAnnotators), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::LabelStudio.LseTaskSerializerForAnnotators).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LseSerializerForAnnotators!, typeInfo); } } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs new file mode 100644 index 0000000..a367347 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs @@ -0,0 +1,1177 @@ + +#nullable enable + +#pragma warning disable CS0618 // Type or member is obsolete +#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant + +namespace LabelStudio +{ + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + Converters = new global::System.Type[] + { + typeof(global::LabelStudio.JsonConverters.ActionEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ActionEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ActionsEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ActionsEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.AgreementMethodologyEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.AgreementMethodologyEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.AgreementV2BackfillJobStatusEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.AgreementV2BackfillJobStatusEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.AnnotatedEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.AnnotatedEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.AuthMethodEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.AuthMethodEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.AuthTypeEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.AuthTypeEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.BudgetResetPeriodEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.BudgetResetPeriodEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.DashboardTypeEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.DashboardTypeEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.Default165EnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.Default165EnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.EditionEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.EditionEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.FinishedEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.FinishedEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.LabelStreamTaskDistributionEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.LabelStreamTaskDistributionEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.LastActionEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.LastActionEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ModeEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ModeEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ModelRunStatusEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ModelRunStatusEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.OnboardingStateEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.OnboardingStateEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.Options165EnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.Options165EnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.OrganizationMemberTagImportStatusStatusEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.OrganizationMemberTagImportStatusStatusEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ProjectGroupRoleEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ProjectGroupRoleEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ProjectSubsetEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ProjectSubsetEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.PromptsStatusEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.PromptsStatusEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ProviderEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ProviderEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ReasonEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ReasonEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.RequeueRejectedTasksModeEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.RequeueRejectedTasksModeEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ReviewCriteriaEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ReviewCriteriaEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ReviewSettingsSamplingEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ReviewSettingsSamplingEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ReviewedEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ReviewedEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.Role9e7EnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.Role9e7EnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.SamplingDe5EnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.SamplingDe5EnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ScopeEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ScopeEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.SegmentationEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.SegmentationEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.SkillNameEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.SkillNameEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.SkipQueueEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.SkipQueueEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.SkippedEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.SkippedEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.StateEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.StateEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.Status7bfEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.Status7bfEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.StatusC5aEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.StatusC5aEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.TrialRoleEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.TrialRoleEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.TypeEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.TypeEnumNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmActionsCreateRequestFiltersConjunctionJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmActionsCreateRequestFiltersConjunctionNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmActionsCreateRequestFiltersItemFilterJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmActionsCreateRequestFiltersItemFilterNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmActionsCreateRequestFiltersItemOperatorJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmActionsCreateRequestFiltersItemOperatorNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmActionsCreateRequestOrderingItemJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmActionsCreateRequestOrderingItemNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmViewsCreateRequestDataFiltersConjunctionJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmViewsCreateRequestDataFiltersConjunctionNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmViewsCreateRequestDataFiltersItemFilterJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmViewsCreateRequestDataFiltersItemFilterNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmViewsCreateRequestDataFiltersItemOperatorJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmViewsCreateRequestDataFiltersItemOperatorNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmViewsCreateRequestDataOrderingItemJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmViewsCreateRequestDataOrderingItemNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmViewsPartialUpdateRequestDataFiltersConjunctionJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmViewsPartialUpdateRequestDataFiltersConjunctionNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmViewsPartialUpdateRequestDataFiltersItemFilterJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmViewsPartialUpdateRequestDataFiltersItemFilterNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmViewsPartialUpdateRequestDataFiltersItemOperatorJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmViewsPartialUpdateRequestDataFiltersItemOperatorNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmViewsPartialUpdateRequestDataOrderingItemJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmViewsPartialUpdateRequestDataOrderingItemNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmViewsUpdateRequestDataFiltersConjunctionJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmViewsUpdateRequestDataFiltersConjunctionNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmViewsUpdateRequestDataFiltersItemFilterJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmViewsUpdateRequestDataFiltersItemFilterNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmViewsUpdateRequestDataFiltersItemOperatorJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmViewsUpdateRequestDataFiltersItemOperatorNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmViewsUpdateRequestDataOrderingItemJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmViewsUpdateRequestDataOrderingItemNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiLlmOpenaiChatCompletionsCreateRequestMessageRoleJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiLlmOpenaiChatCompletionsCreateRequestMessageRoleNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiMlCreateRequestAuthMethodJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiMlCreateRequestAuthMethodNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiMlPartialUpdateRequestAuthMethodJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiMlPartialUpdateRequestAuthMethodNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesCreateRequestFiltersConjunctionJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesCreateRequestFiltersConjunctionNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesCreateRequestFiltersItemFilterJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesCreateRequestFiltersItemFilterNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesCreateRequestFiltersItemOperatorJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesCreateRequestFiltersItemOperatorNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesCreateRequestTypeJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesCreateRequestTypeNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesPartialUpdateRequestTypeJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesPartialUpdateRequestTypeNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesCreate2RequestTypeJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesCreate2RequestTypeNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiActivityLogsListMethodJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiActivityLogsListMethodNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmActionsCreateIdJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiDmActionsCreateIdNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesDestroyTypeJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesDestroyTypeNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiPromptsCompatibleProjectsListProjectTypeJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiPromptsCompatibleProjectsListProjectTypeNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiPromptsVersionsInferenceRunsListProjectSubsetJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiPromptsVersionsInferenceRunsListProjectSubsetNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiTasksListFieldsJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiTasksListFieldsNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiProjectsAwsCustomFunctionRetrieveResponseStatusJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiProjectsAwsCustomFunctionRetrieveResponseStatusNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.MaybeExpandedCommentJsonConverter), + + typeof(global::LabelStudio.JsonConverters.RoleBasedTaskJsonConverter), + + typeof(global::LabelStudio.JsonConverters.OneOfJsonConverter), + + typeof(global::LabelStudio.JsonConverters.OneOfJsonConverter), + + typeof(global::LabelStudio.JsonConverters.OneOfJsonConverter), + + typeof(global::LabelStudio.JsonConverters.OneOfJsonConverter), + + typeof(global::LabelStudio.JsonConverters.OneOfJsonConverter), + + typeof(global::LabelStudio.JsonConverters.OneOfJsonConverter), + + typeof(global::LabelStudio.JsonConverters.OneOfJsonConverter), + + typeof(global::LabelStudio.JsonConverters.OneOfJsonConverter>), + + typeof(global::LabelStudio.JsonConverters.OneOfJsonConverter>, global::System.Collections.Generic.Dictionary>>>), + + typeof(global::LabelStudio.JsonConverters.OneOfJsonConverter>, global::System.Collections.Generic.Dictionary>>>), + + typeof(global::LabelStudio.JsonConverters.OneOfJsonConverter>), + + typeof(global::LabelStudio.JsonConverters.OneOfJsonConverter>), + + typeof(global::LabelStudio.JsonConverters.OneOfJsonConverter), + + typeof(global::LabelStudio.JsonConverters.OneOfJsonConverter>), + + typeof(global::LabelStudio.JsonConverters.OneOfJsonConverter>), + + typeof(global::LabelStudio.JsonConverters.OneOfJsonConverter>), + + typeof(global::LabelStudio.JsonConverters.OneOfJsonConverter>), + + typeof(global::LabelStudio.JsonConverters.OneOfJsonConverter>), + + typeof(global::LabelStudio.JsonConverters.OneOfJsonConverter>), + + typeof(global::LabelStudio.JsonConverters.OneOfJsonConverter>), + + typeof(global::LabelStudio.JsonConverters.UnixTimestampJsonConverter), + })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.JsonSerializerContextTypes))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AWSCustomFunctionUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ActionEnum), TypeInfoPropertyName = "ActionEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ActionsEnum), TypeInfoPropertyName = "ActionsEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ActivityLog))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ActivityLogResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AgreementMethodologyEnum), TypeInfoPropertyName = "AgreementMethodologyEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AgreementSelectionGroupRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AgreementSelectionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AgreementV2BackfillCancelResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AgreementV2BackfillJob))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AgreementV2BackfillJobStatusEnum), TypeInfoPropertyName = "AgreementV2BackfillJobStatusEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AgreementV2BackfillTriggerRequestRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AgreementV2BackfillTriggerResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AllRolesProjectList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AssignmentSettings))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.BlueprintList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ControlTagWeight))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.UserSimple))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ReviewSettings))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.SamplingDe5Enum), TypeInfoPropertyName = "SamplingDe5Enum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.SkipQueueEnum), TypeInfoPropertyName = "SkipQueueEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AnalyticsView))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DashboardTypeEnum), TypeInfoPropertyName = "DashboardTypeEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AnalyticsViewRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AnnotatedEnum), TypeInfoPropertyName = "AnnotatedEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Annotation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LastActionEnum), TypeInfoPropertyName = "LastActionEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AnnotationBulkDeleteRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AnnotationBulkSerializerWithSelectedItemsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.SelectedItemsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AnnotationHistory))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AnnotationRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AnnotationReview))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AnnotationReviewRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LabelStreamTaskDistributionEnum), TypeInfoPropertyName = "LabelStreamTaskDistributionEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AssignmentSettingsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AssociatedProject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AuthMethodEnum), TypeInfoPropertyName = "AuthMethodEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AuthTypeEnum), TypeInfoPropertyName = "AuthTypeEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AzureBlobExportStorage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.StatusC5aEnum), TypeInfoPropertyName = "StatusC5aEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AzureBlobImportStorage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AzureDatasetStorage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AzureDatasetStorageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AzureServicePrincipalExportStorage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AzureServicePrincipalExportStorageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AzureServicePrincipalImportStorage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.AzureServicePrincipalImportStorageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.BatchFailedPredictions))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.BatchFailedPredictionsRequestRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.BatchPredictions))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.BatchPredictionsRequestRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.BillingChecks))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.CountLimit))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PromptsStatusEnum), TypeInfoPropertyName = "PromptsStatusEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.BillingFlags))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.BillingInfoResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Blueprint))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.BlueprintRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.BudgetResetPeriodEnum), TypeInfoPropertyName = "BudgetResetPeriodEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.BulkOrganizationMemberTagAssignmentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.CancelModelRunResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.CheckMatchingFunctionRequestRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ChildFilter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ChildFilterRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Comment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.CommentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.CommentSerializerWithExpandedUser))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseUser))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ConfigurablePermissionOption))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Role9e7Enum), TypeInfoPropertyName = "Role9e7Enum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ControlTagWeightRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ConvertedFormat))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Status7bfEnum), TypeInfoPropertyName = "Status7bfEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ConvertedFormatRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatabricksExportStorage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatabricksExportStorageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatabricksImportStorage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatabricksImportStorageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Dataset))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetMember))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetMemberRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.UserSimpleRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetView))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FilterGroup))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatasetViewRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FilterGroupRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Default165Enum), TypeInfoPropertyName = "Default165Enum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DefaultRole))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Dimension))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DimensionCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DimensionList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DimensionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.EditionEnum), TypeInfoPropertyName = "EditionEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Export))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ExportConvertRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FSMTransitionExecuteRequestRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FSMTransitionExecuteResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.StateModel))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FileUpload))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Filter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FilterRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FinishedEnum), TypeInfoPropertyName = "FinishedEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCSDatasetStorage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCSDatasetStorageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCSExportStorage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCSImportStorage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCSWIFExportStorage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCSWIFExportStorageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCSWIFImportStorage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCSWIFImportStorageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Hotkeys))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ImportApiRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PredictionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.InferenceRunCostEstimate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.KPIDetailResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.KPIProjectSegment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.KPIUserSegment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.KPIMatrixSegment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.KPIProjectMatrixSegment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.SegmentationEnum), TypeInfoPropertyName = "SegmentationEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.KPITimeSegment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.KPIValue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.KPIUserInfo))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.KPIMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.KPIProjectInfo))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LSAPITokenBlacklistRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LSAPITokenRotateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LSEAPITokenCreate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LSEAPITokenList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LSEJWTSettings))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LSEJWTSettingsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LSEKeyIndicatorValue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Label))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LabelCreate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LabelCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LabelDistributionCountsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LabelDistributionCountsRow))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LabelDistributionCountsTotals))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LabelDistributionStructureDimension))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LabelDistributionStructureResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LabelLink))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LabelLinkRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LocalFilesExportStorage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LocalFilesImportStorage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseAnnotationFilterOptions))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ReviewedEnum), TypeInfoPropertyName = "ReviewedEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseAnnotationFilterOptionsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseExportCreate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.SerializationOptions))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseTaskFilterOptions))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseExportCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.SerializationOptionsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseTaskFilterOptionsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseFields))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OnboardingStateEnum), TypeInfoPropertyName = "OnboardingStateEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.TrialRoleEnum), TypeInfoPropertyName = "TrialRoleEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseFieldsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseOrganization))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OrganizationBilling))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseOrganizationMemberList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseOrganizationMemberListContributedToProject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseOrganizationMemberListCreatedProject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.SimpleOrganizationMemberTag))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseUserOrganizationMemberList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseProject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseProjectCounts))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseProjectCreate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseProjectCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseProjectParams))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseProjectParamsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseProjectResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseProjectUpdate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseS3ExportStorage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseS3ExportStorageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseS3ImportStorage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseS3ImportStorageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseTask))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseTaskDraft))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseTaskPrediction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.SkippedEnum), TypeInfoPropertyName = "SkippedEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseTaskRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseTaskSerializerForAnnotators))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseTaskSerializerForAnnotatorsDraft))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseTaskSerializerForAnnotatorsPrediction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseTaskSerializerForReviewers))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseTaskSerializerForReviewersDraft))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseTaskSerializerForReviewersPrediction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OrganizationMembership))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseUserAPI))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseUserOrganizationMemberListContributedToProject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseUserOrganizationMemberListCreatedProject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.MLBackend))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.StateEnum), TypeInfoPropertyName = "StateEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.MLBackendRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.MLInteractiveAnnotatingRequestRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.MaybeExpandedComment), TypeInfoPropertyName = "MaybeExpandedComment2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.MetricParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.MetricParamUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ModeEnum), TypeInfoPropertyName = "ModeEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ModelInterface))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.SkillNameEnum), TypeInfoPropertyName = "SkillNameEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ModelInterfaceRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ModelInterfaceSerializerGET))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ModelProviderConnection))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProviderEnum), TypeInfoPropertyName = "ProviderEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ScopeEnum), TypeInfoPropertyName = "ScopeEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ModelProviderConnectionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ModelRun))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectSubsetEnum), TypeInfoPropertyName = "ProjectSubsetEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ModelRunStatusEnum), TypeInfoPropertyName = "ModelRunStatusEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ModelRunRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Options165Enum), TypeInfoPropertyName = "Options165Enum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OrganizationId))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OrganizationInvite))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OrganizationMember))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OrganizationMemberContributedToProject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OrganizationMemberCreatedProject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OrganizationMemberTag))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OrganizationMemberTagBulkCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OrganizationMemberTagImportCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OrganizationMemberTagImportStatus))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OrganizationMemberTagImportStatusStatusEnum), TypeInfoPropertyName = "OrganizationMemberTagImportStatusStatusEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OrganizationMemberTagRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OrganizationMembershipRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OrganizationPermission))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OrganizationPermissionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PaginatedAllRolesProjectListList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PaginatedAnnotationHistoryList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PaginatedLabelCreateList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PaginatedLabelLinkList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PaginatedLabelList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PaginatedLseOrganizationMemberListList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PaginatedLseProjectCountsList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PaginatedLseUserList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PaginatedOrganizationMemberTagList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PaginatedPaginatedProjectMemberList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PaginatedProjectMember))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PaginatedProjectSubsetTasksResponseList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectSubsetTasksResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PaginatedRoleBasedTaskList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.RoleBasedTask), TypeInfoPropertyName = "RoleBasedTask2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PaginatedStateModelList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedAnalyticsViewRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedAnnotationReviewRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedAzureDatasetStorageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedAzureServicePrincipalExportStorageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedAzureServicePrincipalImportStorageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedBlueprintUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedCommentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedDatabricksExportStorageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedDatabricksImportStorageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedDatasetRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedDatasetViewRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedDefaultRoleRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedDimensionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedFileUploadRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedGCSDatasetStorageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedGCSWIFExportStorageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedGCSWIFImportStorageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedHotkeysRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedLabelLinkRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedLabelRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedLseOrganizationSerializerUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedLseProjectUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ReviewSettingsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedLseS3ExportStorageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedLseS3ImportStorageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedLseTaskRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedLseUserSerializerUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedModelInterfaceRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedModelProviderConnectionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedOrganizationMemberCreateUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedOrganizationMemberTagRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedOrganizationPermissionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedPauseRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ReasonEnum), TypeInfoPropertyName = "ReasonEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedProjectTemplateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedS3DatasetStorageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedSessionTimeoutPolicyRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedThirdPartyModelVersionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedWebhookSerializerForUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedWorkspaceRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Pause))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PauseRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Prediction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Project))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectDuplicateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectGroup))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectGroupRoleEnum), TypeInfoPropertyName = "ProjectGroupRoleEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectGroupRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectImport))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectLabelConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectLabelConfigRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectMember))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectMemberBulkAssignRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectMemberBulkAssignRolesRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectMemberRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectReimport))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectRole))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectRoleRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectSubsetItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectSubsetTaskItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectTemplate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectTemplateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.RedisExportStorage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.RedisImportStorage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.RefinePromptRequestRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.RefinedPromptResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ThirdPartyModelVersion))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.RequeueRejectedTasksModeEnum), TypeInfoPropertyName = "RequeueRejectedTasksModeEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ReviewCriteriaEnum), TypeInfoPropertyName = "ReviewCriteriaEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ReviewSettingsSamplingEnum), TypeInfoPropertyName = "ReviewSettingsSamplingEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.RevokeInviteRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.S3DatasetStorage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.S3DatasetStorageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.S3ExportStorage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.S3ImportStorage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.SamlSettings))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.SamlSettingsUpdate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.SamlSettingsUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ScimSettings))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ScimSettingsUpdate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ScimSettingsUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.SendInviteRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.SerializationOption))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.SerializationOptionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.SessionTimeoutPolicy))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.StateBackfillCancelResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.StateBackfillJobItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.StateBackfillJobItemResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.StateBackfillProgress))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.StateTriggeredBy))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.StateBackfillJobListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.StateBackfillOrgStatus))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.StateBackfillResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.StateBackfillStatusResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.TriggeredBy))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.TaskAgreementMatrixResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.TaskAssignment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.TypeEnum), TypeInfoPropertyName = "TypeEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.TaskEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.TaskEventRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.TaskSimple))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ThirdPartyModelVersionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.TokenRefreshRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.TokenRefreshResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.TokenRotateResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ValidateSamlMetadataUrlRequestRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ValidateSamlMetadataUrlResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.VersionResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.View))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ViewOrderRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Webhook))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.WebhookRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.WebhookSerializerForUpdate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.WebhookSerializerForUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.WhoAmILseFields))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.WhoAmIUser))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Workspace))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.WorkspaceMemberBulkAssignRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.WorkspaceMemberCreate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.WorkspaceMemberCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.WorkspaceMemberList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.WorkspaceProjectsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.WorkspaceRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiAnnotationsPartialUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmActionsCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmActionsCreateRequestFilters))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmActionsCreateRequestFiltersConjunction), TypeInfoPropertyName = "ApiDmActionsCreateRequestFiltersConjunction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmActionsCreateRequestFiltersItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmActionsCreateRequestFiltersItemFilter), TypeInfoPropertyName = "ApiDmActionsCreateRequestFiltersItemFilter2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmActionsCreateRequestFiltersItemOperator), TypeInfoPropertyName = "ApiDmActionsCreateRequestFiltersItemOperator2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf), TypeInfoPropertyName = "OneOfStringInt32SingleBooleanObjectObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(float))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmActionsCreateRequestOrderingItem), TypeInfoPropertyName = "ApiDmActionsCreateRequestOrderingItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf), TypeInfoPropertyName = "OneOfApiDmActionsCreateRequestSelectedItemsAllFalseApiDmActionsCreateRequestSelectedItemsAllTrue2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmActionsCreateRequestSelectedItemsAllFalse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmActionsCreateRequestSelectedItemsAllTrue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmViewsCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmViewsCreateRequestData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmViewsCreateRequestDataFilters))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmViewsCreateRequestDataFiltersConjunction), TypeInfoPropertyName = "ApiDmViewsCreateRequestDataFiltersConjunction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmViewsCreateRequestDataFiltersItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmViewsCreateRequestDataFiltersItemFilter), TypeInfoPropertyName = "ApiDmViewsCreateRequestDataFiltersItemFilter2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmViewsCreateRequestDataFiltersItemOperator), TypeInfoPropertyName = "ApiDmViewsCreateRequestDataFiltersItemOperator2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmViewsCreateRequestDataOrderingItem), TypeInfoPropertyName = "ApiDmViewsCreateRequestDataOrderingItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmViewsPartialUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmViewsPartialUpdateRequestData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFilters))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFiltersConjunction), TypeInfoPropertyName = "ApiDmViewsPartialUpdateRequestDataFiltersConjunction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFiltersItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFiltersItemFilter), TypeInfoPropertyName = "ApiDmViewsPartialUpdateRequestDataFiltersItemFilter2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFiltersItemOperator), TypeInfoPropertyName = "ApiDmViewsPartialUpdateRequestDataFiltersItemOperator2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmViewsPartialUpdateRequestDataOrderingItem), TypeInfoPropertyName = "ApiDmViewsPartialUpdateRequestDataOrderingItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmViewsUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmViewsUpdateRequestData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmViewsUpdateRequestDataFilters))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmViewsUpdateRequestDataFiltersConjunction), TypeInfoPropertyName = "ApiDmViewsUpdateRequestDataFiltersConjunction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmViewsUpdateRequestDataFiltersItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmViewsUpdateRequestDataFiltersItemFilter), TypeInfoPropertyName = "ApiDmViewsUpdateRequestDataFiltersItemFilter2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmViewsUpdateRequestDataFiltersItemOperator), TypeInfoPropertyName = "ApiDmViewsUpdateRequestDataFiltersItemOperator2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmViewsUpdateRequestDataOrderingItem), TypeInfoPropertyName = "ApiDmViewsUpdateRequestDataOrderingItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateRequestMessage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateRequestMessageRole), TypeInfoPropertyName = "ApiLlmOpenaiChatCompletionsCreateRequestMessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiMlCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiMlCreateRequestAuthMethod), TypeInfoPropertyName = "ApiMlCreateRequestAuthMethod2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiMlPartialUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiMlPartialUpdateRequestAuthMethod), TypeInfoPropertyName = "ApiMlPartialUpdateRequestAuthMethod2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiMlTrainCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiPredictionsCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiPredictionsPartialUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiPredictionsUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectTemplatesCreateProjectCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsTasksAssigneesCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFilters))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFiltersConjunction), TypeInfoPropertyName = "ApiProjectsTasksAssigneesCreateRequestFiltersConjunction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFiltersItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFiltersItemFilter), TypeInfoPropertyName = "ApiProjectsTasksAssigneesCreateRequestFiltersItemFilter2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFiltersItemOperator), TypeInfoPropertyName = "ApiProjectsTasksAssigneesCreateRequestFiltersItemOperator2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf), TypeInfoPropertyName = "ApiProjectsTasksAssigneesCreateRequestSelectedItemsAllTrue_0a76eaf8251d7fab")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestSelectedItemsAllFalse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestSelectedItemsAllTrue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestType), TypeInfoPropertyName = "ApiProjectsTasksAssigneesCreateRequestType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsTasksAssigneesPartialUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsTasksAssigneesPartialUpdateRequestType), TypeInfoPropertyName = "ApiProjectsTasksAssigneesPartialUpdateRequestType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsTasksAssigneesCreate2Request))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsTasksAssigneesCreate2RequestType), TypeInfoPropertyName = "ApiProjectsTasksAssigneesCreate2RequestType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesAzureCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesAzureValidateCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesAzurePartialUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesExportAzureCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesExportAzureValidateCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesExportAzurePartialUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesExportGcsCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesExportGcsValidateCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesExportGcsPartialUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesExportLocalfilesCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesExportLocalfilesValidateCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesExportLocalfilesPartialUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesExportRedisCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesExportRedisValidateCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesExportRedisPartialUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesExportS3CreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesExportS3ValidateCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesExportS3PartialUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesGcsCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesGcsValidateCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesGcsPartialUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesLocalfilesCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesLocalfilesValidateCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesLocalfilesPartialUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesRedisCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesRedisValidateCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesRedisPartialUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesS3CreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesS3ValidateCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesS3PartialUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiTasksAnnotationsCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiUsersCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiUsersPartialUpdateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiActivityLogsListMethod), TypeInfoPropertyName = "ApiActivityLogsListMethod2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmActionsCreateId), TypeInfoPropertyName = "ApiDmActionsCreateId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsTasksAssigneesDestroyType), TypeInfoPropertyName = "ApiProjectsTasksAssigneesDestroyType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiPromptsCompatibleProjectsListProjectType), TypeInfoPropertyName = "ApiPromptsCompatibleProjectsListProjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiPromptsVersionsInferenceRunsListProjectSubset), TypeInfoPropertyName = "ApiPromptsVersionsInferenceRunsListProjectSubset2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiTasksListFields), TypeInfoPropertyName = "ApiTasksListFields2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiAnnotationHistoryDestroyResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiAnnotationsBulkDeleteCreateResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiAnnotationsBulkCreateResponseItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiCurrentUserResetTokenCreateResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiCurrentUserTokenRetrieveResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmActionsRetrieveResponseItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmActionsRetrieveResponseItemDialog))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf>), TypeInfoPropertyName = "OneOfStringIListString2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiInferenceRunsIndicatorsRetrieveResponseItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiMlVersionsRetrieveResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiModelProviderConnectionsProviderChoicesRetrieveResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiOrganizationsMemberTagsAssignmentsCreateResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiOrganizationsMemberTagsBulkDestroyResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiOrganizationsMemberTagsBulkCreateResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiOrganizationsMemberTagsImportsCreateResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponseStatus), TypeInfoPropertyName = "ApiProjectsAwsCustomFunctionRetrieveResponseStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsDashboardRetrieveResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsDuplicateCreateResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsExportsConvertCreateResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsImportCreateResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsImportPredictionsCreateResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsMembersBulkDestroyResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsMembersBulkCreateResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsModelStatsAgreementRetrieveResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsModelStatsAgreementGroundtruthRetrieveResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsModelStatsPredictionRetrieveResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsStatsIaaRetrieveResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf>, global::System.Collections.Generic.Dictionary>>>), TypeInfoPropertyName = "OneOfIListIListDoubleDictionaryStringIListIListDouble2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf>), TypeInfoPropertyName = "OneOfDoubleDictionaryStringDouble2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsStatsAgreementGroundtruthRetrieveResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsStatsAgreementAnnotatorRetrieveResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsStatsAgreementAnnotatorsRetrieveResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFilters))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFiltersStat))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsStatsFinishedRetrieveResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponseLeadTimeStat))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf), TypeInfoPropertyName = "OneOfApiProjectsStatsTotalAgreementRetrieveResponseVariant1ApiProjectsStatsTotalAgreementRetrieveResponseVariant22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsTasksAssigneesCreateResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsUserStatsPredictionRetrieveResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieveResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsUserStatsPredictionRetrieve2Response))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieve2Response))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsUsersStatsAgreementGroundtruthRetrieveResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesExportTypesRetrieveResponseItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesTypesRetrieveResponseItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiWebhooksInfoRetrieveResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsDeleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationUpdated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkDeleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkUpdated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectDeleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectUpdated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewsDeleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewUpdated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksDeleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiWorkspacesMembershipsBulkDestroyResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiWorkspacesMembershipsBulkCreateResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf>, global::System.Collections.Generic.Dictionary>>>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + public sealed partial class SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext + { + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs new file mode 100644 index 0000000..d704f9f --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs @@ -0,0 +1,3314 @@ + +#nullable enable + +#pragma warning disable CS0618 // Type or member is obsolete + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class JsonSerializerContextTypes + { + /// + /// + /// + public global::System.Collections.Generic.Dictionary? StringStringDictionary { get; set; } + + /// + /// + /// + public global::System.Collections.Generic.Dictionary? StringObjectDictionary { get; set; } + + /// + /// + /// + public global::System.Text.Json.JsonElement? JsonElement { get; set; } + + /// + /// + /// + public global::LabelStudio.AWSCustomFunctionUpdateRequest? Type0 { get; set; } + /// + /// + /// + public string? Type1 { get; set; } + /// + /// + /// + public global::LabelStudio.ActionEnum? Type2 { get; set; } + /// + /// + /// + public global::LabelStudio.ActionsEnum? Type3 { get; set; } + /// + /// + /// + public global::LabelStudio.ActivityLog? Type4 { get; set; } + /// + /// + /// + public global::System.DateTime? Type5 { get; set; } + /// + /// + /// + public int? Type6 { get; set; } + /// + /// + /// + public object? Type7 { get; set; } + /// + /// + /// + public global::LabelStudio.ActivityLogResponse? Type8 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type9 { get; set; } + /// + /// + /// + public global::LabelStudio.AgreementMethodologyEnum? Type10 { get; set; } + /// + /// + /// + public global::LabelStudio.AgreementSelectionGroupRequest? Type11 { get; set; } + /// + /// + /// + public bool? Type12 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type13 { get; set; } + /// + /// + /// + public global::LabelStudio.AgreementSelectionRequest? Type14 { get; set; } + /// + /// + /// + public global::LabelStudio.AgreementV2BackfillCancelResponse? Type15 { get; set; } + /// + /// + /// + public global::LabelStudio.AgreementV2BackfillJob? Type16 { get; set; } + /// + /// + /// + public global::LabelStudio.AgreementV2BackfillJobStatusEnum? Type17 { get; set; } + /// + /// + /// + public global::LabelStudio.AgreementV2BackfillTriggerRequestRequest? Type18 { get; set; } + /// + /// + /// + public global::LabelStudio.AgreementV2BackfillTriggerResponse? Type19 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type20 { get; set; } + /// + /// + /// + public global::LabelStudio.AllRolesProjectList? Type21 { get; set; } + /// + /// + /// + public global::LabelStudio.AssignmentSettings? Type22 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type23 { get; set; } + /// + /// + /// + public global::LabelStudio.BlueprintList? Type24 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary? Type25 { get; set; } + /// + /// + /// + public global::LabelStudio.ControlTagWeight? Type26 { get; set; } + /// + /// + /// + public global::LabelStudio.UserSimple? Type27 { get; set; } + /// + /// + /// + public global::LabelStudio.ReviewSettings? Type28 { get; set; } + /// + /// + /// + public global::LabelStudio.SamplingDe5Enum? Type29 { get; set; } + /// + /// + /// + public global::LabelStudio.SkipQueueEnum? Type30 { get; set; } + /// + /// + /// + public global::LabelStudio.AnalyticsView? Type31 { get; set; } + /// + /// + /// + public global::LabelStudio.DashboardTypeEnum? Type32 { get; set; } + /// + /// + /// + public global::System.Guid? Type33 { get; set; } + /// + /// + /// + public global::LabelStudio.AnalyticsViewRequest? Type34 { get; set; } + /// + /// + /// + public global::LabelStudio.AnnotatedEnum? Type35 { get; set; } + /// + /// + /// + public global::LabelStudio.Annotation? Type36 { get; set; } + /// + /// + /// + public long? Type37 { get; set; } + /// + /// + /// + public global::LabelStudio.LastActionEnum? Type38 { get; set; } + /// + /// + /// + public double? Type39 { get; set; } + /// + /// + /// + public global::LabelStudio.AnnotationBulkDeleteRequest? Type40 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type41 { get; set; } + /// + /// + /// + public global::LabelStudio.AnnotationBulkSerializerWithSelectedItemsRequest? Type42 { get; set; } + /// + /// + /// + public global::LabelStudio.SelectedItemsRequest? Type43 { get; set; } + /// + /// + /// + public global::LabelStudio.AnnotationHistory? Type44 { get; set; } + /// + /// + /// + public global::LabelStudio.AnnotationRequest? Type45 { get; set; } + /// + /// + /// + public global::LabelStudio.AnnotationReview? Type46 { get; set; } + /// + /// + /// + public global::LabelStudio.AnnotationReviewRequest? Type47 { get; set; } + /// + /// + /// + public global::LabelStudio.LabelStreamTaskDistributionEnum? Type48 { get; set; } + /// + /// + /// + public global::LabelStudio.AssignmentSettingsRequest? Type49 { get; set; } + /// + /// + /// + public global::LabelStudio.AssociatedProject? Type50 { get; set; } + /// + /// + /// + public global::LabelStudio.AuthMethodEnum? Type51 { get; set; } + /// + /// + /// + public global::LabelStudio.AuthTypeEnum? Type52 { get; set; } + /// + /// + /// + public global::LabelStudio.AzureBlobExportStorage? Type53 { get; set; } + /// + /// + /// + public global::LabelStudio.StatusC5aEnum? Type54 { get; set; } + /// + /// + /// + public global::LabelStudio.AzureBlobImportStorage? Type55 { get; set; } + /// + /// + /// + public global::LabelStudio.AzureDatasetStorage? Type56 { get; set; } + /// + /// + /// + public global::LabelStudio.AzureDatasetStorageRequest? Type57 { get; set; } + /// + /// + /// + public global::LabelStudio.AzureServicePrincipalExportStorage? Type58 { get; set; } + /// + /// + /// + public global::LabelStudio.AzureServicePrincipalExportStorageRequest? Type59 { get; set; } + /// + /// + /// + public global::LabelStudio.AzureServicePrincipalImportStorage? Type60 { get; set; } + /// + /// + /// + public global::LabelStudio.AzureServicePrincipalImportStorageRequest? Type61 { get; set; } + /// + /// + /// + public global::LabelStudio.BatchFailedPredictions? Type62 { get; set; } + /// + /// + /// + public global::LabelStudio.BatchFailedPredictionsRequestRequest? Type63 { get; set; } + /// + /// + /// + public global::LabelStudio.BatchPredictions? Type64 { get; set; } + /// + /// + /// + public global::LabelStudio.BatchPredictionsRequestRequest? Type65 { get; set; } + /// + /// + /// + public global::LabelStudio.BillingChecks? Type66 { get; set; } + /// + /// + /// + public global::LabelStudio.CountLimit? Type67 { get; set; } + /// + /// + /// + public global::LabelStudio.PromptsStatusEnum? Type68 { get; set; } + /// + /// + /// + public global::LabelStudio.BillingFlags? Type69 { get; set; } + /// + /// + /// + public global::LabelStudio.BillingInfoResponse? Type70 { get; set; } + /// + /// + /// + public global::LabelStudio.Blueprint? Type71 { get; set; } + /// + /// + /// + public global::LabelStudio.BlueprintRequest? Type72 { get; set; } + /// + /// + /// + public global::LabelStudio.BudgetResetPeriodEnum? Type73 { get; set; } + /// + /// + /// + public global::LabelStudio.BulkOrganizationMemberTagAssignmentRequest? Type74 { get; set; } + /// + /// + /// + public global::LabelStudio.CancelModelRunResponse? Type75 { get; set; } + /// + /// + /// + public global::LabelStudio.CheckMatchingFunctionRequestRequest? Type76 { get; set; } + /// + /// + /// + public global::LabelStudio.ChildFilter? Type77 { get; set; } + /// + /// + /// + public global::LabelStudio.ChildFilterRequest? Type78 { get; set; } + /// + /// + /// + public global::LabelStudio.Comment? Type79 { get; set; } + /// + /// + /// + public global::LabelStudio.CommentRequest? Type80 { get; set; } + /// + /// + /// + public global::LabelStudio.CommentSerializerWithExpandedUser? Type81 { get; set; } + /// + /// + /// + public global::LabelStudio.LseUser? Type82 { get; set; } + /// + /// + /// + public global::LabelStudio.ConfigurablePermissionOption? Type83 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type84 { get; set; } + /// + /// + /// + public global::LabelStudio.Role9e7Enum? Type85 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary? Type86 { get; set; } + /// + /// + /// + public global::LabelStudio.ControlTagWeightRequest? Type87 { get; set; } + /// + /// + /// + public global::LabelStudio.ConvertedFormat? Type88 { get; set; } + /// + /// + /// + public global::LabelStudio.Status7bfEnum? Type89 { get; set; } + /// + /// + /// + public global::LabelStudio.ConvertedFormatRequest? Type90 { get; set; } + /// + /// + /// + public global::LabelStudio.DatabricksExportStorage? Type91 { get; set; } + /// + /// + /// + public global::LabelStudio.DatabricksExportStorageRequest? Type92 { get; set; } + /// + /// + /// + public global::LabelStudio.DatabricksImportStorage? Type93 { get; set; } + /// + /// + /// + public global::LabelStudio.DatabricksImportStorageRequest? Type94 { get; set; } + /// + /// + /// + public global::LabelStudio.Dataset? Type95 { get; set; } + /// + /// + /// + public global::LabelStudio.DatasetMember? Type96 { get; set; } + /// + /// + /// + public global::LabelStudio.DatasetMemberRequest? Type97 { get; set; } + /// + /// + /// + public global::LabelStudio.DatasetRequest? Type98 { get; set; } + /// + /// + /// + public global::LabelStudio.UserSimpleRequest? Type99 { get; set; } + /// + /// + /// + public global::LabelStudio.DatasetView? Type100 { get; set; } + /// + /// + /// + public global::LabelStudio.FilterGroup? Type101 { get; set; } + /// + /// + /// + public global::LabelStudio.DatasetViewRequest? Type102 { get; set; } + /// + /// + /// + public global::LabelStudio.FilterGroupRequest? Type103 { get; set; } + /// + /// + /// + public global::LabelStudio.Default165Enum? Type104 { get; set; } + /// + /// + /// + public global::LabelStudio.DefaultRole? Type105 { get; set; } + /// + /// + /// + public global::LabelStudio.Dimension? Type106 { get; set; } + /// + /// + /// + public global::LabelStudio.DimensionCreateRequest? Type107 { get; set; } + /// + /// + /// + public global::LabelStudio.DimensionList? Type108 { get; set; } + /// + /// + /// + public global::LabelStudio.DimensionRequest? Type109 { get; set; } + /// + /// + /// + public global::LabelStudio.EditionEnum? Type110 { get; set; } + /// + /// + /// + public global::LabelStudio.Export? Type111 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type112 { get; set; } + /// + /// + /// + public global::LabelStudio.ExportConvertRequest? Type113 { get; set; } + /// + /// + /// + public global::LabelStudio.FSMTransitionExecuteRequestRequest? Type114 { get; set; } + /// + /// + /// + public global::LabelStudio.FSMTransitionExecuteResponse? Type115 { get; set; } + /// + /// + /// + public global::LabelStudio.StateModel? Type116 { get; set; } + /// + /// + /// + public global::LabelStudio.FileUpload? Type117 { get; set; } + /// + /// + /// + public global::LabelStudio.Filter? Type118 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type119 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type120 { get; set; } + /// + /// + /// + public global::LabelStudio.FilterRequest? Type121 { get; set; } + /// + /// + /// + public global::LabelStudio.FinishedEnum? Type122 { get; set; } + /// + /// + /// + public global::LabelStudio.GCSDatasetStorage? Type123 { get; set; } + /// + /// + /// + public global::LabelStudio.GCSDatasetStorageRequest? Type124 { get; set; } + /// + /// + /// + public global::LabelStudio.GCSExportStorage? Type125 { get; set; } + /// + /// + /// + public global::LabelStudio.GCSImportStorage? Type126 { get; set; } + /// + /// + /// + public global::LabelStudio.GCSWIFExportStorage? Type127 { get; set; } + /// + /// + /// + public global::LabelStudio.GCSWIFExportStorageRequest? Type128 { get; set; } + /// + /// + /// + public global::LabelStudio.GCSWIFImportStorage? Type129 { get; set; } + /// + /// + /// + public global::LabelStudio.GCSWIFImportStorageRequest? Type130 { get; set; } + /// + /// + /// + public global::LabelStudio.Hotkeys? Type131 { get; set; } + /// + /// + /// + public global::LabelStudio.ImportApiRequest? Type132 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type133 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type134 { get; set; } + /// + /// + /// + public global::LabelStudio.PredictionRequest? Type135 { get; set; } + /// + /// + /// + public global::LabelStudio.InferenceRunCostEstimate? Type136 { get; set; } + /// + /// + /// + public global::LabelStudio.KPIDetailResponse? Type137 { get; set; } + /// + /// + /// + public global::LabelStudio.KPIProjectSegment? Type138 { get; set; } + /// + /// + /// + public global::LabelStudio.KPIUserSegment? Type139 { get; set; } + /// + /// + /// + public global::LabelStudio.KPIMatrixSegment? Type140 { get; set; } + /// + /// + /// + public global::LabelStudio.KPIProjectMatrixSegment? Type141 { get; set; } + /// + /// + /// + public global::LabelStudio.SegmentationEnum? Type142 { get; set; } + /// + /// + /// + public global::LabelStudio.KPITimeSegment? Type143 { get; set; } + /// + /// + /// + public global::LabelStudio.KPIValue? Type144 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type145 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type146 { get; set; } + /// + /// + /// + public global::LabelStudio.KPIUserInfo? Type147 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList>? Type148 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type149 { get; set; } + /// + /// + /// + public global::LabelStudio.KPIMetadata? Type150 { get; set; } + /// + /// + /// + public global::LabelStudio.KPIProjectInfo? Type151 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type152 { get; set; } + /// + /// + /// + public global::LabelStudio.LSAPITokenBlacklistRequest? Type153 { get; set; } + /// + /// + /// + public global::LabelStudio.LSAPITokenRotateRequest? Type154 { get; set; } + /// + /// + /// + public global::LabelStudio.LSEAPITokenCreate? Type155 { get; set; } + /// + /// + /// + public global::LabelStudio.LSEAPITokenList? Type156 { get; set; } + /// + /// + /// + public global::LabelStudio.LSEJWTSettings? Type157 { get; set; } + /// + /// + /// + public global::LabelStudio.LSEJWTSettingsRequest? Type158 { get; set; } + /// + /// + /// + public global::LabelStudio.LSEKeyIndicatorValue? Type159 { get; set; } + /// + /// + /// + public global::LabelStudio.Label? Type160 { get; set; } + /// + /// + /// + public global::LabelStudio.LabelCreate? Type161 { get; set; } + /// + /// + /// + public global::LabelStudio.LabelCreateRequest? Type162 { get; set; } + /// + /// + /// + public global::LabelStudio.LabelDistributionCountsResponse? Type163 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type164 { get; set; } + /// + /// + /// + public global::LabelStudio.LabelDistributionCountsRow? Type165 { get; set; } + /// + /// + /// + public global::LabelStudio.LabelDistributionCountsTotals? Type166 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary? Type167 { get; set; } + /// + /// + /// + public global::LabelStudio.LabelDistributionStructureDimension? Type168 { get; set; } + /// + /// + /// + public global::LabelStudio.LabelDistributionStructureResponse? Type169 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type170 { get; set; } + /// + /// + /// + public global::LabelStudio.LabelLink? Type171 { get; set; } + /// + /// + /// + public global::LabelStudio.LabelLinkRequest? Type172 { get; set; } + /// + /// + /// + public global::LabelStudio.LocalFilesExportStorage? Type173 { get; set; } + /// + /// + /// + public global::LabelStudio.LocalFilesImportStorage? Type174 { get; set; } + /// + /// + /// + public global::LabelStudio.LseAnnotationFilterOptions? Type175 { get; set; } + /// + /// + /// + public global::LabelStudio.ReviewedEnum? Type176 { get; set; } + /// + /// + /// + public global::LabelStudio.LseAnnotationFilterOptionsRequest? Type177 { get; set; } + /// + /// + /// + public global::LabelStudio.LseExportCreate? Type178 { get; set; } + /// + /// + /// + public global::LabelStudio.SerializationOptions? Type179 { get; set; } + /// + /// + /// + public global::LabelStudio.LseTaskFilterOptions? Type180 { get; set; } + /// + /// + /// + public global::LabelStudio.LseExportCreateRequest? Type181 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type182 { get; set; } + /// + /// + /// + public global::LabelStudio.SerializationOptionsRequest? Type183 { get; set; } + /// + /// + /// + public global::LabelStudio.LseTaskFilterOptionsRequest? Type184 { get; set; } + /// + /// + /// + public global::LabelStudio.LseFields? Type185 { get; set; } + /// + /// + /// + public global::LabelStudio.OnboardingStateEnum? Type186 { get; set; } + /// + /// + /// + public global::LabelStudio.TrialRoleEnum? Type187 { get; set; } + /// + /// + /// + public global::LabelStudio.LseFieldsRequest? Type188 { get; set; } + /// + /// + /// + public global::LabelStudio.LseOrganization? Type189 { get; set; } + /// + /// + /// + public global::LabelStudio.OrganizationBilling? Type190 { get; set; } + /// + /// + /// + public global::LabelStudio.LseOrganizationMemberList? Type191 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type192 { get; set; } + /// + /// + /// + public global::LabelStudio.LseOrganizationMemberListContributedToProject? Type193 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type194 { get; set; } + /// + /// + /// + public global::LabelStudio.LseOrganizationMemberListCreatedProject? Type195 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type196 { get; set; } + /// + /// + /// + public global::LabelStudio.SimpleOrganizationMemberTag? Type197 { get; set; } + /// + /// + /// + public global::LabelStudio.LseUserOrganizationMemberList? Type198 { get; set; } + /// + /// + /// + public global::LabelStudio.LseProject? Type199 { get; set; } + /// + /// + /// + public global::LabelStudio.LseProjectCounts? Type200 { get; set; } + /// + /// + /// + public global::LabelStudio.LseProjectCreate? Type201 { get; set; } + /// + /// + /// + public global::LabelStudio.LseProjectCreateRequest? Type202 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary? Type203 { get; set; } + /// + /// + /// + public global::LabelStudio.LseProjectParams? Type204 { get; set; } + /// + /// + /// + public global::LabelStudio.LseProjectParamsRequest? Type205 { get; set; } + /// + /// + /// + public global::LabelStudio.LseProjectResponse? Type206 { get; set; } + /// + /// + /// + public global::LabelStudio.LseProjectUpdate? Type207 { get; set; } + /// + /// + /// + public global::LabelStudio.LseS3ExportStorage? Type208 { get; set; } + /// + /// + /// + public global::LabelStudio.LseS3ExportStorageRequest? Type209 { get; set; } + /// + /// + /// + public global::LabelStudio.LseS3ImportStorage? Type210 { get; set; } + /// + /// + /// + public global::LabelStudio.LseS3ImportStorageRequest? Type211 { get; set; } + /// + /// + /// + public global::LabelStudio.LseTask? Type212 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type213 { get; set; } + /// + /// + /// + public global::LabelStudio.LseTaskDraft? Type214 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type215 { get; set; } + /// + /// + /// + public global::LabelStudio.LseTaskPrediction? Type216 { get; set; } + /// + /// + /// + public global::LabelStudio.SkippedEnum? Type217 { get; set; } + /// + /// + /// + public global::LabelStudio.LseTaskRequest? Type218 { get; set; } + /// + /// + /// + public global::LabelStudio.LseTaskSerializerForAnnotators? Type219 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type220 { get; set; } + /// + /// + /// + public global::LabelStudio.LseTaskSerializerForAnnotatorsDraft? Type221 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type222 { get; set; } + /// + /// + /// + public global::LabelStudio.LseTaskSerializerForAnnotatorsPrediction? Type223 { get; set; } + /// + /// + /// + public global::LabelStudio.LseTaskSerializerForReviewers? Type224 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type225 { get; set; } + /// + /// + /// + public global::LabelStudio.LseTaskSerializerForReviewersDraft? Type226 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type227 { get; set; } + /// + /// + /// + public global::LabelStudio.LseTaskSerializerForReviewersPrediction? Type228 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type229 { get; set; } + /// + /// + /// + public global::LabelStudio.OrganizationMembership? Type230 { get; set; } + /// + /// + /// + public global::LabelStudio.LseUserAPI? Type231 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type232 { get; set; } + /// + /// + /// + public global::LabelStudio.LseUserOrganizationMemberListContributedToProject? Type233 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type234 { get; set; } + /// + /// + /// + public global::LabelStudio.LseUserOrganizationMemberListCreatedProject? Type235 { get; set; } + /// + /// + /// + public global::LabelStudio.MLBackend? Type236 { get; set; } + /// + /// + /// + public global::LabelStudio.StateEnum? Type237 { get; set; } + /// + /// + /// + public global::LabelStudio.MLBackendRequest? Type238 { get; set; } + /// + /// + /// + public global::LabelStudio.MLInteractiveAnnotatingRequestRequest? Type239 { get; set; } + /// + /// + /// + public global::LabelStudio.MaybeExpandedComment? Type240 { get; set; } + /// + /// + /// + public global::LabelStudio.MetricParam? Type241 { get; set; } + /// + /// + /// + public global::LabelStudio.MetricParamUpdateRequest? Type242 { get; set; } + /// + /// + /// + public global::LabelStudio.ModeEnum? Type243 { get; set; } + /// + /// + /// + public global::LabelStudio.ModelInterface? Type244 { get; set; } + /// + /// + /// + public global::LabelStudio.SkillNameEnum? Type245 { get; set; } + /// + /// + /// + public global::LabelStudio.ModelInterfaceRequest? Type246 { get; set; } + /// + /// + /// + public global::LabelStudio.ModelInterfaceSerializerGET? Type247 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type248 { get; set; } + /// + /// + /// + public global::LabelStudio.ModelProviderConnection? Type249 { get; set; } + /// + /// + /// + public global::LabelStudio.ProviderEnum? Type250 { get; set; } + /// + /// + /// + public global::LabelStudio.ScopeEnum? Type251 { get; set; } + /// + /// + /// + public global::LabelStudio.ModelProviderConnectionRequest? Type252 { get; set; } + /// + /// + /// + public global::LabelStudio.ModelRun? Type253 { get; set; } + /// + /// + /// + public global::LabelStudio.ProjectSubsetEnum? Type254 { get; set; } + /// + /// + /// + public global::LabelStudio.ModelRunStatusEnum? Type255 { get; set; } + /// + /// + /// + public global::LabelStudio.ModelRunRequest? Type256 { get; set; } + /// + /// + /// + public global::LabelStudio.Options165Enum? Type257 { get; set; } + /// + /// + /// + public global::LabelStudio.OrganizationId? Type258 { get; set; } + /// + /// + /// + public global::LabelStudio.OrganizationInvite? Type259 { get; set; } + /// + /// + /// + public global::LabelStudio.OrganizationMember? Type260 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type261 { get; set; } + /// + /// + /// + public global::LabelStudio.OrganizationMemberContributedToProject? Type262 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type263 { get; set; } + /// + /// + /// + public global::LabelStudio.OrganizationMemberCreatedProject? Type264 { get; set; } + /// + /// + /// + public global::LabelStudio.OrganizationMemberTag? Type265 { get; set; } + /// + /// + /// + public global::LabelStudio.OrganizationMemberTagBulkCreateRequest? Type266 { get; set; } + /// + /// + /// + public global::LabelStudio.OrganizationMemberTagImportCreateRequest? Type267 { get; set; } + /// + /// + /// + public byte[]? Type268 { get; set; } + /// + /// + /// + public global::LabelStudio.OrganizationMemberTagImportStatus? Type269 { get; set; } + /// + /// + /// + public global::LabelStudio.OrganizationMemberTagImportStatusStatusEnum? Type270 { get; set; } + /// + /// + /// + public global::LabelStudio.OrganizationMemberTagRequest? Type271 { get; set; } + /// + /// + /// + public global::LabelStudio.OrganizationMembershipRequest? Type272 { get; set; } + /// + /// + /// + public global::LabelStudio.OrganizationPermission? Type273 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type274 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type275 { get; set; } + /// + /// + /// + public global::LabelStudio.OrganizationPermissionRequest? Type276 { get; set; } + /// + /// + /// + public global::LabelStudio.PaginatedAllRolesProjectListList? Type277 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type278 { get; set; } + /// + /// + /// + public global::LabelStudio.PaginatedAnnotationHistoryList? Type279 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type280 { get; set; } + /// + /// + /// + public global::LabelStudio.PaginatedLabelCreateList? Type281 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type282 { get; set; } + /// + /// + /// + public global::LabelStudio.PaginatedLabelLinkList? Type283 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type284 { get; set; } + /// + /// + /// + public global::LabelStudio.PaginatedLabelList? Type285 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type286 { get; set; } + /// + /// + /// + public global::LabelStudio.PaginatedLseOrganizationMemberListList? Type287 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type288 { get; set; } + /// + /// + /// + public global::LabelStudio.PaginatedLseProjectCountsList? Type289 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type290 { get; set; } + /// + /// + /// + public global::LabelStudio.PaginatedLseUserList? Type291 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type292 { get; set; } + /// + /// + /// + public global::LabelStudio.PaginatedOrganizationMemberTagList? Type293 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type294 { get; set; } + /// + /// + /// + public global::LabelStudio.PaginatedPaginatedProjectMemberList? Type295 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type296 { get; set; } + /// + /// + /// + public global::LabelStudio.PaginatedProjectMember? Type297 { get; set; } + /// + /// + /// + public global::LabelStudio.PaginatedProjectSubsetTasksResponseList? Type298 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type299 { get; set; } + /// + /// + /// + public global::LabelStudio.ProjectSubsetTasksResponse? Type300 { get; set; } + /// + /// + /// + public global::LabelStudio.PaginatedRoleBasedTaskList? Type301 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type302 { get; set; } + /// + /// + /// + public global::LabelStudio.RoleBasedTask? Type303 { get; set; } + /// + /// + /// + public global::LabelStudio.PaginatedStateModelList? Type304 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type305 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedAnalyticsViewRequest? Type306 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedAnnotationReviewRequest? Type307 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedAzureDatasetStorageRequest? Type308 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedAzureServicePrincipalExportStorageRequest? Type309 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedAzureServicePrincipalImportStorageRequest? Type310 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedBlueprintUpdateRequest? Type311 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedCommentRequest? Type312 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedDatabricksExportStorageRequest? Type313 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedDatabricksImportStorageRequest? Type314 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedDatasetRequest? Type315 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedDatasetViewRequest? Type316 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedDefaultRoleRequest? Type317 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedDimensionRequest? Type318 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedFileUploadRequest? Type319 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedGCSDatasetStorageRequest? Type320 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedGCSWIFExportStorageRequest? Type321 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedGCSWIFImportStorageRequest? Type322 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedHotkeysRequest? Type323 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedLabelLinkRequest? Type324 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedLabelRequest? Type325 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedLseOrganizationSerializerUpdateRequest? Type326 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList>? Type327 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary? Type328 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedLseProjectUpdateRequest? Type329 { get; set; } + /// + /// + /// + public global::LabelStudio.ReviewSettingsRequest? Type330 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedLseS3ExportStorageRequest? Type331 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedLseS3ImportStorageRequest? Type332 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedLseTaskRequest? Type333 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedLseUserSerializerUpdateRequest? Type334 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedModelInterfaceRequest? Type335 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedModelProviderConnectionRequest? Type336 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedOrganizationMemberCreateUpdateRequest? Type337 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedOrganizationMemberTagRequest? Type338 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedOrganizationPermissionRequest? Type339 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedPauseRequest? Type340 { get; set; } + /// + /// + /// + public global::LabelStudio.ReasonEnum? Type341 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedProjectTemplateRequest? Type342 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedS3DatasetStorageRequest? Type343 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedSessionTimeoutPolicyRequest? Type344 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedThirdPartyModelVersionRequest? Type345 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedWebhookSerializerForUpdateRequest? Type346 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type347 { get; set; } + /// + /// + /// + public global::LabelStudio.PatchedWorkspaceRequest? Type348 { get; set; } + /// + /// + /// + public global::LabelStudio.Pause? Type349 { get; set; } + /// + /// + /// + public global::LabelStudio.PauseRequest? Type350 { get; set; } + /// + /// + /// + public global::LabelStudio.Prediction? Type351 { get; set; } + /// + /// + /// + public global::LabelStudio.Project? Type352 { get; set; } + /// + /// + /// + public global::LabelStudio.ProjectDuplicateRequest? Type353 { get; set; } + /// + /// + /// + public global::LabelStudio.ProjectGroup? Type354 { get; set; } + /// + /// + /// + public global::LabelStudio.ProjectGroupRoleEnum? Type355 { get; set; } + /// + /// + /// + public global::LabelStudio.ProjectGroupRequest? Type356 { get; set; } + /// + /// + /// + public global::LabelStudio.ProjectImport? Type357 { get; set; } + /// + /// + /// + public global::LabelStudio.ProjectLabelConfig? Type358 { get; set; } + /// + /// + /// + public global::LabelStudio.ProjectLabelConfigRequest? Type359 { get; set; } + /// + /// + /// + public global::LabelStudio.ProjectMember? Type360 { get; set; } + /// + /// + /// + public global::LabelStudio.ProjectMemberBulkAssignRequest? Type361 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type362 { get; set; } + /// + /// + /// + public global::LabelStudio.ProjectMemberBulkAssignRolesRequest? Type363 { get; set; } + /// + /// + /// + public global::LabelStudio.ProjectMemberRequest? Type364 { get; set; } + /// + /// + /// + public global::LabelStudio.ProjectReimport? Type365 { get; set; } + /// + /// + /// + public global::LabelStudio.ProjectRole? Type366 { get; set; } + /// + /// + /// + public global::LabelStudio.ProjectRoleRequest? Type367 { get; set; } + /// + /// + /// + public global::LabelStudio.ProjectSubsetItem? Type368 { get; set; } + /// + /// + /// + public global::LabelStudio.ProjectSubsetTaskItem? Type369 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type370 { get; set; } + /// + /// + /// + public global::LabelStudio.ProjectTemplate? Type371 { get; set; } + /// + /// + /// + public global::LabelStudio.ProjectTemplateRequest? Type372 { get; set; } + /// + /// + /// + public global::LabelStudio.RedisExportStorage? Type373 { get; set; } + /// + /// + /// + public global::LabelStudio.RedisImportStorage? Type374 { get; set; } + /// + /// + /// + public global::LabelStudio.RefinePromptRequestRequest? Type375 { get; set; } + /// + /// + /// + public global::LabelStudio.RefinedPromptResponse? Type376 { get; set; } + /// + /// + /// + public global::LabelStudio.ThirdPartyModelVersion? Type377 { get; set; } + /// + /// + /// + public global::LabelStudio.RequeueRejectedTasksModeEnum? Type378 { get; set; } + /// + /// + /// + public global::LabelStudio.ReviewCriteriaEnum? Type379 { get; set; } + /// + /// + /// + public global::LabelStudio.ReviewSettingsSamplingEnum? Type380 { get; set; } + /// + /// + /// + public global::LabelStudio.RevokeInviteRequest? Type381 { get; set; } + /// + /// + /// + public global::LabelStudio.S3DatasetStorage? Type382 { get; set; } + /// + /// + /// + public global::LabelStudio.S3DatasetStorageRequest? Type383 { get; set; } + /// + /// + /// + public global::LabelStudio.S3ExportStorage? Type384 { get; set; } + /// + /// + /// + public global::LabelStudio.S3ImportStorage? Type385 { get; set; } + /// + /// + /// + public global::LabelStudio.SamlSettings? Type386 { get; set; } + /// + /// + /// + public global::LabelStudio.SamlSettingsUpdate? Type387 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type388 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList>? Type389 { get; set; } + /// + /// + /// + public global::LabelStudio.SamlSettingsUpdateRequest? Type390 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type391 { get; set; } + /// + /// + /// + public global::LabelStudio.ScimSettings? Type392 { get; set; } + /// + /// + /// + public global::LabelStudio.ScimSettingsUpdate? Type393 { get; set; } + /// + /// + /// + public global::LabelStudio.ScimSettingsUpdateRequest? Type394 { get; set; } + /// + /// + /// + public global::LabelStudio.SendInviteRequest? Type395 { get; set; } + /// + /// + /// + public global::LabelStudio.SerializationOption? Type396 { get; set; } + /// + /// + /// + public global::LabelStudio.SerializationOptionRequest? Type397 { get; set; } + /// + /// + /// + public global::LabelStudio.SessionTimeoutPolicy? Type398 { get; set; } + /// + /// + /// + public global::LabelStudio.StateBackfillCancelResponse? Type399 { get; set; } + /// + /// + /// + public global::LabelStudio.StateBackfillJobItem? Type400 { get; set; } + /// + /// + /// + public global::LabelStudio.StateBackfillJobItemResponse? Type401 { get; set; } + /// + /// + /// + public global::LabelStudio.StateBackfillProgress? Type402 { get; set; } + /// + /// + /// + public global::LabelStudio.StateTriggeredBy? Type403 { get; set; } + /// + /// + /// + public global::LabelStudio.StateBackfillJobListResponse? Type404 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type405 { get; set; } + /// + /// + /// + public global::LabelStudio.StateBackfillOrgStatus? Type406 { get; set; } + /// + /// + /// + public global::LabelStudio.StateBackfillResponse? Type407 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type408 { get; set; } + /// + /// + /// + public global::LabelStudio.StateBackfillStatusResponse? Type409 { get; set; } + /// + /// + /// + public global::LabelStudio.TriggeredBy? Type410 { get; set; } + /// + /// + /// + public global::LabelStudio.TaskAgreementMatrixResponse? Type411 { get; set; } + /// + /// + /// + public global::LabelStudio.TaskAssignment? Type412 { get; set; } + /// + /// + /// + public global::LabelStudio.TypeEnum? Type413 { get; set; } + /// + /// + /// + public global::LabelStudio.TaskEvent? Type414 { get; set; } + /// + /// + /// + public global::LabelStudio.TaskEventRequest? Type415 { get; set; } + /// + /// + /// + public global::LabelStudio.TaskSimple? Type416 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type417 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type418 { get; set; } + /// + /// + /// + public global::LabelStudio.ThirdPartyModelVersionRequest? Type419 { get; set; } + /// + /// + /// + public global::LabelStudio.TokenRefreshRequest? Type420 { get; set; } + /// + /// + /// + public global::LabelStudio.TokenRefreshResponse? Type421 { get; set; } + /// + /// + /// + public global::LabelStudio.TokenRotateResponse? Type422 { get; set; } + /// + /// + /// + public global::LabelStudio.ValidateSamlMetadataUrlRequestRequest? Type423 { get; set; } + /// + /// + /// + public global::LabelStudio.ValidateSamlMetadataUrlResponse? Type424 { get; set; } + /// + /// + /// + public global::LabelStudio.VersionResponse? Type425 { get; set; } + /// + /// + /// + public global::LabelStudio.View? Type426 { get; set; } + /// + /// + /// + public global::LabelStudio.ViewOrderRequest? Type427 { get; set; } + /// + /// + /// + public global::LabelStudio.Webhook? Type428 { get; set; } + /// + /// + /// + public global::LabelStudio.WebhookRequest? Type429 { get; set; } + /// + /// + /// + public global::LabelStudio.WebhookSerializerForUpdate? Type430 { get; set; } + /// + /// + /// + public global::LabelStudio.WebhookSerializerForUpdateRequest? Type431 { get; set; } + /// + /// + /// + public global::LabelStudio.WhoAmILseFields? Type432 { get; set; } + /// + /// + /// + public global::LabelStudio.WhoAmIUser? Type433 { get; set; } + /// + /// + /// + public global::LabelStudio.Workspace? Type434 { get; set; } + /// + /// + /// + public global::LabelStudio.WorkspaceMemberBulkAssignRequest? Type435 { get; set; } + /// + /// + /// + public global::LabelStudio.WorkspaceMemberCreate? Type436 { get; set; } + /// + /// + /// + public global::LabelStudio.WorkspaceMemberCreateRequest? Type437 { get; set; } + /// + /// + /// + public global::LabelStudio.WorkspaceMemberList? Type438 { get; set; } + /// + /// + /// + public global::LabelStudio.WorkspaceProjectsRequest? Type439 { get; set; } + /// + /// + /// + public global::LabelStudio.WorkspaceRequest? Type440 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiAnnotationsPartialUpdateRequest? Type441 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmActionsCreateRequest? Type442 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmActionsCreateRequestFilters? Type443 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmActionsCreateRequestFiltersConjunction? Type444 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type445 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmActionsCreateRequestFiltersItem? Type446 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmActionsCreateRequestFiltersItemFilter? Type447 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmActionsCreateRequestFiltersItemOperator? Type448 { get; set; } + /// + /// + /// + public global::LabelStudio.OneOf? Type449 { get; set; } + /// + /// + /// + public float? Type450 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type451 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmActionsCreateRequestOrderingItem? Type452 { get; set; } + /// + /// + /// + public global::LabelStudio.OneOf? Type453 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmActionsCreateRequestSelectedItemsAllFalse? Type454 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmActionsCreateRequestSelectedItemsAllTrue? Type455 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmViewsCreateRequest? Type456 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmViewsCreateRequestData? Type457 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmViewsCreateRequestDataFilters? Type458 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmViewsCreateRequestDataFiltersConjunction? Type459 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type460 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmViewsCreateRequestDataFiltersItem? Type461 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmViewsCreateRequestDataFiltersItemFilter? Type462 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmViewsCreateRequestDataFiltersItemOperator? Type463 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type464 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmViewsCreateRequestDataOrderingItem? Type465 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmViewsPartialUpdateRequest? Type466 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmViewsPartialUpdateRequestData? Type467 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFilters? Type468 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFiltersConjunction? Type469 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type470 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFiltersItem? Type471 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFiltersItemFilter? Type472 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFiltersItemOperator? Type473 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type474 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataOrderingItem? Type475 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmViewsUpdateRequest? Type476 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmViewsUpdateRequestData? Type477 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmViewsUpdateRequestDataFilters? Type478 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmViewsUpdateRequestDataFiltersConjunction? Type479 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type480 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmViewsUpdateRequestDataFiltersItem? Type481 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmViewsUpdateRequestDataFiltersItemFilter? Type482 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmViewsUpdateRequestDataFiltersItemOperator? Type483 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type484 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmViewsUpdateRequestDataOrderingItem? Type485 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type486 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateRequest? Type487 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type488 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateRequestMessage? Type489 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateRequestMessageRole? Type490 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiMlCreateRequest? Type491 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiMlCreateRequestAuthMethod? Type492 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiMlPartialUpdateRequest? Type493 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiMlPartialUpdateRequestAuthMethod? Type494 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiMlTrainCreateRequest? Type495 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiPredictionsCreateRequest? Type496 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiPredictionsPartialUpdateRequest? Type497 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiPredictionsUpdateRequest? Type498 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectTemplatesCreateProjectCreateRequest? Type499 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type500 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequest? Type501 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFilters? Type502 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFiltersConjunction? Type503 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type504 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFiltersItem? Type505 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFiltersItemFilter? Type506 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFiltersItemOperator? Type507 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestSelectedItemsAllFalse? Type508 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestSelectedItemsAllTrue? Type509 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestType? Type510 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsTasksAssigneesPartialUpdateRequest? Type511 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsTasksAssigneesPartialUpdateRequestType? Type512 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsTasksAssigneesCreate2Request? Type513 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsTasksAssigneesCreate2RequestType? Type514 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesAzureCreateRequest? Type515 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesAzureValidateCreateRequest? Type516 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesAzurePartialUpdateRequest? Type517 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesExportAzureCreateRequest? Type518 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesExportAzureValidateCreateRequest? Type519 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesExportAzurePartialUpdateRequest? Type520 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesExportGcsCreateRequest? Type521 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesExportGcsValidateCreateRequest? Type522 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesExportGcsPartialUpdateRequest? Type523 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesExportLocalfilesCreateRequest? Type524 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesExportLocalfilesValidateCreateRequest? Type525 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesExportLocalfilesPartialUpdateRequest? Type526 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesExportRedisCreateRequest? Type527 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesExportRedisValidateCreateRequest? Type528 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesExportRedisPartialUpdateRequest? Type529 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesExportS3CreateRequest? Type530 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesExportS3ValidateCreateRequest? Type531 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesExportS3PartialUpdateRequest? Type532 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesGcsCreateRequest? Type533 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesGcsValidateCreateRequest? Type534 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesGcsPartialUpdateRequest? Type535 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesLocalfilesCreateRequest? Type536 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesLocalfilesValidateCreateRequest? Type537 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesLocalfilesPartialUpdateRequest? Type538 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesRedisCreateRequest? Type539 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesRedisValidateCreateRequest? Type540 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesRedisPartialUpdateRequest? Type541 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesS3CreateRequest? Type542 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesS3ValidateCreateRequest? Type543 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesS3PartialUpdateRequest? Type544 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiTasksAnnotationsCreateRequest? Type545 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiUsersCreateRequest? Type546 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiUsersPartialUpdateRequest? Type547 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiActivityLogsListMethod? Type548 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmActionsCreateId? Type549 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsTasksAssigneesDestroyType? Type550 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiPromptsCompatibleProjectsListProjectType? Type551 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiPromptsVersionsInferenceRunsListProjectSubset? Type552 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiTasksListFields? Type553 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type554 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type555 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type556 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiAnnotationHistoryDestroyResponse? Type557 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type558 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiAnnotationsBulkDeleteCreateResponse? Type559 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type560 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiAnnotationsBulkCreateResponseItem? Type561 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type562 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiCurrentUserResetTokenCreateResponse? Type563 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiCurrentUserTokenRetrieveResponse? Type564 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type565 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type566 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type567 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type568 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type569 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type570 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type571 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type572 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmActionsRetrieveResponseItem? Type573 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiDmActionsRetrieveResponseItemDialog? Type574 { get; set; } + /// + /// + /// + public global::LabelStudio.OneOf>? Type575 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type576 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type577 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiInferenceRunsIndicatorsRetrieveResponseItem? Type578 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type579 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiMlVersionsRetrieveResponse? Type580 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type581 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiModelProviderConnectionsProviderChoicesRetrieveResponse? Type582 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type583 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiOrganizationsMemberTagsAssignmentsCreateResponse? Type584 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiOrganizationsMemberTagsBulkDestroyResponse? Type585 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiOrganizationsMemberTagsBulkCreateResponse? Type586 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiOrganizationsMemberTagsImportsCreateResponse? Type587 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type588 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type589 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type590 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type591 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type592 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponse? Type593 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponseStatus? Type594 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsDashboardRetrieveResponse? Type595 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsDuplicateCreateResponse? Type596 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type597 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsExportsConvertCreateResponse? Type598 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type599 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsImportCreateResponse? Type600 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsImportPredictionsCreateResponse? Type601 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsMembersBulkDestroyResponse? Type602 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsMembersBulkCreateResponse? Type603 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsModelStatsAgreementRetrieveResponse? Type604 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsModelStatsAgreementGroundtruthRetrieveResponse? Type605 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsModelStatsPredictionRetrieveResponse? Type606 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsStatsIaaRetrieveResponse? Type607 { get; set; } + /// + /// + /// + public global::LabelStudio.OneOf>, global::System.Collections.Generic.Dictionary>>>? Type608 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary>>? Type609 { get; set; } + /// + /// + /// + public global::LabelStudio.OneOf>? Type610 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsStatsAgreementGroundtruthRetrieveResponse? Type611 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorRetrieveResponse? Type612 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorsRetrieveResponse? Type613 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponse? Type614 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFilters? Type615 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type616 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFiltersStat? Type617 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsStatsFinishedRetrieveResponse? Type618 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponse? Type619 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type620 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponseLeadTimeStat? Type621 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant1? Type622 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant2? Type623 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type624 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsTasksAssigneesCreateResponse? Type625 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type626 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsUserStatsPredictionRetrieveResponse? Type627 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieveResponse? Type628 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsUserStatsPredictionRetrieve2Response? Type629 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieve2Response? Type630 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiProjectsUsersStatsAgreementGroundtruthRetrieveResponse? Type631 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type632 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type633 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type634 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type635 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type636 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type637 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type638 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type639 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type640 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type641 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type642 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type643 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type644 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type645 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type646 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type647 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type648 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type649 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type650 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesExportTypesRetrieveResponseItem? Type651 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type652 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type653 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type654 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type655 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type656 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type657 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type658 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiStoragesTypesRetrieveResponseItem? Type659 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type660 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type661 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type662 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponse? Type663 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsCreated? Type664 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsDeleted? Type665 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationCreated? Type666 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationUpdated? Type667 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkCreated? Type668 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkDeleted? Type669 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkUpdated? Type670 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectCreated? Type671 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectDeleted? Type672 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectUpdated? Type673 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewsDeleted? Type674 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewCreated? Type675 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewUpdated? Type676 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksCreated? Type677 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksDeleted? Type678 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type679 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type680 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWorkspacesMembershipsBulkDestroyResponse? Type681 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWorkspacesMembershipsBulkCreateResponse? Type682 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type683 { get; set; } + + /// + /// + /// + public global::System.Collections.Generic.List? ListType0 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType1 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType2 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType3 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType4 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType5 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType6 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType7 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType8 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType9 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType10 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType11 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType12 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType13 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType14 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType15 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType16 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType17 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType18 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType19 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType20 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType21 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType22 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType23 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType24 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType25 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType26 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType27 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType28 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType29 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType30 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType31 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType32 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType33 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType34 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType35 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType36 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType37 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType38 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType39 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType40 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType41 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType42 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType43 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType44 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType45 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType46 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType47 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType48 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType49 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType50 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType51 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType52 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType53 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType54 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType55 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType56 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType57 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType58 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType59 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType60 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType61 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType62 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType63 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType64 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType65 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType66 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType67 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType68 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType69 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType70 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType71 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType72 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType73 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType74 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType75 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType76 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType77 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType78 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType79 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType80 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType81 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType82 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType83 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType84 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType85 { get; set; } + /// + /// + /// + public global::LabelStudio.OneOf>? ListType86 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType87 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType88 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType89 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType90 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType91 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType92 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType93 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType94 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType95 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType96 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType97 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType98 { get; set; } + /// + /// + /// + public global::LabelStudio.OneOf>, global::System.Collections.Generic.Dictionary>>>? ListType99 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary>>? ListType100 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType101 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType102 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType103 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType104 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType105 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType106 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType107 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType108 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType109 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType110 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType111 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType112 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType113 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType114 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType115 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType116 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType117 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType118 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType119 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType120 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType121 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType122 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType123 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType124 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType125 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType126 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType127 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType128 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType129 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType130 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType131 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType132 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType133 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType134 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType135 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType136 { get; set; } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JwtSettingsClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JwtSettingsClient.Get.g.cs index 5c06e43..7b63192 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JwtSettingsClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JwtSettingsClient.Get.g.cs @@ -102,7 +102,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LSEJWTSettings.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LSEJWTSettings.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -132,7 +132,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LSEJWTSettings.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LSEJWTSettings.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JwtSettingsClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JwtSettingsClient.Update.g.cs index 3b49549..bb0708b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JwtSettingsClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JwtSettingsClient.Update.g.cs @@ -68,7 +68,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LSEJWTSettings.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LSEJWTSettings.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LSEJWTSettings.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LSEJWTSettings.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JwtSettingsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JwtSettingsClient.g.cs index 6a9b9b5..57bd4d9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JwtSettingsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JwtSettingsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class JwtSettingsClient : global::LabelStudio.IJwtSettings /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.g.cs index 205384b..9b54399 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.g.cs @@ -34,183 +34,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio /// /// /// - #pragma warning disable CS0618 // Type or member is obsolete - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions - { - PropertyNameCaseInsensitive = true, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = - { - new global::LabelStudio.JsonConverters.ActionEnumJsonConverter(), - new global::LabelStudio.JsonConverters.ActionEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ActionsEnumJsonConverter(), - new global::LabelStudio.JsonConverters.ActionsEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.AgreementMethodologyEnumJsonConverter(), - new global::LabelStudio.JsonConverters.AgreementMethodologyEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.AgreementV2BackfillJobStatusEnumJsonConverter(), - new global::LabelStudio.JsonConverters.AgreementV2BackfillJobStatusEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.AnnotatedEnumJsonConverter(), - new global::LabelStudio.JsonConverters.AnnotatedEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.AuthMethodEnumJsonConverter(), - new global::LabelStudio.JsonConverters.AuthMethodEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.AuthTypeEnumJsonConverter(), - new global::LabelStudio.JsonConverters.AuthTypeEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.BudgetResetPeriodEnumJsonConverter(), - new global::LabelStudio.JsonConverters.BudgetResetPeriodEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.DashboardTypeEnumJsonConverter(), - new global::LabelStudio.JsonConverters.DashboardTypeEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.Default165EnumJsonConverter(), - new global::LabelStudio.JsonConverters.Default165EnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.EditionEnumJsonConverter(), - new global::LabelStudio.JsonConverters.EditionEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.FinishedEnumJsonConverter(), - new global::LabelStudio.JsonConverters.FinishedEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.LabelStreamTaskDistributionEnumJsonConverter(), - new global::LabelStudio.JsonConverters.LabelStreamTaskDistributionEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.LastActionEnumJsonConverter(), - new global::LabelStudio.JsonConverters.LastActionEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ModeEnumJsonConverter(), - new global::LabelStudio.JsonConverters.ModeEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ModelRunStatusEnumJsonConverter(), - new global::LabelStudio.JsonConverters.ModelRunStatusEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.OnboardingStateEnumJsonConverter(), - new global::LabelStudio.JsonConverters.OnboardingStateEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.Options165EnumJsonConverter(), - new global::LabelStudio.JsonConverters.Options165EnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.OrganizationMemberTagImportStatusStatusEnumJsonConverter(), - new global::LabelStudio.JsonConverters.OrganizationMemberTagImportStatusStatusEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ProjectGroupRoleEnumJsonConverter(), - new global::LabelStudio.JsonConverters.ProjectGroupRoleEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ProjectSubsetEnumJsonConverter(), - new global::LabelStudio.JsonConverters.ProjectSubsetEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.PromptsStatusEnumJsonConverter(), - new global::LabelStudio.JsonConverters.PromptsStatusEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ProviderEnumJsonConverter(), - new global::LabelStudio.JsonConverters.ProviderEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ReasonEnumJsonConverter(), - new global::LabelStudio.JsonConverters.ReasonEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.RequeueRejectedTasksModeEnumJsonConverter(), - new global::LabelStudio.JsonConverters.RequeueRejectedTasksModeEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ReviewCriteriaEnumJsonConverter(), - new global::LabelStudio.JsonConverters.ReviewCriteriaEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ReviewSettingsSamplingEnumJsonConverter(), - new global::LabelStudio.JsonConverters.ReviewSettingsSamplingEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ReviewedEnumJsonConverter(), - new global::LabelStudio.JsonConverters.ReviewedEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.Role9e7EnumJsonConverter(), - new global::LabelStudio.JsonConverters.Role9e7EnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.SamplingDe5EnumJsonConverter(), - new global::LabelStudio.JsonConverters.SamplingDe5EnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ScopeEnumJsonConverter(), - new global::LabelStudio.JsonConverters.ScopeEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.SegmentationEnumJsonConverter(), - new global::LabelStudio.JsonConverters.SegmentationEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.SkillNameEnumJsonConverter(), - new global::LabelStudio.JsonConverters.SkillNameEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.SkipQueueEnumJsonConverter(), - new global::LabelStudio.JsonConverters.SkipQueueEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.SkippedEnumJsonConverter(), - new global::LabelStudio.JsonConverters.SkippedEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.StateEnumJsonConverter(), - new global::LabelStudio.JsonConverters.StateEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.Status7bfEnumJsonConverter(), - new global::LabelStudio.JsonConverters.Status7bfEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.StatusC5aEnumJsonConverter(), - new global::LabelStudio.JsonConverters.StatusC5aEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.TrialRoleEnumJsonConverter(), - new global::LabelStudio.JsonConverters.TrialRoleEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.TypeEnumJsonConverter(), - new global::LabelStudio.JsonConverters.TypeEnumNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmActionsCreateRequestFiltersConjunctionJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmActionsCreateRequestFiltersConjunctionNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmActionsCreateRequestFiltersItemFilterJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmActionsCreateRequestFiltersItemFilterNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmActionsCreateRequestFiltersItemOperatorJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmActionsCreateRequestFiltersItemOperatorNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmActionsCreateRequestOrderingItemJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmActionsCreateRequestOrderingItemNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmViewsCreateRequestDataFiltersConjunctionJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmViewsCreateRequestDataFiltersConjunctionNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmViewsCreateRequestDataFiltersItemFilterJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmViewsCreateRequestDataFiltersItemFilterNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmViewsCreateRequestDataFiltersItemOperatorJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmViewsCreateRequestDataFiltersItemOperatorNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmViewsCreateRequestDataOrderingItemJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmViewsCreateRequestDataOrderingItemNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmViewsPartialUpdateRequestDataFiltersConjunctionJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmViewsPartialUpdateRequestDataFiltersConjunctionNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmViewsPartialUpdateRequestDataFiltersItemFilterJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmViewsPartialUpdateRequestDataFiltersItemFilterNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmViewsPartialUpdateRequestDataFiltersItemOperatorJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmViewsPartialUpdateRequestDataFiltersItemOperatorNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmViewsPartialUpdateRequestDataOrderingItemJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmViewsPartialUpdateRequestDataOrderingItemNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmViewsUpdateRequestDataFiltersConjunctionJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmViewsUpdateRequestDataFiltersConjunctionNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmViewsUpdateRequestDataFiltersItemFilterJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmViewsUpdateRequestDataFiltersItemFilterNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmViewsUpdateRequestDataFiltersItemOperatorJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmViewsUpdateRequestDataFiltersItemOperatorNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmViewsUpdateRequestDataOrderingItemJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmViewsUpdateRequestDataOrderingItemNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiLlmOpenaiChatCompletionsCreateRequestMessageRoleJsonConverter(), - new global::LabelStudio.JsonConverters.ApiLlmOpenaiChatCompletionsCreateRequestMessageRoleNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiMlCreateRequestAuthMethodJsonConverter(), - new global::LabelStudio.JsonConverters.ApiMlCreateRequestAuthMethodNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiMlPartialUpdateRequestAuthMethodJsonConverter(), - new global::LabelStudio.JsonConverters.ApiMlPartialUpdateRequestAuthMethodNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesCreateRequestFiltersConjunctionJsonConverter(), - new global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesCreateRequestFiltersConjunctionNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesCreateRequestFiltersItemFilterJsonConverter(), - new global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesCreateRequestFiltersItemFilterNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesCreateRequestFiltersItemOperatorJsonConverter(), - new global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesCreateRequestFiltersItemOperatorNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesCreateRequestTypeJsonConverter(), - new global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesCreateRequestTypeNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesPartialUpdateRequestTypeJsonConverter(), - new global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesPartialUpdateRequestTypeNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesCreate2RequestTypeJsonConverter(), - new global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesCreate2RequestTypeNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiActivityLogsListMethodJsonConverter(), - new global::LabelStudio.JsonConverters.ApiActivityLogsListMethodNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmActionsCreateIdJsonConverter(), - new global::LabelStudio.JsonConverters.ApiDmActionsCreateIdNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesDestroyTypeJsonConverter(), - new global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesDestroyTypeNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiPromptsCompatibleProjectsListProjectTypeJsonConverter(), - new global::LabelStudio.JsonConverters.ApiPromptsCompatibleProjectsListProjectTypeNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiPromptsVersionsInferenceRunsListProjectSubsetJsonConverter(), - new global::LabelStudio.JsonConverters.ApiPromptsVersionsInferenceRunsListProjectSubsetNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiTasksListFieldsJsonConverter(), - new global::LabelStudio.JsonConverters.ApiTasksListFieldsNullableJsonConverter(), - new global::LabelStudio.JsonConverters.ApiProjectsAwsCustomFunctionRetrieveResponseStatusJsonConverter(), - new global::LabelStudio.JsonConverters.ApiProjectsAwsCustomFunctionRetrieveResponseStatusNullableJsonConverter(), - new global::LabelStudio.JsonConverters.MaybeExpandedCommentJsonConverter(), - new global::LabelStudio.JsonConverters.RoleBasedTaskJsonConverter(), - new global::LabelStudio.JsonConverters.OneOfJsonConverter(), - new global::LabelStudio.JsonConverters.OneOfJsonConverter(), - new global::LabelStudio.JsonConverters.OneOfJsonConverter(), - new global::LabelStudio.JsonConverters.OneOfJsonConverter(), - new global::LabelStudio.JsonConverters.OneOfJsonConverter(), - new global::LabelStudio.JsonConverters.OneOfJsonConverter(), - new global::LabelStudio.JsonConverters.OneOfJsonConverter(), - new global::LabelStudio.JsonConverters.OneOfJsonConverter>(), - new global::LabelStudio.JsonConverters.OneOfJsonConverter>, global::System.Collections.Generic.Dictionary>>>(), - new global::LabelStudio.JsonConverters.OneOfJsonConverter>, global::System.Collections.Generic.Dictionary>>>(), - new global::LabelStudio.JsonConverters.OneOfJsonConverter>(), - new global::LabelStudio.JsonConverters.OneOfJsonConverter>(), - new global::LabelStudio.JsonConverters.OneOfJsonConverter(), - new global::LabelStudio.JsonConverters.OneOfJsonConverter>(), - new global::LabelStudio.JsonConverters.OneOfJsonConverter>(), - new global::LabelStudio.JsonConverters.OneOfJsonConverter>(), - new global::LabelStudio.JsonConverters.OneOfJsonConverter>(), - new global::LabelStudio.JsonConverters.OneOfJsonConverter>(), - new global::LabelStudio.JsonConverters.OneOfJsonConverter>(), - new global::LabelStudio.JsonConverters.OneOfJsonConverter>(), - new global::LabelStudio.JsonConverters.UnixTimestampJsonConverter(), - } - }; - #pragma warning restore CS0618 // Type or member is obsolete + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// @@ -219,7 +43,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public ActionsClient Actions => new ActionsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -228,7 +52,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public ActivityLogsClient ActivityLogs => new ActivityLogsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -237,7 +61,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public AnalyticsClient Analytics => new AnalyticsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -246,7 +70,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public AnnotationHistoryClient AnnotationHistory => new AnnotationHistoryClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -255,7 +79,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public AnnotationReviewsClient AnnotationReviews => new AnnotationReviewsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -264,7 +88,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public AnnotationReviews2Client AnnotationReviews2 => new AnnotationReviews2Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -273,7 +97,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public AnnotationsClient Annotations => new AnnotationsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -282,7 +106,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public AwsClient Aws => new AwsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -291,7 +115,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public BillingClient Billing => new BillingClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -300,7 +124,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public BlueprintsClient Blueprints => new BlueprintsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -309,7 +133,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public Blueprints2Client Blueprints2 => new Blueprints2Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -318,7 +142,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public CommentsClient Comments => new CommentsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -327,7 +151,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public Comments2Client Comments2 => new Comments2Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -336,7 +160,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public DataExplorerClient DataExplorer => new DataExplorerClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -345,7 +169,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public DataManagerClient DataManager => new DataManagerClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -354,7 +178,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public DatasetStorageAzureClient DatasetStorageAzure => new DatasetStorageAzureClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -363,7 +187,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public DatasetStorageGcsClient DatasetStorageGcs => new DatasetStorageGcsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -372,7 +196,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public DatasetStorageS3Client DatasetStorageS3 => new DatasetStorageS3Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -381,7 +205,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public DatasetsClient Datasets => new DatasetsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -390,7 +214,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public DimensionsClient Dimensions => new DimensionsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -399,7 +223,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public Dimensions2Client Dimensions2 => new Dimensions2Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -408,7 +232,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public ExportClient Export => new ExportClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -417,7 +241,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public ImportClient Import => new ImportClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -426,7 +250,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public JwtSettingsClient JwtSettings => new JwtSettingsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -435,7 +259,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public LabelsClient Labels => new LabelsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -444,7 +268,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public Labels2Client Labels2 => new Labels2Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -453,7 +277,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public LlmClient Llm => new LlmClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -462,7 +286,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public MlClient Ml => new MlClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -471,7 +295,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public ModelProviderConnectionClient ModelProviderConnection => new ModelProviderConnectionClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -480,7 +304,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public ModelProvidersClient ModelProviders => new ModelProvidersClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -489,7 +313,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public OrganizationsClient Organizations => new OrganizationsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -498,7 +322,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public Organizations2Client Organizations2 => new Organizations2Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -507,7 +331,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public PausesClient Pauses => new PausesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -516,7 +340,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public PredictionsClient Predictions => new PredictionsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -525,7 +349,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public Predictions2Client Predictions2 => new Predictions2Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -534,7 +358,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public ProjectRolesClient ProjectRoles => new ProjectRolesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -543,7 +367,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public ProjectTemplatesClient ProjectTemplates => new ProjectTemplatesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -552,7 +376,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public ProjectsClient Projects => new ProjectsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -561,7 +385,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public Projects2Client Projects2 => new Projects2Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -570,7 +394,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public PromptsClient Prompts => new PromptsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -579,7 +403,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public Prompts2Client Prompts2 => new Prompts2Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -588,7 +412,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public SessionPolicyClient SessionPolicy => new SessionPolicyClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -597,7 +421,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public SsoClient Sso => new SsoClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -606,7 +430,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public StatesClient States => new StatesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -615,7 +439,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public StatsClient Stats => new StatsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -624,7 +448,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public StorageClient Storage => new StorageClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -633,7 +457,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public StorageAzureClient StorageAzure => new StorageAzureClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -642,7 +466,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public StorageAzureSpiClient StorageAzureSpi => new StorageAzureSpiClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -651,7 +475,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public StorageDatabricksFilesClient StorageDatabricksFiles => new StorageDatabricksFilesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -660,7 +484,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public StorageGcsClient StorageGcs => new StorageGcsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -669,7 +493,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public StorageGcsWifClient StorageGcsWif => new StorageGcsWifClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -678,7 +502,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public StorageLocalClient StorageLocal => new StorageLocalClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -687,7 +511,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public StorageRedisClient StorageRedis => new StorageRedisClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -696,7 +520,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public StorageS3Client StorageS3 => new StorageS3Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -705,7 +529,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public StorageS3RolesClient StorageS3Roles => new StorageS3RolesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -714,7 +538,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public TasksClient Tasks => new TasksClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -723,7 +547,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public Tasks2Client Tasks2 => new Tasks2Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -732,7 +556,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public TokensClient Tokens => new TokensClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -741,7 +565,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public UsersClient Users => new UsersClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -750,7 +574,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public VersionsClient Versions => new VersionsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -759,7 +583,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public ViewsClient Views => new ViewsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -768,7 +592,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public WebhooksClient Webhooks => new WebhooksClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -777,7 +601,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public Webhooks2Client Webhooks2 => new Webhooks2Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -786,7 +610,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public WorkspacesClient Workspaces => new WorkspacesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// @@ -795,7 +619,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public Workspaces2Client Workspaces2 => new Workspaces2Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerOptions = JsonSerializerOptions, + JsonSerializerContext = JsonSerializerContext, }; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Create2.g.cs index fb3226f..b0666a0 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Create2.g.cs @@ -82,7 +82,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, JsonSerializerOptions); + var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -133,7 +133,7 @@ partial void ProcessCreate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.PaginatedLabelCreateList.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.PaginatedLabelCreateList.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -163,7 +163,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedLabelCreateList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedLabelCreateList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Get2.g.cs index f441023..7c26f42 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Get2.g.cs @@ -109,7 +109,7 @@ partial void ProcessGet2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Label.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Label.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessGet2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Label.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Label.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.List2.g.cs index b814891..f9344d0 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.List2.g.cs @@ -118,7 +118,7 @@ partial void ProcessList2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.PaginatedLabelList.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.PaginatedLabelList.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedLabelList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedLabelList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Update2.g.cs index 40897bb..4e81a71 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Update2.g.cs @@ -73,7 +73,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessUpdate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Label.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Label.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Label.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Label.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.g.cs index 422f535..1acc98d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.g.cs @@ -33,7 +33,7 @@ public sealed partial class Labels2Client : global::LabelStudio.ILabels2Client, /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Create.g.cs index 9268ba3..9ba68e4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Create.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LabelLink.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LabelLink.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LabelLink.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LabelLink.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Get.g.cs index 28149b8..f3b44ef 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Get.g.cs @@ -108,7 +108,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LabelLink.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LabelLink.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LabelLink.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LabelLink.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.List.g.cs index 055d812..042ab67 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.List.g.cs @@ -111,7 +111,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.PaginatedLabelLinkList.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.PaginatedLabelLinkList.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -141,7 +141,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedLabelLinkList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedLabelLinkList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Update.g.cs index 8113cb1..58e2d7a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Update.g.cs @@ -75,7 +75,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -125,7 +125,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LabelLink.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LabelLink.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -155,7 +155,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LabelLink.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LabelLink.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.g.cs index 15494c7..fdb6e29 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class LabelsClient : global::LabelStudio.ILabelsClient, gl /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LlmClient.ApiLlmOpenaiChatCompletionsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LlmClient.ApiLlmOpenaiChatCompletionsCreate.g.cs index 1b7aa86..b60b73e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LlmClient.ApiLlmOpenaiChatCompletionsCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LlmClient.ApiLlmOpenaiChatCompletionsCreate.g.cs @@ -68,7 +68,7 @@ partial void ProcessApiLlmOpenaiChatCompletionsCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -105,13 +105,13 @@ partial void ProcessApiLlmOpenaiChatCompletionsCreateResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); + __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); + __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LlmClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LlmClient.g.cs index f5b22af..c6a29a2 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LlmClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LlmClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class LlmClient : global::LabelStudio.ILlmClient, global:: /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Create.g.cs index 93efab1..1aed0aa 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Create.g.cs @@ -73,7 +73,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.MLBackend.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.MLBackend.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -152,7 +152,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.MLBackend.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.MLBackend.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Get.g.cs index 5f8e2a6..c9ad9de 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Get.g.cs @@ -112,7 +112,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.MLBackend.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.MLBackend.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -142,7 +142,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.MLBackend.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.MLBackend.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.List.g.cs index 06773d0..b68eae7 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.List.g.cs @@ -115,7 +115,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.ListModelVersions.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.ListModelVersions.g.cs index f10c7ec..04ac69e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.ListModelVersions.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.ListModelVersions.g.cs @@ -108,7 +108,7 @@ partial void ProcessListModelVersionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiMlVersionsRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiMlVersionsRetrieveResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessListModelVersionsResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiMlVersionsRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiMlVersionsRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.PredictInteractive.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.PredictInteractive.g.cs index 27e9699..c72802f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.PredictInteractive.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.PredictInteractive.g.cs @@ -71,7 +71,7 @@ partial void ProcessPredictInteractiveResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.TestPredict.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.TestPredict.g.cs index d230352..094ab25 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.TestPredict.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.TestPredict.g.cs @@ -69,7 +69,7 @@ partial void ProcessTestPredictResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -107,13 +107,13 @@ partial void ProcessTestPredictResponse( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); + __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); + __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Train.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Train.g.cs index b02b7f6..c4ee5ba 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Train.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Train.g.cs @@ -72,7 +72,7 @@ partial void ProcessTrainResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -110,13 +110,13 @@ partial void ProcessTrainResponse( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); + __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); + __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Update.g.cs index c2af731..4d1091b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Update.g.cs @@ -77,7 +77,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -127,7 +127,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.MLBackend.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.MLBackend.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -157,7 +157,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.MLBackend.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.MLBackend.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.g.cs index ae8fe5d..b47c068 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class MlClient : global::LabelStudio.IMlClient, global::Sy /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ModelProviderConnectionClient.ApiModelProviderConnectionsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ModelProviderConnectionClient.ApiModelProviderConnectionsUpdate.g.cs index f8f8874..7af1451 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ModelProviderConnectionClient.ApiModelProviderConnectionsUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ModelProviderConnectionClient.ApiModelProviderConnectionsUpdate.g.cs @@ -79,7 +79,7 @@ partial void ProcessApiModelProviderConnectionsUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessApiModelProviderConnectionsUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ModelProviderConnection.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ModelProviderConnection.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessApiModelProviderConnectionsUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ModelProviderConnection.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ModelProviderConnection.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ModelProviderConnectionClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ModelProviderConnectionClient.g.cs index 4c5f8a9..eb6320c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ModelProviderConnectionClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ModelProviderConnectionClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class ModelProviderConnectionClient : global::LabelStudio. /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Create.g.cs index 1d62e9f..5b79ba5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Create.g.cs @@ -74,7 +74,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ModelProviderConnection.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ModelProviderConnection.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ModelProviderConnection.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ModelProviderConnection.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Get.g.cs index 6fd45c2..66f730c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Get.g.cs @@ -114,7 +114,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ModelProviderConnection.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ModelProviderConnection.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ModelProviderConnection.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ModelProviderConnection.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.List.g.cs index b746ebf..9c5300f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.List.g.cs @@ -117,7 +117,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.ListModelProviderChoices.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.ListModelProviderChoices.g.cs index 8cf2611..6bea958 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.ListModelProviderChoices.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.ListModelProviderChoices.g.cs @@ -108,7 +108,7 @@ partial void ProcessListModelProviderChoicesResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiModelProviderConnectionsProviderChoicesRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiModelProviderConnectionsProviderChoicesRetrieveResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessListModelProviderChoicesResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiModelProviderConnectionsProviderChoicesRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiModelProviderConnectionsProviderChoicesRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Update.g.cs index 5a021fc..1c5c0c4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Update.g.cs @@ -79,7 +79,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ModelProviderConnection.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ModelProviderConnection.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ModelProviderConnection.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ModelProviderConnection.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.g.cs index ffb88d4..2e54633 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class ModelProvidersClient : global::LabelStudio.IModelPro /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.Get.g.cs index f40a1db..d73e5be 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.Get.g.cs @@ -108,7 +108,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LseOrganization.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LseOrganization.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseOrganization.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LseOrganization.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.List.g.cs index 8518a51..d02b835 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.List.g.cs @@ -112,7 +112,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -142,7 +142,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.ResetToken.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.ResetToken.g.cs index 2f858bc..dcf6f84 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.ResetToken.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.ResetToken.g.cs @@ -102,7 +102,7 @@ partial void ProcessResetTokenResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.OrganizationInvite.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.OrganizationInvite.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -132,7 +132,7 @@ partial void ProcessResetTokenResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.OrganizationInvite.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.OrganizationInvite.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.g.cs index d3ac006..d2cbf20 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.g.cs @@ -33,7 +33,7 @@ public sealed partial class Organizations2Client : global::LabelStudio.IOrganiza /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Assign.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Assign.g.cs index 6723b2f..c0aaf10 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Assign.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Assign.g.cs @@ -123,7 +123,7 @@ partial void ProcessAssignResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -246,7 +246,7 @@ partial void ProcessAssignResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiOrganizationsMemberTagsAssignmentsCreateResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiOrganizationsMemberTagsAssignmentsCreateResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -276,7 +276,7 @@ partial void ProcessAssignResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiOrganizationsMemberTagsAssignmentsCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiOrganizationsMemberTagsAssignmentsCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Create.g.cs index bd35806..16f0d3d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Create.g.cs @@ -79,7 +79,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -195,7 +195,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.OrganizationMemberTag.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.OrganizationMemberTag.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -225,7 +225,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.OrganizationMemberTag.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.OrganizationMemberTag.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Create2.g.cs index 2a2c9ce..d67dd89 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Create2.g.cs @@ -79,7 +79,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -195,7 +195,7 @@ partial void ProcessCreate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.OrganizationPermission.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.OrganizationPermission.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -225,7 +225,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.OrganizationPermission.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.OrganizationPermission.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Delete.g.cs index 9d35791..3cc8f46 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Delete.g.cs @@ -180,7 +180,7 @@ partial void ProcessDeleteResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiOrganizationsMemberTagsBulkDestroyResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiOrganizationsMemberTagsBulkDestroyResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -210,7 +210,7 @@ partial void ProcessDeleteResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiOrganizationsMemberTagsBulkDestroyResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiOrganizationsMemberTagsBulkDestroyResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Get2.g.cs index c41456d..39448be 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Get2.g.cs @@ -153,7 +153,7 @@ partial void ProcessGet2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.OrganizationMemberTag.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.OrganizationMemberTag.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -183,7 +183,7 @@ partial void ProcessGet2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.OrganizationMemberTag.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.OrganizationMemberTag.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Get3.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Get3.g.cs index 37c6969..5a2c3c9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Get3.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Get3.g.cs @@ -123,7 +123,7 @@ partial void ProcessGet3ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.OrganizationMember.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.OrganizationMember.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessGet3ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.OrganizationMember.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.OrganizationMember.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Get4.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Get4.g.cs index 0bf6014..2c5015f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Get4.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Get4.g.cs @@ -186,7 +186,7 @@ partial void ProcessGet4ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.OrganizationPermission.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.OrganizationPermission.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -216,7 +216,7 @@ partial void ProcessGet4ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.OrganizationPermission.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.OrganizationPermission.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.GetImport.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.GetImport.g.cs index 91891d2..3762197 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.GetImport.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.GetImport.g.cs @@ -187,7 +187,7 @@ partial void ProcessGetImportResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.OrganizationMemberTagImportStatus.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.OrganizationMemberTagImportStatus.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -217,7 +217,7 @@ partial void ProcessGetImportResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.OrganizationMemberTagImportStatus.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.OrganizationMemberTagImportStatus.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.GetInviteLink.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.GetInviteLink.g.cs index 04be8c9..8a35a4f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.GetInviteLink.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.GetInviteLink.g.cs @@ -135,7 +135,7 @@ partial void ProcessGetInviteLinkResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.OrganizationInvite.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.OrganizationInvite.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -165,7 +165,7 @@ partial void ProcessGetInviteLinkResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.OrganizationInvite.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.OrganizationInvite.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.GetOptions.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.GetOptions.g.cs index 3eb9eda..7759ac4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.GetOptions.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.GetOptions.g.cs @@ -123,7 +123,7 @@ partial void ProcessGetOptionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessGetOptionsResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Import.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Import.g.cs index 1e6db95..5721d5b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Import.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Import.g.cs @@ -82,7 +82,7 @@ partial void ProcessImportResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -198,7 +198,7 @@ partial void ProcessImportResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiOrganizationsMemberTagsImportsCreateResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiOrganizationsMemberTagsImportsCreateResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -228,7 +228,7 @@ partial void ProcessImportResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiOrganizationsMemberTagsImportsCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiOrganizationsMemberTagsImportsCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.List2.g.cs index 07dda45..8bc878f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.List2.g.cs @@ -144,7 +144,7 @@ partial void ProcessList2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.PaginatedOrganizationMemberTagList.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.PaginatedOrganizationMemberTagList.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -174,7 +174,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedOrganizationMemberTagList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedOrganizationMemberTagList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.List3.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.List3.g.cs index 924fea2..02199e3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.List3.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.List3.g.cs @@ -179,7 +179,7 @@ partial void ProcessList3ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.PaginatedLseOrganizationMemberListList.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.PaginatedLseOrganizationMemberListList.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -209,7 +209,7 @@ partial void ProcessList3ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedLseOrganizationMemberListList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedLseOrganizationMemberListList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.List4.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.List4.g.cs index c4dd848..9fc6289 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.List4.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.List4.g.cs @@ -123,7 +123,7 @@ partial void ProcessList4ResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessList4ResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Post.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Post.g.cs index 881be15..ee1252d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Post.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Post.g.cs @@ -79,7 +79,7 @@ partial void ProcessPostResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -195,7 +195,7 @@ partial void ProcessPostResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiOrganizationsMemberTagsBulkCreateResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiOrganizationsMemberTagsBulkCreateResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -225,7 +225,7 @@ partial void ProcessPostResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiOrganizationsMemberTagsBulkCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiOrganizationsMemberTagsBulkCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Replace.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Replace.g.cs index c1e16cc..ad7ee2f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Replace.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Replace.g.cs @@ -84,7 +84,7 @@ partial void ProcessReplaceResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -234,7 +234,7 @@ partial void ProcessReplaceResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.OrganizationPermission.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.OrganizationPermission.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -264,7 +264,7 @@ partial void ProcessReplaceResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.OrganizationPermission.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.OrganizationPermission.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.RevokeInvite.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.RevokeInvite.g.cs index 96bc165..664cc5d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.RevokeInvite.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.RevokeInvite.g.cs @@ -69,7 +69,7 @@ partial void ProcessRevokeInviteResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.SendEmail.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.SendEmail.g.cs index d64b6d1..d35d3e9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.SendEmail.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.SendEmail.g.cs @@ -69,7 +69,7 @@ partial void ProcessSendEmailResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update.g.cs index 970668d..25e6e10 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update.g.cs @@ -79,7 +79,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -228,7 +228,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LseOrganization.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LseOrganization.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -258,7 +258,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseOrganization.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LseOrganization.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update2.g.cs index 593c356..62b33c8 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update2.g.cs @@ -84,7 +84,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -234,7 +234,7 @@ partial void ProcessUpdate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.OrganizationMemberTag.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.OrganizationMemberTag.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -264,7 +264,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.OrganizationMemberTag.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.OrganizationMemberTag.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update3.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update3.g.cs index 3058e40..fc43897 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update3.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update3.g.cs @@ -85,7 +85,7 @@ partial void ProcessUpdate3ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -135,7 +135,7 @@ partial void ProcessUpdate3ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LseOrganizationMemberList.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LseOrganizationMemberList.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -165,7 +165,7 @@ partial void ProcessUpdate3ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseOrganizationMemberList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LseOrganizationMemberList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update4.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update4.g.cs index 3c11946..88933dd 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update4.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update4.g.cs @@ -84,7 +84,7 @@ partial void ProcessUpdate4ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -234,7 +234,7 @@ partial void ProcessUpdate4ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.OrganizationPermission.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.OrganizationPermission.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -264,7 +264,7 @@ partial void ProcessUpdate4ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.OrganizationPermission.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.OrganizationPermission.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.UpdateDefaultRole.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.UpdateDefaultRole.g.cs index e8aae62..54d484d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.UpdateDefaultRole.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.UpdateDefaultRole.g.cs @@ -79,7 +79,7 @@ partial void ProcessUpdateDefaultRoleResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessUpdateDefaultRoleResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.DefaultRole.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.DefaultRole.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessUpdateDefaultRoleResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DefaultRole.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.DefaultRole.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.g.cs index f4d693b..1aaf428 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class OrganizationsClient : global::LabelStudio.IOrganizat /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.ApiProjectsMembersPausesUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.ApiProjectsMembersPausesUpdate.g.cs index a299c53..18dbf46 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.ApiProjectsMembersPausesUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.ApiProjectsMembersPausesUpdate.g.cs @@ -89,7 +89,7 @@ partial void ProcessApiProjectsMembersPausesUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -141,7 +141,7 @@ partial void ProcessApiProjectsMembersPausesUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Pause.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Pause.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -171,7 +171,7 @@ partial void ProcessApiProjectsMembersPausesUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Pause.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Pause.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Create.g.cs index f07c76c..c44159f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Create.g.cs @@ -84,7 +84,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -135,7 +135,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Pause.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Pause.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -165,7 +165,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Pause.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Pause.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Get.g.cs index afc5b39..8a1f14a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Get.g.cs @@ -126,7 +126,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Pause.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Pause.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -156,7 +156,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Pause.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Pause.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.List.g.cs index 4cec51f..204dbd2 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.List.g.cs @@ -136,7 +136,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -166,7 +166,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Update.g.cs index 4ea17df..7e51787 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Update.g.cs @@ -89,7 +89,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -141,7 +141,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Pause.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Pause.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -171,7 +171,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Pause.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Pause.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.g.cs index ee502ee..5c1ba5e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class PausesClient : global::LabelStudio.IPausesClient, gl /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Polyfills.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Polyfills.g.cs index 2587e95..38df721 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Polyfills.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.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/LabelStudio/Generated/LabelStudio.Predictions2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Create.g.cs index 4f61211..e25059d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Create.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Prediction.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Prediction.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Prediction.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Prediction.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Get.g.cs index 2b0405a..aabbd46 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Get.g.cs @@ -108,7 +108,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Prediction.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Prediction.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Prediction.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Prediction.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.List.g.cs index a926036..c915aa4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.List.g.cs @@ -118,7 +118,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Update.g.cs index 5fe1dd1..bcaa3b4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Update.g.cs @@ -73,7 +73,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Prediction.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Prediction.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Prediction.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Prediction.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.g.cs index 777d34c..db1f884 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.g.cs @@ -33,7 +33,7 @@ public sealed partial class Predictions2Client : global::LabelStudio.IPrediction /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PredictionsClient.ApiPredictionsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PredictionsClient.ApiPredictionsUpdate.g.cs index 0e0a1e4..c14ea07 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PredictionsClient.ApiPredictionsUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PredictionsClient.ApiPredictionsUpdate.g.cs @@ -73,7 +73,7 @@ partial void ProcessApiPredictionsUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessApiPredictionsUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Prediction.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Prediction.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessApiPredictionsUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Prediction.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Prediction.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PredictionsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PredictionsClient.g.cs index 0500380..f3847e7 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PredictionsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PredictionsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class PredictionsClient : global::LabelStudio.IPredictions /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.Add.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.Add.g.cs index 9d63539..ce17e0c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.Add.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.Add.g.cs @@ -75,7 +75,7 @@ partial void ProcessAddResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -124,7 +124,7 @@ partial void ProcessAddResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ProjectRole.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ProjectRole.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessAddResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ProjectRole.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ProjectRole.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.Get.g.cs index cb1c2ed..b1cef64 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.Get.g.cs @@ -116,7 +116,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -146,7 +146,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.List.g.cs index e6c758f..51dbb82 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.List.g.cs @@ -125,7 +125,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -155,7 +155,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.g.cs index b3f7009..1974cd9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class ProjectRolesClient : global::LabelStudio.IProjectRol /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.ApiProjectTemplatesUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.ApiProjectTemplatesUpdate.g.cs index f784509..80b21e9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.ApiProjectTemplatesUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.ApiProjectTemplatesUpdate.g.cs @@ -79,7 +79,7 @@ partial void ProcessApiProjectTemplatesUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessApiProjectTemplatesUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ProjectTemplate.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ProjectTemplate.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessApiProjectTemplatesUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ProjectTemplate.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ProjectTemplate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Create.g.cs index 01b3fed..f7ae6c1 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Create.g.cs @@ -74,7 +74,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ProjectTemplate.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ProjectTemplate.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ProjectTemplate.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ProjectTemplate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.CreateProjectFromTemplate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.CreateProjectFromTemplate.g.cs index 87dd057..49197bf 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.CreateProjectFromTemplate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.CreateProjectFromTemplate.g.cs @@ -79,7 +79,7 @@ partial void ProcessCreateProjectFromTemplateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessCreateProjectFromTemplateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LseProject.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LseProject.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessCreateProjectFromTemplateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseProject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LseProject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Get.g.cs index cbbd873..c7fc241 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Get.g.cs @@ -114,7 +114,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ProjectTemplate.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ProjectTemplate.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ProjectTemplate.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ProjectTemplate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.List.g.cs index b2df770..bb1c61c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.List.g.cs @@ -117,7 +117,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Update.g.cs index 24c52ad..33580fd 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Update.g.cs @@ -79,7 +79,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ProjectTemplate.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ProjectTemplate.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ProjectTemplate.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ProjectTemplate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.g.cs index 216a373..5656aeb 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class ProjectTemplatesClient : global::LabelStudio.IProjec /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Create.g.cs index 214e883..a8b73cb 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Create.g.cs @@ -70,7 +70,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -119,7 +119,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LseProjectCreate.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LseProjectCreate.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseProjectCreate.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LseProjectCreate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Duplicate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Duplicate.g.cs index 64da3b7..a9b6c92 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Duplicate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Duplicate.g.cs @@ -79,7 +79,7 @@ partial void ProcessDuplicateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessDuplicateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiProjectsDuplicateCreateResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiProjectsDuplicateCreateResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessDuplicateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsDuplicateCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsDuplicateCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Get.g.cs index 7e2a8a2..6025a9a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Get.g.cs @@ -119,7 +119,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LseProjectResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LseProjectResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseProjectResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LseProjectResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ImportPredictions.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ImportPredictions.g.cs index f7e1fb0..e4720fb 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ImportPredictions.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ImportPredictions.g.cs @@ -73,7 +73,7 @@ partial void ProcessImportPredictionsResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, JsonSerializerOptions); + var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -156,7 +156,7 @@ partial void ProcessImportPredictionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiProjectsImportPredictionsCreateResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiProjectsImportPredictionsCreateResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -186,7 +186,7 @@ partial void ProcessImportPredictionsResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsImportPredictionsCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsImportPredictionsCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ImportTasks.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ImportTasks.g.cs index 33376f4..a79e8d2 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ImportTasks.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ImportTasks.g.cs @@ -146,7 +146,7 @@ partial void ProcessImportTasksResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, JsonSerializerOptions); + var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -187,13 +187,13 @@ partial void ProcessImportTasksResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); + __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); + __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -237,7 +237,7 @@ partial void ProcessImportTasksResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiProjectsImportCreateResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiProjectsImportCreateResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -267,7 +267,7 @@ partial void ProcessImportTasksResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsImportCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsImportCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.List.g.cs index 5920413..ca2a036 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.List.g.cs @@ -192,7 +192,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.PaginatedAllRolesProjectListList.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.PaginatedAllRolesProjectListList.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -222,7 +222,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedAllRolesProjectListList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedAllRolesProjectListList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ListCounts.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ListCounts.g.cs index cf77e8a..d954513 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ListCounts.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ListCounts.g.cs @@ -183,7 +183,7 @@ partial void ProcessListCountsResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.PaginatedLseProjectCountsList.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.PaginatedLseProjectCountsList.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -213,7 +213,7 @@ partial void ProcessListCountsResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedLseProjectCountsList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedLseProjectCountsList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ListUniqueAnnotators.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ListUniqueAnnotators.g.cs index d769662..2870c9b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ListUniqueAnnotators.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ListUniqueAnnotators.g.cs @@ -108,7 +108,7 @@ partial void ProcessListUniqueAnnotatorsResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessListUniqueAnnotatorsResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Update.g.cs index 88a0755..91a2897 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Update.g.cs @@ -85,7 +85,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -136,7 +136,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LseProjectUpdate.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LseProjectUpdate.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -166,7 +166,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseProjectUpdate.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LseProjectUpdate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ValidateLabelConfig.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ValidateLabelConfig.g.cs index dbfe027..888d0cc 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ValidateLabelConfig.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ValidateLabelConfig.g.cs @@ -73,7 +73,7 @@ partial void ProcessValidateLabelConfigResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessValidateLabelConfigResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ProjectLabelConfig.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ProjectLabelConfig.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessValidateLabelConfigResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ProjectLabelConfig.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ProjectLabelConfig.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.g.cs index 808121b..b5ecc27 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.g.cs @@ -33,7 +33,7 @@ public sealed partial class Projects2Client : global::LabelStudio.IProjects2Clie /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Add.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Add.g.cs index ff2033c..33ed7f5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Add.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Add.g.cs @@ -79,7 +79,7 @@ partial void ProcessAddResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessAddResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ProjectMember.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ProjectMember.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessAddResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ProjectMember.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ProjectMember.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.ApiProjectsReimportsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.ApiProjectsReimportsRetrieve.g.cs index 633ca64..14e77c2 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.ApiProjectsReimportsRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.ApiProjectsReimportsRetrieve.g.cs @@ -123,7 +123,7 @@ partial void ProcessApiProjectsReimportsRetrieveResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ProjectReimport.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ProjectReimport.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessApiProjectsReimportsRetrieveResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ProjectReimport.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ProjectReimport.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.ApiProjectsTasksList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.ApiProjectsTasksList.g.cs index 37272c2..2aa16e6 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.ApiProjectsTasksList.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.ApiProjectsTasksList.g.cs @@ -135,7 +135,7 @@ partial void ProcessApiProjectsTasksListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -165,7 +165,7 @@ partial void ProcessApiProjectsTasksListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.ApiProjectsValidateCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.ApiProjectsValidateCreate.g.cs index 973d774..621312b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.ApiProjectsValidateCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.ApiProjectsValidateCreate.g.cs @@ -63,7 +63,7 @@ partial void ProcessApiProjectsValidateCreateResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.CheckFunction.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.CheckFunction.g.cs index 79ae30d..2ccf0c6 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.CheckFunction.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.CheckFunction.g.cs @@ -74,7 +74,7 @@ partial void ProcessCheckFunctionResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Create2.g.cs index 074565e..1737e24 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Create2.g.cs @@ -79,7 +79,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessCreate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LseProjectParams.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LseProjectParams.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseProjectParams.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LseProjectParams.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Delete2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Delete2.g.cs index 2eba5c7..2c4d75f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Delete2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Delete2.g.cs @@ -151,7 +151,7 @@ partial void ProcessDelete2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiProjectsMembersBulkDestroyResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiProjectsMembersBulkDestroyResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -181,7 +181,7 @@ partial void ProcessDelete2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsMembersBulkDestroyResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsMembersBulkDestroyResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Get3.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Get3.g.cs index dc8c899..5d4bf4c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Get3.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Get3.g.cs @@ -114,7 +114,7 @@ partial void ProcessGet3ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.MetricParam.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.MetricParam.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessGet3ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.MetricParam.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.MetricParam.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Get4.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Get4.g.cs index c2dee6d..c78af0d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Get4.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Get4.g.cs @@ -114,7 +114,7 @@ partial void ProcessGet4ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LseProjectParams.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LseProjectParams.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessGet4ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseProjectParams.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LseProjectParams.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.GetLambda.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.GetLambda.g.cs index 58d1703..fd026fe 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.GetLambda.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.GetLambda.g.cs @@ -114,7 +114,7 @@ partial void ProcessGetLambdaResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessGetLambdaResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.List2.g.cs index 32262f9..318eea4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.List2.g.cs @@ -206,7 +206,7 @@ partial void ProcessList2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.PaginatedPaginatedProjectMemberList.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.PaginatedPaginatedProjectMemberList.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -236,7 +236,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedPaginatedProjectMemberList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedPaginatedProjectMemberList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Post.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Post.g.cs index bbe7dff..3caf277 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Post.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Post.g.cs @@ -111,7 +111,7 @@ partial void ProcessPostResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -166,7 +166,7 @@ partial void ProcessPostResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiProjectsMembersBulkCreateResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiProjectsMembersBulkCreateResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -196,7 +196,7 @@ partial void ProcessPostResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsMembersBulkCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsMembersBulkCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Update2.g.cs index 4718afe..cffcc38 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Update2.g.cs @@ -81,7 +81,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -131,7 +131,7 @@ partial void ProcessUpdate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.MetricParam.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.MetricParam.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -161,7 +161,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.MetricParam.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.MetricParam.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.UpdateLambda.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.UpdateLambda.g.cs index 70707a1..978299a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.UpdateLambda.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.UpdateLambda.g.cs @@ -74,7 +74,7 @@ partial void ProcessUpdateLambdaResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.g.cs index 679b2f8..022a639 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class ProjectsClient : global::LabelStudio.IProjectsClient /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.BatchFailedPredictions.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.BatchFailedPredictions.g.cs index b44c2cc..cdc8b69 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.BatchFailedPredictions.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.BatchFailedPredictions.g.cs @@ -82,7 +82,7 @@ partial void ProcessBatchFailedPredictionsResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -132,7 +132,7 @@ partial void ProcessBatchFailedPredictionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.BatchFailedPredictions.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.BatchFailedPredictions.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -162,7 +162,7 @@ partial void ProcessBatchFailedPredictionsResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.BatchFailedPredictions.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.BatchFailedPredictions.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.BatchPredictions.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.BatchPredictions.g.cs index 18baa38..d5968ff 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.BatchPredictions.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.BatchPredictions.g.cs @@ -82,7 +82,7 @@ partial void ProcessBatchPredictionsResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -132,7 +132,7 @@ partial void ProcessBatchPredictionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.BatchPredictions.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.BatchPredictions.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -162,7 +162,7 @@ partial void ProcessBatchPredictionsResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.BatchPredictions.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.BatchPredictions.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.CompatibleProjects.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.CompatibleProjects.g.cs index 0c81991..1dd4db1 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.CompatibleProjects.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.CompatibleProjects.g.cs @@ -134,7 +134,7 @@ partial void ProcessCompatibleProjectsResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.PaginatedAllRolesProjectListList.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.PaginatedAllRolesProjectListList.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -164,7 +164,7 @@ partial void ProcessCompatibleProjectsResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedAllRolesProjectListList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedAllRolesProjectListList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Create.g.cs index 1e06f05..3642c6e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Create.g.cs @@ -74,7 +74,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ModelInterface.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ModelInterface.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ModelInterface.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ModelInterface.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Get2.g.cs index 0ad6f8c..73ce2be 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Get2.g.cs @@ -114,7 +114,7 @@ partial void ProcessGet2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ModelInterfaceSerializerGET.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ModelInterfaceSerializerGET.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessGet2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ModelInterfaceSerializerGET.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ModelInterfaceSerializerGET.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.List2.g.cs index ba522af..29de06a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.List2.g.cs @@ -111,7 +111,7 @@ partial void ProcessList2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -141,7 +141,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.SubsetTasks.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.SubsetTasks.g.cs index 04e097f..e323346 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.SubsetTasks.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.SubsetTasks.g.cs @@ -199,7 +199,7 @@ partial void ProcessSubsetTasksResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.PaginatedProjectSubsetTasksResponseList.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.PaginatedProjectSubsetTasksResponseList.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -229,7 +229,7 @@ partial void ProcessSubsetTasksResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedProjectSubsetTasksResponseList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedProjectSubsetTasksResponseList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Subsets.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Subsets.g.cs index 2819592..fb780a1 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Subsets.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Subsets.g.cs @@ -124,7 +124,7 @@ partial void ProcessSubsetsResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessSubsetsResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Update.g.cs index 72538ac..26613fb 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Update.g.cs @@ -79,7 +79,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ModelInterface.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ModelInterface.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ModelInterface.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ModelInterface.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.g.cs index 6c92a8c..e9fdffe 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.g.cs @@ -33,7 +33,7 @@ public sealed partial class Prompts2Client : global::LabelStudio.IPrompts2Client /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsUpdate.g.cs index 4e9ae67..33fbffd 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsUpdate.g.cs @@ -79,7 +79,7 @@ partial void ProcessApiPromptsUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessApiPromptsUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ModelInterface.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ModelInterface.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessApiPromptsUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ModelInterface.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ModelInterface.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsUpdate.g.cs index 331bd18..b8af778 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsUpdate.g.cs @@ -84,7 +84,7 @@ partial void ProcessApiPromptsVersionsUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -135,7 +135,7 @@ partial void ProcessApiPromptsVersionsUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ThirdPartyModelVersion.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ThirdPartyModelVersion.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -165,7 +165,7 @@ partial void ProcessApiPromptsVersionsUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ThirdPartyModelVersion.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ThirdPartyModelVersion.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Cancel.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Cancel.g.cs index 7f58d8e..4e3ffab 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Cancel.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Cancel.g.cs @@ -126,7 +126,7 @@ partial void ProcessCancelResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.CancelModelRunResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.CancelModelRunResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -156,7 +156,7 @@ partial void ProcessCancelResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.CancelModelRunResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.CancelModelRunResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.CostEstimate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.CostEstimate.g.cs index e0082d6..e37ee62 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.CostEstimate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.CostEstimate.g.cs @@ -120,7 +120,7 @@ partial void ProcessCostEstimateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.InferenceRunCostEstimate.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.InferenceRunCostEstimate.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -150,7 +150,7 @@ partial void ProcessCostEstimateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.InferenceRunCostEstimate.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.InferenceRunCostEstimate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Create2.g.cs index 1509c0b..3594ad3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Create2.g.cs @@ -79,7 +79,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessCreate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ThirdPartyModelVersion.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ThirdPartyModelVersion.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ThirdPartyModelVersion.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ThirdPartyModelVersion.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Create3.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Create3.g.cs index 88ac10a..3b916b0 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Create3.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Create3.g.cs @@ -84,7 +84,7 @@ partial void ProcessCreate3ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -135,7 +135,7 @@ partial void ProcessCreate3ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ModelRun.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ModelRun.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -165,7 +165,7 @@ partial void ProcessCreate3ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ModelRun.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ModelRun.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Get.g.cs index 813e56f..63532b0 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Get.g.cs @@ -120,7 +120,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LSEKeyIndicatorValue.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LSEKeyIndicatorValue.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -150,7 +150,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LSEKeyIndicatorValue.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LSEKeyIndicatorValue.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Get3.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Get3.g.cs index 0cee615..c79fae4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Get3.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Get3.g.cs @@ -120,7 +120,7 @@ partial void ProcessGet3ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ThirdPartyModelVersion.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ThirdPartyModelVersion.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -150,7 +150,7 @@ partial void ProcessGet3ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ThirdPartyModelVersion.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ThirdPartyModelVersion.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.GetRefinedPrompt.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.GetRefinedPrompt.g.cs index 8c0c731..16a2afc 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.GetRefinedPrompt.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.GetRefinedPrompt.g.cs @@ -129,7 +129,7 @@ partial void ProcessGetRefinedPromptResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.RefinedPromptResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.RefinedPromptResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessGetRefinedPromptResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.RefinedPromptResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.RefinedPromptResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.List.g.cs index 45bb208..08d29ce 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.List.g.cs @@ -114,7 +114,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.List3.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.List3.g.cs index 35fbe1d..88f48e8 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.List3.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.List3.g.cs @@ -123,7 +123,7 @@ partial void ProcessList3ResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessList3ResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.List4.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.List4.g.cs index f9647a6..19d4a72 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.List4.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.List4.g.cs @@ -150,7 +150,7 @@ partial void ProcessList4ResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -180,7 +180,7 @@ partial void ProcessList4ResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.RefinePrompt.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.RefinePrompt.g.cs index a3b6c64..20339c9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.RefinePrompt.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.RefinePrompt.g.cs @@ -92,7 +92,7 @@ partial void ProcessRefinePromptResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -144,7 +144,7 @@ partial void ProcessRefinePromptResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.RefinedPromptResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.RefinedPromptResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -174,7 +174,7 @@ partial void ProcessRefinePromptResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.RefinedPromptResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.RefinedPromptResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Update2.g.cs index dfa2211..7f59579 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Update2.g.cs @@ -84,7 +84,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -135,7 +135,7 @@ partial void ProcessUpdate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ThirdPartyModelVersion.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ThirdPartyModelVersion.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -165,7 +165,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ThirdPartyModelVersion.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ThirdPartyModelVersion.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.g.cs index 6054c84..87b8447 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class PromptsClient : global::LabelStudio.IPromptsClient, /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.SessionPolicyClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.SessionPolicyClient.Get.g.cs index d61c3be..c75360b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.SessionPolicyClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.SessionPolicyClient.Get.g.cs @@ -102,7 +102,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.SessionTimeoutPolicy.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.SessionTimeoutPolicy.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -132,7 +132,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.SessionTimeoutPolicy.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.SessionTimeoutPolicy.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.SessionPolicyClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.SessionPolicyClient.Update.g.cs index c7b0918..eada1f9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.SessionPolicyClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.SessionPolicyClient.Update.g.cs @@ -68,7 +68,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.SessionTimeoutPolicy.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.SessionTimeoutPolicy.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.SessionTimeoutPolicy.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.SessionTimeoutPolicy.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.SessionPolicyClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.SessionPolicyClient.g.cs index 4f3cb72..fd80e48 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.SessionPolicyClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.SessionPolicyClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class SessionPolicyClient : global::LabelStudio.ISessionPo /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Get.g.cs index 8203260..c237938 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Get.g.cs @@ -108,7 +108,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.SamlSettings.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.SamlSettings.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.SamlSettings.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.SamlSettings.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Get2.g.cs index 4083f37..a46a8e6 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Get2.g.cs @@ -108,7 +108,7 @@ partial void ProcessGet2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ScimSettings.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ScimSettings.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessGet2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ScimSettings.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ScimSettings.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Update.g.cs index 849c7ad..daaefd2 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Update.g.cs @@ -74,7 +74,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.SamlSettingsUpdate.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.SamlSettingsUpdate.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.SamlSettingsUpdate.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.SamlSettingsUpdate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Update2.g.cs index d4a03dd..f54489f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Update2.g.cs @@ -74,7 +74,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessUpdate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ScimSettingsUpdate.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ScimSettingsUpdate.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ScimSettingsUpdate.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ScimSettingsUpdate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.ValidateMetadataUrl.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.ValidateMetadataUrl.g.cs index ec9e738..d6f6119 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.ValidateMetadataUrl.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.ValidateMetadataUrl.g.cs @@ -74,7 +74,7 @@ partial void ProcessValidateMetadataUrlResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessValidateMetadataUrlResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ValidateSamlMetadataUrlResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ValidateSamlMetadataUrlResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessValidateMetadataUrlResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ValidateSamlMetadataUrlResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ValidateSamlMetadataUrlResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.g.cs index 5c6499a..ba9fba5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class SsoClient : global::LabelStudio.ISsoClient, global:: /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.CancelBackfill.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.CancelBackfill.g.cs index 407d733..b162874 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.CancelBackfill.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.CancelBackfill.g.cs @@ -112,13 +112,13 @@ partial void ProcessCancelBackfillResponseContent( if (ReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -150,13 +150,13 @@ partial void ProcessCancelBackfillResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); + __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); + __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -200,7 +200,7 @@ partial void ProcessCancelBackfillResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.StateBackfillCancelResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.StateBackfillCancelResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -230,7 +230,7 @@ partial void ProcessCancelBackfillResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.StateBackfillCancelResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.StateBackfillCancelResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.ExecuteTransition.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.ExecuteTransition.g.cs index 285d921..e7a0e8d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.ExecuteTransition.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.ExecuteTransition.g.cs @@ -84,7 +84,7 @@ partial void ProcessExecuteTransitionResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -135,7 +135,7 @@ partial void ProcessExecuteTransitionResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.FSMTransitionExecuteResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.FSMTransitionExecuteResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -165,7 +165,7 @@ partial void ProcessExecuteTransitionResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.FSMTransitionExecuteResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.FSMTransitionExecuteResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.GetBackfillStatus.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.GetBackfillStatus.g.cs index b5f2581..9c8308b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.GetBackfillStatus.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.GetBackfillStatus.g.cs @@ -112,13 +112,13 @@ partial void ProcessGetBackfillStatusResponseContent( if (ReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -150,13 +150,13 @@ partial void ProcessGetBackfillStatusResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); + __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); + __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -200,7 +200,7 @@ partial void ProcessGetBackfillStatusResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.StateBackfillStatusResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.StateBackfillStatusResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -230,7 +230,7 @@ partial void ProcessGetBackfillStatusResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.StateBackfillStatusResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.StateBackfillStatusResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.ListBackfills.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.ListBackfills.g.cs index 6e956a2..30cc40d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.ListBackfills.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.ListBackfills.g.cs @@ -96,13 +96,13 @@ partial void ProcessListBackfillsResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); + __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); + __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -134,13 +134,13 @@ partial void ProcessListBackfillsResponseContent( if (ReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -172,13 +172,13 @@ partial void ProcessListBackfillsResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); + __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); + __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -222,7 +222,7 @@ partial void ProcessListBackfillsResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.StateBackfillJobListResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.StateBackfillJobListResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -252,7 +252,7 @@ partial void ProcessListBackfillsResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.StateBackfillJobListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.StateBackfillJobListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.StateHistory.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.StateHistory.g.cs index addcdc8..edd13ee 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.StateHistory.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.StateHistory.g.cs @@ -185,7 +185,7 @@ partial void ProcessStateHistoryResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.PaginatedStateModelList.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.PaginatedStateModelList.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -215,7 +215,7 @@ partial void ProcessStateHistoryResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedStateModelList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedStateModelList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.TriggerBackfill.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.TriggerBackfill.g.cs index 581b17f..9cae826 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.TriggerBackfill.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.TriggerBackfill.g.cs @@ -105,13 +105,13 @@ partial void ProcessTriggerBackfillResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); + __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); + __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -143,13 +143,13 @@ partial void ProcessTriggerBackfillResponseContent( if (ReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -181,13 +181,13 @@ partial void ProcessTriggerBackfillResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); + __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); + __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -231,7 +231,7 @@ partial void ProcessTriggerBackfillResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.StateBackfillResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.StateBackfillResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -261,7 +261,7 @@ partial void ProcessTriggerBackfillResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.StateBackfillResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.StateBackfillResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.g.cs index 7891b02..6b1739d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class StatesClient : global::LabelStudio.IStatesClient, gl /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.AgreementAnnotator.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.AgreementAnnotator.g.cs index 9eb8f0f..98f8a99 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.AgreementAnnotator.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.AgreementAnnotator.g.cs @@ -120,7 +120,7 @@ partial void ProcessAgreementAnnotatorResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiProjectsStatsAgreementAnnotatorRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiProjectsStatsAgreementAnnotatorRetrieveResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -150,7 +150,7 @@ partial void ProcessAgreementAnnotatorResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsStatsAgreementAnnotatorRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsStatsAgreementAnnotatorRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.AgreementAnnotators.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.AgreementAnnotators.g.cs index ce3752c..1256d67 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.AgreementAnnotators.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.AgreementAnnotators.g.cs @@ -123,7 +123,7 @@ partial void ProcessAgreementAnnotatorsResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiProjectsStatsAgreementAnnotatorsRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiProjectsStatsAgreementAnnotatorsRetrieveResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessAgreementAnnotatorsResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsStatsAgreementAnnotatorsRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsStatsAgreementAnnotatorsRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.DataFilters.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.DataFilters.g.cs index 513ea28..1ee3ac8 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.DataFilters.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.DataFilters.g.cs @@ -114,7 +114,7 @@ partial void ProcessDataFiltersResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessDataFiltersResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.FinishedTasks.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.FinishedTasks.g.cs index b944303..407f312 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.FinishedTasks.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.FinishedTasks.g.cs @@ -123,7 +123,7 @@ partial void ProcessFinishedTasksResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiProjectsStatsFinishedRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiProjectsStatsFinishedRetrieveResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessFinishedTasksResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsStatsFinishedRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsStatsFinishedRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.Iaa.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.Iaa.g.cs index 22f5615..62d8d49 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.Iaa.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.Iaa.g.cs @@ -148,7 +148,7 @@ partial void ProcessIaaResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiProjectsStatsIaaRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiProjectsStatsIaaRetrieveResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -178,7 +178,7 @@ partial void ProcessIaaResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsStatsIaaRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsStatsIaaRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.LabelDistributionCounts.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.LabelDistributionCounts.g.cs index 99cc79e..54695fc 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.LabelDistributionCounts.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.LabelDistributionCounts.g.cs @@ -139,7 +139,7 @@ partial void ProcessLabelDistributionCountsResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LabelDistributionCountsResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LabelDistributionCountsResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -169,7 +169,7 @@ partial void ProcessLabelDistributionCountsResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LabelDistributionCountsResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LabelDistributionCountsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.LabelDistributionStructure.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.LabelDistributionStructure.g.cs index 17f1ffe..c5bba16 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.LabelDistributionStructure.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.LabelDistributionStructure.g.cs @@ -114,7 +114,7 @@ partial void ProcessLabelDistributionStructureResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LabelDistributionStructureResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LabelDistributionStructureResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessLabelDistributionStructureResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LabelDistributionStructureResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LabelDistributionStructureResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.LeadTime.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.LeadTime.g.cs index e5f129d..6db8222 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.LeadTime.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.LeadTime.g.cs @@ -114,7 +114,7 @@ partial void ProcessLeadTimeResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessLeadTimeResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.ModelVersionAnnotatorAgreement.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.ModelVersionAnnotatorAgreement.g.cs index 363f5a8..eedb6f5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.ModelVersionAnnotatorAgreement.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.ModelVersionAnnotatorAgreement.g.cs @@ -120,7 +120,7 @@ partial void ProcessModelVersionAnnotatorAgreementResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiProjectsModelStatsAgreementRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiProjectsModelStatsAgreementRetrieveResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -150,7 +150,7 @@ partial void ProcessModelVersionAnnotatorAgreementResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsModelStatsAgreementRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsModelStatsAgreementRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.ModelVersionGroundTruthAgreement.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.ModelVersionGroundTruthAgreement.g.cs index 652830e..e7e7b0c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.ModelVersionGroundTruthAgreement.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.ModelVersionGroundTruthAgreement.g.cs @@ -131,7 +131,7 @@ partial void ProcessModelVersionGroundTruthAgreementResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiProjectsModelStatsAgreementGroundtruthRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiProjectsModelStatsAgreementGroundtruthRetrieveResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -161,7 +161,7 @@ partial void ProcessModelVersionGroundTruthAgreementResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsModelStatsAgreementGroundtruthRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsModelStatsAgreementGroundtruthRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.ModelVersionPredictionAgreement.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.ModelVersionPredictionAgreement.g.cs index 4de64c8..1fbd38f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.ModelVersionPredictionAgreement.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.ModelVersionPredictionAgreement.g.cs @@ -131,7 +131,7 @@ partial void ProcessModelVersionPredictionAgreementResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiProjectsModelStatsPredictionRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiProjectsModelStatsPredictionRetrieveResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -161,7 +161,7 @@ partial void ProcessModelVersionPredictionAgreementResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsModelStatsPredictionRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsModelStatsPredictionRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.TotalAgreement.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.TotalAgreement.g.cs index 0ae74f1..7117bdc 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.TotalAgreement.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.TotalAgreement.g.cs @@ -124,7 +124,7 @@ partial void ProcessTotalAgreementResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.OneOf.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.OneOf.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessTotalAgreementResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.OneOf.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.OneOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserGroundTruthAgreement.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserGroundTruthAgreement.g.cs index 59e3777..0555b2b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserGroundTruthAgreement.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserGroundTruthAgreement.g.cs @@ -129,7 +129,7 @@ partial void ProcessUserGroundTruthAgreementResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiProjectsUsersStatsAgreementGroundtruthRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiProjectsUsersStatsAgreementGroundtruthRetrieveResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessUserGroundTruthAgreementResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsUsersStatsAgreementGroundtruthRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsUsersStatsAgreementGroundtruthRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserPredictionAgreement.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserPredictionAgreement.g.cs index 1296b25..93684e2 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserPredictionAgreement.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserPredictionAgreement.g.cs @@ -129,7 +129,7 @@ partial void ProcessUserPredictionAgreementResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiProjectsUserStatsPredictionRetrieve2Response.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiProjectsUserStatsPredictionRetrieve2Response.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessUserPredictionAgreementResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsUserStatsPredictionRetrieve2Response.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsUserStatsPredictionRetrieve2Response.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserReviewScore.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserReviewScore.g.cs index ab7eefd..097824b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserReviewScore.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserReviewScore.g.cs @@ -129,7 +129,7 @@ partial void ProcessUserReviewScoreResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieve2Response.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieve2Response.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessUserReviewScoreResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieve2Response.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieve2Response.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UsersGroundTruthAgreement.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UsersGroundTruthAgreement.g.cs index 9f06983..7f5e5ca 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UsersGroundTruthAgreement.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UsersGroundTruthAgreement.g.cs @@ -132,7 +132,7 @@ partial void ProcessUsersGroundTruthAgreementResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiProjectsStatsAgreementGroundtruthRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiProjectsStatsAgreementGroundtruthRetrieveResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -162,7 +162,7 @@ partial void ProcessUsersGroundTruthAgreementResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsStatsAgreementGroundtruthRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsStatsAgreementGroundtruthRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UsersPredictionAgreement.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UsersPredictionAgreement.g.cs index 01884b9..5ed946f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UsersPredictionAgreement.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UsersPredictionAgreement.g.cs @@ -132,7 +132,7 @@ partial void ProcessUsersPredictionAgreementResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiProjectsUserStatsPredictionRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiProjectsUserStatsPredictionRetrieveResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -162,7 +162,7 @@ partial void ProcessUsersPredictionAgreementResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsUserStatsPredictionRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsUserStatsPredictionRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UsersReviewScore.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UsersReviewScore.g.cs index 125f858..400485c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UsersReviewScore.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UsersReviewScore.g.cs @@ -130,7 +130,7 @@ partial void ProcessUsersReviewScoreResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieveResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessUsersReviewScoreResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.g.cs index 6c99738..c49a3c1 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class StatsClient : global::LabelStudio.IStatsClient, glob /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Create.g.cs index fddc1b8..d681e83 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Create.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AzureBlobImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AzureBlobImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureBlobImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AzureBlobImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Create2.g.cs index 5cc2407..3e43e06 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Create2.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCreate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AzureBlobExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AzureBlobExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureBlobExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AzureBlobExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Get.g.cs index e9b11dc..9ca641c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Get.g.cs @@ -108,7 +108,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AzureBlobImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AzureBlobImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureBlobImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AzureBlobImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Get2.g.cs index 3fd0071..5d95f39 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Get2.g.cs @@ -108,7 +108,7 @@ partial void ProcessGet2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AzureBlobExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AzureBlobExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessGet2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureBlobExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AzureBlobExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.List.g.cs index d529b08..5e77c57 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.List.g.cs @@ -118,7 +118,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.List2.g.cs index f12ac0d..1aa4cdf 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.List2.g.cs @@ -118,7 +118,7 @@ partial void ProcessList2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Sync.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Sync.g.cs index 06f9c86..3ff955d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Sync.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Sync.g.cs @@ -108,7 +108,7 @@ partial void ProcessSyncResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AzureBlobImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AzureBlobImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessSyncResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureBlobImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AzureBlobImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Sync2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Sync2.g.cs index 90edd43..79d07b8 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Sync2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Sync2.g.cs @@ -108,7 +108,7 @@ partial void ProcessSync2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AzureBlobExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AzureBlobExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessSync2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureBlobExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AzureBlobExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Update.g.cs index 471f0bf..9fcfa92 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Update.g.cs @@ -73,7 +73,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AzureBlobImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AzureBlobImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureBlobImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AzureBlobImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Update2.g.cs index 1c96cd7..06198c6 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Update2.g.cs @@ -73,7 +73,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessUpdate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AzureBlobExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AzureBlobExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureBlobExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AzureBlobExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Validate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Validate.g.cs index 73a052e..b36c5cb 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Validate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Validate.g.cs @@ -63,7 +63,7 @@ partial void ProcessValidateResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Validate2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Validate2.g.cs index 89bb6b3..e101fe9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Validate2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Validate2.g.cs @@ -63,7 +63,7 @@ partial void ProcessValidate2Response( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.g.cs index e672f8f..b6157c7 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class StorageAzureClient : global::LabelStudio.IStorageAzu /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Create.g.cs index 7316a6d..55e2a05 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Create.g.cs @@ -74,7 +74,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AzureServicePrincipalImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AzureServicePrincipalImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureServicePrincipalImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AzureServicePrincipalImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Create2.g.cs index 4502193..d94495e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Create2.g.cs @@ -74,7 +74,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessCreate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AzureServicePrincipalExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AzureServicePrincipalExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureServicePrincipalExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AzureServicePrincipalExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Get.g.cs index 5a4f0a9..fbf84eb 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Get.g.cs @@ -114,7 +114,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AzureServicePrincipalImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AzureServicePrincipalImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureServicePrincipalImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AzureServicePrincipalImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Get2.g.cs index 8fd7834..c35f1e5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Get2.g.cs @@ -114,7 +114,7 @@ partial void ProcessGet2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AzureServicePrincipalExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AzureServicePrincipalExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessGet2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureServicePrincipalExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AzureServicePrincipalExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.List.g.cs index a118920..a631050 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.List.g.cs @@ -124,7 +124,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.List2.g.cs index 0269b57..6f74cca 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.List2.g.cs @@ -124,7 +124,7 @@ partial void ProcessList2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Sync.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Sync.g.cs index 66e291b..694666f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Sync.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Sync.g.cs @@ -114,7 +114,7 @@ partial void ProcessSyncResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AzureServicePrincipalImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AzureServicePrincipalImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessSyncResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureServicePrincipalImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AzureServicePrincipalImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Sync2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Sync2.g.cs index b092763..dadc914 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Sync2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Sync2.g.cs @@ -114,7 +114,7 @@ partial void ProcessSync2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AzureServicePrincipalExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AzureServicePrincipalExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessSync2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureServicePrincipalExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AzureServicePrincipalExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Update.g.cs index 2ba2c1f..bf92284 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Update.g.cs @@ -79,7 +79,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AzureServicePrincipalImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AzureServicePrincipalImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureServicePrincipalImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AzureServicePrincipalImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Update2.g.cs index 4d7eac6..02c7c7d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Update2.g.cs @@ -79,7 +79,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessUpdate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AzureServicePrincipalExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.AzureServicePrincipalExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureServicePrincipalExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.AzureServicePrincipalExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Validate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Validate.g.cs index eefcf90..8c7bb8a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Validate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Validate.g.cs @@ -69,7 +69,7 @@ partial void ProcessValidateResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Validate2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Validate2.g.cs index 526406a..470a040 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Validate2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Validate2.g.cs @@ -69,7 +69,7 @@ partial void ProcessValidate2Response( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.g.cs index 266a63e..b8660a4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class StorageAzureSpiClient : global::LabelStudio.IStorage /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.List.g.cs index f834a48..4dc5032 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.List.g.cs @@ -111,7 +111,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -141,7 +141,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.List2.g.cs index 3d866c3..cd05507 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.List2.g.cs @@ -111,7 +111,7 @@ partial void ProcessList2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -141,7 +141,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ListTypes.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ListTypes.g.cs index f2c2a8d..6587402 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ListTypes.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ListTypes.g.cs @@ -102,7 +102,7 @@ partial void ProcessListTypesResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -132,7 +132,7 @@ partial void ProcessListTypesResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ListTypes2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ListTypes2.g.cs index 72dc58b..8008cce 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ListTypes2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ListTypes2.g.cs @@ -102,7 +102,7 @@ partial void ProcessListTypes2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -132,7 +132,7 @@ partial void ProcessListTypes2ResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.g.cs index 192ca45..168dba7 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class StorageClient : global::LabelStudio.IStorageClient, /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Create.g.cs index 69be4d1..392495d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Create.g.cs @@ -74,7 +74,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.DatabricksImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.DatabricksImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatabricksImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.DatabricksImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Create2.g.cs index 5583555..4c7e048 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Create2.g.cs @@ -74,7 +74,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessCreate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.DatabricksExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.DatabricksExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatabricksExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.DatabricksExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Get.g.cs index f5392fd..32458fa 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Get.g.cs @@ -114,7 +114,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.DatabricksImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.DatabricksImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatabricksImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.DatabricksImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Get2.g.cs index edd8da4..1dd8a03 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Get2.g.cs @@ -114,7 +114,7 @@ partial void ProcessGet2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.DatabricksExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.DatabricksExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessGet2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatabricksExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.DatabricksExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.List.g.cs index 8c685a3..8b88e20 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.List.g.cs @@ -124,7 +124,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.List2.g.cs index e2a1ca5..916e2cb 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.List2.g.cs @@ -124,7 +124,7 @@ partial void ProcessList2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Sync.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Sync.g.cs index 0024a13..b978f55 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Sync.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Sync.g.cs @@ -114,7 +114,7 @@ partial void ProcessSyncResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.DatabricksImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.DatabricksImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessSyncResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatabricksImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.DatabricksImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Sync2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Sync2.g.cs index e0ed42e..c97030c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Sync2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Sync2.g.cs @@ -114,7 +114,7 @@ partial void ProcessSync2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.DatabricksExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.DatabricksExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessSync2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatabricksExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.DatabricksExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Update.g.cs index 2b43364..e924342 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Update.g.cs @@ -79,7 +79,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.DatabricksImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.DatabricksImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatabricksImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.DatabricksImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Update2.g.cs index 3c89ad5..cf2b6f2 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Update2.g.cs @@ -79,7 +79,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessUpdate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.DatabricksExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.DatabricksExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatabricksExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.DatabricksExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Validate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Validate.g.cs index 4bd49a2..8bb43d9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Validate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Validate.g.cs @@ -69,7 +69,7 @@ partial void ProcessValidateResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Validate2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Validate2.g.cs index 32b198b..92855a3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Validate2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Validate2.g.cs @@ -69,7 +69,7 @@ partial void ProcessValidate2Response( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.g.cs index 31f3ada..0d3d9a8 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class StorageDatabricksFilesClient : global::LabelStudio.I /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Create.g.cs index 2c43e4f..a180c84 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Create.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.GCSExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.GCSExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.GCSExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Create2.g.cs index 3eb1706..b45755f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Create2.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCreate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.GCSImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.GCSImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.GCSImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Get.g.cs index 41cfca0..4a7f71b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Get.g.cs @@ -108,7 +108,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.GCSExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.GCSExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.GCSExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Get2.g.cs index 6622cbb..abec951 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Get2.g.cs @@ -108,7 +108,7 @@ partial void ProcessGet2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.GCSImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.GCSImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessGet2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.GCSImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.List.g.cs index 85cc216..8bd3e81 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.List.g.cs @@ -118,7 +118,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.List2.g.cs index 2f094de..a97dacd 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.List2.g.cs @@ -118,7 +118,7 @@ partial void ProcessList2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Sync.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Sync.g.cs index dda3694..24fcf7d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Sync.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Sync.g.cs @@ -108,7 +108,7 @@ partial void ProcessSyncResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.GCSExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.GCSExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessSyncResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.GCSExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Sync2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Sync2.g.cs index fc57a3a..0e667c4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Sync2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Sync2.g.cs @@ -108,7 +108,7 @@ partial void ProcessSync2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.GCSImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.GCSImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessSync2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.GCSImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Update.g.cs index fa8b63a..977dead 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Update.g.cs @@ -73,7 +73,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.GCSExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.GCSExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.GCSExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Update2.g.cs index bb890ef..ab272c5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Update2.g.cs @@ -73,7 +73,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessUpdate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.GCSImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.GCSImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.GCSImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Validate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Validate.g.cs index 8aa29ee..800aa38 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Validate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Validate.g.cs @@ -63,7 +63,7 @@ partial void ProcessValidateResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Validate2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Validate2.g.cs index 06e8d66..803463a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Validate2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Validate2.g.cs @@ -63,7 +63,7 @@ partial void ProcessValidate2Response( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.g.cs index 0273e24..1522e9d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class StorageGcsClient : global::LabelStudio.IStorageGcsCl /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Create.g.cs index 2f3bfa1..2170241 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Create.g.cs @@ -74,7 +74,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.GCSWIFExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.GCSWIFExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSWIFExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.GCSWIFExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Create2.g.cs index 32b5391..3b73ef0 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Create2.g.cs @@ -74,7 +74,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessCreate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.GCSWIFImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.GCSWIFImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSWIFImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.GCSWIFImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Get.g.cs index 849647e..9d59214 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Get.g.cs @@ -114,7 +114,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.GCSWIFExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.GCSWIFExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSWIFExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.GCSWIFExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Get2.g.cs index 9aa567d..a290d4a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Get2.g.cs @@ -114,7 +114,7 @@ partial void ProcessGet2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.GCSWIFImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.GCSWIFImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessGet2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSWIFImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.GCSWIFImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.List.g.cs index 543f51b..5684996 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.List.g.cs @@ -124,7 +124,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.List2.g.cs index bbbcbc4..e34c4ae 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.List2.g.cs @@ -124,7 +124,7 @@ partial void ProcessList2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Sync.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Sync.g.cs index 4d065fa..365730e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Sync.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Sync.g.cs @@ -114,7 +114,7 @@ partial void ProcessSyncResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.GCSWIFExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.GCSWIFExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessSyncResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSWIFExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.GCSWIFExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Sync2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Sync2.g.cs index a7964d8..91d598b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Sync2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Sync2.g.cs @@ -114,7 +114,7 @@ partial void ProcessSync2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.GCSWIFImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.GCSWIFImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessSync2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSWIFImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.GCSWIFImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Update.g.cs index cb6599c..2951173 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Update.g.cs @@ -79,7 +79,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.GCSWIFExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.GCSWIFExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSWIFExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.GCSWIFExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Update2.g.cs index 7b4d1bd..47b0fd1 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Update2.g.cs @@ -79,7 +79,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessUpdate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.GCSWIFImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.GCSWIFImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSWIFImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.GCSWIFImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Validate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Validate.g.cs index cbbd288..3086c3c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Validate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Validate.g.cs @@ -69,7 +69,7 @@ partial void ProcessValidateResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Validate2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Validate2.g.cs index a914063..4089e12 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Validate2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Validate2.g.cs @@ -69,7 +69,7 @@ partial void ProcessValidate2Response( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.g.cs index 3e8ed63..91165c1 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class StorageGcsWifClient : global::LabelStudio.IStorageGc /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Create.g.cs index b73ae7b..8318570 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Create.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LocalFilesExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LocalFilesExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LocalFilesExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LocalFilesExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Create2.g.cs index 2bdc050..1dd7367 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Create2.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCreate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LocalFilesImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LocalFilesImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LocalFilesImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LocalFilesImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Get.g.cs index 62b4139..64d40b7 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Get.g.cs @@ -108,7 +108,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LocalFilesExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LocalFilesExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LocalFilesExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LocalFilesExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Get2.g.cs index ba568ee..d85ab77 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Get2.g.cs @@ -108,7 +108,7 @@ partial void ProcessGet2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LocalFilesImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LocalFilesImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessGet2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LocalFilesImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LocalFilesImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.List.g.cs index d313f13..b428f78 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.List.g.cs @@ -118,7 +118,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.List2.g.cs index 409e7d2..22da41d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.List2.g.cs @@ -118,7 +118,7 @@ partial void ProcessList2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Sync.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Sync.g.cs index dca1fb3..978e433 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Sync.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Sync.g.cs @@ -108,7 +108,7 @@ partial void ProcessSyncResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LocalFilesExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LocalFilesExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessSyncResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LocalFilesExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LocalFilesExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Sync2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Sync2.g.cs index 58d6052..17f9a50 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Sync2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Sync2.g.cs @@ -108,7 +108,7 @@ partial void ProcessSync2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LocalFilesImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LocalFilesImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessSync2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LocalFilesImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LocalFilesImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Update.g.cs index c691462..14d2c81 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Update.g.cs @@ -73,7 +73,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LocalFilesExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LocalFilesExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LocalFilesExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LocalFilesExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Update2.g.cs index ccb5853..030c62c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Update2.g.cs @@ -73,7 +73,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessUpdate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LocalFilesImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LocalFilesImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LocalFilesImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LocalFilesImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Validate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Validate.g.cs index 5c84207..c5827b3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Validate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Validate.g.cs @@ -63,7 +63,7 @@ partial void ProcessValidateResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Validate2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Validate2.g.cs index 95c9ea4..68318eb 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Validate2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Validate2.g.cs @@ -63,7 +63,7 @@ partial void ProcessValidate2Response( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.g.cs index 8e89e77..31d2bcc 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class StorageLocalClient : global::LabelStudio.IStorageLoc /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Create.g.cs index bb318f4..4a8e29b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Create.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.RedisExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.RedisExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.RedisExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.RedisExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Create2.g.cs index 03dae4b..f7378b4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Create2.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCreate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.RedisImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.RedisImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.RedisImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.RedisImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Get.g.cs index ddeef62..8f9203a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Get.g.cs @@ -108,7 +108,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.RedisExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.RedisExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.RedisExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.RedisExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Get2.g.cs index 9a86516..e2af1d9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Get2.g.cs @@ -108,7 +108,7 @@ partial void ProcessGet2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.RedisImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.RedisImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessGet2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.RedisImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.RedisImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.List.g.cs index 5e6b142..4d2f5cc 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.List.g.cs @@ -118,7 +118,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.List2.g.cs index 30f6b28..88b3d10 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.List2.g.cs @@ -118,7 +118,7 @@ partial void ProcessList2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Sync.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Sync.g.cs index 6eb6fb4..d6f8978 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Sync.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Sync.g.cs @@ -108,7 +108,7 @@ partial void ProcessSyncResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.RedisExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.RedisExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessSyncResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.RedisExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.RedisExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Sync2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Sync2.g.cs index 3f0dd53..32096d7 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Sync2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Sync2.g.cs @@ -108,7 +108,7 @@ partial void ProcessSync2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.RedisImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.RedisImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessSync2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.RedisImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.RedisImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Update.g.cs index b4c9a86..836c02f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Update.g.cs @@ -73,7 +73,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.RedisExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.RedisExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.RedisExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.RedisExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Update2.g.cs index 7ddeec7..ca25959 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Update2.g.cs @@ -73,7 +73,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessUpdate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.RedisImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.RedisImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.RedisImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.RedisImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Validate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Validate.g.cs index ba9f914..7bf1535 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Validate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Validate.g.cs @@ -63,7 +63,7 @@ partial void ProcessValidateResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Validate2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Validate2.g.cs index def7a78..46e0e4a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Validate2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Validate2.g.cs @@ -63,7 +63,7 @@ partial void ProcessValidate2Response( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.g.cs index 36792bc..48eb89b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class StorageRedisClient : global::LabelStudio.IStorageRed /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Create.g.cs index fa4cd69..aa8b238 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Create.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.S3ExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.S3ExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.S3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.S3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Create2.g.cs index aeefe90..7f2d0b7 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Create2.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCreate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.S3ImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.S3ImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.S3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.S3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Get.g.cs index 6c3377c..e360503 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Get.g.cs @@ -108,7 +108,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.S3ExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.S3ExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.S3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.S3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Get2.g.cs index 5682da0..fd011ad 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Get2.g.cs @@ -108,7 +108,7 @@ partial void ProcessGet2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.S3ImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.S3ImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessGet2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.S3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.S3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.List.g.cs index a9200fd..01a9360 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.List.g.cs @@ -118,7 +118,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.List2.g.cs index e998758..c2d6178 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.List2.g.cs @@ -118,7 +118,7 @@ partial void ProcessList2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Sync.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Sync.g.cs index 9eb385b..a46b7d1 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Sync.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Sync.g.cs @@ -108,7 +108,7 @@ partial void ProcessSyncResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.S3ExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.S3ExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessSyncResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.S3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.S3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Sync2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Sync2.g.cs index 7a0128f..fa6590c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Sync2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Sync2.g.cs @@ -108,7 +108,7 @@ partial void ProcessSync2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.S3ImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.S3ImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessSync2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.S3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.S3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Update.g.cs index 69587df..7f9ac07 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Update.g.cs @@ -73,7 +73,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.S3ExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.S3ExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.S3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.S3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Update2.g.cs index 4ec045a..8558c39 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Update2.g.cs @@ -73,7 +73,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessUpdate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.S3ImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.S3ImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.S3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.S3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Validate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Validate.g.cs index 20f4c7c..9239d1a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Validate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Validate.g.cs @@ -63,7 +63,7 @@ partial void ProcessValidateResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Validate2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Validate2.g.cs index c54bba8..844616d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Validate2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Validate2.g.cs @@ -63,7 +63,7 @@ partial void ProcessValidate2Response( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.g.cs index 7ae49fd..c7f87a2 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.g.cs @@ -33,7 +33,7 @@ public sealed partial class StorageS3Client : global::LabelStudio.IStorageS3Clie /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Create.g.cs index 4babb76..3f858aa 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Create.g.cs @@ -74,7 +74,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LseS3ExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LseS3ExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseS3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LseS3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Create2.g.cs index a8fafb6..4c23277 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Create2.g.cs @@ -74,7 +74,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessCreate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LseS3ImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LseS3ImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseS3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LseS3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Get.g.cs index fe5d6a2..8370720 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Get.g.cs @@ -114,7 +114,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LseS3ExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LseS3ExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseS3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LseS3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Get2.g.cs index 1c88443..ce35ba4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Get2.g.cs @@ -114,7 +114,7 @@ partial void ProcessGet2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LseS3ImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LseS3ImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessGet2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseS3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LseS3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.List.g.cs index 567fab2..e71e9ad 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.List.g.cs @@ -124,7 +124,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.List2.g.cs index ec972d0..65ab03b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.List2.g.cs @@ -124,7 +124,7 @@ partial void ProcessList2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Sync.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Sync.g.cs index 2be02ba..fe8ceab 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Sync.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Sync.g.cs @@ -114,7 +114,7 @@ partial void ProcessSyncResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LseS3ExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LseS3ExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessSyncResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseS3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LseS3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Sync2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Sync2.g.cs index f40afcd..ad3ec8c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Sync2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Sync2.g.cs @@ -114,7 +114,7 @@ partial void ProcessSync2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LseS3ImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LseS3ImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessSync2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseS3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LseS3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Update.g.cs index 425b7c9..1a4c259 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Update.g.cs @@ -79,7 +79,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LseS3ExportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LseS3ExportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseS3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LseS3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Update2.g.cs index 6fc8dd6..7c3c7ac 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Update2.g.cs @@ -79,7 +79,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessUpdate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LseS3ImportStorage.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LseS3ImportStorage.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseS3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LseS3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Validate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Validate.g.cs index aa7ffd1..1d975c5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Validate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Validate.g.cs @@ -69,7 +69,7 @@ partial void ProcessValidateResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Validate2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Validate2.g.cs index b5b0605..362422e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Validate2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Validate2.g.cs @@ -69,7 +69,7 @@ partial void ProcessValidate2Response( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.g.cs index 3e70deb..c3dabbf 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class StorageS3RolesClient : global::LabelStudio.IStorageS /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Create.g.cs index e9e9657..f77b971 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Create.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LseTask.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LseTask.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseTask.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LseTask.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.CreateEvent.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.CreateEvent.g.cs index 9fea538..54fab93 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.CreateEvent.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.CreateEvent.g.cs @@ -110,7 +110,7 @@ partial void ProcessCreateEventResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -292,7 +292,7 @@ partial void ProcessCreateEventResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.TaskEvent.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.TaskEvent.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -322,7 +322,7 @@ partial void ProcessCreateEventResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.TaskEvent.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.TaskEvent.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.CreateManyStatus.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.CreateManyStatus.g.cs index 08fcf7e..937eced 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.CreateManyStatus.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.CreateManyStatus.g.cs @@ -123,7 +123,7 @@ partial void ProcessCreateManyStatusResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ProjectImport.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ProjectImport.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessCreateManyStatusResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ProjectImport.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ProjectImport.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Get.g.cs index f0ab135..9c541d1 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Get.g.cs @@ -108,7 +108,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.RoleBasedTask.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.RoleBasedTask.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.RoleBasedTask.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.RoleBasedTask.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.List2.g.cs index c3bdfeb..0dbff0f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.List2.g.cs @@ -283,7 +283,7 @@ partial void ProcessList2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.PaginatedRoleBasedTaskList.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.PaginatedRoleBasedTaskList.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -313,7 +313,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedRoleBasedTaskList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedRoleBasedTaskList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Update2.g.cs index effefb8..6f30729 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Update2.g.cs @@ -73,7 +73,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessUpdate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.RoleBasedTask.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.RoleBasedTask.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.RoleBasedTask.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.RoleBasedTask.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.g.cs index fe46413..827ecee 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.g.cs @@ -33,7 +33,7 @@ public sealed partial class Tasks2Client : global::LabelStudio.ITasks2Client, gl /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.Assign.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.Assign.g.cs index 9df4bb8..95f7978 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.Assign.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.Assign.g.cs @@ -84,7 +84,7 @@ partial void ProcessAssignResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -135,7 +135,7 @@ partial void ProcessAssignResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.TaskAssignment.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.TaskAssignment.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -165,7 +165,7 @@ partial void ProcessAssignResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.TaskAssignment.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.TaskAssignment.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.BulkAssign.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.BulkAssign.g.cs index 40fa02b..651f4fb 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.BulkAssign.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.BulkAssign.g.cs @@ -79,7 +79,7 @@ partial void ProcessBulkAssignResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -162,7 +162,7 @@ partial void ProcessBulkAssignResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiProjectsTasksAssigneesCreateResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiProjectsTasksAssigneesCreateResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -192,7 +192,7 @@ partial void ProcessBulkAssignResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsTasksAssigneesCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsTasksAssigneesCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.List.g.cs index a591b87..5e78347 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.List.g.cs @@ -120,7 +120,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -150,7 +150,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.Update.g.cs index 4e53bcc..072a75d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.Update.g.cs @@ -84,7 +84,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -135,7 +135,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.TaskAssignment.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.TaskAssignment.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -165,7 +165,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.TaskAssignment.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.TaskAssignment.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.g.cs index 31470fa..7a53432 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class TasksClient : global::LabelStudio.ITasksClient, glob /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Blacklist.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Blacklist.g.cs index 54064ae..7dafc83 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Blacklist.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Blacklist.g.cs @@ -68,7 +68,7 @@ partial void ProcessBlacklistResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -105,13 +105,13 @@ partial void ProcessBlacklistResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); + __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); + __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Create.g.cs index 8722e26..a259089 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Create.g.cs @@ -102,7 +102,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LSEAPITokenCreate.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LSEAPITokenCreate.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -132,7 +132,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LSEAPITokenCreate.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LSEAPITokenCreate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.List.g.cs index 500d78a..8e0e8c7 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.List.g.cs @@ -111,7 +111,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -141,7 +141,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Refresh.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Refresh.g.cs index 91c253c..600f668 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Refresh.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Refresh.g.cs @@ -68,7 +68,7 @@ partial void ProcessRefreshResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessRefreshResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.TokenRefreshResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.TokenRefreshResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessRefreshResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.TokenRefreshResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.TokenRefreshResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Rotate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Rotate.g.cs index 6a4e221..72ca56d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Rotate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Rotate.g.cs @@ -68,7 +68,7 @@ partial void ProcessRotateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -105,13 +105,13 @@ partial void ProcessRotateResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); + __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); + __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -155,7 +155,7 @@ partial void ProcessRotateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.TokenRotateResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.TokenRotateResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -185,7 +185,7 @@ partial void ProcessRotateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.TokenRotateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.TokenRotateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.g.cs index 8e1fffe..112b0a5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class TokensClient : global::LabelStudio.ITokensClient, gl /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Create.g.cs index b6dd18f..018e5d9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Create.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LseUser.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LseUser.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseUser.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LseUser.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Get.g.cs index a81fd98..c11b112 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Get.g.cs @@ -108,7 +108,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LseUser.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LseUser.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseUser.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LseUser.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.GetCurrentUser.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.GetCurrentUser.g.cs index dff3149..ac4528b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.GetCurrentUser.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.GetCurrentUser.g.cs @@ -108,7 +108,7 @@ partial void ProcessGetCurrentUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LseUserAPI.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LseUserAPI.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessGetCurrentUserResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseUserAPI.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LseUserAPI.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.GetHotkeys.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.GetHotkeys.g.cs index 92d68b1..8f82b34 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.GetHotkeys.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.GetHotkeys.g.cs @@ -102,7 +102,7 @@ partial void ProcessGetHotkeysResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Hotkeys.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Hotkeys.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -132,7 +132,7 @@ partial void ProcessGetHotkeysResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Hotkeys.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Hotkeys.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.GetToken.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.GetToken.g.cs index b834d71..aae3625 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.GetToken.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.GetToken.g.cs @@ -102,7 +102,7 @@ partial void ProcessGetTokenResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiCurrentUserTokenRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiCurrentUserTokenRetrieveResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -132,7 +132,7 @@ partial void ProcessGetTokenResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiCurrentUserTokenRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiCurrentUserTokenRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.List.g.cs index c1ee692..f26028e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.List.g.cs @@ -111,7 +111,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -141,7 +141,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.ResetToken.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.ResetToken.g.cs index 44338d0..436c26b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.ResetToken.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.ResetToken.g.cs @@ -102,7 +102,7 @@ partial void ProcessResetTokenResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiCurrentUserResetTokenCreateResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiCurrentUserResetTokenCreateResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -132,7 +132,7 @@ partial void ProcessResetTokenResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiCurrentUserResetTokenCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiCurrentUserResetTokenCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Update.g.cs index 5ef15e0..c538276 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Update.g.cs @@ -74,7 +74,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -124,7 +124,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LseUser.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LseUser.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseUser.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LseUser.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.UpdateCurrentUser.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.UpdateCurrentUser.g.cs index 2d93e6b..370a817 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.UpdateCurrentUser.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.UpdateCurrentUser.g.cs @@ -74,7 +74,7 @@ partial void ProcessUpdateCurrentUserResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessUpdateCurrentUserResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.LseUserAPI.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.LseUserAPI.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessUpdateCurrentUserResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseUserAPI.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.LseUserAPI.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.UpdateHotkeys.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.UpdateHotkeys.g.cs index a812666..d299d75 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.UpdateHotkeys.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.UpdateHotkeys.g.cs @@ -68,7 +68,7 @@ partial void ProcessUpdateHotkeysResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessUpdateHotkeysResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Hotkeys.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Hotkeys.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessUpdateHotkeysResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Hotkeys.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Hotkeys.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Whoami.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Whoami.g.cs index dc26382..3759bbe 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Whoami.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Whoami.g.cs @@ -102,7 +102,7 @@ partial void ProcessWhoamiResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.WhoAmIUser.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.WhoAmIUser.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -132,7 +132,7 @@ partial void ProcessWhoamiResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.WhoAmIUser.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.WhoAmIUser.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.g.cs index 69b430f..3e8197c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class UsersClient : global::LabelStudio.IUsersClient, glob /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.VersionsClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.VersionsClient.Get.g.cs index d00f5ee..86f760d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.VersionsClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.VersionsClient.Get.g.cs @@ -102,7 +102,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.VersionResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.VersionResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -132,7 +132,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.VersionResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.VersionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.VersionsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.VersionsClient.g.cs index 5768f60..7010c88 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.VersionsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.VersionsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class VersionsClient : global::LabelStudio.IVersionsClient /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Create2.g.cs index ecfc5ae..66de991 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Create2.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCreate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.View.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.View.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.View.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.View.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Get.g.cs index a177d62..5a0ecaa 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Get.g.cs @@ -108,7 +108,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.View.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.View.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.View.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.View.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.List2.g.cs index 52f3b4e..0a1109a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.List2.g.cs @@ -111,7 +111,7 @@ partial void ProcessList2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -141,7 +141,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Update.g.cs index faa6670..f54e2f6 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Update.g.cs @@ -73,7 +73,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.View.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.View.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.View.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.View.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.UpdateOrder.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.UpdateOrder.g.cs index 5358863..90a4b31 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.UpdateOrder.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.UpdateOrder.g.cs @@ -63,7 +63,7 @@ partial void ProcessUpdateOrderResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.g.cs index 2b84979..a90fb76 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class ViewsClient : global::LabelStudio.IViewsClient, glob /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Create.g.cs index e70d463..de7d8b9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Create.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -117,7 +117,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Webhook.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Webhook.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Webhook.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Webhook.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Get.g.cs index 766fb12..a3e7f80 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Get.g.cs @@ -107,7 +107,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Webhook.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Webhook.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -137,7 +137,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Webhook.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Webhook.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Info.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Info.g.cs index 2c09443..7342195 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Info.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Info.g.cs @@ -111,7 +111,7 @@ partial void ProcessInfoResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiWebhooksInfoRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiWebhooksInfoRetrieveResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -141,7 +141,7 @@ partial void ProcessInfoResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiWebhooksInfoRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiWebhooksInfoRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.List.g.cs index e3fc063..681cc44 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.List.g.cs @@ -111,7 +111,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -141,7 +141,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Update.g.cs index 18c05b9..cb9678a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Update.g.cs @@ -72,7 +72,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.WebhookSerializerForUpdate.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.WebhookSerializerForUpdate.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -152,7 +152,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.WebhookSerializerForUpdate.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.WebhookSerializerForUpdate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.g.cs index eb2ef81..6c1faf4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.g.cs @@ -33,7 +33,7 @@ public sealed partial class Webhooks2Client : global::LabelStudio.IWebhooks2Clie /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.WebhooksClient.ApiWebhooksUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.WebhooksClient.ApiWebhooksUpdate.g.cs index bfff1ec..6785498 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.WebhooksClient.ApiWebhooksUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.WebhooksClient.ApiWebhooksUpdate.g.cs @@ -72,7 +72,7 @@ partial void ProcessApiWebhooksUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -122,7 +122,7 @@ partial void ProcessApiWebhooksUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.WebhookSerializerForUpdate.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.WebhookSerializerForUpdate.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -152,7 +152,7 @@ partial void ProcessApiWebhooksUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.WebhookSerializerForUpdate.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.WebhookSerializerForUpdate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.WebhooksClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.WebhooksClient.g.cs index d1973bf..f7d639e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.WebhooksClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.WebhooksClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class WebhooksClient : global::LabelStudio.IWebhooksClient /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Create.g.cs index 25b41ee..bb7680f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Create.g.cs @@ -74,7 +74,7 @@ partial void ProcessCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -123,7 +123,7 @@ partial void ProcessCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Workspace.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Workspace.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Workspace.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Workspace.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Get.g.cs index 8f261a5..30642be 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Get.g.cs @@ -114,7 +114,7 @@ partial void ProcessGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Workspace.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Workspace.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Workspace.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Workspace.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.List.g.cs index f695a35..e704562 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.List.g.cs @@ -138,7 +138,7 @@ partial void ProcessListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -168,7 +168,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Update.g.cs index 627533c..c2e0755 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Update.g.cs @@ -79,7 +79,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.Workspace.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.Workspace.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Workspace.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.Workspace.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.g.cs index c1912b7..031f25b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.g.cs @@ -33,7 +33,7 @@ public sealed partial class Workspaces2Client : global::LabelStudio.IWorkspaces2 /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Add.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Add.g.cs index 74e728a..842169f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Add.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Add.g.cs @@ -74,7 +74,7 @@ partial void ProcessAddResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Create2.g.cs index cd04d77..8859437 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Create2.g.cs @@ -79,7 +79,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessCreate2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.WorkspaceMemberCreate.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.WorkspaceMemberCreate.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.WorkspaceMemberCreate.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.WorkspaceMemberCreate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Delete3.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Delete3.g.cs index 762f002..f8bfe55 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Delete3.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Delete3.g.cs @@ -114,7 +114,7 @@ partial void ProcessDelete3ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiWorkspacesMembershipsBulkDestroyResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiWorkspacesMembershipsBulkDestroyResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessDelete3ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiWorkspacesMembershipsBulkDestroyResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiWorkspacesMembershipsBulkDestroyResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.List2.g.cs index 3f5796f..13775e9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.List2.g.cs @@ -114,7 +114,7 @@ partial void ProcessList2ResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.List3.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.List3.g.cs index 1799dce..4a4e328 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.List3.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.List3.g.cs @@ -144,7 +144,7 @@ partial void ProcessList3ResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.PaginatedLseUserList.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.PaginatedLseUserList.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -174,7 +174,7 @@ partial void ProcessList3ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedLseUserList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedLseUserList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.List4.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.List4.g.cs index 53f1608..48f39eb 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.List4.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.List4.g.cs @@ -114,7 +114,7 @@ partial void ProcessList4ResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessList4ResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Post.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Post.g.cs index b7df7c7..54673aa 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Post.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Post.g.cs @@ -79,7 +79,7 @@ partial void ProcessPostResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -129,7 +129,7 @@ partial void ProcessPostResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiWorkspacesMembershipsBulkCreateResponse.FromJson(__content, JsonSerializerOptions) ?? + global::LabelStudio.ApiWorkspacesMembershipsBulkCreateResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessPostResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiWorkspacesMembershipsBulkCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? + await global::LabelStudio.ApiWorkspacesMembershipsBulkCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.g.cs index a2335e7..d85d1ff 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class WorkspacesClient : global::LabelStudio.IWorkspacesCl /// /// /// - public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; ///