From 12fff17108102bd8ce205e45e17c0e9d1e144713 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 2 Apr 2026 16:01:45 +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 | 50 +- .../LabelStudio.JsonConverters.OneOf6.g.cs | 138 +- ...elStudio.JsonConverters.RoleBasedTask.g.cs | 42 +- .../LabelStudio.JsonSerializerContext.g.cs | 1177 ------ ...abelStudio.JsonSerializerContextTypes.g.cs | 3322 ----------------- .../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 +- ...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 +- 532 files changed, 1386 insertions(+), 5875 deletions(-) delete mode 100644 src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs delete 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 c5b4d70..5facdbc 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 bf0725e..b98a450 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? 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 - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 da338e4..c83cefb 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ActivityLogsClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ActivityLogsClient.List.g.cs index daa78da..7d13b3e 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -246,7 +246,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 d01661e..b602f69 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsKpisRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsKpisRetrieve.g.cs index 392b6a8..69aca1a 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -133,7 +133,7 @@ partial void ProcessApiAnalyticsKpisRetrieveResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 16a3fec..72c9cb1 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, JsonSerializerContext) ?? + global::LabelStudio.KPIDetailResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -263,7 +263,7 @@ partial void ProcessApiAnalyticsKpisRetrieve2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.KPIDetailResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.KPIDetailResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsCreate.g.cs index 8e4ada9..3cb9ab1 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.AnalyticsView.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -158,7 +158,7 @@ partial void ProcessApiAnalyticsViewsCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AnalyticsView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AnalyticsView.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsList.g.cs index c28334c..0ad5e68 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -152,7 +152,7 @@ partial void ProcessApiAnalyticsViewsListResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 9285495..0832b26 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.AnalyticsView.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -164,7 +164,7 @@ partial void ProcessApiAnalyticsViewsPartialUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AnalyticsView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AnalyticsView.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsRetrieve.g.cs index 6a87c5d..200374d 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, JsonSerializerContext) ?? + global::LabelStudio.AnalyticsView.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessApiAnalyticsViewsRetrieveResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AnalyticsView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AnalyticsView.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsUpdate.g.cs index 76d8756..c28db70 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.AnalyticsView.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -164,7 +164,7 @@ partial void ProcessApiAnalyticsViewsUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AnalyticsView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AnalyticsView.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.g.cs index 3e003be..ae839ac 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.Delete.g.cs index 81d81e0..99af6ab 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, JsonSerializerContext) ?? + global::LabelStudio.ApiAnnotationHistoryDestroyResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -162,7 +162,7 @@ partial void ProcessDeleteResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiAnnotationHistoryDestroyResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiAnnotationHistoryDestroyResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.List.g.cs index 8731105..03c9981 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? 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 - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 a72ff29..e7bf595 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, JsonSerializerContext) ?? + global::LabelStudio.PaginatedAnnotationHistoryList.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -161,7 +161,7 @@ partial void ProcessListForProjectResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedAnnotationHistoryList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedAnnotationHistoryList.FromJsonStreamAsync(__content, JsonSerializerOptions).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 523e6f5..a229332 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, JsonSerializerContext) ?? + global::LabelStudio.AnnotationHistory.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessRetrieveResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AnnotationHistory.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AnnotationHistory.FromJsonStreamAsync(__content, JsonSerializerOptions).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 f724c20..f8704ec 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Create.g.cs index 7fd681c..8a65eee 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.AnnotationReview.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -163,7 +163,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AnnotationReview.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AnnotationReview.FromJsonStreamAsync(__content, JsonSerializerOptions).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 3797f05..5bad2aa 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, JsonSerializerContext) ?? + global::LabelStudio.AnnotationReview.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AnnotationReview.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AnnotationReview.FromJsonStreamAsync(__content, JsonSerializerOptions).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 bb62c02..88bfe09 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? 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 - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 17e77e6..e5f63ce 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.AnnotationReview.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AnnotationReview.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AnnotationReview.FromJsonStreamAsync(__content, JsonSerializerOptions).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 6400cb8..72c0bc7 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviewsClient.ApiAnnotationReviewsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviewsClient.ApiAnnotationReviewsUpdate.g.cs index d621dc7..a94afcd 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.AnnotationReview.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessApiAnnotationReviewsUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AnnotationReview.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AnnotationReview.FromJsonStreamAsync(__content, JsonSerializerOptions).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 d520914..6d2845b 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Create.g.cs index 542c48c..a140931 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.Annotation.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -167,7 +167,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Annotation.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Annotation.FromJsonStreamAsync(__content, JsonSerializerOptions).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 cc66263..bc794cc 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessCreateBulkResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 9382039..356b8b3 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ApiAnnotationsBulkDeleteCreateResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -214,7 +214,7 @@ partial void ProcessDeleteBulkResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiAnnotationsBulkDeleteCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiAnnotationsBulkDeleteCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 48f4578..3efe8b1 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, JsonSerializerContext) ?? + global::LabelStudio.Annotation.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Annotation.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Annotation.FromJsonStreamAsync(__content, JsonSerializerOptions).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 9ffa04e..839ac4f 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? 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 - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 2d82c62..4c4ec3f 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.Annotation.FromJson(__content, JsonSerializerOptions) ?? 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.Annotation.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Annotation.FromJsonStreamAsync(__content, JsonSerializerOptions).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 6c222ac..8870f7c 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AwsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AwsClient.g.cs index 2ba060f..29a71d5 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.BillingClient.Info.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.BillingClient.Info.g.cs index 3c55c0e..ae910c7 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, JsonSerializerContext) ?? + global::LabelStudio.BillingInfoResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessInfoResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.BillingInfoResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.BillingInfoResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 9d3af94..f9a5a0e 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.Create.g.cs index 3d55d6c..40eb4f2 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.Blueprint.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Blueprint.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Blueprint.FromJsonStreamAsync(__content, JsonSerializerOptions).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 e0f9ca1..ae24280 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.Blueprint.FromJson(__content, JsonSerializerOptions) ?? 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.Blueprint.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Blueprint.FromJsonStreamAsync(__content, JsonSerializerOptions).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 0f7e5ee..f99dc51 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.BlueprintsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.BlueprintsClient.g.cs index 9a7fd16..d59d0c0 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Create.g.cs index 385f540..8722902 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.MaybeExpandedComment.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -163,7 +163,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.MaybeExpandedComment.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.MaybeExpandedComment.FromJsonStreamAsync(__content, JsonSerializerOptions).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 7e4065c..eb4cbd9 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, JsonSerializerContext) ?? + global::LabelStudio.MaybeExpandedComment.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.MaybeExpandedComment.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.MaybeExpandedComment.FromJsonStreamAsync(__content, JsonSerializerOptions).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 ff1939a..7a94fa2 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -185,7 +185,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 a9fa57d..91cab85 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.MaybeExpandedComment.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -169,7 +169,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.MaybeExpandedComment.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.MaybeExpandedComment.FromJsonStreamAsync(__content, JsonSerializerOptions).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 1586a8e..4fe0af4 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.CommentsClient.ApiCommentsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.CommentsClient.ApiCommentsUpdate.g.cs index 2f91fb0..f6f6538 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.Comment.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -169,7 +169,7 @@ partial void ProcessApiCommentsUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Comment.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Comment.FromJsonStreamAsync(__content, JsonSerializerOptions).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 3ece956..9528da5 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsTasksRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsTasksRetrieve.g.cs index a9fcf47..f5648d5 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, JsonSerializerContext) ?? + global::LabelStudio.DatasetView.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -178,7 +178,7 @@ partial void ProcessApiDatasetsTasksRetrieveResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatasetView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.DatasetView.FromJsonStreamAsync(__content, JsonSerializerOptions).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 1421696..f2c3739 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DataManagerClient.ApiDmViewsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DataManagerClient.ApiDmViewsUpdate.g.cs index b6e03d1..b2687dd 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.View.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessApiDmViewsUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.View.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.View.FromJsonStreamAsync(__content, JsonSerializerOptions).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 d922955..873fe39 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureCheckForRecordsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureCheckForRecordsCreate.g.cs index 0bc3154..b3efa76 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.AzureDatasetStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessApiDatasetStoragesAzureCheckForRecordsCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 a8c5df4..8b8d956 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.AzureDatasetStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessApiDatasetStoragesAzureCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 2b07ebd..d8f38ee 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessApiDatasetStoragesAzureListResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 cc23e01..e1385ed 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.AzureDatasetStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessApiDatasetStoragesAzurePartialUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 42f30fc..c7e6d94 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, JsonSerializerContext) ?? + global::LabelStudio.AzureDatasetStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessApiDatasetStoragesAzureRetrieveResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 a1140bb..5509dfc 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.AzureDatasetStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessApiDatasetStoragesAzureSyncCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 bf522fe..58c4b24 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.AzureDatasetStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessApiDatasetStoragesAzureValidateCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AzureDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 422e7a9..0ea7286 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsCheckForRecordsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsCheckForRecordsCreate.g.cs index 75ab381..4a6e041 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.GCSDatasetStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessApiDatasetStoragesGcsCheckForRecordsCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 90bae83..63ed6ab 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.GCSDatasetStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessApiDatasetStoragesGcsCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 56b3292..021d444 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessApiDatasetStoragesGcsListResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 f9f41a0..809a7b3 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.GCSDatasetStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessApiDatasetStoragesGcsPartialUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 c78cda7..6ec3e44 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, JsonSerializerContext) ?? + global::LabelStudio.GCSDatasetStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessApiDatasetStoragesGcsRetrieveResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 5111557..c0f8635 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.GCSDatasetStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessApiDatasetStoragesGcsSyncCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 378b1b5..b990d5c 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.GCSDatasetStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessApiDatasetStoragesGcsValidateCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.GCSDatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 a7f3283..194fae6 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3CheckForRecordsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3CheckForRecordsCreate.g.cs index 5a9f312..abdb6a3 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.S3DatasetStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessApiDatasetStoragesS3CheckForRecordsCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 db5e3ae..efdad6f 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.S3DatasetStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessApiDatasetStoragesS3CreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 cabd956..f94695f 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessApiDatasetStoragesS3ListResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 27a8154..a2802b3 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.S3DatasetStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessApiDatasetStoragesS3PartialUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 b56cb98..b54bddd 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, JsonSerializerContext) ?? + global::LabelStudio.S3DatasetStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessApiDatasetStoragesS3RetrieveResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 849a5e6..502fddb 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.S3DatasetStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessApiDatasetStoragesS3SyncCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 0ed4465..b20841d 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.S3DatasetStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessApiDatasetStoragesS3ValidateCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.S3DatasetStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 1c2e782..19c44cc 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsCreate.g.cs index 70df89e..c5b5018 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.Dataset.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessApiDatasetsCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Dataset.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Dataset.FromJsonStreamAsync(__content, JsonSerializerOptions).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 ba902e8..b884e24 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -142,7 +142,7 @@ partial void ProcessApiDatasetsListResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 5b813dd..6625c7a 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.DatasetMember.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessApiDatasetsMembersCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatasetMember.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.DatasetMember.FromJsonStreamAsync(__content, JsonSerializerOptions).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 510c791..0e9dcfe 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessApiDatasetsMembersListResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 fa71497..f8130b1 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.Dataset.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessApiDatasetsPartialUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Dataset.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Dataset.FromJsonStreamAsync(__content, JsonSerializerOptions).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 925e7b5..5979f02 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, JsonSerializerContext) ?? + global::LabelStudio.Dataset.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessApiDatasetsRetrieveResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Dataset.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Dataset.FromJsonStreamAsync(__content, JsonSerializerOptions).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 5eb73df..1452e23 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.Dataset.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessApiDatasetsUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Dataset.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Dataset.FromJsonStreamAsync(__content, JsonSerializerOptions).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 963da6a..bf9ff68 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.DatasetView.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessApiDatasetsViewsCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatasetView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.DatasetView.FromJsonStreamAsync(__content, JsonSerializerOptions).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 46cf58e..0ca04bf 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -142,7 +142,7 @@ partial void ProcessApiDatasetsViewsListResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 4f1af3e..d372bb0 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.DatasetView.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessApiDatasetsViewsPartialUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatasetView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.DatasetView.FromJsonStreamAsync(__content, JsonSerializerOptions).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 d375234..222654a 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, JsonSerializerContext) ?? + global::LabelStudio.DatasetView.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessApiDatasetsViewsRetrieveResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatasetView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.DatasetView.FromJsonStreamAsync(__content, JsonSerializerOptions).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 067ee87..7ae48d6 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.DatasetView.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessApiDatasetsViewsUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatasetView.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.DatasetView.FromJsonStreamAsync(__content, JsonSerializerOptions).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 339e6b5..10ed255 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.CancelBackfill.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.CancelBackfill.g.cs index 8bfe3a1..e0b7e45 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 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); } else { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); } } 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 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -200,7 +200,7 @@ partial void ProcessCancelBackfillResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AgreementV2BackfillCancelResponse.FromJson(__content, JsonSerializerContext) ?? + global::LabelStudio.AgreementV2BackfillCancelResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -231,7 +231,7 @@ partial void ProcessCancelBackfillResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AgreementV2BackfillCancelResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AgreementV2BackfillCancelResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 32f2644..239b2a8 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.Dimension.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Dimension.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Dimension.FromJsonStreamAsync(__content, JsonSerializerOptions).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 d7fcb49..d511732 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, JsonSerializerContext) ?? + global::LabelStudio.Dimension.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -151,7 +151,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Dimension.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Dimension.FromJsonStreamAsync(__content, JsonSerializerOptions).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 a04d690..85d71ba 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 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); } else { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); } } 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 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -200,7 +200,7 @@ partial void ProcessGetBackfillStatusResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AgreementV2BackfillJob.FromJson(__content, JsonSerializerContext) ?? + global::LabelStudio.AgreementV2BackfillJob.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -231,7 +231,7 @@ partial void ProcessGetBackfillStatusResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AgreementV2BackfillJob.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AgreementV2BackfillJob.FromJsonStreamAsync(__content, JsonSerializerOptions).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 c9f9116..c399557 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? 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 - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 cfc64bc..6cd97d6 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 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); } } 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 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); } else { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -193,7 +193,7 @@ partial void ProcessListBackfillsResponseContent( __response.EnsureSuccessStatusCode(); return - (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -224,7 +224,7 @@ partial void ProcessListBackfillsResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 c3cd505..ba799a1 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); } } 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 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); } else { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); } } 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 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -241,7 +241,7 @@ partial void ProcessTriggerBackfillResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.AgreementV2BackfillTriggerResponse.FromJson(__content, JsonSerializerContext) ?? + global::LabelStudio.AgreementV2BackfillTriggerResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -272,7 +272,7 @@ partial void ProcessTriggerBackfillResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AgreementV2BackfillTriggerResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AgreementV2BackfillTriggerResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 a79c885..d75879a 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.Dimension.FromJson(__content, JsonSerializerOptions) ?? 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.Dimension.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Dimension.FromJsonStreamAsync(__content, JsonSerializerOptions).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 1ba33f3..fdd6059 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DimensionsClient.ApiProjectsDimensionsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DimensionsClient.ApiProjectsDimensionsUpdate.g.cs index 7ffc5dd..72f037d 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.Dimension.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -166,7 +166,7 @@ partial void ProcessApiProjectsDimensionsUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Dimension.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Dimension.FromJsonStreamAsync(__content, JsonSerializerOptions).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 67da996..bcce28a 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, JsonSerializerContext) ?? + global::LabelStudio.TaskAgreementMatrixResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -166,7 +166,7 @@ partial void ProcessGet2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.TaskAgreementMatrixResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.TaskAgreementMatrixResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 0e2d598..128da99 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Convert.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Convert.g.cs index 322c65c..8200895 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ApiProjectsExportsConvertCreateResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessConvertResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsExportsConvertCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsExportsConvertCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 6a22d23..b171722 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.LseExportCreate.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseExportCreate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LseExportCreate.FromJsonStreamAsync(__content, JsonSerializerOptions).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 952998d..ed7ac84 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, JsonSerializerContext) ?? + global::LabelStudio.Export.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Export.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Export.FromJsonStreamAsync(__content, JsonSerializerOptions).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 8984881..15cdc25 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? 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 - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 79dbe79..39cde5d 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IActionsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IActionsClient.g.cs index f7d515e..71c266a 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IActivityLogsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IActivityLogsClient.g.cs index b454a48..1931f38 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IAnalyticsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IAnalyticsClient.g.cs index ad643c6..1a785a8 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IAnnotationHistoryClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IAnnotationHistoryClient.g.cs index 30cae7c..fb584a9 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IAnnotationReviews2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IAnnotationReviews2Client.g.cs index bacc7dd..63920f5 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IAnnotationReviewsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IAnnotationReviewsClient.g.cs index 3e1af93..85785f6 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IAnnotationsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IAnnotationsClient.g.cs index 6c98bb6..1ac2b48 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IAwsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IAwsClient.g.cs index 5658f09..a491659 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IBillingClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IBillingClient.g.cs index f3c04af..7cbfd8e 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IBlueprints2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IBlueprints2Client.g.cs index 26e929b..a4a5203 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IBlueprintsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IBlueprintsClient.g.cs index ad5d65c..0336f59 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IComments2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IComments2Client.g.cs index e73e24a..f9cc1e0 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ICommentsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ICommentsClient.g.cs index 0417dae..2ac5275 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDataExplorerClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDataExplorerClient.g.cs index 7d39beb..9a48563 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDataManagerClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDataManagerClient.g.cs index bf8ddf0..983c6a6 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageAzureClient.g.cs index 96eb2b8..7da2734 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageGcsClient.g.cs index 0604881..03d8e12 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetStorageS3Client.g.cs index a359632..2c28d4b 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDatasetsClient.g.cs index 05a2b58..57c5755 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDimensions2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDimensions2Client.g.cs index a21dacf..547b652 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IDimensionsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IDimensionsClient.g.cs index 0d73979..c9fdaee 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IExportClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IExportClient.g.cs index c867b29..934fec0 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IImportClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IImportClient.g.cs index 3dd4c2f..5187349 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IJwtSettingsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IJwtSettingsClient.g.cs index 82d8469..0e73805 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ILabelStudioClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ILabelStudioClient.g.cs index df41915..69447ba 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ILabels2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ILabels2Client.g.cs index 879814c..a1020cd 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ILabelsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ILabelsClient.g.cs index 3b0775a..2991cba 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ILlmClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ILlmClient.g.cs index 9462811..9db0187 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IMlClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IMlClient.g.cs index 98dddac..981d1bc 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IModelProviderConnectionClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IModelProviderConnectionClient.g.cs index be68b3c..0944691 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IModelProvidersClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IModelProvidersClient.g.cs index 4a1cd00..367430d 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IOrganizations2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IOrganizations2Client.g.cs index 3b14bf6..e2ddd5c 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IOrganizationsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IOrganizationsClient.g.cs index ccf3dbb..87e890c 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IPausesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPausesClient.g.cs index b836e89..d213bb3 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IPredictions2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPredictions2Client.g.cs index 0709f94..a3e424e 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IPredictionsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPredictionsClient.g.cs index e4a0367..6109326 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IProjectRolesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IProjectRolesClient.g.cs index d117b75..aaf1532 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IProjectTemplatesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IProjectTemplatesClient.g.cs index 057202b..bba1b05 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IProjects2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IProjects2Client.g.cs index ab497c2..30f868c 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.g.cs index dc44466..b093774 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IPrompts2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPrompts2Client.g.cs index b17b9d3..61333d7 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.g.cs index cb0c699..31ea597 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ISessionPolicyClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ISessionPolicyClient.g.cs index beb21ab..1e1def2 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ISsoClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ISsoClient.g.cs index aafe712..a1d658b 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStatesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStatesClient.g.cs index 96c861b..744027e 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStatsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStatsClient.g.cs index 494ece2..b0e4283 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageAzureClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageAzureClient.g.cs index abcfa00..ac645e6 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageAzureSpiClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageAzureSpiClient.g.cs index ff6c299..b4b0758 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageClient.g.cs index 58298c3..91aad69 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageDatabricksFilesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageDatabricksFilesClient.g.cs index 6b5752f..3598de7 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsClient.g.cs index 687c765..6dff929 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsWifClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsWifClient.g.cs index d985dfc..fe66d98 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageLocalClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageLocalClient.g.cs index aa6be8e..1cf551f 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageRedisClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageRedisClient.g.cs index 23bc372..cf43196 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageS3Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageS3Client.g.cs index 9ed5302..5ddb966 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageS3RolesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageS3RolesClient.g.cs index a363531..f678f55 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ITasks2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ITasks2Client.g.cs index ebe5287..f343d00 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ITasksClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ITasksClient.g.cs index 77879d8..248111a 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ITokensClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ITokensClient.g.cs index a53d73d..92eea46 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IUsersClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IUsersClient.g.cs index 5fbf7c8..343b205 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IVersionsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IVersionsClient.g.cs index c14fab1..ff725c6 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IViewsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IViewsClient.g.cs index ecbae1a..5754e59 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IWebhooks2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IWebhooks2Client.g.cs index 0c9052b..b4cef37 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IWebhooksClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IWebhooksClient.g.cs index db02176..aa5d550 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IWorkspaces2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IWorkspaces2Client.g.cs index b02d847..8d0f725 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IWorkspacesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IWorkspacesClient.g.cs index 8edaa23..284a0eb 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { 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 0a5c83a..2286b49 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, JsonSerializerContext) ?? + global::LabelStudio.FileUpload.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.FileUpload.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.FileUpload.FromJsonStreamAsync(__content, JsonSerializerOptions).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 7b8fbb9..d48dd11 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -163,7 +163,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 6e6aeed..ad5cf85 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.FileUpload.FromJson(__content, JsonSerializerOptions) ?? 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.FileUpload.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.FileUpload.FromJsonStreamAsync(__content, JsonSerializerOptions).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 28c0ae4..d4dedaa 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.MaybeExpandedComment.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.MaybeExpandedComment.g.cs index 2b7a463..31cddd7 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.MaybeExpandedComment.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.MaybeExpandedComment.g.cs @@ -12,8 +12,7 @@ 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)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -69,9 +68,7 @@ public class MaybeExpandedCommentJsonConverter : global::System.Text.Json.Serial { try { - 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); + comment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -84,9 +81,7 @@ public class MaybeExpandedCommentJsonConverter : global::System.Text.Json.Serial { try { - 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); + serializerWithUser = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -101,9 +96,7 @@ public class MaybeExpandedCommentJsonConverter : global::System.Text.Json.Serial { try { - 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); + comment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -114,9 +107,7 @@ public class MaybeExpandedCommentJsonConverter : global::System.Text.Json.Serial try { - 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); + serializerWithUser = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -141,20 +132,15 @@ public override void Write( global::LabelStudio.MaybeExpandedComment value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsComment) { - 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Comment, typeof(global::LabelStudio.Comment), options); } else if (value.IsSerializerWithUser) { - 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SerializerWithUser, typeof(global::LabelStudio.CommentSerializerWithExpandedUser), options); } } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.OneOf2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.OneOf2.g.cs index 73f5a0b..5d92e62 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.OneOf2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.OneOf2.g.cs @@ -11,8 +11,7 @@ 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)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -27,27 +26,7 @@ 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; } @@ -62,9 +41,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization try { - 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); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -79,9 +56,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization try { - 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); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -97,9 +72,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization try { - 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); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -111,9 +84,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization try { - 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); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -138,20 +109,15 @@ public override void Write( global::LabelStudio.OneOf value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsValue1) { - 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options); } else if (value.IsValue2) { - 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options); } } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.OneOf6.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.OneOf6.g.cs index 386c9f4..3c8fe24 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.OneOf6.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.OneOf6.g.cs @@ -11,8 +11,7 @@ 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)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -27,71 +26,11 @@ 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; } @@ -114,9 +53,7 @@ public class OneOfJsonConverter : global::System.Text.Js try { - 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); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -131,9 +68,7 @@ public class OneOfJsonConverter : global::System.Text.Js try { - 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); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -148,9 +83,7 @@ public class OneOfJsonConverter : global::System.Text.Js try { - 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); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -165,9 +98,7 @@ public class OneOfJsonConverter : global::System.Text.Js try { - 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); + value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -182,9 +113,7 @@ public class OneOfJsonConverter : global::System.Text.Js try { - 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); + value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -199,9 +128,7 @@ public class OneOfJsonConverter : global::System.Text.Js try { - 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); + value6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -217,9 +144,7 @@ public class OneOfJsonConverter : global::System.Text.Js try { - 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); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -231,9 +156,7 @@ public class OneOfJsonConverter : global::System.Text.Js try { - 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); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -245,9 +168,7 @@ public class OneOfJsonConverter : global::System.Text.Js try { - 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); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -259,9 +180,7 @@ public class OneOfJsonConverter : global::System.Text.Js try { - 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); + value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -273,9 +192,7 @@ public class OneOfJsonConverter : global::System.Text.Js try { - 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); + value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -287,9 +204,7 @@ public class OneOfJsonConverter : global::System.Text.Js try { - 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); + value6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -322,44 +237,31 @@ public override void Write( global::LabelStudio.OneOf value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsValue1) { - 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options); } else if (value.IsValue2) { - 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options); } else if (value.IsValue3) { - 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeof(T3), options); } else if (value.IsValue4) { - 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4, typeof(T4), options); } else if (value.IsValue5) { - 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5, typeof(T5), options); } else if (value.IsValue6) { - 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6, typeof(T6), options); } } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.RoleBasedTask.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.RoleBasedTask.g.cs index 81d7e90..f428e8d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.RoleBasedTask.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.RoleBasedTask.g.cs @@ -12,8 +12,7 @@ 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)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -156,9 +155,7 @@ public class RoleBasedTaskJsonConverter : global::System.Text.Json.Serialization { try { - 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); + lse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -171,9 +168,7 @@ public class RoleBasedTaskJsonConverter : global::System.Text.Json.Serialization { try { - 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); + lseSerializerForReviewers = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -186,9 +181,7 @@ public class RoleBasedTaskJsonConverter : global::System.Text.Json.Serialization { try { - 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); + lseSerializerForAnnotators = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -203,9 +196,7 @@ public class RoleBasedTaskJsonConverter : global::System.Text.Json.Serialization { try { - 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); + lse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -216,9 +207,7 @@ public class RoleBasedTaskJsonConverter : global::System.Text.Json.Serialization try { - 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); + lseSerializerForReviewers = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -229,9 +218,7 @@ public class RoleBasedTaskJsonConverter : global::System.Text.Json.Serialization try { - 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); + lseSerializerForAnnotators = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -258,26 +245,19 @@ public override void Write( global::LabelStudio.RoleBasedTask value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsLse) { - 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Lse, typeof(global::LabelStudio.LseTask), options); } else if (value.IsLseSerializerForReviewers) { - 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LseSerializerForReviewers, typeof(global::LabelStudio.LseTaskSerializerForReviewers), options); } else if (value.IsLseSerializerForAnnotators) { - 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LseSerializerForAnnotators, typeof(global::LabelStudio.LseTaskSerializerForAnnotators), options); } } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs deleted file mode 100644 index 8c44552..0000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs +++ /dev/null @@ -1,1177 +0,0 @@ - -#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 = "OneOfApiProjectsTasksAssigneesCreateRequestSelectedItemsAllFalseApiProjectsTasksAssigneesCreateRequestSelectedItemsAllTrue2")] - [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 deleted file mode 100644 index 47da1cb..0000000 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs +++ /dev/null @@ -1,3322 +0,0 @@ - -#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.OneOf? Type508 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestSelectedItemsAllFalse? Type509 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestSelectedItemsAllTrue? Type510 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestType? Type511 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsTasksAssigneesPartialUpdateRequest? Type512 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsTasksAssigneesPartialUpdateRequestType? Type513 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreate2Request? Type514 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreate2RequestType? Type515 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesAzureCreateRequest? Type516 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesAzureValidateCreateRequest? Type517 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesAzurePartialUpdateRequest? Type518 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesExportAzureCreateRequest? Type519 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesExportAzureValidateCreateRequest? Type520 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesExportAzurePartialUpdateRequest? Type521 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesExportGcsCreateRequest? Type522 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesExportGcsValidateCreateRequest? Type523 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesExportGcsPartialUpdateRequest? Type524 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesExportLocalfilesCreateRequest? Type525 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesExportLocalfilesValidateCreateRequest? Type526 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesExportLocalfilesPartialUpdateRequest? Type527 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesExportRedisCreateRequest? Type528 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesExportRedisValidateCreateRequest? Type529 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesExportRedisPartialUpdateRequest? Type530 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesExportS3CreateRequest? Type531 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesExportS3ValidateCreateRequest? Type532 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesExportS3PartialUpdateRequest? Type533 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesGcsCreateRequest? Type534 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesGcsValidateCreateRequest? Type535 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesGcsPartialUpdateRequest? Type536 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesLocalfilesCreateRequest? Type537 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesLocalfilesValidateCreateRequest? Type538 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesLocalfilesPartialUpdateRequest? Type539 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesRedisCreateRequest? Type540 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesRedisValidateCreateRequest? Type541 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesRedisPartialUpdateRequest? Type542 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesS3CreateRequest? Type543 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesS3ValidateCreateRequest? Type544 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesS3PartialUpdateRequest? Type545 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiTasksAnnotationsCreateRequest? Type546 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiUsersCreateRequest? Type547 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiUsersPartialUpdateRequest? Type548 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiActivityLogsListMethod? Type549 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiDmActionsCreateId? Type550 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsTasksAssigneesDestroyType? Type551 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiPromptsCompatibleProjectsListProjectType? Type552 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiPromptsVersionsInferenceRunsListProjectSubset? Type553 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiTasksListFields? Type554 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type555 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type556 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type557 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiAnnotationHistoryDestroyResponse? Type558 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type559 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiAnnotationsBulkDeleteCreateResponse? Type560 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type561 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiAnnotationsBulkCreateResponseItem? Type562 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type563 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiCurrentUserResetTokenCreateResponse? Type564 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiCurrentUserTokenRetrieveResponse? 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::System.Collections.Generic.IList? Type573 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiDmActionsRetrieveResponseItem? Type574 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiDmActionsRetrieveResponseItemDialog? Type575 { get; set; } - /// - /// - /// - public global::LabelStudio.OneOf>? Type576 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type577 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type578 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiInferenceRunsIndicatorsRetrieveResponseItem? Type579 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type580 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiMlVersionsRetrieveResponse? Type581 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type582 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiModelProviderConnectionsProviderChoicesRetrieveResponse? Type583 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type584 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiOrganizationsMemberTagsAssignmentsCreateResponse? Type585 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiOrganizationsMemberTagsBulkDestroyResponse? Type586 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiOrganizationsMemberTagsBulkCreateResponse? Type587 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiOrganizationsMemberTagsImportsCreateResponse? 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::System.Collections.Generic.IList? Type593 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponse? Type594 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponseStatus? Type595 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsDashboardRetrieveResponse? Type596 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsDuplicateCreateResponse? Type597 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type598 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsExportsConvertCreateResponse? Type599 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type600 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsImportCreateResponse? Type601 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsImportPredictionsCreateResponse? Type602 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsMembersBulkDestroyResponse? Type603 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsMembersBulkCreateResponse? Type604 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsModelStatsAgreementRetrieveResponse? Type605 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsModelStatsAgreementGroundtruthRetrieveResponse? Type606 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsModelStatsPredictionRetrieveResponse? Type607 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsStatsIaaRetrieveResponse? Type608 { get; set; } - /// - /// - /// - public global::LabelStudio.OneOf>, global::System.Collections.Generic.Dictionary>>>? Type609 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.Dictionary>>? Type610 { get; set; } - /// - /// - /// - public global::LabelStudio.OneOf>? Type611 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsStatsAgreementGroundtruthRetrieveResponse? Type612 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorRetrieveResponse? Type613 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorsRetrieveResponse? Type614 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponse? Type615 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFilters? Type616 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type617 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFiltersStat? Type618 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsStatsFinishedRetrieveResponse? Type619 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponse? Type620 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type621 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponseLeadTimeStat? Type622 { get; set; } - /// - /// - /// - public global::LabelStudio.OneOf? Type623 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant1? Type624 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant2? Type625 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type626 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreateResponse? Type627 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type628 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsUserStatsPredictionRetrieveResponse? Type629 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieveResponse? Type630 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsUserStatsPredictionRetrieve2Response? Type631 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieve2Response? Type632 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiProjectsUsersStatsAgreementGroundtruthRetrieveResponse? 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::System.Collections.Generic.IList? Type651 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type652 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesExportTypesRetrieveResponseItem? 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::System.Collections.Generic.IList? Type659 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type660 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiStoragesTypesRetrieveResponseItem? Type661 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type662 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type663 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type664 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponse? Type665 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsCreated? Type666 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsDeleted? Type667 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationCreated? Type668 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationUpdated? Type669 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkCreated? Type670 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkDeleted? Type671 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkUpdated? Type672 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectCreated? Type673 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectDeleted? Type674 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectUpdated? Type675 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewsDeleted? Type676 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewCreated? Type677 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewUpdated? Type678 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksCreated? Type679 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksDeleted? Type680 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type681 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type682 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWorkspacesMembershipsBulkDestroyResponse? Type683 { get; set; } - /// - /// - /// - public global::LabelStudio.ApiWorkspacesMembershipsBulkCreateResponse? Type684 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type685 { 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 422a68f..52a3df5 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, JsonSerializerContext) ?? + global::LabelStudio.LSEJWTSettings.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -133,7 +133,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LSEJWTSettings.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LSEJWTSettings.FromJsonStreamAsync(__content, JsonSerializerOptions).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 d2c710e..0d6e67e 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.LSEJWTSettings.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LSEJWTSettings.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LSEJWTSettings.FromJsonStreamAsync(__content, JsonSerializerOptions).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 57bd4d9..6a9b9b5 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.g.cs index 9b54399..205384b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.g.cs @@ -34,7 +34,183 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + #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 /// @@ -43,7 +219,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public ActionsClient Actions => new ActionsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -52,7 +228,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public ActivityLogsClient ActivityLogs => new ActivityLogsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -61,7 +237,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public AnalyticsClient Analytics => new AnalyticsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -70,7 +246,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public AnnotationHistoryClient AnnotationHistory => new AnnotationHistoryClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -79,7 +255,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public AnnotationReviewsClient AnnotationReviews => new AnnotationReviewsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -88,7 +264,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public AnnotationReviews2Client AnnotationReviews2 => new AnnotationReviews2Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -97,7 +273,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public AnnotationsClient Annotations => new AnnotationsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -106,7 +282,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public AwsClient Aws => new AwsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -115,7 +291,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public BillingClient Billing => new BillingClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -124,7 +300,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public BlueprintsClient Blueprints => new BlueprintsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -133,7 +309,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public Blueprints2Client Blueprints2 => new Blueprints2Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -142,7 +318,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public CommentsClient Comments => new CommentsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -151,7 +327,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public Comments2Client Comments2 => new Comments2Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -160,7 +336,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public DataExplorerClient DataExplorer => new DataExplorerClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -169,7 +345,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public DataManagerClient DataManager => new DataManagerClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -178,7 +354,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public DatasetStorageAzureClient DatasetStorageAzure => new DatasetStorageAzureClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -187,7 +363,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public DatasetStorageGcsClient DatasetStorageGcs => new DatasetStorageGcsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -196,7 +372,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public DatasetStorageS3Client DatasetStorageS3 => new DatasetStorageS3Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -205,7 +381,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public DatasetsClient Datasets => new DatasetsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -214,7 +390,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public DimensionsClient Dimensions => new DimensionsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -223,7 +399,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public Dimensions2Client Dimensions2 => new Dimensions2Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -232,7 +408,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public ExportClient Export => new ExportClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -241,7 +417,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public ImportClient Import => new ImportClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -250,7 +426,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public JwtSettingsClient JwtSettings => new JwtSettingsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -259,7 +435,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public LabelsClient Labels => new LabelsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -268,7 +444,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public Labels2Client Labels2 => new Labels2Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -277,7 +453,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public LlmClient Llm => new LlmClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -286,7 +462,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public MlClient Ml => new MlClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -295,7 +471,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public ModelProviderConnectionClient ModelProviderConnection => new ModelProviderConnectionClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -304,7 +480,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public ModelProvidersClient ModelProviders => new ModelProvidersClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -313,7 +489,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public OrganizationsClient Organizations => new OrganizationsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -322,7 +498,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public Organizations2Client Organizations2 => new Organizations2Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -331,7 +507,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public PausesClient Pauses => new PausesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -340,7 +516,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public PredictionsClient Predictions => new PredictionsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -349,7 +525,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public Predictions2Client Predictions2 => new Predictions2Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -358,7 +534,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public ProjectRolesClient ProjectRoles => new ProjectRolesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -367,7 +543,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public ProjectTemplatesClient ProjectTemplates => new ProjectTemplatesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -376,7 +552,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public ProjectsClient Projects => new ProjectsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -385,7 +561,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public Projects2Client Projects2 => new Projects2Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -394,7 +570,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public PromptsClient Prompts => new PromptsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -403,7 +579,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public Prompts2Client Prompts2 => new Prompts2Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -412,7 +588,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public SessionPolicyClient SessionPolicy => new SessionPolicyClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -421,7 +597,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public SsoClient Sso => new SsoClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -430,7 +606,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public StatesClient States => new StatesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -439,7 +615,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public StatsClient Stats => new StatsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -448,7 +624,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public StorageClient Storage => new StorageClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -457,7 +633,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public StorageAzureClient StorageAzure => new StorageAzureClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -466,7 +642,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public StorageAzureSpiClient StorageAzureSpi => new StorageAzureSpiClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -475,7 +651,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public StorageDatabricksFilesClient StorageDatabricksFiles => new StorageDatabricksFilesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -484,7 +660,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public StorageGcsClient StorageGcs => new StorageGcsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -493,7 +669,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public StorageGcsWifClient StorageGcsWif => new StorageGcsWifClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -502,7 +678,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public StorageLocalClient StorageLocal => new StorageLocalClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -511,7 +687,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public StorageRedisClient StorageRedis => new StorageRedisClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -520,7 +696,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public StorageS3Client StorageS3 => new StorageS3Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -529,7 +705,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public StorageS3RolesClient StorageS3Roles => new StorageS3RolesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -538,7 +714,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public TasksClient Tasks => new TasksClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -547,7 +723,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public Tasks2Client Tasks2 => new Tasks2Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -556,7 +732,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public TokensClient Tokens => new TokensClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -565,7 +741,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public UsersClient Users => new UsersClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -574,7 +750,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public VersionsClient Versions => new VersionsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -583,7 +759,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public ViewsClient Views => new ViewsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -592,7 +768,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public WebhooksClient Webhooks => new WebhooksClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -601,7 +777,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public Webhooks2Client Webhooks2 => new Webhooks2Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -610,7 +786,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public WorkspacesClient Workspaces => new WorkspacesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -619,7 +795,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio public Workspaces2Client Workspaces2 => new Workspaces2Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Create2.g.cs index c2a1071..964f250 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, request.GetType(), JsonSerializerContext); + var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.PaginatedLabelCreateList.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -164,7 +164,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedLabelCreateList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedLabelCreateList.FromJsonStreamAsync(__content, JsonSerializerOptions).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 5130c3c..fa987b8 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, JsonSerializerContext) ?? + global::LabelStudio.Label.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -140,7 +140,7 @@ partial void ProcessGet2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Label.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Label.FromJsonStreamAsync(__content, JsonSerializerOptions).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 7e31918..3766d5b 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, JsonSerializerContext) ?? + global::LabelStudio.PaginatedLabelList.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedLabelList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedLabelList.FromJsonStreamAsync(__content, JsonSerializerOptions).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 b01b6e7..a108425 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.Label.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Label.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Label.FromJsonStreamAsync(__content, JsonSerializerOptions).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 1acc98d..422f535 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Create.g.cs index 755b8bf..be5fdb1 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.LabelLink.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LabelLink.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LabelLink.FromJsonStreamAsync(__content, JsonSerializerOptions).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 ec04bf4..328bf10 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, JsonSerializerContext) ?? + global::LabelStudio.LabelLink.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LabelLink.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LabelLink.FromJsonStreamAsync(__content, JsonSerializerOptions).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 8d9e61a..17642aa 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, JsonSerializerContext) ?? + global::LabelStudio.PaginatedLabelLinkList.FromJson(__content, JsonSerializerOptions) ?? 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::LabelStudio.PaginatedLabelLinkList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedLabelLinkList.FromJsonStreamAsync(__content, JsonSerializerOptions).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 7a076c2..c0bd275 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.LabelLink.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -156,7 +156,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LabelLink.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LabelLink.FromJsonStreamAsync(__content, JsonSerializerOptions).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 fdb6e29..15494c7 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LlmClient.ApiLlmOpenaiChatCompletionsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LlmClient.ApiLlmOpenaiChatCompletionsCreate.g.cs index 4e1452e..6b967c8 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); } } 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 c6a29a2..f5b22af 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Create.g.cs index 0ed312a..cdcbd59 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.MLBackend.FromJson(__content, JsonSerializerOptions) ?? 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.MLBackend.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.MLBackend.FromJsonStreamAsync(__content, JsonSerializerOptions).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 d0dc29f..3925c29 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, JsonSerializerContext) ?? + global::LabelStudio.MLBackend.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -143,7 +143,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.MLBackend.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.MLBackend.FromJsonStreamAsync(__content, JsonSerializerOptions).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 7f91447..8d161ed 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -146,7 +146,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 8bd5fbb..6bddf23 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, JsonSerializerContext) ?? + global::LabelStudio.ApiMlVersionsRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessListModelVersionsResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiMlVersionsRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiMlVersionsRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 abe2d71..f1dc1b5 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 5bb137a..779057e 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } } 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 b229110..10c810a 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } } 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 be59f51..3f79df5 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.MLBackend.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -158,7 +158,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.MLBackend.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.MLBackend.FromJsonStreamAsync(__content, JsonSerializerOptions).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 b47c068..ae8fe5d 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ModelProviderConnectionClient.ApiModelProviderConnectionsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ModelProviderConnectionClient.ApiModelProviderConnectionsUpdate.g.cs index 3ef4a9f..026b2be 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ModelProviderConnection.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessApiModelProviderConnectionsUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ModelProviderConnection.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ModelProviderConnection.FromJsonStreamAsync(__content, JsonSerializerOptions).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 eb6320c..4c5f8a9 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Create.g.cs index f34e84b..6518fd7 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ModelProviderConnection.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ModelProviderConnection.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ModelProviderConnection.FromJsonStreamAsync(__content, JsonSerializerOptions).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 edf80b0..9236162 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, JsonSerializerContext) ?? + global::LabelStudio.ModelProviderConnection.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ModelProviderConnection.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ModelProviderConnection.FromJsonStreamAsync(__content, JsonSerializerOptions).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 694ccdd..8268ef9 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? 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 - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 265664d..809abc2 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, JsonSerializerContext) ?? + global::LabelStudio.ApiModelProviderConnectionsProviderChoicesRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessListModelProviderChoicesResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiModelProviderConnectionsProviderChoicesRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiModelProviderConnectionsProviderChoicesRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 949dd97..958be66 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ModelProviderConnection.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ModelProviderConnection.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ModelProviderConnection.FromJsonStreamAsync(__content, JsonSerializerOptions).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 2e54633..ffb88d4 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.Get.g.cs index 432abe2..c2a553c 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, JsonSerializerContext) ?? + global::LabelStudio.LseOrganization.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseOrganization.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LseOrganization.FromJsonStreamAsync(__content, JsonSerializerOptions).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 9406204..4afb477 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -143,7 +143,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 9618dbd..48b99b2 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, JsonSerializerContext) ?? + global::LabelStudio.OrganizationInvite.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -133,7 +133,7 @@ partial void ProcessResetTokenResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.OrganizationInvite.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.OrganizationInvite.FromJsonStreamAsync(__content, JsonSerializerOptions).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 d2cbf20..d3ac006 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Assign.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Assign.g.cs index fe91646..f6cd4b5 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ApiOrganizationsMemberTagsAssignmentsCreateResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -277,7 +277,7 @@ partial void ProcessAssignResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiOrganizationsMemberTagsAssignmentsCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiOrganizationsMemberTagsAssignmentsCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 0d15e19..b3c9340 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.OrganizationMemberTag.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -226,7 +226,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.OrganizationMemberTag.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.OrganizationMemberTag.FromJsonStreamAsync(__content, JsonSerializerOptions).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 efc2ea1..d173d8e 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.OrganizationPermission.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -226,7 +226,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.OrganizationPermission.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.OrganizationPermission.FromJsonStreamAsync(__content, JsonSerializerOptions).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 9991df4..e49e2f1 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, JsonSerializerContext) ?? + global::LabelStudio.ApiOrganizationsMemberTagsBulkDestroyResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -211,7 +211,7 @@ partial void ProcessDeleteResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiOrganizationsMemberTagsBulkDestroyResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiOrganizationsMemberTagsBulkDestroyResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 79b9224..6519639 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, JsonSerializerContext) ?? + global::LabelStudio.OrganizationMemberTag.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -184,7 +184,7 @@ partial void ProcessGet2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.OrganizationMemberTag.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.OrganizationMemberTag.FromJsonStreamAsync(__content, JsonSerializerOptions).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 ea13438..0283e8d 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, JsonSerializerContext) ?? + global::LabelStudio.OrganizationMember.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessGet3ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.OrganizationMember.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.OrganizationMember.FromJsonStreamAsync(__content, JsonSerializerOptions).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 a02885d..6412cc8 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, JsonSerializerContext) ?? + global::LabelStudio.OrganizationPermission.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -217,7 +217,7 @@ partial void ProcessGet4ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.OrganizationPermission.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.OrganizationPermission.FromJsonStreamAsync(__content, JsonSerializerOptions).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 195a71d..50db078 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, JsonSerializerContext) ?? + global::LabelStudio.OrganizationMemberTagImportStatus.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -218,7 +218,7 @@ partial void ProcessGetImportResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.OrganizationMemberTagImportStatus.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.OrganizationMemberTagImportStatus.FromJsonStreamAsync(__content, JsonSerializerOptions).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 199d975..725048c 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, JsonSerializerContext) ?? + global::LabelStudio.OrganizationInvite.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -166,7 +166,7 @@ partial void ProcessGetInviteLinkResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.OrganizationInvite.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.OrganizationInvite.FromJsonStreamAsync(__content, JsonSerializerOptions).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 0bd197a..2482061 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessGetOptionsResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 257cefa..49ef68d 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ApiOrganizationsMemberTagsImportsCreateResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -229,7 +229,7 @@ partial void ProcessImportResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiOrganizationsMemberTagsImportsCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiOrganizationsMemberTagsImportsCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 9c6dcd4..65900d4 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, JsonSerializerContext) ?? + global::LabelStudio.PaginatedOrganizationMemberTagList.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -175,7 +175,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedOrganizationMemberTagList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedOrganizationMemberTagList.FromJsonStreamAsync(__content, JsonSerializerOptions).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 6b23fc8..53fdc23 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, JsonSerializerContext) ?? + global::LabelStudio.PaginatedLseOrganizationMemberListList.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -210,7 +210,7 @@ partial void ProcessList3ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedLseOrganizationMemberListList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedLseOrganizationMemberListList.FromJsonStreamAsync(__content, JsonSerializerOptions).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 f241cd6..3ede5be 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessList4ResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 bf2079d..ce63818 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ApiOrganizationsMemberTagsBulkCreateResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -226,7 +226,7 @@ partial void ProcessPostResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiOrganizationsMemberTagsBulkCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiOrganizationsMemberTagsBulkCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 841a5b2..7b2c378 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.OrganizationPermission.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -265,7 +265,7 @@ partial void ProcessReplaceResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.OrganizationPermission.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.OrganizationPermission.FromJsonStreamAsync(__content, JsonSerializerOptions).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 789aaa1..893ee8e 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 d41f1de..c9b91fe 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 b49ec80..a495aad 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.LseOrganization.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -259,7 +259,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseOrganization.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LseOrganization.FromJsonStreamAsync(__content, JsonSerializerOptions).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 a350d55..677b4d1 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.OrganizationMemberTag.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -265,7 +265,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.OrganizationMemberTag.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.OrganizationMemberTag.FromJsonStreamAsync(__content, JsonSerializerOptions).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 984759b..05b02f7 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.LseOrganizationMemberList.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -166,7 +166,7 @@ partial void ProcessUpdate3ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseOrganizationMemberList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LseOrganizationMemberList.FromJsonStreamAsync(__content, JsonSerializerOptions).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 1960114..77ab337 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.OrganizationPermission.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -265,7 +265,7 @@ partial void ProcessUpdate4ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.OrganizationPermission.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.OrganizationPermission.FromJsonStreamAsync(__content, JsonSerializerOptions).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 78a500e..84b3c60 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.DefaultRole.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessUpdateDefaultRoleResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DefaultRole.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.DefaultRole.FromJsonStreamAsync(__content, JsonSerializerOptions).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 1aaf428..f4d693b 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.ApiProjectsMembersPausesUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.ApiProjectsMembersPausesUpdate.g.cs index 14ac04a..77c15dc 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.Pause.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -172,7 +172,7 @@ partial void ProcessApiProjectsMembersPausesUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Pause.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Pause.FromJsonStreamAsync(__content, JsonSerializerOptions).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 0b5fc92..0fbea6a 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.Pause.FromJson(__content, JsonSerializerOptions) ?? 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.Pause.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Pause.FromJsonStreamAsync(__content, JsonSerializerOptions).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 a8b29cb..ee9eb7d 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, JsonSerializerContext) ?? + global::LabelStudio.Pause.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -157,7 +157,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Pause.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Pause.FromJsonStreamAsync(__content, JsonSerializerOptions).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 40df81d..8ae2569 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? 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 - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 5e3324e..c546ec1 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.Pause.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -172,7 +172,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Pause.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Pause.FromJsonStreamAsync(__content, JsonSerializerOptions).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 5c1ba5e..ee502ee 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Create.g.cs index 801a3f0..1bda263 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.Prediction.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Prediction.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Prediction.FromJsonStreamAsync(__content, JsonSerializerOptions).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 79c0738..061bc3b 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, JsonSerializerContext) ?? + global::LabelStudio.Prediction.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Prediction.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Prediction.FromJsonStreamAsync(__content, JsonSerializerOptions).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 f14339e..6c5e8ec 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 effd139..8fbc41f 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.Prediction.FromJson(__content, JsonSerializerOptions) ?? 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.Prediction.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Prediction.FromJsonStreamAsync(__content, JsonSerializerOptions).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 db1f884..777d34c 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PredictionsClient.ApiPredictionsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PredictionsClient.ApiPredictionsUpdate.g.cs index 4f4e23f..b5c1f49 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.Prediction.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessApiPredictionsUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Prediction.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Prediction.FromJsonStreamAsync(__content, JsonSerializerOptions).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 f3847e7..0500380 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.Add.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.Add.g.cs index 63d5738..dccd7c1 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ProjectRole.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -155,7 +155,7 @@ partial void ProcessAddResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ProjectRole.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ProjectRole.FromJsonStreamAsync(__content, JsonSerializerOptions).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 bbecbde..de00776 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 e6c4316..867fed5 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -156,7 +156,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 1974cd9..b3f7009 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.ApiProjectTemplatesUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.ApiProjectTemplatesUpdate.g.cs index b801261..f687d75 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ProjectTemplate.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessApiProjectTemplatesUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ProjectTemplate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ProjectTemplate.FromJsonStreamAsync(__content, JsonSerializerOptions).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 687d80a..36665ef 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ProjectTemplate.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ProjectTemplate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ProjectTemplate.FromJsonStreamAsync(__content, JsonSerializerOptions).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 46a35a4..f764f0a 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.LseProject.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessCreateProjectFromTemplateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseProject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LseProject.FromJsonStreamAsync(__content, JsonSerializerOptions).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 8e51e89..87a6a01 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, JsonSerializerContext) ?? + global::LabelStudio.ProjectTemplate.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ProjectTemplate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ProjectTemplate.FromJsonStreamAsync(__content, JsonSerializerOptions).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 460d489..68e7157 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? 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 - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 682173e..9b4a404 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ProjectTemplate.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ProjectTemplate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ProjectTemplate.FromJsonStreamAsync(__content, JsonSerializerOptions).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 5656aeb..216a373 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Create.g.cs index a0348f4..5e1c005 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.LseProjectCreate.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -150,7 +150,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseProjectCreate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LseProjectCreate.FromJsonStreamAsync(__content, JsonSerializerOptions).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 b686595..55b5ccc 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ApiProjectsDuplicateCreateResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessDuplicateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsDuplicateCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsDuplicateCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 8548d45..98b0984 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, JsonSerializerContext) ?? + global::LabelStudio.LseProjectResponse.FromJson(__content, JsonSerializerOptions) ?? 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.LseProjectResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LseProjectResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 9c02e6e..3fe5082 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, request.GetType(), JsonSerializerContext); + var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ApiProjectsImportPredictionsCreateResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -187,7 +187,7 @@ partial void ProcessImportPredictionsResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsImportPredictionsCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsImportPredictionsCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 6c7eb53..e172100 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, request.GetType(), JsonSerializerContext); + var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, JsonSerializerOptions); 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 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -237,7 +237,7 @@ partial void ProcessImportTasksResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.ApiProjectsImportCreateResponse.FromJson(__content, JsonSerializerContext) ?? + global::LabelStudio.ApiProjectsImportCreateResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -268,7 +268,7 @@ partial void ProcessImportTasksResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsImportCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsImportCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 d4c0a70..fc20a97 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, JsonSerializerContext) ?? + global::LabelStudio.PaginatedAllRolesProjectListList.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -223,7 +223,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedAllRolesProjectListList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedAllRolesProjectListList.FromJsonStreamAsync(__content, JsonSerializerOptions).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 ab99e4a..400f96a 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, JsonSerializerContext) ?? + global::LabelStudio.PaginatedLseProjectCountsList.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -214,7 +214,7 @@ partial void ProcessListCountsResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedLseProjectCountsList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedLseProjectCountsList.FromJsonStreamAsync(__content, JsonSerializerOptions).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 33849e6..09d32ac 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessListUniqueAnnotatorsResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 046bb91..d35fb5c 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.LseProjectUpdate.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -167,7 +167,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseProjectUpdate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LseProjectUpdate.FromJsonStreamAsync(__content, JsonSerializerOptions).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 dd03749..71566fb 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ProjectLabelConfig.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessValidateLabelConfigResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ProjectLabelConfig.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ProjectLabelConfig.FromJsonStreamAsync(__content, JsonSerializerOptions).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 b5ecc27..808121b 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Add.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Add.g.cs index 0853e1f..3477113 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ProjectMember.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessAddResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ProjectMember.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ProjectMember.FromJsonStreamAsync(__content, JsonSerializerOptions).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 8d8353f..592e135 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, JsonSerializerContext) ?? + global::LabelStudio.ProjectReimport.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessApiProjectsReimportsRetrieveResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ProjectReimport.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ProjectReimport.FromJsonStreamAsync(__content, JsonSerializerOptions).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 1b86bd0..2d36d10 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -166,7 +166,7 @@ partial void ProcessApiProjectsTasksListResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 b85f178..225b52c 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 a904b9a..5ea8167 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 78374bf..f28248c 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.LseProjectParams.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseProjectParams.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LseProjectParams.FromJsonStreamAsync(__content, JsonSerializerOptions).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 87ea5bf..248e927 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, JsonSerializerContext) ?? + global::LabelStudio.ApiProjectsMembersBulkDestroyResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -182,7 +182,7 @@ partial void ProcessDelete2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsMembersBulkDestroyResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsMembersBulkDestroyResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 32f3b91..ed171b2 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, JsonSerializerContext) ?? + global::LabelStudio.MetricParam.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessGet3ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.MetricParam.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.MetricParam.FromJsonStreamAsync(__content, JsonSerializerOptions).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 a1580ea..010a192 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, JsonSerializerContext) ?? + global::LabelStudio.LseProjectParams.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessGet4ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseProjectParams.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LseProjectParams.FromJsonStreamAsync(__content, JsonSerializerOptions).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 38e624d..30d461c 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, JsonSerializerContext) ?? + global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessGetLambdaResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 e7d08e0..79b5b40 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, JsonSerializerContext) ?? + global::LabelStudio.PaginatedPaginatedProjectMemberList.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -237,7 +237,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedPaginatedProjectMemberList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedPaginatedProjectMemberList.FromJsonStreamAsync(__content, JsonSerializerOptions).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 259c2c0..928cd17 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ApiProjectsMembersBulkCreateResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -197,7 +197,7 @@ partial void ProcessPostResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsMembersBulkCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsMembersBulkCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 72b5f59..6df7128 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.MetricParam.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -162,7 +162,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.MetricParam.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.MetricParam.FromJsonStreamAsync(__content, JsonSerializerOptions).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 f2ad32b..11ca3b6 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 022a639..679b2f8 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.BatchFailedPredictions.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.BatchFailedPredictions.g.cs index 0936df1..e5d8d9f 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.BatchFailedPredictions.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -163,7 +163,7 @@ partial void ProcessBatchFailedPredictionsResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.BatchFailedPredictions.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.BatchFailedPredictions.FromJsonStreamAsync(__content, JsonSerializerOptions).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 598c25d..ae45139 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.BatchPredictions.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -163,7 +163,7 @@ partial void ProcessBatchPredictionsResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.BatchPredictions.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.BatchPredictions.FromJsonStreamAsync(__content, JsonSerializerOptions).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 98f3f67..aef8b9d 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, JsonSerializerContext) ?? + global::LabelStudio.PaginatedAllRolesProjectListList.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -165,7 +165,7 @@ partial void ProcessCompatibleProjectsResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedAllRolesProjectListList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedAllRolesProjectListList.FromJsonStreamAsync(__content, JsonSerializerOptions).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 b02de76..c361a6f 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ModelInterface.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ModelInterface.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ModelInterface.FromJsonStreamAsync(__content, JsonSerializerOptions).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 21794e9..f6d31ca 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, JsonSerializerContext) ?? + global::LabelStudio.ModelInterfaceSerializerGET.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessGet2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ModelInterfaceSerializerGET.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ModelInterfaceSerializerGET.FromJsonStreamAsync(__content, JsonSerializerOptions).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 fd0f775..d69265f 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -142,7 +142,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 2408ded..5eee81b 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, JsonSerializerContext) ?? + global::LabelStudio.PaginatedProjectSubsetTasksResponseList.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -230,7 +230,7 @@ partial void ProcessSubsetTasksResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedProjectSubsetTasksResponseList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedProjectSubsetTasksResponseList.FromJsonStreamAsync(__content, JsonSerializerOptions).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 7839447..a9c66a7 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -155,7 +155,7 @@ partial void ProcessSubsetsResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 6dfcb4d..b276fac 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ModelInterface.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ModelInterface.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ModelInterface.FromJsonStreamAsync(__content, JsonSerializerOptions).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 e9fdffe..6c92a8c 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsUpdate.g.cs index 41c587c..f15feab 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ModelInterface.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessApiPromptsUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ModelInterface.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ModelInterface.FromJsonStreamAsync(__content, JsonSerializerOptions).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 e3f8347..800a78f 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ThirdPartyModelVersion.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -166,7 +166,7 @@ partial void ProcessApiPromptsVersionsUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ThirdPartyModelVersion.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ThirdPartyModelVersion.FromJsonStreamAsync(__content, JsonSerializerOptions).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 427a9bc..a02e3dc 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, JsonSerializerContext) ?? + global::LabelStudio.CancelModelRunResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -157,7 +157,7 @@ partial void ProcessCancelResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.CancelModelRunResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.CancelModelRunResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 2938d28..efb4592 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, JsonSerializerContext) ?? + global::LabelStudio.InferenceRunCostEstimate.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -151,7 +151,7 @@ partial void ProcessCostEstimateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.InferenceRunCostEstimate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.InferenceRunCostEstimate.FromJsonStreamAsync(__content, JsonSerializerOptions).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 0c475d2..6e360f7 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ThirdPartyModelVersion.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ThirdPartyModelVersion.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ThirdPartyModelVersion.FromJsonStreamAsync(__content, JsonSerializerOptions).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 f392d08..0e0caa8 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ModelRun.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -166,7 +166,7 @@ partial void ProcessCreate3ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ModelRun.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ModelRun.FromJsonStreamAsync(__content, JsonSerializerOptions).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 cc48e51..762f2de 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, JsonSerializerContext) ?? + global::LabelStudio.LSEKeyIndicatorValue.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -151,7 +151,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LSEKeyIndicatorValue.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LSEKeyIndicatorValue.FromJsonStreamAsync(__content, JsonSerializerOptions).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 939b3d7..61e7b8e 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, JsonSerializerContext) ?? + global::LabelStudio.ThirdPartyModelVersion.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -151,7 +151,7 @@ partial void ProcessGet3ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ThirdPartyModelVersion.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ThirdPartyModelVersion.FromJsonStreamAsync(__content, JsonSerializerOptions).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 9286a57..f938e73 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, JsonSerializerContext) ?? + global::LabelStudio.RefinedPromptResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessGetRefinedPromptResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.RefinedPromptResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.RefinedPromptResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 ac78ecf..96725f3 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? 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 - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 b12e609..146cb1c 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessList3ResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 b0031ec..b5fffc6 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -181,7 +181,7 @@ partial void ProcessList4ResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 c7b8bd7..81f22d2 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.RefinedPromptResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -175,7 +175,7 @@ partial void ProcessRefinePromptResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.RefinedPromptResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.RefinedPromptResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 ba0c218..02daf19 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ThirdPartyModelVersion.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -166,7 +166,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ThirdPartyModelVersion.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ThirdPartyModelVersion.FromJsonStreamAsync(__content, JsonSerializerOptions).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 87b8447..6054c84 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.SessionPolicyClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.SessionPolicyClient.Get.g.cs index a4bedc0..8f31383 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, JsonSerializerContext) ?? + global::LabelStudio.SessionTimeoutPolicy.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -133,7 +133,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.SessionTimeoutPolicy.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.SessionTimeoutPolicy.FromJsonStreamAsync(__content, JsonSerializerOptions).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 d4edb4a..9e40180 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.SessionTimeoutPolicy.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.SessionTimeoutPolicy.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.SessionTimeoutPolicy.FromJsonStreamAsync(__content, JsonSerializerOptions).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 fd80e48..4f3cb72 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Get.g.cs index 5c8220a..15416e2 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, JsonSerializerContext) ?? + global::LabelStudio.SamlSettings.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.SamlSettings.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.SamlSettings.FromJsonStreamAsync(__content, JsonSerializerOptions).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 fc61e2c..2ec71b6 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, JsonSerializerContext) ?? + global::LabelStudio.ScimSettings.FromJson(__content, JsonSerializerOptions) ?? 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.ScimSettings.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ScimSettings.FromJsonStreamAsync(__content, JsonSerializerOptions).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 3680391..28cf94b 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.SamlSettingsUpdate.FromJson(__content, JsonSerializerOptions) ?? 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.SamlSettingsUpdate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.SamlSettingsUpdate.FromJsonStreamAsync(__content, JsonSerializerOptions).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 d6f44f1..56937c8 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ScimSettingsUpdate.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ScimSettingsUpdate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ScimSettingsUpdate.FromJsonStreamAsync(__content, JsonSerializerOptions).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 70ee343..d1a40f5 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ValidateSamlMetadataUrlResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessValidateMetadataUrlResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ValidateSamlMetadataUrlResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ValidateSamlMetadataUrlResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 ba9fba5..5c6499a 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.CancelBackfill.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.CancelBackfill.g.cs index e47a973..52d0ea2 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 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); } else { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); } } 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 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -200,7 +200,7 @@ partial void ProcessCancelBackfillResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.StateBackfillCancelResponse.FromJson(__content, JsonSerializerContext) ?? + global::LabelStudio.StateBackfillCancelResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -231,7 +231,7 @@ partial void ProcessCancelBackfillResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.StateBackfillCancelResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.StateBackfillCancelResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 6a5744e..7aeb2e4 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.FSMTransitionExecuteResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -166,7 +166,7 @@ partial void ProcessExecuteTransitionResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.FSMTransitionExecuteResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.FSMTransitionExecuteResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 e58ccbd..f5c84da 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 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); } else { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); } } 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 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -200,7 +200,7 @@ partial void ProcessGetBackfillStatusResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.StateBackfillStatusResponse.FromJson(__content, JsonSerializerContext) ?? + global::LabelStudio.StateBackfillStatusResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -231,7 +231,7 @@ partial void ProcessGetBackfillStatusResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.StateBackfillStatusResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.StateBackfillStatusResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 1bbbb6c..90b7c4e 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 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); } } 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 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); } else { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); } } 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 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -222,7 +222,7 @@ partial void ProcessListBackfillsResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.StateBackfillJobListResponse.FromJson(__content, JsonSerializerContext) ?? + global::LabelStudio.StateBackfillJobListResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -253,7 +253,7 @@ partial void ProcessListBackfillsResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.StateBackfillJobListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.StateBackfillJobListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 98254b4..4ccd398 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, JsonSerializerContext) ?? + global::LabelStudio.PaginatedStateModelList.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -216,7 +216,7 @@ partial void ProcessStateHistoryResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedStateModelList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedStateModelList.FromJsonStreamAsync(__content, JsonSerializerOptions).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 c8f1159..c009f25 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 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); } } 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 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); } else { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + __value_403 = global::System.Text.Json.JsonSerializer.Deserialize(__content_403, JsonSerializerOptions); } } 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 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -231,7 +231,7 @@ partial void ProcessTriggerBackfillResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.StateBackfillResponse.FromJson(__content, JsonSerializerContext) ?? + global::LabelStudio.StateBackfillResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -262,7 +262,7 @@ partial void ProcessTriggerBackfillResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.StateBackfillResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.StateBackfillResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 6b1739d..7891b02 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.AgreementAnnotator.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.AgreementAnnotator.g.cs index b1c0f79..ffb7c46 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, JsonSerializerContext) ?? + global::LabelStudio.ApiProjectsStatsAgreementAnnotatorRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -151,7 +151,7 @@ partial void ProcessAgreementAnnotatorResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsStatsAgreementAnnotatorRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsStatsAgreementAnnotatorRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 038d592..418b2de 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, JsonSerializerContext) ?? + global::LabelStudio.ApiProjectsStatsAgreementAnnotatorsRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessAgreementAnnotatorsResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsStatsAgreementAnnotatorsRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsStatsAgreementAnnotatorsRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 6f28d18..cd15ed0 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, JsonSerializerContext) ?? + global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessDataFiltersResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 380e14e..0b507d5 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, JsonSerializerContext) ?? + global::LabelStudio.ApiProjectsStatsFinishedRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessFinishedTasksResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsStatsFinishedRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsStatsFinishedRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 0b44753..44f8e8e 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, JsonSerializerContext) ?? + global::LabelStudio.ApiProjectsStatsIaaRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -179,7 +179,7 @@ partial void ProcessIaaResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsStatsIaaRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsStatsIaaRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 51124db..e7ae9e3 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, JsonSerializerContext) ?? + global::LabelStudio.LabelDistributionCountsResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -170,7 +170,7 @@ partial void ProcessLabelDistributionCountsResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LabelDistributionCountsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LabelDistributionCountsResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 e143df3..70353a9 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, JsonSerializerContext) ?? + global::LabelStudio.LabelDistributionStructureResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessLabelDistributionStructureResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LabelDistributionStructureResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LabelDistributionStructureResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 af2b7e9..04e668f 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, JsonSerializerContext) ?? + global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessLeadTimeResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 75f06be..519ebb3 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, JsonSerializerContext) ?? + global::LabelStudio.ApiProjectsModelStatsAgreementRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -151,7 +151,7 @@ partial void ProcessModelVersionAnnotatorAgreementResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsModelStatsAgreementRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsModelStatsAgreementRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 a9896d8..67addd7 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, JsonSerializerContext) ?? + global::LabelStudio.ApiProjectsModelStatsAgreementGroundtruthRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -162,7 +162,7 @@ partial void ProcessModelVersionGroundTruthAgreementResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsModelStatsAgreementGroundtruthRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsModelStatsAgreementGroundtruthRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 9ed0961..869c3c4 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, JsonSerializerContext) ?? + global::LabelStudio.ApiProjectsModelStatsPredictionRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -162,7 +162,7 @@ partial void ProcessModelVersionPredictionAgreementResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsModelStatsPredictionRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsModelStatsPredictionRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 97d28d2..0101466 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, JsonSerializerContext) ?? + global::LabelStudio.OneOf.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -155,7 +155,7 @@ partial void ProcessTotalAgreementResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.OneOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.OneOf.FromJsonStreamAsync(__content, JsonSerializerOptions).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 187f292..ffb64a9 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, JsonSerializerContext) ?? + global::LabelStudio.ApiProjectsUsersStatsAgreementGroundtruthRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessUserGroundTruthAgreementResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsUsersStatsAgreementGroundtruthRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsUsersStatsAgreementGroundtruthRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 da3c39f..552732a 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, JsonSerializerContext) ?? + global::LabelStudio.ApiProjectsUserStatsPredictionRetrieve2Response.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessUserPredictionAgreementResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsUserStatsPredictionRetrieve2Response.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsUserStatsPredictionRetrieve2Response.FromJsonStreamAsync(__content, JsonSerializerOptions).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 92097d8..b042472 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, JsonSerializerContext) ?? + global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieve2Response.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessUserReviewScoreResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieve2Response.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieve2Response.FromJsonStreamAsync(__content, JsonSerializerOptions).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 8bca954..141cd15 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, JsonSerializerContext) ?? + global::LabelStudio.ApiProjectsStatsAgreementGroundtruthRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -163,7 +163,7 @@ partial void ProcessUsersGroundTruthAgreementResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsStatsAgreementGroundtruthRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsStatsAgreementGroundtruthRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 ff19d90..aeaf06d 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, JsonSerializerContext) ?? + global::LabelStudio.ApiProjectsUserStatsPredictionRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -163,7 +163,7 @@ partial void ProcessUsersPredictionAgreementResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsUserStatsPredictionRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsUserStatsPredictionRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 f2b8b5a..9c5751c 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, JsonSerializerContext) ?? + global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -161,7 +161,7 @@ partial void ProcessUsersReviewScoreResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 c49a3c1..6c99738 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Create.g.cs index faf181f..ad985f1 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.AzureBlobImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureBlobImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AzureBlobImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 5667d7e..07a9e02 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.AzureBlobExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureBlobExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AzureBlobExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 3abe2d1..b607ddf 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, JsonSerializerContext) ?? + global::LabelStudio.AzureBlobImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureBlobImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AzureBlobImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 4c350e5..5c2d84c 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, JsonSerializerContext) ?? + global::LabelStudio.AzureBlobExportStorage.FromJson(__content, JsonSerializerOptions) ?? 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.AzureBlobExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AzureBlobExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 01491cc..0ce3c31 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 1dd8f94..e6b2eab 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 7b42143..f44f6cf 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, JsonSerializerContext) ?? + global::LabelStudio.AzureBlobImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessSyncResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureBlobImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AzureBlobImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 d34045a..8211f80 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, JsonSerializerContext) ?? + global::LabelStudio.AzureBlobExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessSync2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureBlobExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AzureBlobExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 a6c41d3..1ab654a 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.AzureBlobImportStorage.FromJson(__content, JsonSerializerOptions) ?? 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.AzureBlobImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AzureBlobImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 22abfd2..39ed452 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.AzureBlobExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureBlobExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AzureBlobExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 2324d9d..8977032 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 dad7fe7..fa80fee 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 b6157c7..e672f8f 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Create.g.cs index d4b68c6..4600bf8 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.AzureServicePrincipalImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureServicePrincipalImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AzureServicePrincipalImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 4439726..0be9cb5 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.AzureServicePrincipalExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureServicePrincipalExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AzureServicePrincipalExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 dd3bc73..d44ee9e 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, JsonSerializerContext) ?? + global::LabelStudio.AzureServicePrincipalImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureServicePrincipalImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AzureServicePrincipalImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 1e36a95..95a9fcb 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, JsonSerializerContext) ?? + global::LabelStudio.AzureServicePrincipalExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessGet2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureServicePrincipalExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AzureServicePrincipalExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 0aec57c..4eed2e0 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? 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 - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 d1540a0..e85d179 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -155,7 +155,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 c944bc2..0f7cfca 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, JsonSerializerContext) ?? + global::LabelStudio.AzureServicePrincipalImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessSyncResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureServicePrincipalImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AzureServicePrincipalImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 e584cb2..ee101cc 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, JsonSerializerContext) ?? + global::LabelStudio.AzureServicePrincipalExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessSync2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureServicePrincipalExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AzureServicePrincipalExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 32c6875..b4a16a9 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.AzureServicePrincipalImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureServicePrincipalImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AzureServicePrincipalImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 97fa78a..34e7d7d 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.AzureServicePrincipalExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.AzureServicePrincipalExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.AzureServicePrincipalExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 4c7f935..c98ad5b 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 c5197a9..80cca2e 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 b8660a4..266a63e 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.List.g.cs index 0fb3506..57d5a85 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? 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 - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 e04ae15..eb59720 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -142,7 +142,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 181ae03..701a936 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -133,7 +133,7 @@ partial void ProcessListTypesResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 90ad0a6..941691b 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -133,7 +133,7 @@ partial void ProcessListTypes2ResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 168dba7..192ca45 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Create.g.cs index 91ad0b0..82559b1 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.DatabricksImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatabricksImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.DatabricksImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 9fc7d24..51a6b39 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.DatabricksExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatabricksExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.DatabricksExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 56cf66e..b5a296f 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, JsonSerializerContext) ?? + global::LabelStudio.DatabricksImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatabricksImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.DatabricksImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 d5210da..1e36d16 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, JsonSerializerContext) ?? + global::LabelStudio.DatabricksExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessGet2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatabricksExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.DatabricksExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 15447f6..6c5c90a 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? 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 - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 f453ec3..0cb63c3 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -155,7 +155,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 2c6ff0e..02ea51d 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, JsonSerializerContext) ?? + global::LabelStudio.DatabricksImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessSyncResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatabricksImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.DatabricksImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 e959dc5..9e31930 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, JsonSerializerContext) ?? + global::LabelStudio.DatabricksExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessSync2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatabricksExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.DatabricksExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 682cc2f..609ecf3 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.DatabricksImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatabricksImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.DatabricksImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 0d0a5e5..2951beb 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.DatabricksExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.DatabricksExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.DatabricksExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 52853a3..afd8628 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 fdf2e65..4502ee1 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 0d3d9a8..31f3ada 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Create.g.cs index d7e9019..d0c6bdd 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.GCSExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.GCSExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 2ecf2af..5ed5054 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.GCSImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.GCSImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 e8b155b..1811db1 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, JsonSerializerContext) ?? + global::LabelStudio.GCSExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.GCSExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 155236b..11098c8 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, JsonSerializerContext) ?? + global::LabelStudio.GCSImportStorage.FromJson(__content, JsonSerializerOptions) ?? 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.GCSImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.GCSImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 ea43c02..c59fa18 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 f83ae3d..0a39c16 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 9e997bf..313b172 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, JsonSerializerContext) ?? + global::LabelStudio.GCSExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessSyncResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.GCSExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 ebab18c..5be9662 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, JsonSerializerContext) ?? + global::LabelStudio.GCSImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessSync2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.GCSImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 821b645..cfc225e 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.GCSExportStorage.FromJson(__content, JsonSerializerOptions) ?? 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.GCSExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.GCSExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 0b3c743..116a3a1 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.GCSImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.GCSImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 6408c07..2b4982c 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 559a00c..1827d7e 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 1522e9d..0273e24 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Create.g.cs index 605414a..fda2d9f 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.GCSWIFExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSWIFExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.GCSWIFExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 b6be451..700b958 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.GCSWIFImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSWIFImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.GCSWIFImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 6802dc9..8392e78 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, JsonSerializerContext) ?? + global::LabelStudio.GCSWIFExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSWIFExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.GCSWIFExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 8c2c997..50e4c2b 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, JsonSerializerContext) ?? + global::LabelStudio.GCSWIFImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessGet2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSWIFImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.GCSWIFImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 56bd537..2c075aa 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? 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 - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 f4cef7c..4e726ee 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -155,7 +155,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 b1732bb..14950c0 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, JsonSerializerContext) ?? + global::LabelStudio.GCSWIFExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessSyncResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSWIFExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.GCSWIFExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 3d33c0b..184cca9 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, JsonSerializerContext) ?? + global::LabelStudio.GCSWIFImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessSync2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSWIFImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.GCSWIFImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 9a11224..ab21085 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.GCSWIFExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSWIFExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.GCSWIFExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 f8a8a94..e08445a 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.GCSWIFImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.GCSWIFImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.GCSWIFImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 b3c6eb6..84ac672 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 6ec8b2e..15cae31 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 91165c1..3e8ed63 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Create.g.cs index 0020fdb..b8f1afa 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.LocalFilesExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LocalFilesExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LocalFilesExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 87de1bd..6d1db8c 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.LocalFilesImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LocalFilesImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LocalFilesImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 98510b6..8883327 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, JsonSerializerContext) ?? + global::LabelStudio.LocalFilesExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LocalFilesExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LocalFilesExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 71ae579..4993ada 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, JsonSerializerContext) ?? + global::LabelStudio.LocalFilesImportStorage.FromJson(__content, JsonSerializerOptions) ?? 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.LocalFilesImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LocalFilesImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 0b230d6..72730b5 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 331be2d..fa74abf 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 9fe0cc0..643f3ab 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, JsonSerializerContext) ?? + global::LabelStudio.LocalFilesExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessSyncResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LocalFilesExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LocalFilesExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 012ff06..b109b49 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, JsonSerializerContext) ?? + global::LabelStudio.LocalFilesImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessSync2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LocalFilesImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LocalFilesImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 bfbf4e6..40fc4bd 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.LocalFilesExportStorage.FromJson(__content, JsonSerializerOptions) ?? 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.LocalFilesExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LocalFilesExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 f0a9079..d503932 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.LocalFilesImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LocalFilesImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LocalFilesImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 42c38f5..d8f8f3b 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 42a2e16..c71fba8 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 31d2bcc..8e89e77 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Create.g.cs index 10d3c20..848569e 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.RedisExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.RedisExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.RedisExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 661aa5e..938b747 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.RedisImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.RedisImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.RedisImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 1256746..3b35ac9 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, JsonSerializerContext) ?? + global::LabelStudio.RedisExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.RedisExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.RedisExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 9579d6c..a4d3ea9 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, JsonSerializerContext) ?? + global::LabelStudio.RedisImportStorage.FromJson(__content, JsonSerializerOptions) ?? 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.RedisImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.RedisImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 756a812..ee291c7 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 ca63666..c40d3a8 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 9262775..2973b5f 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, JsonSerializerContext) ?? + global::LabelStudio.RedisExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessSyncResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.RedisExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.RedisExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 b8eb505..3e4859e 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, JsonSerializerContext) ?? + global::LabelStudio.RedisImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessSync2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.RedisImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.RedisImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 6ac8ce3..82191ac 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.RedisExportStorage.FromJson(__content, JsonSerializerOptions) ?? 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.RedisExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.RedisExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 e580646..7d48fac 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.RedisImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.RedisImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.RedisImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 3d6204f..59f0e0a 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 d20228e..98cb093 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 48eb89b..36792bc 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Create.g.cs index a4f1b59..4396622 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.S3ExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.S3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.S3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 ff67f64..accfad6 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.S3ImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.S3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.S3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 40995aa..7f2a4be 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, JsonSerializerContext) ?? + global::LabelStudio.S3ExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.S3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.S3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 dae76e2..7106ae2 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, JsonSerializerContext) ?? + global::LabelStudio.S3ImportStorage.FromJson(__content, JsonSerializerOptions) ?? 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.S3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.S3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 ae926c6..572515d 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 d014631..7b8e0dc 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -149,7 +149,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 71e4f16..e8d89cd 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, JsonSerializerContext) ?? + global::LabelStudio.S3ExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessSyncResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.S3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.S3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 17e31a6..375f02c 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, JsonSerializerContext) ?? + global::LabelStudio.S3ImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessSync2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.S3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.S3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 8d23ada..b536e10 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.S3ExportStorage.FromJson(__content, JsonSerializerOptions) ?? 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.S3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.S3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 72e96e4..ebb2d12 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.S3ImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.S3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.S3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 0004492..88f3cc1 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 e11ce88..407faa7 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 c7f87a2..7ae49fd 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Create.g.cs index 3c5c518..13467f2 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.LseS3ExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseS3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LseS3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 aedd31c..ef4ddc9 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.LseS3ImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseS3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LseS3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 d7f6319..95f2e73 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, JsonSerializerContext) ?? + global::LabelStudio.LseS3ExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseS3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LseS3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 c492e14..0edfab7 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, JsonSerializerContext) ?? + global::LabelStudio.LseS3ImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessGet2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseS3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LseS3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 0f79144..61870ed 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? 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 - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 3242799..6e10663 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -155,7 +155,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 eec8ee2..3f96b0b 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, JsonSerializerContext) ?? + global::LabelStudio.LseS3ExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessSyncResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseS3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LseS3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 a4e4a94..b3f0325 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, JsonSerializerContext) ?? + global::LabelStudio.LseS3ImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessSync2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseS3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LseS3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 324b736..802e7e1 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.LseS3ExportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseS3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LseS3ExportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 ec0a363..cad0aa6 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.LseS3ImportStorage.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseS3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LseS3ImportStorage.FromJsonStreamAsync(__content, JsonSerializerOptions).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 ee7632c..c0bfccc 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 9304ebe..0714597 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 c3dabbf..3e70deb 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Create.g.cs index d53f85b..039f194 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.LseTask.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseTask.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LseTask.FromJsonStreamAsync(__content, JsonSerializerOptions).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 17cc40c..f357e39 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.TaskEvent.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -323,7 +323,7 @@ partial void ProcessCreateEventResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.TaskEvent.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.TaskEvent.FromJsonStreamAsync(__content, JsonSerializerOptions).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 f6246f5..14f6ffe 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, JsonSerializerContext) ?? + global::LabelStudio.ProjectImport.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessCreateManyStatusResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ProjectImport.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ProjectImport.FromJsonStreamAsync(__content, JsonSerializerOptions).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 5e1ab8b..0fcb1cd 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, JsonSerializerContext) ?? + global::LabelStudio.RoleBasedTask.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.RoleBasedTask.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.RoleBasedTask.FromJsonStreamAsync(__content, JsonSerializerOptions).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 fdc831a..34bbb47 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, JsonSerializerContext) ?? + global::LabelStudio.PaginatedRoleBasedTaskList.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -314,7 +314,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedRoleBasedTaskList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedRoleBasedTaskList.FromJsonStreamAsync(__content, JsonSerializerOptions).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 14f981f..1200d83 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.RoleBasedTask.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessUpdate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.RoleBasedTask.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.RoleBasedTask.FromJsonStreamAsync(__content, JsonSerializerOptions).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 827ecee..fe46413 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.Assign.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.Assign.g.cs index 4263c9a..61e7e36 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.TaskAssignment.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -166,7 +166,7 @@ partial void ProcessAssignResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.TaskAssignment.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.TaskAssignment.FromJsonStreamAsync(__content, JsonSerializerOptions).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 9c90330..7d8d42d 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ApiProjectsTasksAssigneesCreateResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -193,7 +193,7 @@ partial void ProcessBulkAssignResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiProjectsTasksAssigneesCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiProjectsTasksAssigneesCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 4051d54..b7a3d8f 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -151,7 +151,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 cd4696e..0069363 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.TaskAssignment.FromJson(__content, JsonSerializerOptions) ?? 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.TaskAssignment.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.TaskAssignment.FromJsonStreamAsync(__content, JsonSerializerOptions).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 7a53432..31470fa 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Blacklist.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Blacklist.g.cs index f03f7fe..3e94e21 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } } 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 92c9585..fb94156 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, JsonSerializerContext) ?? + global::LabelStudio.LSEAPITokenCreate.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -133,7 +133,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LSEAPITokenCreate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LSEAPITokenCreate.FromJsonStreamAsync(__content, JsonSerializerOptions).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 9a3feda..cefa101 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? 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 - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 58a51c2..f00f6af 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.TokenRefreshResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessRefreshResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.TokenRefreshResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.TokenRefreshResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 cbdd43a..1af1cce 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -155,7 +155,7 @@ partial void ProcessRotateResponseContent( __response.EnsureSuccessStatusCode(); return - global::LabelStudio.TokenRotateResponse.FromJson(__content, JsonSerializerContext) ?? + global::LabelStudio.TokenRotateResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -186,7 +186,7 @@ partial void ProcessRotateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.TokenRotateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.TokenRotateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 112b0a5..8e1fffe 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Create.g.cs index f6826ec..413cdf9 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.LseUser.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseUser.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LseUser.FromJsonStreamAsync(__content, JsonSerializerOptions).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 bd51f99..6fa3b68 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, JsonSerializerContext) ?? + global::LabelStudio.LseUser.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseUser.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LseUser.FromJsonStreamAsync(__content, JsonSerializerOptions).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 5c75573..7cc50ac 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, JsonSerializerContext) ?? + global::LabelStudio.LseUserAPI.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessGetCurrentUserResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseUserAPI.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LseUserAPI.FromJsonStreamAsync(__content, JsonSerializerOptions).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 76f6960..b054903 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, JsonSerializerContext) ?? + global::LabelStudio.Hotkeys.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -133,7 +133,7 @@ partial void ProcessGetHotkeysResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Hotkeys.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Hotkeys.FromJsonStreamAsync(__content, JsonSerializerOptions).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 791a358..d8fc6aa 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, JsonSerializerContext) ?? + global::LabelStudio.ApiCurrentUserTokenRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -133,7 +133,7 @@ partial void ProcessGetTokenResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiCurrentUserTokenRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiCurrentUserTokenRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 4a2413f..0c84eed 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? 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 - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 a904563..ac0c7f0 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, JsonSerializerContext) ?? + global::LabelStudio.ApiCurrentUserResetTokenCreateResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -133,7 +133,7 @@ partial void ProcessResetTokenResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiCurrentUserResetTokenCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiCurrentUserResetTokenCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 acb760d..19b8fda 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.LseUser.FromJson(__content, JsonSerializerOptions) ?? 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.LseUser.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LseUser.FromJsonStreamAsync(__content, JsonSerializerOptions).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 614962c..28c7d6e 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.LseUserAPI.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessUpdateCurrentUserResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.LseUserAPI.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.LseUserAPI.FromJsonStreamAsync(__content, JsonSerializerOptions).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 2008786..f90b087 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.Hotkeys.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessUpdateHotkeysResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Hotkeys.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Hotkeys.FromJsonStreamAsync(__content, JsonSerializerOptions).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 c030bcc..af3dc09 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, JsonSerializerContext) ?? + global::LabelStudio.WhoAmIUser.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -133,7 +133,7 @@ partial void ProcessWhoamiResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.WhoAmIUser.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.WhoAmIUser.FromJsonStreamAsync(__content, JsonSerializerOptions).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 3e8197c..69b430f 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.VersionsClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.VersionsClient.Get.g.cs index c4702c7..8487dff 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, JsonSerializerContext) ?? + global::LabelStudio.VersionResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -133,7 +133,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.VersionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.VersionResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 7010c88..5768f60 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Create2.g.cs index ae37783..24b07d6 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.View.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.View.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.View.FromJsonStreamAsync(__content, JsonSerializerOptions).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 f1c2bcf..514c4f2 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, JsonSerializerContext) ?? + global::LabelStudio.View.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.View.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.View.FromJsonStreamAsync(__content, JsonSerializerOptions).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 c7d0ee8..1345176 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -142,7 +142,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 a3aa328..de37460 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.View.FromJson(__content, JsonSerializerOptions) ?? 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.View.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.View.FromJsonStreamAsync(__content, JsonSerializerOptions).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 8a64bea..24cb380 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 a90fb76..2b84979 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Create.g.cs index 40652b6..d865983 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.Webhook.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Webhook.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Webhook.FromJsonStreamAsync(__content, JsonSerializerOptions).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 836a9d9..4ddb200 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, JsonSerializerContext) ?? + global::LabelStudio.Webhook.FromJson(__content, JsonSerializerOptions) ?? 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.Webhook.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Webhook.FromJsonStreamAsync(__content, JsonSerializerOptions).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 ec7c72a..f0f0b6c 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, JsonSerializerContext) ?? + global::LabelStudio.ApiWebhooksInfoRetrieveResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -142,7 +142,7 @@ partial void ProcessInfoResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiWebhooksInfoRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiWebhooksInfoRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 482f36f..fd06b80 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? 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 - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 5c50fa2..64b9a1c 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.WebhookSerializerForUpdate.FromJson(__content, JsonSerializerOptions) ?? 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.WebhookSerializerForUpdate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.WebhookSerializerForUpdate.FromJsonStreamAsync(__content, JsonSerializerOptions).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 6c1faf4..eb2ef81 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.WebhooksClient.ApiWebhooksUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.WebhooksClient.ApiWebhooksUpdate.g.cs index 0a74503..d4a125c 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.WebhookSerializerForUpdate.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessApiWebhooksUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.WebhookSerializerForUpdate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.WebhookSerializerForUpdate.FromJsonStreamAsync(__content, JsonSerializerOptions).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 f7d639e..d1973bf 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Create.g.cs index a65761a..28b8c88 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.Workspace.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessCreateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Workspace.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Workspace.FromJsonStreamAsync(__content, JsonSerializerOptions).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 847edb4..4d706f3 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, JsonSerializerContext) ?? + global::LabelStudio.Workspace.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessGetResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Workspace.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Workspace.FromJsonStreamAsync(__content, JsonSerializerOptions).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 a2a7442..2e9d3fd 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -169,7 +169,7 @@ partial void ProcessListResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 e7ed320..d36107b 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.Workspace.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessUpdateResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.Workspace.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.Workspace.FromJsonStreamAsync(__content, JsonSerializerOptions).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 031f25b..c1912b7 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Add.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Add.g.cs index 9aca6e0..7253d72 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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 2246991..09762df 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.WorkspaceMemberCreate.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessCreate2ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.WorkspaceMemberCreate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.WorkspaceMemberCreate.FromJsonStreamAsync(__content, JsonSerializerOptions).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 e94ec90..d3e879b 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, JsonSerializerContext) ?? + global::LabelStudio.ApiWorkspacesMembershipsBulkDestroyResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessDelete3ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiWorkspacesMembershipsBulkDestroyResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiWorkspacesMembershipsBulkDestroyResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 546f7a5..52de32c 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessList2ResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 dac6c78..8025e99 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, JsonSerializerContext) ?? + global::LabelStudio.PaginatedLseUserList.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -175,7 +175,7 @@ partial void ProcessList3ResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.PaginatedLseUserList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.PaginatedLseUserList.FromJsonStreamAsync(__content, JsonSerializerOptions).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 716f82b..32c3dc6 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.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -145,7 +145,7 @@ partial void ProcessList4ResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).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 ba96880..a6f1150 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(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); 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, JsonSerializerContext) ?? + global::LabelStudio.ApiWorkspacesMembershipsBulkCreateResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessPostResponseContent( ).ConfigureAwait(false); return - await global::LabelStudio.ApiWorkspacesMembershipsBulkCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::LabelStudio.ApiWorkspacesMembershipsBulkCreateResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).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 d85d1ff..a2335e7 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.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); ///