From f630ae0bbd5ea81919831d9f4d6acb7aa701b056 Mon Sep 17 00:00:00 2001 From: HavenDV Date: Wed, 13 Nov 2024 19:20:29 +0400 Subject: [PATCH] feat: Replaced AnyOf JsonConverterFactory with explicit generic converters. --- .../.github_workflows_auto-update.yml | 5 + .../AutoSDK.SourceGenerators/SdkGenerator.cs | 10 +- src/libs/AutoSDK/Models/TypeData.cs | 6 +- src/libs/AutoSDK/Sources/Data.cs | 39 ++- src/libs/AutoSDK/Sources/Sources.cs | 29 +- .../Ai21/SystemTextJson/_#G.Api.g.verified.cs | 5 +- ...ompletionResponseDeltaChoice.g.verified.cs | 2 +- ...rverDataTypesChatChatRequest.g.verified.cs | 2 +- ...JsonConverters.AnyOfFactory2.g.verified.cs | 26 -- ...nSerializerContextConverters.g.verified.cs | 5 +- .../SystemTextJson/_#G.Api.g.verified.cs | 6 +- ....Models.CreateMessageRequest.g.verified.cs | 4 +- .../_#G.Models.Message.g.verified.cs | 2 +- .../_#G.Models.ToolResultBlock.g.verified.cs | 2 +- ...JsonConverters.AnyOfFactory2.g.verified.cs | 26 -- ...JsonConverters.OneOfFactory2.g.verified.cs | 26 -- ...nSerializerContextConverters.g.verified.cs | 6 +- .../SystemTextJson/_#G.Api.g.verified.cs | 15 +- .../_#G.Models.LemurBaseParams.g.verified.cs | 4 +- .../_#G.Models.LemurQuestion.g.verified.cs | 2 +- .../_#G.Models.Transcript.g.verified.cs | 12 +- ...els.TranscriptOptionalParams.g.verified.cs | 6 +- ...JsonConverters.AnyOfFactory2.g.verified.cs | 26 -- ...JsonConverters.OneOfFactory2.g.verified.cs | 26 -- ...nSerializerContextConverters.g.verified.cs | 15 +- .../SystemTextJson/_#G.Api.g.verified.cs | 14 +- .../_#G.Models.AssistantMessage.g.verified.cs | 2 +- .../_#G.Models.SystemMessage.g.verified.cs | 2 +- .../_#G.Models.ToolMessageV2.g.verified.cs | 2 +- .../_#G.Models.UserMessage.g.verified.cs | 2 +- ...JsonConverters.OneOfFactory1.g.verified.cs | 26 -- ...JsonConverters.OneOfFactory2.g.verified.cs | 26 -- ...nSerializerContextConverters.g.verified.cs | 14 +- .../SystemTextJson/_#G.Api.g.verified.cs | 2 +- ....Models.ValidationErrorError.g.verified.cs | 2 +- ...JsonConverters.OneOfFactory3.g.verified.cs | 26 -- ...nSerializerContextConverters.g.verified.cs | 2 +- .../SystemTextJson/_#G.Api.g.verified.cs | 257 +++++++++++++++++- .../_#G.Models.Commit.g.verified.cs | 4 +- ...#G.Models.CopilotSeatDetails.g.verified.cs | 2 +- .../_#G.Models.CustomProperty.g.verified.cs | 2 +- ...G.Models.CustomPropertyValue.g.verified.cs | 2 +- .../_#G.Models.Deployment.g.verified.cs | 2 +- ...otectionRuleVariant2Reviewer.g.verified.cs | 2 +- ...#G.Models.GistsCreateRequest.g.verified.cs | 2 +- .../_#G.Models.Installation.g.verified.cs | 2 +- ...tegrationInstallationRequest.g.verified.cs | 2 +- ...G.Models.IssuesCreateRequest.g.verified.cs | 4 +- ...G.Models.IssuesUpdateRequest.g.verified.cs | 4 +- ...rUpdateCustomPropertyRequest.g.verified.cs | 2 +- .../_#G.Models.PageDeployment.g.verified.cs | 2 +- ...ls.PendingDeploymentReviewer.g.verified.cs | 2 +- ...ReposCreateDeploymentRequest.g.verified.cs | 2 +- ...rmationAboutPagesSiteRequest.g.verified.cs | 2 +- ..._#G.Models.RepositoryRuleset.g.verified.cs | 2 +- ...odels.SecretScanningLocation.g.verified.cs | 2 +- ....Models.ValidationErrorError.g.verified.cs | 2 +- ...kDeploymentCreatedDeployment.g.verified.cs | 2 +- ...ymentStatusCreatedDeployment.g.verified.cs | 2 +- .../_#G.Models.WebhookFork.g.verified.cs | 2 +- ...ls.WebhookForkForkeeVariant1.g.verified.cs | 4 +- ...s.WebhookIssueCommentCreated.g.verified.cs | 2 +- ...s.WebhookIssueCommentDeleted.g.verified.cs | 2 +- ...ls.WebhookIssueCommentEdited.g.verified.cs | 2 +- ...G.Models.WebhookIssuesClosed.g.verified.cs | 2 +- ...esOpenedChangesOldRepository.g.verified.cs | 4 +- ...nsferredChangesNewRepository.g.verified.cs | 4 +- ...blishedPackagePackageVersion.g.verified.cs | 2 +- ...kageVersionNugetMetadataItem.g.verified.cs | 4 +- ...dels.WebhookProjectCardMoved.g.verified.cs | 2 +- ....WebhookProjectsV2ItemEdited.g.verified.cs | 2 +- ...tedChangesVariant1FieldValue.g.verified.cs | 4 +- ...tAssignedPullRequestBaseRepo.g.verified.cs | 4 +- ...tAssignedPullRequestHeadRepo.g.verified.cs | 4 +- ...eDisabledPullRequestBaseRepo.g.verified.cs | 4 +- ...eDisabledPullRequestHeadRepo.g.verified.cs | 4 +- ...geEnabledPullRequestBaseRepo.g.verified.cs | 4 +- ...geEnabledPullRequestHeadRepo.g.verified.cs | 4 +- ...tDequeuedPullRequestBaseRepo.g.verified.cs | 4 +- ...tDequeuedPullRequestHeadRepo.g.verified.cs | 4 +- ...tEnqueuedPullRequestBaseRepo.g.verified.cs | 4 +- ...tEnqueuedPullRequestHeadRepo.g.verified.cs | 4 +- ...stLabeledPullRequestBaseRepo.g.verified.cs | 4 +- ...stLabeledPullRequestHeadRepo.g.verified.cs | 4 +- ...estLockedPullRequestBaseRepo.g.verified.cs | 4 +- ...estLockedPullRequestHeadRepo.g.verified.cs | 4 +- ...ntCreatedPullRequestBaseRepo.g.verified.cs | 4 +- ...ntCreatedPullRequestHeadRepo.g.verified.cs | 4 +- ...ntDeletedPullRequestBaseRepo.g.verified.cs | 4 +- ...ntDeletedPullRequestHeadRepo.g.verified.cs | 4 +- ...entEditedPullRequestBaseRepo.g.verified.cs | 4 +- ...entEditedPullRequestHeadRepo.g.verified.cs | 4 +- ...DismissedPullRequestBaseRepo.g.verified.cs | 4 +- ...DismissedPullRequestHeadRepo.g.verified.cs | 4 +- ...iewEditedPullRequestBaseRepo.g.verified.cs | 4 +- ...iewEditedPullRequestHeadRepo.g.verified.cs | 4 +- ...dVariant1PullRequestBaseRepo.g.verified.cs | 4 +- ...dVariant1PullRequestHeadRepo.g.verified.cs | 4 +- ...dVariant2PullRequestBaseRepo.g.verified.cs | 4 +- ...dVariant2PullRequestHeadRepo.g.verified.cs | 4 +- ...dVariant1PullRequestBaseRepo.g.verified.cs | 4 +- ...dVariant1PullRequestHeadRepo.g.verified.cs | 4 +- ...dVariant2PullRequestBaseRepo.g.verified.cs | 4 +- ...dVariant2PullRequestHeadRepo.g.verified.cs | 4 +- ...SubmittedPullRequestBaseRepo.g.verified.cs | 4 +- ...SubmittedPullRequestHeadRepo.g.verified.cs | 4 +- ...dResolvedPullRequestBaseRepo.g.verified.cs | 4 +- ...dResolvedPullRequestHeadRepo.g.verified.cs | 4 +- ...nresolvedPullRequestBaseRepo.g.verified.cs | 4 +- ...nresolvedPullRequestHeadRepo.g.verified.cs | 4 +- ...nchronizePullRequestBaseRepo.g.verified.cs | 4 +- ...nchronizePullRequestHeadRepo.g.verified.cs | 4 +- ...nassignedPullRequestBaseRepo.g.verified.cs | 4 +- ...nassignedPullRequestHeadRepo.g.verified.cs | 4 +- ...UnlabeledPullRequestBaseRepo.g.verified.cs | 4 +- ...UnlabeledPullRequestHeadRepo.g.verified.cs | 4 +- ...tUnlockedPullRequestBaseRepo.g.verified.cs | 4 +- ...tUnlockedPullRequestHeadRepo.g.verified.cs | 4 +- ...Models.WebhookPushRepository.g.verified.cs | 4 +- ...egistryPackagePackageVersion.g.verified.cs | 2 +- ...agePackageVersionNpmMetadata.g.verified.cs | 10 +- ...kageVersionNugetMetadataItem.g.verified.cs | 4 +- ...ls.WebhookStatusCommitCommit.g.verified.cs | 4 +- ...mAddedToRepositoryRepository.g.verified.cs | 4 +- ...WebhookTeamCreatedRepository.g.verified.cs | 4 +- ...WebhookTeamDeletedRepository.g.verified.cs | 4 +- ....WebhookTeamEditedRepository.g.verified.cs | 4 +- ...ovedFromRepositoryRepository.g.verified.cs | 4 +- ....WebhookWorkflowJobCompleted.g.verified.cs | 2 +- ...WebhookWorkflowJobInProgress.g.verified.cs | 2 +- ...WebhooksPullRequest5BaseRepo.g.verified.cs | 4 +- ...WebhooksPullRequest5HeadRepo.g.verified.cs | 4 +- ...JsonConverters.AllOfFactory2.g.verified.cs | 26 -- ...JsonConverters.AnyOfFactory2.g.verified.cs | 26 -- ...JsonConverters.AnyOfFactory3.g.verified.cs | 26 -- ...sonConverters.OneOfFactory13.g.verified.cs | 26 -- ...JsonConverters.OneOfFactory2.g.verified.cs | 26 -- ...JsonConverters.OneOfFactory3.g.verified.cs | 26 -- ...JsonConverters.OneOfFactory4.g.verified.cs | 26 -- ...JsonConverters.OneOfFactory5.g.verified.cs | 26 -- ...nSerializerContextConverters.g.verified.cs | 257 +++++++++++++++++- .../SystemTextJson/_#G.Api.g.verified.cs | 2 +- .../_#G.Models.ErrorResponse.g.verified.cs | 2 +- ...JsonConverters.AnyOfFactory2.g.verified.cs | 26 -- ...nSerializerContextConverters.g.verified.cs | 2 +- .../SystemTextJson/_#G.Api.g.verified.cs | 71 ++++- ...chIngestRunsRequestPatchItem.g.verified.cs | 2 +- ...tchIngestRunsRequestPostItem.g.verified.cs | 4 +- .../_#G.Models.CreateRunRequest.g.verified.cs | 4 +- ..._#G.Models.CustomChartUpdate.g.verified.cs | 16 +- ...Models.CustomChartsDataPoint.g.verified.cs | 2 +- ...ls.CustomChartsSectionUpdate.g.verified.cs | 6 +- .../_#G.Models.DatasetUpdate.g.verified.cs | 8 +- ..._#G.Models.ExampleBulkCreate.g.verified.cs | 2 +- .../_#G.Models.ExampleCreate.g.verified.cs | 2 +- .../_#G.Models.ExampleUpdate.g.verified.cs | 2 +- ...G.Models.ExampleUpdateWithID.g.verified.cs | 2 +- ...els.FeedbackCreateCoreSchema.g.verified.cs | 8 +- ....Models.FeedbackCreateSchema.g.verified.cs | 8 +- ...reateWithTokenExtendedSchema.g.verified.cs | 6 +- .../_#G.Models.FeedbackSchema.g.verified.cs | 6 +- ....Models.FeedbackUpdateSchema.g.verified.cs | 6 +- ...ls.ModelPriceMapCreateSchema.g.verified.cs | 4 +- ...ls.ModelPriceMapUpdateSchema.g.verified.cs | 4 +- ...els.PutDatasetVersionsSchema.g.verified.cs | 2 +- .../_#G.Models.RunnableConfig.g.verified.cs | 2 +- .../_#G.Models.UpdateRunRequest.g.verified.cs | 2 +- ...JsonConverters.AnyOfFactory2.g.verified.cs | 26 -- ...JsonConverters.AnyOfFactory3.g.verified.cs | 26 -- ...JsonConverters.AnyOfFactory4.g.verified.cs | 26 -- ...JsonConverters.AnyOfFactory5.g.verified.cs | 26 -- ...JsonConverters.OneOfFactory2.g.verified.cs | 26 -- ...nSerializerContextConverters.g.verified.cs | 71 ++++- .../SystemTextJson/_#G.Api.g.verified.cs | 5 +- ...JsonConverters.AllOfFactory1.g.verified.cs | 26 -- ...JsonConverters.AnyOfFactory2.g.verified.cs | 26 -- ...nSerializerContextConverters.g.verified.cs | 5 +- .../SystemTextJson/_#G.Api.g.verified.cs | 2 +- ..._#G.Models.PushModelResponse.g.verified.cs | 2 +- ...JsonConverters.AnyOfFactory2.g.verified.cs | 26 -- ...nSerializerContextConverters.g.verified.cs | 2 +- ...etionRequestAssistantMessage.g.verified.cs | 2 +- ...mpletionRequestSystemMessage.g.verified.cs | 2 +- ...CompletionRequestToolMessage.g.verified.cs | 2 +- ...CompletionRequestUserMessage.g.verified.cs | 2 +- ...odels.CreateAssistantRequest.g.verified.cs | 2 +- ....CreateChatCompletionRequest.g.verified.cs | 6 +- ...dels.CreateCompletionRequest.g.verified.cs | 6 +- ...odels.CreateEmbeddingRequest.g.verified.cs | 4 +- ...s.CreateFineTuningJobRequest.g.verified.cs | 2 +- ...ingJobRequestHyperparameters.g.verified.cs | 6 +- ...odels.CreateImageEditRequest.g.verified.cs | 2 +- ...#G.Models.CreateImageRequest.g.verified.cs | 2 +- ....CreateImageVariationRequest.g.verified.cs | 2 +- ....Models.CreateMessageRequest.g.verified.cs | 2 +- ...dels.CreateModerationRequest.g.verified.cs | 4 +- .../_#G.Models.CreateRunRequest.g.verified.cs | 2 +- ...G.Models.CreateSpeechRequest.g.verified.cs | 2 +- ...ls.CreateThreadAndRunRequest.g.verified.cs | 2 +- ...s.CreateTranscriptionRequest.g.verified.cs | 2 +- ...els.CreateTranslationRequest.g.verified.cs | 2 +- ...FineTuningJobHyperparameters.g.verified.cs | 2 +- ...JsonConverters.AnyOfFactory2.g.verified.cs | 26 -- ...JsonConverters.OneOfFactory1.g.verified.cs | 26 -- ...JsonConverters.OneOfFactory2.g.verified.cs | 26 -- ...JsonConverters.OneOfFactory4.g.verified.cs | 26 -- ...JsonConverters.OneOfFactory5.g.verified.cs | 26 -- ...nSerializerContextConverters.g.verified.cs | 38 ++- .../SystemTextJson/_#G.Api.g.verified.cs | 6 +- ...Models.ChatCompletionRequest.g.verified.cs | 4 +- ..._#G.Models.EmbeddingsRequest.g.verified.cs | 2 +- .../_#G.Models.Request.g.verified.cs | 2 +- .../_#G.Models.RerankRequest.g.verified.cs | 2 +- ...JsonConverters.OneOfFactory2.g.verified.cs | 26 -- ...nSerializerContextConverters.g.verified.cs | 6 +- .../SystemTextJson/_#G.Api.g.verified.cs | 5 +- ...JsonConverters.AllOfFactory1.g.verified.cs | 26 -- ...JsonConverters.AnyOfFactory2.g.verified.cs | 26 -- ...nSerializerContextConverters.g.verified.cs | 5 +- .../jina/SystemTextJson/_#G.Api.g.verified.cs | 23 +- ...chemasClassificationImageDoc.g.verified.cs | 2 +- ....ApiSchemasEmbeddingImageDoc.g.verified.cs | 2 +- ...odels.ClassificationAPIInput.g.verified.cs | 2 +- ...G.Models.ImageEmbeddingInput.g.verified.cs | 4 +- .../_#G.Models.ImageExampleDoc.g.verified.cs | 4 +- ...G.Models.MixedEmbeddingInput.g.verified.cs | 2 +- .../_#G.Models.RankAPIInput.g.verified.cs | 4 +- ...Models.TextEmbeddingAPIInput.g.verified.cs | 4 +- ...#G.Models.TextEmbeddingInput.g.verified.cs | 4 +- .../_#G.Models.TextExampleDoc.g.verified.cs | 2 +- .../_#G.Models.TrainingAPIInput.g.verified.cs | 2 +- ...JsonConverters.AnyOfFactory2.g.verified.cs | 26 -- ...JsonConverters.AnyOfFactory3.g.verified.cs | 26 -- ...JsonConverters.AnyOfFactory4.g.verified.cs | 26 -- ...nSerializerContextConverters.g.verified.cs | 23 +- .../SystemTextJson/_#G.Api.g.verified.cs | 13 +- ...dels.AgentsCompletionRequest.g.verified.cs | 4 +- ...Models.ChatCompletionRequest.g.verified.cs | 4 +- .../_#G.Models.EmbeddingRequest.g.verified.cs | 2 +- ....Models.FIMCompletionRequest.g.verified.cs | 2 +- .../_#G.Models.FunctionCall.g.verified.cs | 2 +- .../_#G.Models.ImageURLChunk.g.verified.cs | 2 +- .../_#G.Models.SystemMessage.g.verified.cs | 2 +- .../_#G.Models.UserMessage.g.verified.cs | 2 +- ...JsonConverters.AnyOfFactory2.g.verified.cs | 26 -- ...nSerializerContextConverters.g.verified.cs | 13 +- .../SystemTextJson/_#G.Api.g.verified.cs | 2 +- ...#G.Models.QueryCorpusRequest.g.verified.cs | 2 +- ...JsonConverters.AllOfFactory2.g.verified.cs | 26 -- ...nSerializerContextConverters.g.verified.cs | 2 +- 250 files changed, 1174 insertions(+), 1391 deletions(-) delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#JsonConverters.OneOfFactory1.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/Filtering/SystemTextJson/_#JsonConverters.OneOfFactory3.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.AllOfFactory2.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.AnyOfFactory3.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.OneOfFactory13.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.OneOfFactory3.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.OneOfFactory4.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.OneOfFactory5.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/HuggingFace/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#JsonConverters.AnyOfFactory3.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#JsonConverters.AnyOfFactory4.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#JsonConverters.AnyOfFactory5.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#JsonConverters.AllOfFactory1.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#JsonConverters.OneOfFactory1.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#JsonConverters.OneOfFactory4.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#JsonConverters.OneOfFactory5.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#JsonConverters.AllOfFactory1.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#JsonConverters.AnyOfFactory3.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#JsonConverters.AnyOfFactory4.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs delete mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/vectara/SystemTextJson/_#JsonConverters.AllOfFactory2.g.verified.cs diff --git a/src/libs/AutoSDK.CLI/Resources/.github_workflows_auto-update.yml b/src/libs/AutoSDK.CLI/Resources/.github_workflows_auto-update.yml index 97d7f9fccf..a9814ca3a2 100644 --- a/src/libs/AutoSDK.CLI/Resources/.github_workflows_auto-update.yml +++ b/src/libs/AutoSDK.CLI/Resources/.github_workflows_auto-update.yml @@ -29,6 +29,11 @@ jobs: git checkout -b ${{ steps.branch.outputs.branch_name }} origin/main git rebase main + - name: Install .NET SDK + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 9.0.x + - name: Generate code run: | cd src/libs/$SolutionName$ diff --git a/src/libs/AutoSDK.SourceGenerators/SdkGenerator.cs b/src/libs/AutoSDK.SourceGenerators/SdkGenerator.cs index e1fa058e2b..d5093ace5a 100644 --- a/src/libs/AutoSDK.SourceGenerators/SdkGenerator.cs +++ b/src/libs/AutoSDK.SourceGenerators/SdkGenerator.cs @@ -121,11 +121,11 @@ public void Initialize(IncrementalGeneratorInitializationContext context) .SelectAndReportExceptions((x, c) => Sources.AnyOfJsonConverter(x, c) .AsFileWithName(), context, Id) .AddSource(context); - data - .SelectMany(static (x, _) => x.AnyOfs) - .SelectAndReportExceptions((x, c) => Sources.AnyOfJsonConverterFactory(x, c) - .AsFileWithName(), context, Id) - .AddSource(context); + // data + // .SelectMany(static (x, _) => x.AnyOfs) + // .SelectAndReportExceptions((x, c) => Sources.AnyOfJsonConverterFactory(x, c) + // .AsFileWithName(), context, Id) + // .AddSource(context); data .Select(static (x, _) => x.Converters) diff --git a/src/libs/AutoSDK/Models/TypeData.cs b/src/libs/AutoSDK/Models/TypeData.cs index a8747d2eff..ee403b923a 100644 --- a/src/libs/AutoSDK/Models/TypeData.cs +++ b/src/libs/AutoSDK/Models/TypeData.cs @@ -75,11 +75,11 @@ CSharpTypeWithoutNullability is "string" || : IsEnum || (IsAnyOfLike && (IsComponent || HasDiscriminator)) ? $"global::{Settings.Namespace}.JsonConverters.{ShortCSharpTypeWithoutNullability}JsonConverter" : AnyOfCount > 0 - ? $"global::{Settings.Namespace}.JsonConverters.AnyOfJsonConverterFactory{AnyOfCount}" + ? $"global::{Settings.Namespace}.JsonConverters.AnyOfJsonConverter<{string.Join(", ", SubTypes.Select(y => y.CSharpTypeWithNullabilityForValueTypes))}>" : OneOfCount > 0 - ? $"global::{Settings.Namespace}.JsonConverters.OneOfJsonConverterFactory{OneOfCount}" + ? $"global::{Settings.Namespace}.JsonConverters.OneOfJsonConverter<{string.Join(", ", SubTypes.Select(y => y.CSharpTypeWithNullabilityForValueTypes))}>" : AllOfCount > 0 - ? $"global::{Settings.Namespace}.JsonConverters.AllOfJsonConverterFactory{AllOfCount}" + ? $"global::{Settings.Namespace}.JsonConverters.AllOfJsonConverter<{string.Join(", ", SubTypes.Select(y => y.CSharpTypeWithNullabilityForValueTypes))}>" : string.Empty; public static TypeData FromSchemaContext(SchemaContext context) diff --git a/src/libs/AutoSDK/Sources/Data.cs b/src/libs/AutoSDK/Sources/Data.cs index 50637b1000..bceeb24908 100644 --- a/src/libs/AutoSDK/Sources/Data.cs +++ b/src/libs/AutoSDK/Sources/Data.cs @@ -200,20 +200,33 @@ public static Models.Data Prepare( .Select(x => Authorization.FromOpenApiSecurityScheme(x.Key, settings)) .ToArray(); - var converters = enums - .Where(x => - x.Style == ModelStyle.Enumeration && - x.Settings.JsonSerializerType != JsonSerializerType.NewtonsoftJson) - .SelectMany(x => new[] - { - $"global::{settings.Namespace}.JsonConverters.{x.ClassName}JsonConverter", - $"global::{settings.Namespace}.JsonConverters.{x.ClassName}NullableJsonConverter" - }) + var converters = + // Enum converters + enums + .Where(x => + x.Style == ModelStyle.Enumeration && + x.Settings.JsonSerializerType != JsonSerializerType.NewtonsoftJson) + .SelectMany(x => new[] + { + $"global::{settings.Namespace}.JsonConverters.{x.ClassName}JsonConverter", + $"global::{settings.Namespace}.JsonConverters.{x.ClassName}NullableJsonConverter" + }) + // Named AnyOf converters .Concat(anyOfDatas - .Where(x => x.Settings.JsonSerializerType == JsonSerializerType.SystemTextJson) - .Select(x => string.IsNullOrWhiteSpace(x.Name) - ? $"global::{settings.Namespace}.JsonConverters.{x.SubType}JsonConverterFactory{x.Count}" - : $"global::{settings.Namespace}.JsonConverters.{x.Name}JsonConverter")) + .Where(x => + x.Settings.JsonSerializerType == JsonSerializerType.SystemTextJson && + !string.IsNullOrWhiteSpace(x.Name)) + .Select(x => $"global::{settings.Namespace}.JsonConverters.{x.Name}JsonConverter")) + // Generic AnyOf converters + .Concat(filteredSchemas + .Where(x => + x.Settings.JsonSerializerType == JsonSerializerType.SystemTextJson && + x.AnyOfData.HasValue && + string.IsNullOrWhiteSpace(x.AnyOfData.Value.Name)) + .Select(x => $"global::{settings.Namespace}.JsonConverters.{x.AnyOfData?.SubType}JsonConverter<{ + string.Join(", ", x.Children + .Where(y => y.Hint is Hint.AnyOf or Hint.OneOf or Hint.AllOf) + .Select(y => y.TypeData.CSharpTypeWithNullabilityForValueTypes))}>")) .ToImmutableArray(); var includedTags = allTags diff --git a/src/libs/AutoSDK/Sources/Sources.cs b/src/libs/AutoSDK/Sources/Sources.cs index 88c8837f5c..d3c050932f 100644 --- a/src/libs/AutoSDK/Sources/Sources.cs +++ b/src/libs/AutoSDK/Sources/Sources.cs @@ -139,20 +139,21 @@ public static FileWithName EnumNullableJsonConverter( Text: GenerateEnumNullableJsonConverter(data, cancellationToken: cancellationToken)); } - public static FileWithName AnyOfJsonConverterFactory( - AnyOfData anyOf, - CancellationToken cancellationToken = default) - { - if (anyOf.Settings.JsonSerializerType == JsonSerializerType.NewtonsoftJson || - anyOf.IsNamed) - { - return FileWithName.Empty; - } - - return new FileWithName( - Name: $"JsonConverters.{anyOf.SubType}Factory{anyOf.Count}.g.cs", - Text: GenerateAnyOfJsonConverterFactory(anyOf, cancellationToken: cancellationToken)); - } + // Not used in the current implementation because not compatible with NativeAOT + // public static FileWithName AnyOfJsonConverterFactory( + // AnyOfData anyOf, + // CancellationToken cancellationToken = default) + // { + // if (anyOf.Settings.JsonSerializerType == JsonSerializerType.NewtonsoftJson || + // anyOf.IsNamed) + // { + // return FileWithName.Empty; + // } + // + // return new FileWithName( + // Name: $"JsonConverters.{anyOf.SubType}Factory{anyOf.Count}.g.cs", + // Text: GenerateAnyOfJsonConverterFactory(anyOf, cancellationToken: cancellationToken)); + // } public static FileWithName UnixTimestampJsonConverter( Settings settings, diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#G.Api.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#G.Api.g.verified.cs index f52e3fd2ad..cabc95e703 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#G.Api.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#G.Api.g.verified.cs @@ -91,9 +91,12 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable new global::G.JsonConverters.UserMessageRoleNullableJsonConverter(), new global::G.JsonConverters.LanguageStudioApiServerDataTypesChatChatRequestMessageDiscriminatorRoleJsonConverter(), new global::G.JsonConverters.LanguageStudioApiServerDataTypesChatChatRequestMessageDiscriminatorRoleNullableJsonConverter(), - new global::G.JsonConverters.AnyOfJsonConverterFactory2(), new global::G.JsonConverters.QueryFilterJsonConverter(), new global::G.JsonConverters.MessagesItemJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter>(), + new global::G.JsonConverters.AnyOfJsonConverter>(), } }; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#G.Models.ChatCompletionResponseDeltaChoice.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#G.Models.ChatCompletionResponseDeltaChoice.g.verified.cs index 291de9deb1..d4fe5c461c 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#G.Models.ChatCompletionResponseDeltaChoice.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#G.Models.ChatCompletionResponseDeltaChoice.g.verified.cs @@ -23,7 +23,7 @@ public sealed partial class ChatCompletionResponseDeltaChoice /// - **Subsequent messages** will have an object `{"content": __token__}` with the generated token. /// [global::System.Text.Json.Serialization.JsonPropertyName("delta")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf Delta { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#G.Models.LanguageStudioApiServerDataTypesChatChatRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#G.Models.LanguageStudioApiServerDataTypesChatChatRequest.g.verified.cs index b877e2e2e1..ad717860f3 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#G.Models.LanguageStudioApiServerDataTypesChatChatRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#G.Models.LanguageStudioApiServerDataTypesChatChatRequest.g.verified.cs @@ -60,7 +60,7 @@ public sealed partial class LanguageStudioApiServerDataTypesChatChatRequest /// /// [global::System.Text.Json.Serialization.JsonPropertyName("stop")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter>))] public global::G.AnyOf>? Stop { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs deleted file mode 100644 index f9c99bb843..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.AnyOfFactory2.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class AnyOfJsonConverterFactory2 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.AnyOf<,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(AnyOfJsonConverter<,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs index 4a63524d78..3b0ef3dd47 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs @@ -61,9 +61,12 @@ internal sealed partial class JsonSerializerContextConverters typeof(global::G.JsonConverters.UserMessageRoleNullableJsonConverter), typeof(global::G.JsonConverters.LanguageStudioApiServerDataTypesChatChatRequestMessageDiscriminatorRoleJsonConverter), typeof(global::G.JsonConverters.LanguageStudioApiServerDataTypesChatChatRequestMessageDiscriminatorRoleNullableJsonConverter), - typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2), typeof(global::G.JsonConverters.QueryFilterJsonConverter), typeof(global::G.JsonConverters.MessagesItemJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter>), + typeof(global::G.JsonConverters.AnyOfJsonConverter>), }; } } \ No newline at end of file diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#G.Api.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#G.Api.g.verified.cs index 66ac4b2c1e..4639012f9c 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#G.Api.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#G.Api.g.verified.cs @@ -67,12 +67,14 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable new global::G.JsonConverters.BlockDeltaDiscriminatorTypeNullableJsonConverter(), new global::G.JsonConverters.MessageStreamEventDiscriminatorTypeJsonConverter(), new global::G.JsonConverters.MessageStreamEventDiscriminatorTypeNullableJsonConverter(), - new global::G.JsonConverters.AnyOfJsonConverterFactory2(), - new global::G.JsonConverters.OneOfJsonConverterFactory2(), new global::G.JsonConverters.BlockJsonConverter(), new global::G.JsonConverters.ToolJsonConverter(), new global::G.JsonConverters.MessageStreamEventJsonConverter(), new global::G.JsonConverters.BlockDeltaJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter>(), + new global::G.JsonConverters.OneOfJsonConverter>(), + new global::G.JsonConverters.OneOfJsonConverter>(), } }; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#G.Models.CreateMessageRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#G.Models.CreateMessageRequest.g.verified.cs index 0204be3fe0..9543c6baf9 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#G.Models.CreateMessageRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#G.Models.CreateMessageRequest.g.verified.cs @@ -19,7 +19,7 @@ public sealed partial class CreateMessageRequest /// /// claude-3-5-sonnet-20241022 [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf Model { get; set; } @@ -135,7 +135,7 @@ public sealed partial class CreateMessageRequest /// [guide to system prompts](https://docs.anthropic.com/en/docs/system-prompts). /// [global::System.Text.Json.Serialization.JsonPropertyName("system")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter>))] public global::G.OneOf>? System { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#G.Models.Message.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#G.Models.Message.g.verified.cs index 4293ca4742..924167d7b4 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#G.Models.Message.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#G.Models.Message.g.verified.cs @@ -22,7 +22,7 @@ public sealed partial class Message /// The content of the message. /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter>))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf> Content { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#G.Models.ToolResultBlock.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#G.Models.ToolResultBlock.g.verified.cs index 229e38a0eb..82a7a1fca7 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#G.Models.ToolResultBlock.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#G.Models.ToolResultBlock.g.verified.cs @@ -24,7 +24,7 @@ public sealed partial class ToolResultBlock /// These content blocks can use the text or image types. /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter>))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf> Content { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs deleted file mode 100644 index f9c99bb843..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.AnyOfFactory2.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class AnyOfJsonConverterFactory2 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.AnyOf<,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(AnyOfJsonConverter<,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs deleted file mode 100644 index c4dd3d03e3..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.OneOfFactory2.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class OneOfJsonConverterFactory2 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.OneOf<,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(OneOfJsonConverter<,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs index 24136ba2a6..b3ab77d6e4 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs @@ -37,12 +37,14 @@ internal sealed partial class JsonSerializerContextConverters typeof(global::G.JsonConverters.BlockDeltaDiscriminatorTypeNullableJsonConverter), typeof(global::G.JsonConverters.MessageStreamEventDiscriminatorTypeJsonConverter), typeof(global::G.JsonConverters.MessageStreamEventDiscriminatorTypeNullableJsonConverter), - typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2), - typeof(global::G.JsonConverters.OneOfJsonConverterFactory2), typeof(global::G.JsonConverters.BlockJsonConverter), typeof(global::G.JsonConverters.ToolJsonConverter), typeof(global::G.JsonConverters.MessageStreamEventJsonConverter), typeof(global::G.JsonConverters.BlockDeltaJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter>), + typeof(global::G.JsonConverters.OneOfJsonConverter>), + typeof(global::G.JsonConverters.OneOfJsonConverter>), }; } } \ No newline at end of file diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#G.Api.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#G.Api.g.verified.cs index 252439f053..a3956bb263 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#G.Api.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#G.Api.g.verified.cs @@ -75,8 +75,6 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable new global::G.JsonConverters.LemurModelNullableJsonConverter(), new global::G.JsonConverters.TranscriptWebhookNotificationJsonConverter(), new global::G.JsonConverters.RedactedAudioNotificationJsonConverter(), - new global::G.JsonConverters.OneOfJsonConverterFactory2(), - new global::G.JsonConverters.AnyOfJsonConverterFactory2(), new global::G.JsonConverters.TranscriptParamsJsonConverter(), new global::G.JsonConverters.LemurStringResponseJsonConverter(), new global::G.JsonConverters.LemurTaskResponseJsonConverter(), @@ -88,6 +86,19 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable new global::G.JsonConverters.LemurSummaryParamsJsonConverter(), new global::G.JsonConverters.LemurQuestionAnswerParamsJsonConverter(), new global::G.JsonConverters.LemurActionItemsParamsJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter?, object>(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), } }; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#G.Models.LemurBaseParams.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#G.Models.LemurBaseParams.g.verified.cs index b08e9363fe..0c54c4783b 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#G.Models.LemurBaseParams.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#G.Models.LemurBaseParams.g.verified.cs @@ -29,7 +29,7 @@ public sealed partial class LemurBaseParams /// Context to provide the model. This can be a string or a free-form JSON value. /// [global::System.Text.Json.Serialization.JsonPropertyName("context")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? Context { get; set; } /// @@ -37,7 +37,7 @@ public sealed partial class LemurBaseParams /// Default Value: default /// [global::System.Text.Json.Serialization.JsonPropertyName("final_model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? FinalModel { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#G.Models.LemurQuestion.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#G.Models.LemurQuestion.g.verified.cs index a9d97b7088..5d05815abe 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#G.Models.LemurQuestion.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#G.Models.LemurQuestion.g.verified.cs @@ -22,7 +22,7 @@ public sealed partial class LemurQuestion /// Any context about the transcripts you wish to provide. This can be a string or any object. /// [global::System.Text.Json.Serialization.JsonPropertyName("context")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? Context { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#G.Models.Transcript.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#G.Models.Transcript.g.verified.cs index 1fad059ad5..5e4a044e6a 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#G.Models.Transcript.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#G.Models.Transcript.g.verified.cs @@ -39,7 +39,7 @@ public sealed partial class Transcript /// The default value is 'en_us'. /// [global::System.Text.Json.Serialization.JsonPropertyName("language_code")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? LanguageCode { get; set; } /// @@ -67,7 +67,7 @@ public sealed partial class Transcript /// The speech model used for the transcription. When `null`, the default model is used. /// [global::System.Text.Json.Serialization.JsonPropertyName("speech_model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf SpeechModel { get; set; } @@ -173,7 +173,7 @@ public sealed partial class Transcript /// See [Key Phrases](https://www.assemblyai.com/docs/models/key-phrases) for more information. /// [global::System.Text.Json.Serialization.JsonPropertyName("auto_highlights_result")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? AutoHighlightsResult { get; set; } /// @@ -225,7 +225,7 @@ public sealed partial class Transcript /// See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more information. /// [global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_audio_quality")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? RedactPiiAudioQuality { get; set; } /// @@ -265,7 +265,7 @@ public sealed partial class Transcript /// See [Content moderation](https://www.assemblyai.com/docs/models/content-moderation) for more information. /// [global::System.Text.Json.Serialization.JsonPropertyName("content_safety_labels")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? ContentSafetyLabels { get; set; } /// @@ -279,7 +279,7 @@ public sealed partial class Transcript /// See [Topic Detection](https://www.assemblyai.com/docs/models/topic-detection) for more information. /// [global::System.Text.Json.Serialization.JsonPropertyName("iab_categories_result")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? IabCategoriesResult { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#G.Models.TranscriptOptionalParams.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#G.Models.TranscriptOptionalParams.g.verified.cs index cfc2ba74bd..49f25951f4 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#G.Models.TranscriptOptionalParams.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#G.Models.TranscriptOptionalParams.g.verified.cs @@ -17,7 +17,7 @@ public sealed partial class TranscriptOptionalParams /// Default Value: en_us /// [global::System.Text.Json.Serialization.JsonPropertyName("language_code")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter?, object>))] public global::G.OneOf?, object>? LanguageCode { get; set; } /// @@ -41,7 +41,7 @@ public sealed partial class TranscriptOptionalParams /// Default Value: best /// [global::System.Text.Json.Serialization.JsonPropertyName("speech_model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? SpeechModel { get; set; } /// @@ -165,7 +165,7 @@ public sealed partial class TranscriptOptionalParams /// Default Value: hash /// [global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_sub")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? RedactPiiSub { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs deleted file mode 100644 index f9c99bb843..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.AnyOfFactory2.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class AnyOfJsonConverterFactory2 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.AnyOf<,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(AnyOfJsonConverter<,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs deleted file mode 100644 index c4dd3d03e3..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.OneOfFactory2.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class OneOfJsonConverterFactory2 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.OneOf<,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(OneOfJsonConverter<,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs index 9aa07f6629..d986e21585 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/AssemblyAi/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs @@ -45,8 +45,6 @@ internal sealed partial class JsonSerializerContextConverters typeof(global::G.JsonConverters.LemurModelNullableJsonConverter), typeof(global::G.JsonConverters.TranscriptWebhookNotificationJsonConverter), typeof(global::G.JsonConverters.RedactedAudioNotificationJsonConverter), - typeof(global::G.JsonConverters.OneOfJsonConverterFactory2), - typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2), typeof(global::G.JsonConverters.TranscriptParamsJsonConverter), typeof(global::G.JsonConverters.LemurStringResponseJsonConverter), typeof(global::G.JsonConverters.LemurTaskResponseJsonConverter), @@ -58,6 +56,19 @@ internal sealed partial class JsonSerializerContextConverters typeof(global::G.JsonConverters.LemurSummaryParamsJsonConverter), typeof(global::G.JsonConverters.LemurQuestionAnswerParamsJsonConverter), typeof(global::G.JsonConverters.LemurActionItemsParamsJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter?, object>), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), }; } } \ No newline at end of file diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#G.Api.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#G.Api.g.verified.cs index 1858a0f90b..b1d0283ab7 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#G.Api.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#G.Api.g.verified.cs @@ -171,9 +171,7 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable new global::G.JsonConverters.ChatToolCallsChunkEventJsonConverter(), new global::G.JsonConverters.StreamedChatResponseJsonConverter(), new global::G.JsonConverters.ContentJsonConverter(), - new global::G.JsonConverters.OneOfJsonConverterFactory2(), new global::G.JsonConverters.SourceJsonConverter(), - new global::G.JsonConverters.OneOfJsonConverterFactory1(), new global::G.JsonConverters.ToolContentJsonConverter(), new global::G.JsonConverters.ChatMessageV2JsonConverter(), new global::G.JsonConverters.ResponseFormatV2JsonConverter(), @@ -194,6 +192,18 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable new global::G.JsonConverters.GenerateStreamEndJsonConverter(), new global::G.JsonConverters.GenerateStreamErrorJsonConverter(), new global::G.JsonConverters.GenerateStreamedResponseJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter>(), + new global::G.JsonConverters.OneOfJsonConverter>>(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter>>(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter>(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), } }; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#G.Models.AssistantMessage.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#G.Models.AssistantMessage.g.verified.cs index c3a9a1849c..d4cd27ea7e 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#G.Models.AssistantMessage.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#G.Models.AssistantMessage.g.verified.cs @@ -34,7 +34,7 @@ public sealed partial class AssistantMessage /// /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter>>))] public global::G.OneOf>>? Content { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#G.Models.SystemMessage.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#G.Models.SystemMessage.g.verified.cs index 990d7cdee9..0c8a5e4cf1 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#G.Models.SystemMessage.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#G.Models.SystemMessage.g.verified.cs @@ -22,7 +22,7 @@ public sealed partial class SystemMessage /// /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter>>))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf>> Content { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#G.Models.ToolMessageV2.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#G.Models.ToolMessageV2.g.verified.cs index 8591c7e8fe..9ac6e33bd4 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#G.Models.ToolMessageV2.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#G.Models.ToolMessageV2.g.verified.cs @@ -29,7 +29,7 @@ public sealed partial class ToolMessageV2 /// A single or list of outputs from a tool. The content should formatted as a JSON object string, or a list of tool content blocks /// [global::System.Text.Json.Serialization.JsonPropertyName("tool_content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter>))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf> ToolContent { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#G.Models.UserMessage.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#G.Models.UserMessage.g.verified.cs index ef5dea43a1..f51ffe04f8 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#G.Models.UserMessage.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#G.Models.UserMessage.g.verified.cs @@ -23,7 +23,7 @@ public sealed partial class UserMessage /// If a string is provided, it will be treated as a text content block. /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter>))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf> Content { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#JsonConverters.OneOfFactory1.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#JsonConverters.OneOfFactory1.g.verified.cs deleted file mode 100644 index 6d1b482f23..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#JsonConverters.OneOfFactory1.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.OneOfFactory1.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class OneOfJsonConverterFactory1 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.OneOf<>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(OneOfJsonConverter<>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs deleted file mode 100644 index c4dd3d03e3..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.OneOfFactory2.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class OneOfJsonConverterFactory2 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.OneOf<,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(OneOfJsonConverter<,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs index a3e51532da..1b3e34d2c7 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs @@ -139,9 +139,7 @@ internal sealed partial class JsonSerializerContextConverters typeof(global::G.JsonConverters.ChatToolCallsChunkEventJsonConverter), typeof(global::G.JsonConverters.StreamedChatResponseJsonConverter), typeof(global::G.JsonConverters.ContentJsonConverter), - typeof(global::G.JsonConverters.OneOfJsonConverterFactory2), typeof(global::G.JsonConverters.SourceJsonConverter), - typeof(global::G.JsonConverters.OneOfJsonConverterFactory1), typeof(global::G.JsonConverters.ToolContentJsonConverter), typeof(global::G.JsonConverters.ChatMessageV2JsonConverter), typeof(global::G.JsonConverters.ResponseFormatV2JsonConverter), @@ -162,6 +160,18 @@ internal sealed partial class JsonSerializerContextConverters typeof(global::G.JsonConverters.GenerateStreamEndJsonConverter), typeof(global::G.JsonConverters.GenerateStreamErrorJsonConverter), typeof(global::G.JsonConverters.GenerateStreamedResponseJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter>), + typeof(global::G.JsonConverters.OneOfJsonConverter>>), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter>>), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter>), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), }; } } \ No newline at end of file diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Filtering/SystemTextJson/_#G.Api.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Filtering/SystemTextJson/_#G.Api.g.verified.cs index f031934c1a..39b4f7fc07 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Filtering/SystemTextJson/_#G.Api.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Filtering/SystemTextJson/_#G.Api.g.verified.cs @@ -77,7 +77,7 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable new global::G.JsonConverters.MigrationsListForOrgExcludeItemNullableJsonConverter(), new global::G.JsonConverters.MigrationsGetStatusForOrgExcludeItemJsonConverter(), new global::G.JsonConverters.MigrationsGetStatusForOrgExcludeItemNullableJsonConverter(), - new global::G.JsonConverters.OneOfJsonConverterFactory3(), + new global::G.JsonConverters.OneOfJsonConverter>(), } }; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Filtering/SystemTextJson/_#G.Models.ValidationErrorError.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Filtering/SystemTextJson/_#G.Models.ValidationErrorError.g.verified.cs index 726920ac76..8d00e2b70c 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Filtering/SystemTextJson/_#G.Models.ValidationErrorError.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Filtering/SystemTextJson/_#G.Models.ValidationErrorError.g.verified.cs @@ -46,7 +46,7 @@ public sealed partial class ValidationErrorError /// /// [global::System.Text.Json.Serialization.JsonPropertyName("value")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory3))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter>))] public global::G.OneOf>? Value { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Filtering/SystemTextJson/_#JsonConverters.OneOfFactory3.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Filtering/SystemTextJson/_#JsonConverters.OneOfFactory3.g.verified.cs deleted file mode 100644 index ddc6fc72a9..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Filtering/SystemTextJson/_#JsonConverters.OneOfFactory3.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.OneOfFactory3.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class OneOfJsonConverterFactory3 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.OneOf<,,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(OneOfJsonConverter<,,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Filtering/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Filtering/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs index 03aa0057a0..a3a2ce4728 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Filtering/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Filtering/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs @@ -47,7 +47,7 @@ internal sealed partial class JsonSerializerContextConverters typeof(global::G.JsonConverters.MigrationsListForOrgExcludeItemNullableJsonConverter), typeof(global::G.JsonConverters.MigrationsGetStatusForOrgExcludeItemJsonConverter), typeof(global::G.JsonConverters.MigrationsGetStatusForOrgExcludeItemNullableJsonConverter), - typeof(global::G.JsonConverters.OneOfJsonConverterFactory3), + typeof(global::G.JsonConverters.OneOfJsonConverter>), }; } } \ No newline at end of file diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Api.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Api.g.verified.cs index 7edb55fee3..7ebbf2060c 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Api.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Api.g.verified.cs @@ -5604,23 +5604,264 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable new global::G.JsonConverters.ReposGetContentResponseDiscriminatorTypeJsonConverter(), new global::G.JsonConverters.ReposGetContentResponseDiscriminatorTypeNullableJsonConverter(), new global::G.JsonConverters.WebhookConfigInsecureSslJsonConverter(), - new global::G.JsonConverters.OneOfJsonConverterFactory3(), - new global::G.JsonConverters.AnyOfJsonConverterFactory2(), - new global::G.JsonConverters.OneOfJsonConverterFactory2(), new global::G.JsonConverters.OrgRulesetConditionsJsonConverter(), - new global::G.JsonConverters.AllOfJsonConverterFactory2(), new global::G.JsonConverters.RepositoryRuleJsonConverter(), - new global::G.JsonConverters.AnyOfJsonConverterFactory3(), new global::G.JsonConverters.IssueEventForIssueJsonConverter(), new global::G.JsonConverters.TimelineIssueEventsJsonConverter(), new global::G.JsonConverters.RepositoryRuleDetailedJsonConverter(), - new global::G.JsonConverters.OneOfJsonConverterFactory13(), new global::G.JsonConverters.PullRequestWebhookJsonConverter(), - new global::G.JsonConverters.OneOfJsonConverterFactory4(), new global::G.JsonConverters.WebhookPullRequestReviewRequestRemovedJsonConverter(), new global::G.JsonConverters.WebhookPullRequestReviewRequestedJsonConverter(), - new global::G.JsonConverters.OneOfJsonConverterFactory5(), new global::G.JsonConverters.ReposGetContentResponseJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter>(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter>(), + new global::G.JsonConverters.OneOfJsonConverter>(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter>(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter>(), + new global::G.JsonConverters.OneOfJsonConverter>(), + new global::G.JsonConverters.OneOfJsonConverter>(), + new global::G.JsonConverters.OneOfJsonConverter>(), + new global::G.JsonConverters.OneOfJsonConverter>(), + new global::G.JsonConverters.OneOfJsonConverter>(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter, global::G.IssuesAddLabelsRequestVariant3, global::System.Collections.Generic.IList, string>(), + new global::G.JsonConverters.OneOfJsonConverter, global::G.IssuesSetLabelsRequestVariant3, global::System.Collections.Generic.IList, string>(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter, string>(), + new global::G.JsonConverters.OneOfJsonConverter, string>(), + new global::G.JsonConverters.OneOfJsonConverter>(), + new global::G.JsonConverters.OneOfJsonConverter>(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList>(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList>(), } }; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.Commit.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.Commit.g.verified.cs index 3f61ac0d08..2ad6698214 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.Commit.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.Commit.g.verified.cs @@ -62,7 +62,7 @@ public sealed partial class Commit /// /// [global::System.Text.Json.Serialization.JsonPropertyName("author")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? Author { get; set; } @@ -70,7 +70,7 @@ public sealed partial class Commit /// /// [global::System.Text.Json.Serialization.JsonPropertyName("committer")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? Committer { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.CopilotSeatDetails.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.CopilotSeatDetails.g.verified.cs index 0475cc29b4..718b6f7d0c 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.CopilotSeatDetails.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.CopilotSeatDetails.g.verified.cs @@ -28,7 +28,7 @@ public sealed partial class CopilotSeatDetails /// The team through which the assignee is granted access to GitHub Copilot, if applicable. /// [global::System.Text.Json.Serialization.JsonPropertyName("assigning_team")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? AssigningTeam { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.CustomProperty.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.CustomProperty.g.verified.cs index fa06f41272..00a67372d0 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.CustomProperty.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.CustomProperty.g.verified.cs @@ -44,7 +44,7 @@ public sealed partial class CustomProperty /// Default value of the property /// [global::System.Text.Json.Serialization.JsonPropertyName("default_value")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter>))] public global::G.OneOf>? DefaultValue { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.CustomPropertyValue.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.CustomPropertyValue.g.verified.cs index caf6d5c818..1b5f2576cd 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.CustomPropertyValue.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.CustomPropertyValue.g.verified.cs @@ -22,7 +22,7 @@ public sealed partial class CustomPropertyValue /// The value assigned to the property /// [global::System.Text.Json.Serialization.JsonPropertyName("value")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter>))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf>? Value { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.Deployment.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.Deployment.g.verified.cs index fb9816b7fe..95a404ea0d 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.Deployment.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.Deployment.g.verified.cs @@ -66,7 +66,7 @@ public sealed partial class Deployment /// /// [global::System.Text.Json.Serialization.JsonPropertyName("payload")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf Payload { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.EnvironmentProtectionRuleVariant2Reviewer.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.EnvironmentProtectionRuleVariant2Reviewer.g.verified.cs index d946d97655..dea44d8e45 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.EnvironmentProtectionRuleVariant2Reviewer.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.EnvironmentProtectionRuleVariant2Reviewer.g.verified.cs @@ -24,7 +24,7 @@ public sealed partial class EnvironmentProtectionRuleVariant2Reviewer /// /// [global::System.Text.Json.Serialization.JsonPropertyName("reviewer")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Reviewer { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.GistsCreateRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.GistsCreateRequest.g.verified.cs index 1022b60af8..2a7f5b9ede 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.GistsCreateRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.GistsCreateRequest.g.verified.cs @@ -30,7 +30,7 @@ public sealed partial class GistsCreateRequest /// /// [global::System.Text.Json.Serialization.JsonPropertyName("public")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? Public { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.Installation.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.Installation.g.verified.cs index 16ef16a82a..6353ad413c 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.Installation.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.Installation.g.verified.cs @@ -24,7 +24,7 @@ public sealed partial class Installation /// /// [global::System.Text.Json.Serialization.JsonPropertyName("account")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf? Account { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.IntegrationInstallationRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.IntegrationInstallationRequest.g.verified.cs index 6f0fdf0bb7..e99b70f057 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.IntegrationInstallationRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.IntegrationInstallationRequest.g.verified.cs @@ -31,7 +31,7 @@ public sealed partial class IntegrationInstallationRequest /// /// [global::System.Text.Json.Serialization.JsonPropertyName("account")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf Account { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.IssuesCreateRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.IssuesCreateRequest.g.verified.cs index 6eaaf2b908..b9e6e4caae 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.IssuesCreateRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.IssuesCreateRequest.g.verified.cs @@ -15,7 +15,7 @@ public sealed partial class IssuesCreateRequest /// The title of the issue. /// [global::System.Text.Json.Serialization.JsonPropertyName("title")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf Title { get; set; } @@ -35,7 +35,7 @@ public sealed partial class IssuesCreateRequest /// /// [global::System.Text.Json.Serialization.JsonPropertyName("milestone")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? Milestone { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.IssuesUpdateRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.IssuesUpdateRequest.g.verified.cs index 7ec7316c08..b707ccf630 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.IssuesUpdateRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.IssuesUpdateRequest.g.verified.cs @@ -15,7 +15,7 @@ public sealed partial class IssuesUpdateRequest /// The title of the issue. /// [global::System.Text.Json.Serialization.JsonPropertyName("title")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? Title { get; set; } /// @@ -50,7 +50,7 @@ public sealed partial class IssuesUpdateRequest /// /// [global::System.Text.Json.Serialization.JsonPropertyName("milestone")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? Milestone { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.OrgsCreateOrUpdateCustomPropertyRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.OrgsCreateOrUpdateCustomPropertyRequest.g.verified.cs index ef48086742..7104f1ebb9 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.OrgsCreateOrUpdateCustomPropertyRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.OrgsCreateOrUpdateCustomPropertyRequest.g.verified.cs @@ -31,7 +31,7 @@ public sealed partial class OrgsCreateOrUpdateCustomPropertyRequest /// Default value of the property /// [global::System.Text.Json.Serialization.JsonPropertyName("default_value")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter>))] public global::G.OneOf>? DefaultValue { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.PageDeployment.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.PageDeployment.g.verified.cs index eff2f75e43..cff00e74a9 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.PageDeployment.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.PageDeployment.g.verified.cs @@ -15,7 +15,7 @@ public sealed partial class PageDeployment /// The ID of the GitHub Pages deployment. This is the Git SHA of the deployed commit. /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf Id { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.PendingDeploymentReviewer.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.PendingDeploymentReviewer.g.verified.cs index eee96ada36..85780e1ddb 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.PendingDeploymentReviewer.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.PendingDeploymentReviewer.g.verified.cs @@ -24,7 +24,7 @@ public sealed partial class PendingDeploymentReviewer /// /// [global::System.Text.Json.Serialization.JsonPropertyName("reviewer")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Reviewer { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.ReposCreateDeploymentRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.ReposCreateDeploymentRequest.g.verified.cs index 6a4fb2bc7a..9552aae9d7 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.ReposCreateDeploymentRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.ReposCreateDeploymentRequest.g.verified.cs @@ -42,7 +42,7 @@ public sealed partial class ReposCreateDeploymentRequest /// /// [global::System.Text.Json.Serialization.JsonPropertyName("payload")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? Payload { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.ReposUpdateInformationAboutPagesSiteRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.ReposUpdateInformationAboutPagesSiteRequest.g.verified.cs index 27bc08c09a..7c5f6af41e 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.ReposUpdateInformationAboutPagesSiteRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.ReposUpdateInformationAboutPagesSiteRequest.g.verified.cs @@ -34,7 +34,7 @@ public sealed partial class ReposUpdateInformationAboutPagesSiteRequest /// /// [global::System.Text.Json.Serialization.JsonPropertyName("source")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Source { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleset.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleset.g.verified.cs index f7644beb1f..d4af9e7424 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleset.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleset.g.verified.cs @@ -84,7 +84,7 @@ public sealed partial class RepositoryRuleset /// /// [global::System.Text.Json.Serialization.JsonPropertyName("conditions")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Conditions { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.SecretScanningLocation.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.SecretScanningLocation.g.verified.cs index 01fcadfb53..bda69916f9 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.SecretScanningLocation.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.SecretScanningLocation.g.verified.cs @@ -24,7 +24,7 @@ public sealed partial class SecretScanningLocation /// /// [global::System.Text.Json.Serialization.JsonPropertyName("details")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory13))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? Details { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.ValidationErrorError.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.ValidationErrorError.g.verified.cs index 726920ac76..8d00e2b70c 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.ValidationErrorError.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.ValidationErrorError.g.verified.cs @@ -46,7 +46,7 @@ public sealed partial class ValidationErrorError /// /// [global::System.Text.Json.Serialization.JsonPropertyName("value")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory3))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter>))] public global::G.OneOf>? Value { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentCreatedDeployment.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentCreatedDeployment.g.verified.cs index c8f932f707..7843964861 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentCreatedDeployment.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentCreatedDeployment.g.verified.cs @@ -64,7 +64,7 @@ public sealed partial class WebhookDeploymentCreatedDeployment /// /// [global::System.Text.Json.Serialization.JsonPropertyName("payload")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf Payload { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentStatusCreatedDeployment.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentStatusCreatedDeployment.g.verified.cs index 6c3027cb5a..4360bd5b8d 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentStatusCreatedDeployment.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentStatusCreatedDeployment.g.verified.cs @@ -64,7 +64,7 @@ public sealed partial class WebhookDeploymentStatusCreatedDeployment /// /// [global::System.Text.Json.Serialization.JsonPropertyName("payload")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? Payload { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookFork.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookFork.g.verified.cs index 872e5b05ec..af132e5e19 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookFork.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookFork.g.verified.cs @@ -23,7 +23,7 @@ public sealed partial class WebhookFork /// The created [`repository`](https://docs.github.com/rest/repos/repos#get-a-repository) resource. /// [global::System.Text.Json.Serialization.JsonPropertyName("forkee")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AllOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AllOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AllOf Forkee { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookForkForkeeVariant1.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookForkForkeeVariant1.g.verified.cs index b6b67a19da..03463f4ead 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookForkForkeeVariant1.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookForkForkeeVariant1.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookForkForkeeVariant1 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -494,7 +494,7 @@ public sealed partial class WebhookForkForkeeVariant1 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssueCommentCreated.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssueCommentCreated.g.verified.cs index 01aeb225bb..86f50913b7 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssueCommentCreated.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssueCommentCreated.g.verified.cs @@ -45,7 +45,7 @@ public sealed partial class WebhookIssueCommentCreated /// The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to. /// [global::System.Text.Json.Serialization.JsonPropertyName("issue")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AllOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AllOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AllOf Issue { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssueCommentDeleted.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssueCommentDeleted.g.verified.cs index c532114cb9..fe3f7a439a 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssueCommentDeleted.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssueCommentDeleted.g.verified.cs @@ -45,7 +45,7 @@ public sealed partial class WebhookIssueCommentDeleted /// The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to. /// [global::System.Text.Json.Serialization.JsonPropertyName("issue")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AllOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AllOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AllOf Issue { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssueCommentEdited.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssueCommentEdited.g.verified.cs index 26637b274c..3ee7fa14ce 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssueCommentEdited.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssueCommentEdited.g.verified.cs @@ -52,7 +52,7 @@ public sealed partial class WebhookIssueCommentEdited /// The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to. /// [global::System.Text.Json.Serialization.JsonPropertyName("issue")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AllOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AllOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AllOf Issue { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesClosed.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesClosed.g.verified.cs index 1688c19ea2..8292d894f4 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesClosed.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesClosed.g.verified.cs @@ -38,7 +38,7 @@ public sealed partial class WebhookIssuesClosed /// The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. /// [global::System.Text.Json.Serialization.JsonPropertyName("issue")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AllOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AllOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AllOf Issue { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesOpenedChangesOldRepository.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesOpenedChangesOldRepository.g.verified.cs index 5b1f645259..008e172f7d 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesOpenedChangesOldRepository.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesOpenedChangesOldRepository.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookIssuesOpenedChangesOldRepository /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -506,7 +506,7 @@ public sealed partial class WebhookIssuesOpenedChangesOldRepository /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesTransferredChangesNewRepository.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesTransferredChangesNewRepository.g.verified.cs index 3c97970373..488022ae2d 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesTransferredChangesNewRepository.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesTransferredChangesNewRepository.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookIssuesTransferredChangesNewRepository /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -509,7 +509,7 @@ public sealed partial class WebhookIssuesTransferredChangesNewRepository /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPackagePublishedPackagePackageVersion.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPackagePublishedPackagePackageVersion.g.verified.cs index cdf13dff38..ec9eb15710 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPackagePublishedPackagePackageVersion.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPackagePublishedPackagePackageVersion.g.verified.cs @@ -21,7 +21,7 @@ public sealed partial class WebhookPackagePublishedPackagePackageVersion /// /// [global::System.Text.Json.Serialization.JsonPropertyName("body")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? Body { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPackagePublishedPackagePackageVersionNugetMetadataItem.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPackagePublishedPackagePackageVersionNugetMetadataItem.g.verified.cs index 3f054a3f1c..114cdd0313 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPackagePublishedPackagePackageVersionNugetMetadataItem.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPackagePublishedPackagePackageVersionNugetMetadataItem.g.verified.cs @@ -15,7 +15,7 @@ public sealed partial class WebhookPackagePublishedPackagePackageVersionNugetMet /// /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? Id { get; set; } /// @@ -28,7 +28,7 @@ public sealed partial class WebhookPackagePublishedPackagePackageVersionNugetMet /// /// [global::System.Text.Json.Serialization.JsonPropertyName("value")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory4))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? Value { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCardMoved.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCardMoved.g.verified.cs index 7221c7f043..4dda326c92 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCardMoved.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCardMoved.g.verified.cs @@ -51,7 +51,7 @@ public sealed partial class WebhookProjectCardMoved /// /// [global::System.Text.Json.Serialization.JsonPropertyName("project_card")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AllOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AllOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AllOf ProjectCard { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemEdited.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemEdited.g.verified.cs index b911926504..0bc02ffd58 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemEdited.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemEdited.g.verified.cs @@ -23,7 +23,7 @@ public sealed partial class WebhookProjectsV2ItemEdited /// It includes altered values for text, number, date, single select, and iteration fields, along with the GraphQL node ID of the changed field. /// [global::System.Text.Json.Serialization.JsonPropertyName("changes")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? Changes { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemEditedChangesVariant1FieldValue.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemEditedChangesVariant1FieldValue.g.verified.cs index 5f312a3238..dd7336e097 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemEditedChangesVariant1FieldValue.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemEditedChangesVariant1FieldValue.g.verified.cs @@ -39,14 +39,14 @@ public sealed partial class WebhookProjectsV2ItemEditedChangesVariant1FieldValue /// /// [global::System.Text.Json.Serialization.JsonPropertyName("from")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory4))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? From { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("to")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory4))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? To { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAssignedPullRequestBaseRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAssignedPullRequestBaseRepo.g.verified.cs index a48305b698..51264b41c6 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAssignedPullRequestBaseRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAssignedPullRequestBaseRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestAssignedPullRequestBaseRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestAssignedPullRequestBaseRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAssignedPullRequestHeadRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAssignedPullRequestHeadRepo.g.verified.cs index b36a956d38..6c423853b1 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAssignedPullRequestHeadRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAssignedPullRequestHeadRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestAssignedPullRequestHeadRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestAssignedPullRequestHeadRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAutoMergeDisabledPullRequestBaseRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAutoMergeDisabledPullRequestBaseRepo.g.verified.cs index 11d70e3282..fa45873687 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAutoMergeDisabledPullRequestBaseRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAutoMergeDisabledPullRequestBaseRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestAutoMergeDisabledPullRequestBaseRe /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestAutoMergeDisabledPullRequestBaseRe /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAutoMergeDisabledPullRequestHeadRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAutoMergeDisabledPullRequestHeadRepo.g.verified.cs index 25c90a6f2d..4d0a02fb7b 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAutoMergeDisabledPullRequestHeadRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAutoMergeDisabledPullRequestHeadRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestAutoMergeDisabledPullRequestHeadRe /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestAutoMergeDisabledPullRequestHeadRe /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAutoMergeEnabledPullRequestBaseRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAutoMergeEnabledPullRequestBaseRepo.g.verified.cs index d4be47d47e..290b29285a 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAutoMergeEnabledPullRequestBaseRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAutoMergeEnabledPullRequestBaseRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestAutoMergeEnabledPullRequestBaseRep /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestAutoMergeEnabledPullRequestBaseRep /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAutoMergeEnabledPullRequestHeadRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAutoMergeEnabledPullRequestHeadRepo.g.verified.cs index 5b32bd945b..89c2f53d98 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAutoMergeEnabledPullRequestHeadRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAutoMergeEnabledPullRequestHeadRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestAutoMergeEnabledPullRequestHeadRep /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestAutoMergeEnabledPullRequestHeadRep /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestDequeuedPullRequestBaseRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestDequeuedPullRequestBaseRepo.g.verified.cs index af9d2e3d75..87f3f2a291 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestDequeuedPullRequestBaseRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestDequeuedPullRequestBaseRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestDequeuedPullRequestBaseRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestDequeuedPullRequestBaseRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestDequeuedPullRequestHeadRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestDequeuedPullRequestHeadRepo.g.verified.cs index e0eebf5ece..098878cab9 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestDequeuedPullRequestHeadRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestDequeuedPullRequestHeadRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestDequeuedPullRequestHeadRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestDequeuedPullRequestHeadRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestEnqueuedPullRequestBaseRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestEnqueuedPullRequestBaseRepo.g.verified.cs index 8c6a70e922..a318f6f88d 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestEnqueuedPullRequestBaseRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestEnqueuedPullRequestBaseRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestEnqueuedPullRequestBaseRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestEnqueuedPullRequestBaseRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestEnqueuedPullRequestHeadRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestEnqueuedPullRequestHeadRepo.g.verified.cs index 506f672e64..4b58c3edd0 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestEnqueuedPullRequestHeadRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestEnqueuedPullRequestHeadRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestEnqueuedPullRequestHeadRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestEnqueuedPullRequestHeadRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestLabeledPullRequestBaseRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestLabeledPullRequestBaseRepo.g.verified.cs index 21444241d2..d51e3a5799 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestLabeledPullRequestBaseRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestLabeledPullRequestBaseRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestLabeledPullRequestBaseRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestLabeledPullRequestBaseRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestLabeledPullRequestHeadRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestLabeledPullRequestHeadRepo.g.verified.cs index f2477f29f7..a38fb8efbd 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestLabeledPullRequestHeadRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestLabeledPullRequestHeadRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestLabeledPullRequestHeadRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestLabeledPullRequestHeadRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestLockedPullRequestBaseRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestLockedPullRequestBaseRepo.g.verified.cs index 4d6c128bd8..e584d3101c 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestLockedPullRequestBaseRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestLockedPullRequestBaseRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestLockedPullRequestBaseRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestLockedPullRequestBaseRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestLockedPullRequestHeadRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestLockedPullRequestHeadRepo.g.verified.cs index e630b69d5b..7d7a785bd5 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestLockedPullRequestHeadRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestLockedPullRequestHeadRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestLockedPullRequestHeadRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestLockedPullRequestHeadRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentCreatedPullRequestBaseRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentCreatedPullRequestBaseRepo.g.verified.cs index 6c01e4f009..5bf36765da 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentCreatedPullRequestBaseRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentCreatedPullRequestBaseRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestReviewCommentCreatedPullRequestBas /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestReviewCommentCreatedPullRequestBas /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentCreatedPullRequestHeadRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentCreatedPullRequestHeadRepo.g.verified.cs index ba7b50f1bd..d4e08043a7 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentCreatedPullRequestHeadRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentCreatedPullRequestHeadRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestReviewCommentCreatedPullRequestHea /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -520,7 +520,7 @@ public sealed partial class WebhookPullRequestReviewCommentCreatedPullRequestHea /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentDeletedPullRequestBaseRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentDeletedPullRequestBaseRepo.g.verified.cs index 34e3f23284..45ae6e3ee9 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentDeletedPullRequestBaseRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentDeletedPullRequestBaseRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestReviewCommentDeletedPullRequestBas /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestReviewCommentDeletedPullRequestBas /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentDeletedPullRequestHeadRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentDeletedPullRequestHeadRepo.g.verified.cs index 3baf5fbff2..46098169d7 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentDeletedPullRequestHeadRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentDeletedPullRequestHeadRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestReviewCommentDeletedPullRequestHea /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestReviewCommentDeletedPullRequestHea /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentEditedPullRequestBaseRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentEditedPullRequestBaseRepo.g.verified.cs index 57071a1c66..512e1ddbdf 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentEditedPullRequestBaseRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentEditedPullRequestBaseRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestReviewCommentEditedPullRequestBase /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestReviewCommentEditedPullRequestBase /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentEditedPullRequestHeadRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentEditedPullRequestHeadRepo.g.verified.cs index 8f7f23a20a..958837a3ef 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentEditedPullRequestHeadRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentEditedPullRequestHeadRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestReviewCommentEditedPullRequestHead /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestReviewCommentEditedPullRequestHead /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewDismissedPullRequestBaseRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewDismissedPullRequestBaseRepo.g.verified.cs index a27dcbc1f5..ccbd42e856 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewDismissedPullRequestBaseRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewDismissedPullRequestBaseRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestReviewDismissedPullRequestBaseRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestReviewDismissedPullRequestBaseRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewDismissedPullRequestHeadRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewDismissedPullRequestHeadRepo.g.verified.cs index 37095e2790..e1c8a0db2a 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewDismissedPullRequestHeadRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewDismissedPullRequestHeadRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestReviewDismissedPullRequestHeadRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestReviewDismissedPullRequestHeadRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewEditedPullRequestBaseRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewEditedPullRequestBaseRepo.g.verified.cs index 086655bb93..32eeeabbd9 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewEditedPullRequestBaseRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewEditedPullRequestBaseRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestReviewEditedPullRequestBaseRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -494,7 +494,7 @@ public sealed partial class WebhookPullRequestReviewEditedPullRequestBaseRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewEditedPullRequestHeadRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewEditedPullRequestHeadRepo.g.verified.cs index 4ee71dd072..dcb5178a12 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewEditedPullRequestHeadRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewEditedPullRequestHeadRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestReviewEditedPullRequestHeadRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -494,7 +494,7 @@ public sealed partial class WebhookPullRequestReviewEditedPullRequestHeadRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant1PullRequestBaseRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant1PullRequestBaseRepo.g.verified.cs index 1d5f6160a5..68f5f4670a 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant1PullRequestBaseRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant1PullRequestBaseRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestReviewRequestRemovedVariant1PullRe /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestReviewRequestRemovedVariant1PullRe /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant1PullRequestHeadRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant1PullRequestHeadRepo.g.verified.cs index ea4c07cdc3..1d875138e6 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant1PullRequestHeadRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant1PullRequestHeadRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestReviewRequestRemovedVariant1PullRe /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestReviewRequestRemovedVariant1PullRe /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant2PullRequestBaseRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant2PullRequestBaseRepo.g.verified.cs index b80299ede5..e07f3f971e 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant2PullRequestBaseRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant2PullRequestBaseRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestReviewRequestRemovedVariant2PullRe /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestReviewRequestRemovedVariant2PullRe /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant2PullRequestHeadRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant2PullRequestHeadRepo.g.verified.cs index 1bb22391a3..d8a1e7b75a 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant2PullRequestHeadRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant2PullRequestHeadRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestReviewRequestRemovedVariant2PullRe /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestReviewRequestRemovedVariant2PullRe /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestedVariant1PullRequestBaseRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestedVariant1PullRequestBaseRepo.g.verified.cs index 54fddd4b7e..130896c08d 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestedVariant1PullRequestBaseRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestedVariant1PullRequestBaseRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestReviewRequestedVariant1PullRequest /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestReviewRequestedVariant1PullRequest /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestedVariant1PullRequestHeadRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestedVariant1PullRequestHeadRepo.g.verified.cs index 6e8d75a2d8..6061d3214d 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestedVariant1PullRequestHeadRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestedVariant1PullRequestHeadRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestReviewRequestedVariant1PullRequest /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestReviewRequestedVariant1PullRequest /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestedVariant2PullRequestBaseRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestedVariant2PullRequestBaseRepo.g.verified.cs index a88efd0756..f03008faf3 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestedVariant2PullRequestBaseRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestedVariant2PullRequestBaseRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestReviewRequestedVariant2PullRequest /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestReviewRequestedVariant2PullRequest /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestedVariant2PullRequestHeadRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestedVariant2PullRequestHeadRepo.g.verified.cs index 3b17194348..3f0dc2bd1b 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestedVariant2PullRequestHeadRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestedVariant2PullRequestHeadRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestReviewRequestedVariant2PullRequest /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestReviewRequestedVariant2PullRequest /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewSubmittedPullRequestBaseRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewSubmittedPullRequestBaseRepo.g.verified.cs index 4faa110f94..6b4946ffcf 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewSubmittedPullRequestBaseRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewSubmittedPullRequestBaseRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestReviewSubmittedPullRequestBaseRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestReviewSubmittedPullRequestBaseRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewSubmittedPullRequestHeadRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewSubmittedPullRequestHeadRepo.g.verified.cs index b33e0c0317..d688d37117 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewSubmittedPullRequestHeadRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewSubmittedPullRequestHeadRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestReviewSubmittedPullRequestHeadRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestReviewSubmittedPullRequestHeadRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewThreadResolvedPullRequestBaseRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewThreadResolvedPullRequestBaseRepo.g.verified.cs index 066d8a9a89..4477f96b05 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewThreadResolvedPullRequestBaseRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewThreadResolvedPullRequestBaseRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestReviewThreadResolvedPullRequestBas /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -503,7 +503,7 @@ public sealed partial class WebhookPullRequestReviewThreadResolvedPullRequestBas /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewThreadResolvedPullRequestHeadRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewThreadResolvedPullRequestHeadRepo.g.verified.cs index d35405e722..f7ee4db071 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewThreadResolvedPullRequestHeadRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewThreadResolvedPullRequestHeadRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestReviewThreadResolvedPullRequestHea /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -503,7 +503,7 @@ public sealed partial class WebhookPullRequestReviewThreadResolvedPullRequestHea /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewThreadUnresolvedPullRequestBaseRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewThreadUnresolvedPullRequestBaseRepo.g.verified.cs index 6c30c537e4..ed96a27e4f 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewThreadUnresolvedPullRequestBaseRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewThreadUnresolvedPullRequestBaseRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestReviewThreadUnresolvedPullRequestB /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -503,7 +503,7 @@ public sealed partial class WebhookPullRequestReviewThreadUnresolvedPullRequestB /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewThreadUnresolvedPullRequestHeadRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewThreadUnresolvedPullRequestHeadRepo.g.verified.cs index f20549002b..253c35bd0c 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewThreadUnresolvedPullRequestHeadRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewThreadUnresolvedPullRequestHeadRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestReviewThreadUnresolvedPullRequestH /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -503,7 +503,7 @@ public sealed partial class WebhookPullRequestReviewThreadUnresolvedPullRequestH /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestSynchronizePullRequestBaseRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestSynchronizePullRequestBaseRepo.g.verified.cs index 56af3488fa..2a4f371f9f 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestSynchronizePullRequestBaseRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestSynchronizePullRequestBaseRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestSynchronizePullRequestBaseRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestSynchronizePullRequestBaseRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestSynchronizePullRequestHeadRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestSynchronizePullRequestHeadRepo.g.verified.cs index 7d0fa8393f..f415fe9b7d 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestSynchronizePullRequestHeadRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestSynchronizePullRequestHeadRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestSynchronizePullRequestHeadRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -517,7 +517,7 @@ public sealed partial class WebhookPullRequestSynchronizePullRequestHeadRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnassignedPullRequestBaseRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnassignedPullRequestBaseRepo.g.verified.cs index 6072c41187..bd42b076f7 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnassignedPullRequestBaseRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnassignedPullRequestBaseRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestUnassignedPullRequestBaseRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestUnassignedPullRequestBaseRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnassignedPullRequestHeadRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnassignedPullRequestHeadRepo.g.verified.cs index d3a0e23ab4..fbc9720190 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnassignedPullRequestHeadRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnassignedPullRequestHeadRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestUnassignedPullRequestHeadRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestUnassignedPullRequestHeadRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnlabeledPullRequestBaseRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnlabeledPullRequestBaseRepo.g.verified.cs index 0857236532..33ce33ac75 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnlabeledPullRequestBaseRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnlabeledPullRequestBaseRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestUnlabeledPullRequestBaseRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestUnlabeledPullRequestBaseRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnlabeledPullRequestHeadRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnlabeledPullRequestHeadRepo.g.verified.cs index 4b6a85df92..b72d17b55c 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnlabeledPullRequestHeadRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnlabeledPullRequestHeadRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestUnlabeledPullRequestHeadRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -517,7 +517,7 @@ public sealed partial class WebhookPullRequestUnlabeledPullRequestHeadRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnlockedPullRequestBaseRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnlockedPullRequestBaseRepo.g.verified.cs index ee43079d12..0a737d6184 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnlockedPullRequestBaseRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnlockedPullRequestBaseRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestUnlockedPullRequestBaseRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestUnlockedPullRequestBaseRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnlockedPullRequestHeadRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnlockedPullRequestHeadRepo.g.verified.cs index aef08cacfb..2db9d10cf0 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnlockedPullRequestHeadRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnlockedPullRequestHeadRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPullRequestUnlockedPullRequestHeadRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhookPullRequestUnlockedPullRequestHeadRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPushRepository.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPushRepository.g.verified.cs index 0b5ef6eecb..79b62b123c 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPushRepository.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPushRepository.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookPushRepository /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -509,7 +509,7 @@ public sealed partial class WebhookPushRepository /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRegistryPackagePublishedRegistryPackagePackageVersion.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRegistryPackagePublishedRegistryPackagePackageVersion.g.verified.cs index 3ce1a53cba..327e7366f8 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRegistryPackagePublishedRegistryPackagePackageVersion.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRegistryPackagePublishedRegistryPackagePackageVersion.g.verified.cs @@ -21,7 +21,7 @@ public sealed partial class WebhookRegistryPackagePublishedRegistryPackagePackag /// /// [global::System.Text.Json.Serialization.JsonPropertyName("body")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? Body { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRegistryPackagePublishedRegistryPackagePackageVersionNpmMetadata.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRegistryPackagePublishedRegistryPackagePackageVersionNpmMetadata.g.verified.cs index cf21021750..a88f98ba45 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRegistryPackagePublishedRegistryPackagePackageVersionNpmMetadata.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRegistryPackagePublishedRegistryPackagePackageVersionNpmMetadata.g.verified.cs @@ -33,14 +33,14 @@ public sealed partial class WebhookRegistryPackagePublishedRegistryPackagePackag /// /// [global::System.Text.Json.Serialization.JsonPropertyName("author")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? Author { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("bugs")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? Bugs { get; set; } /// @@ -77,7 +77,7 @@ public sealed partial class WebhookRegistryPackagePublishedRegistryPackagePackag /// /// [global::System.Text.Json.Serialization.JsonPropertyName("dist")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? Dist { get; set; } /// @@ -108,7 +108,7 @@ public sealed partial class WebhookRegistryPackagePublishedRegistryPackagePackag /// /// [global::System.Text.Json.Serialization.JsonPropertyName("repository")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? Repository { get; set; } /// @@ -187,7 +187,7 @@ public sealed partial class WebhookRegistryPackagePublishedRegistryPackagePackag /// /// [global::System.Text.Json.Serialization.JsonPropertyName("directories")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? Directories { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRegistryPackagePublishedRegistryPackagePackageVersionNugetMetadataItem.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRegistryPackagePublishedRegistryPackagePackageVersionNugetMetadataItem.g.verified.cs index 77efa93956..392d121397 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRegistryPackagePublishedRegistryPackagePackageVersionNugetMetadataItem.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRegistryPackagePublishedRegistryPackagePackageVersionNugetMetadataItem.g.verified.cs @@ -15,7 +15,7 @@ public sealed partial class WebhookRegistryPackagePublishedRegistryPackagePackag /// /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory3))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? Id { get; set; } /// @@ -28,7 +28,7 @@ public sealed partial class WebhookRegistryPackagePublishedRegistryPackagePackag /// /// [global::System.Text.Json.Serialization.JsonPropertyName("value")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory4))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? Value { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookStatusCommitCommit.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookStatusCommitCommit.g.verified.cs index 4128957c2c..e588ac7b78 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookStatusCommitCommit.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookStatusCommitCommit.g.verified.cs @@ -15,7 +15,7 @@ public sealed partial class WebhookStatusCommitCommit /// /// [global::System.Text.Json.Serialization.JsonPropertyName("author")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AllOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AllOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AllOf Author { get; set; } @@ -30,7 +30,7 @@ public sealed partial class WebhookStatusCommitCommit /// /// [global::System.Text.Json.Serialization.JsonPropertyName("committer")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AllOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AllOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AllOf Committer { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamAddedToRepositoryRepository.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamAddedToRepositoryRepository.g.verified.cs index 202525507e..6c51dac3e5 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamAddedToRepositoryRepository.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamAddedToRepositoryRepository.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookTeamAddedToRepositoryRepository /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -500,7 +500,7 @@ public sealed partial class WebhookTeamAddedToRepositoryRepository /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamCreatedRepository.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamCreatedRepository.g.verified.cs index 21191bdf28..a1d3fbd47d 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamCreatedRepository.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamCreatedRepository.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookTeamCreatedRepository /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -500,7 +500,7 @@ public sealed partial class WebhookTeamCreatedRepository /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamDeletedRepository.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamDeletedRepository.g.verified.cs index 2bf1be1c57..ee3e1ff2d4 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamDeletedRepository.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamDeletedRepository.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookTeamDeletedRepository /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -500,7 +500,7 @@ public sealed partial class WebhookTeamDeletedRepository /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamEditedRepository.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamEditedRepository.g.verified.cs index fb7efbfbf2..f1bd3b045d 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamEditedRepository.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamEditedRepository.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookTeamEditedRepository /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -500,7 +500,7 @@ public sealed partial class WebhookTeamEditedRepository /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamRemovedFromRepositoryRepository.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamRemovedFromRepositoryRepository.g.verified.cs index 815872f319..026686a2d6 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamRemovedFromRepositoryRepository.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamRemovedFromRepositoryRepository.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhookTeamRemovedFromRepositoryRepository /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -500,7 +500,7 @@ public sealed partial class WebhookTeamRemovedFromRepositoryRepository /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowJobCompleted.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowJobCompleted.g.verified.cs index e982dd5a31..f35b2697f4 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowJobCompleted.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowJobCompleted.g.verified.cs @@ -60,7 +60,7 @@ public sealed partial class WebhookWorkflowJobCompleted /// /// [global::System.Text.Json.Serialization.JsonPropertyName("workflow_job")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AllOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AllOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AllOf WorkflowJob { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowJobInProgress.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowJobInProgress.g.verified.cs index a0a49f031f..a31f604f41 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowJobInProgress.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowJobInProgress.g.verified.cs @@ -60,7 +60,7 @@ public sealed partial class WebhookWorkflowJobInProgress /// /// [global::System.Text.Json.Serialization.JsonPropertyName("workflow_job")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AllOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AllOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AllOf WorkflowJob { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhooksPullRequest5BaseRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhooksPullRequest5BaseRepo.g.verified.cs index 4f6b087026..e8104877c3 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhooksPullRequest5BaseRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhooksPullRequest5BaseRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhooksPullRequest5BaseRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhooksPullRequest5BaseRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhooksPullRequest5HeadRepo.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhooksPullRequest5HeadRepo.g.verified.cs index 0c409e6e73..d0be65043b 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhooksPullRequest5HeadRepo.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhooksPullRequest5HeadRepo.g.verified.cs @@ -141,7 +141,7 @@ public sealed partial class WebhooksPullRequest5HeadRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf CreatedAt { get; set; } @@ -522,7 +522,7 @@ public sealed partial class WebhooksPullRequest5HeadRepo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pushed_at")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf? PushedAt { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.AllOfFactory2.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.AllOfFactory2.g.verified.cs deleted file mode 100644 index fc5a454d6f..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.AllOfFactory2.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.AllOfFactory2.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class AllOfJsonConverterFactory2 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.AllOf<,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(AllOfJsonConverter<,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs deleted file mode 100644 index f9c99bb843..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.AnyOfFactory2.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class AnyOfJsonConverterFactory2 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.AnyOf<,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(AnyOfJsonConverter<,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.AnyOfFactory3.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.AnyOfFactory3.g.verified.cs deleted file mode 100644 index 29dabb78d9..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.AnyOfFactory3.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.AnyOfFactory3.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class AnyOfJsonConverterFactory3 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.AnyOf<,,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(AnyOfJsonConverter<,,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.OneOfFactory13.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.OneOfFactory13.g.verified.cs deleted file mode 100644 index 53ccdf6833..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.OneOfFactory13.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.OneOfFactory13.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class OneOfJsonConverterFactory13 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.OneOf<,,,,,,,,,,,,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(OneOfJsonConverter<,,,,,,,,,,,,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs deleted file mode 100644 index c4dd3d03e3..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.OneOfFactory2.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class OneOfJsonConverterFactory2 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.OneOf<,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(OneOfJsonConverter<,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.OneOfFactory3.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.OneOfFactory3.g.verified.cs deleted file mode 100644 index ddc6fc72a9..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.OneOfFactory3.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.OneOfFactory3.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class OneOfJsonConverterFactory3 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.OneOf<,,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(OneOfJsonConverter<,,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.OneOfFactory4.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.OneOfFactory4.g.verified.cs deleted file mode 100644 index 6780854101..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.OneOfFactory4.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.OneOfFactory4.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class OneOfJsonConverterFactory4 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.OneOf<,,,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(OneOfJsonConverter<,,,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.OneOfFactory5.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.OneOfFactory5.g.verified.cs deleted file mode 100644 index 439eadd9a9..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonConverters.OneOfFactory5.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.OneOfFactory5.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class OneOfJsonConverterFactory5 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.OneOf<,,,,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(OneOfJsonConverter<,,,,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs index acc0b66b74..8b31b53d7b 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs @@ -5574,23 +5574,264 @@ internal sealed partial class JsonSerializerContextConverters typeof(global::G.JsonConverters.ReposGetContentResponseDiscriminatorTypeJsonConverter), typeof(global::G.JsonConverters.ReposGetContentResponseDiscriminatorTypeNullableJsonConverter), typeof(global::G.JsonConverters.WebhookConfigInsecureSslJsonConverter), - typeof(global::G.JsonConverters.OneOfJsonConverterFactory3), - typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2), - typeof(global::G.JsonConverters.OneOfJsonConverterFactory2), typeof(global::G.JsonConverters.OrgRulesetConditionsJsonConverter), - typeof(global::G.JsonConverters.AllOfJsonConverterFactory2), typeof(global::G.JsonConverters.RepositoryRuleJsonConverter), - typeof(global::G.JsonConverters.AnyOfJsonConverterFactory3), typeof(global::G.JsonConverters.IssueEventForIssueJsonConverter), typeof(global::G.JsonConverters.TimelineIssueEventsJsonConverter), typeof(global::G.JsonConverters.RepositoryRuleDetailedJsonConverter), - typeof(global::G.JsonConverters.OneOfJsonConverterFactory13), typeof(global::G.JsonConverters.PullRequestWebhookJsonConverter), - typeof(global::G.JsonConverters.OneOfJsonConverterFactory4), typeof(global::G.JsonConverters.WebhookPullRequestReviewRequestRemovedJsonConverter), typeof(global::G.JsonConverters.WebhookPullRequestReviewRequestedJsonConverter), - typeof(global::G.JsonConverters.OneOfJsonConverterFactory5), typeof(global::G.JsonConverters.ReposGetContentResponseJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter>), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter>), + typeof(global::G.JsonConverters.OneOfJsonConverter>), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter>), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter>), + typeof(global::G.JsonConverters.OneOfJsonConverter>), + typeof(global::G.JsonConverters.OneOfJsonConverter>), + typeof(global::G.JsonConverters.OneOfJsonConverter>), + typeof(global::G.JsonConverters.OneOfJsonConverter>), + typeof(global::G.JsonConverters.OneOfJsonConverter>), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter, global::G.IssuesAddLabelsRequestVariant3, global::System.Collections.Generic.IList, string>), + typeof(global::G.JsonConverters.OneOfJsonConverter, global::G.IssuesSetLabelsRequestVariant3, global::System.Collections.Generic.IList, string>), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter, string>), + typeof(global::G.JsonConverters.OneOfJsonConverter, string>), + typeof(global::G.JsonConverters.OneOfJsonConverter>), + typeof(global::G.JsonConverters.OneOfJsonConverter>), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList>), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList>), }; } } \ No newline at end of file diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/HuggingFace/SystemTextJson/_#G.Api.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/HuggingFace/SystemTextJson/_#G.Api.g.verified.cs index b513682618..c1f32f75b1 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/HuggingFace/SystemTextJson/_#G.Api.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/HuggingFace/SystemTextJson/_#G.Api.g.verified.cs @@ -41,7 +41,7 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, Converters = { - new global::G.JsonConverters.AnyOfJsonConverterFactory2(), + new global::G.JsonConverters.AnyOfJsonConverter>(), } }; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/HuggingFace/SystemTextJson/_#G.Models.ErrorResponse.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/HuggingFace/SystemTextJson/_#G.Models.ErrorResponse.g.verified.cs index e6fce4311a..7cc1d26e1c 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/HuggingFace/SystemTextJson/_#G.Models.ErrorResponse.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/HuggingFace/SystemTextJson/_#G.Models.ErrorResponse.g.verified.cs @@ -15,7 +15,7 @@ public sealed partial class ErrorResponse /// /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter>))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf> Error { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/HuggingFace/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/HuggingFace/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs deleted file mode 100644 index f9c99bb843..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/HuggingFace/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.AnyOfFactory2.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class AnyOfJsonConverterFactory2 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.AnyOf<,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(AnyOfJsonConverter<,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/HuggingFace/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/HuggingFace/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs index 223591718c..0e31e62a3e 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/HuggingFace/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/HuggingFace/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs @@ -11,7 +11,7 @@ internal sealed partial class JsonSerializerContextConverters { private readonly global::System.Type[] _types = new global::System.Type[] { - typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2), + typeof(global::G.JsonConverters.AnyOfJsonConverter>), }; } } \ No newline at end of file diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Api.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Api.g.verified.cs index b024e9c151..ed1f3a3d5f 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Api.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Api.g.verified.cs @@ -146,12 +146,73 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable new global::G.JsonConverters.ListRepoTagsApiV1ReposTagsGetIsArchivedNullableJsonConverter(), new global::G.JsonConverters.ListRepoTagsApiV1ReposTagsGetIsPublicJsonConverter(), new global::G.JsonConverters.ListRepoTagsApiV1ReposTagsGetIsPublicNullableJsonConverter(), - new global::G.JsonConverters.AnyOfJsonConverterFactory2(), - new global::G.JsonConverters.AnyOfJsonConverterFactory3(), - new global::G.JsonConverters.AnyOfJsonConverterFactory5(), - new global::G.JsonConverters.AnyOfJsonConverterFactory4(), new global::G.JsonConverters.EntitiesItemJsonConverter(), - new global::G.JsonConverters.OneOfJsonConverterFactory2(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter, global::G.Missing>(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter, string>(), + new global::G.JsonConverters.AnyOfJsonConverter, string>(), + new global::G.JsonConverters.AnyOfJsonConverter, string>(), + new global::G.JsonConverters.AnyOfJsonConverter, string>(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter, object>(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter>(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter, global::G.DataType?>(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList>(), + new global::G.JsonConverters.AnyOfJsonConverter>(), + new global::G.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList>(), } }; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.BatchIngestRunsRequestPatchItem.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.BatchIngestRunsRequestPatchItem.g.verified.cs index c990a3ea9f..7092b8d31e 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.BatchIngestRunsRequestPatchItem.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.BatchIngestRunsRequestPatchItem.g.verified.cs @@ -35,7 +35,7 @@ public sealed partial class BatchIngestRunsRequestPatchItem /// /// [global::System.Text.Json.Serialization.JsonPropertyName("end_time")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf EndTime { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.BatchIngestRunsRequestPostItem.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.BatchIngestRunsRequestPostItem.g.verified.cs index 924aec8b0d..bd58a43f00 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.BatchIngestRunsRequestPostItem.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.BatchIngestRunsRequestPostItem.g.verified.cs @@ -36,7 +36,7 @@ public sealed partial class BatchIngestRunsRequestPostItem /// /// [global::System.Text.Json.Serialization.JsonPropertyName("start_time")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf StartTime { get; set; } @@ -44,7 +44,7 @@ public sealed partial class BatchIngestRunsRequestPostItem /// /// [global::System.Text.Json.Serialization.JsonPropertyName("end_time")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? EndTime { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.CreateRunRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.CreateRunRequest.g.verified.cs index d66d390fb6..aa938a1fb6 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.CreateRunRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.CreateRunRequest.g.verified.cs @@ -36,14 +36,14 @@ public sealed partial class CreateRunRequest /// /// [global::System.Text.Json.Serialization.JsonPropertyName("start_time")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? StartTime { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("end_time")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? EndTime { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.CustomChartUpdate.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.CustomChartUpdate.g.verified.cs index 765e8f47e0..91ca2fdafa 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.CustomChartUpdate.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.CustomChartUpdate.g.verified.cs @@ -15,56 +15,56 @@ public sealed partial class CustomChartUpdate /// /// [global::System.Text.Json.Serialization.JsonPropertyName("title")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Title { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("description")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Description { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("index")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Index { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("chart_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? ChartType { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("series")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter, global::G.Missing>))] public global::G.AnyOf, global::G.Missing>? Series { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("section_id")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? SectionId { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Metadata { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("common_filters")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? CommonFilters { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.CustomChartsDataPoint.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.CustomChartsDataPoint.g.verified.cs index f5ca8c2c52..cd358f7354 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.CustomChartsDataPoint.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.CustomChartsDataPoint.g.verified.cs @@ -29,7 +29,7 @@ public sealed partial class CustomChartsDataPoint /// /// [global::System.Text.Json.Serialization.JsonPropertyName("value")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory3))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf? Value { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.CustomChartsSectionUpdate.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.CustomChartsSectionUpdate.g.verified.cs index 635510dec4..2d13354f33 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.CustomChartsSectionUpdate.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.CustomChartsSectionUpdate.g.verified.cs @@ -15,21 +15,21 @@ public sealed partial class CustomChartsSectionUpdate /// /// [global::System.Text.Json.Serialization.JsonPropertyName("title")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Title { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("description")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Description { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("index")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Index { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.DatasetUpdate.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.DatasetUpdate.g.verified.cs index 92f3a0f891..1bd1cfd7dd 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.DatasetUpdate.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.DatasetUpdate.g.verified.cs @@ -15,28 +15,28 @@ public sealed partial class DatasetUpdate /// /// [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Name { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("description")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Description { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("inputs_schema_definition")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? InputsSchemaDefinition { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("outputs_schema_definition")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? OutputsSchemaDefinition { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.ExampleBulkCreate.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.ExampleBulkCreate.g.verified.cs index 7d44ed61c2..ffab52dc2c 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.ExampleBulkCreate.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.ExampleBulkCreate.g.verified.cs @@ -46,7 +46,7 @@ public sealed partial class ExampleBulkCreate /// Default Value: base /// [global::System.Text.Json.Serialization.JsonPropertyName("split")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter, string>))] public global::G.AnyOf, string>? Split { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.ExampleCreate.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.ExampleCreate.g.verified.cs index 67f6ffcdfc..66f9e6250e 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.ExampleCreate.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.ExampleCreate.g.verified.cs @@ -46,7 +46,7 @@ public sealed partial class ExampleCreate /// Default Value: base /// [global::System.Text.Json.Serialization.JsonPropertyName("split")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter, string>))] public global::G.AnyOf, string>? Split { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.ExampleUpdate.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.ExampleUpdate.g.verified.cs index a78b610225..b0cebea093 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.ExampleUpdate.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.ExampleUpdate.g.verified.cs @@ -39,7 +39,7 @@ public sealed partial class ExampleUpdate /// /// [global::System.Text.Json.Serialization.JsonPropertyName("split")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter, string>))] public global::G.AnyOf, string>? Split { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.ExampleUpdateWithID.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.ExampleUpdateWithID.g.verified.cs index a6054bb4cf..13d65d7a7d 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.ExampleUpdateWithID.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.ExampleUpdateWithID.g.verified.cs @@ -39,7 +39,7 @@ public sealed partial class ExampleUpdateWithID /// /// [global::System.Text.Json.Serialization.JsonPropertyName("split")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter, string>))] public global::G.AnyOf, string>? Split { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.FeedbackCreateCoreSchema.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.FeedbackCreateCoreSchema.g.verified.cs index c097bab6db..d5b6fd9110 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.FeedbackCreateCoreSchema.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.FeedbackCreateCoreSchema.g.verified.cs @@ -34,14 +34,14 @@ public sealed partial class FeedbackCreateCoreSchema /// /// [global::System.Text.Json.Serialization.JsonPropertyName("score")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory3))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Score { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("value")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory5))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Value { get; set; } /// @@ -54,7 +54,7 @@ public sealed partial class FeedbackCreateCoreSchema /// /// [global::System.Text.Json.Serialization.JsonPropertyName("correction")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Correction { get; set; } /// @@ -79,7 +79,7 @@ public sealed partial class FeedbackCreateCoreSchema /// /// [global::System.Text.Json.Serialization.JsonPropertyName("feedback_source")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory4))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? FeedbackSource { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.FeedbackCreateSchema.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.FeedbackCreateSchema.g.verified.cs index ec8c3a49a1..0ee2b1c3a4 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.FeedbackCreateSchema.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.FeedbackCreateSchema.g.verified.cs @@ -34,14 +34,14 @@ public sealed partial class FeedbackCreateSchema /// /// [global::System.Text.Json.Serialization.JsonPropertyName("score")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory3))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Score { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("value")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory5))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Value { get; set; } /// @@ -54,7 +54,7 @@ public sealed partial class FeedbackCreateSchema /// /// [global::System.Text.Json.Serialization.JsonPropertyName("correction")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Correction { get; set; } /// @@ -91,7 +91,7 @@ public sealed partial class FeedbackCreateSchema /// /// [global::System.Text.Json.Serialization.JsonPropertyName("feedback_source")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory4))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? FeedbackSource { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.FeedbackCreateWithTokenExtendedSchema.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.FeedbackCreateWithTokenExtendedSchema.g.verified.cs index 7211988f03..57f52d4a4c 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.FeedbackCreateWithTokenExtendedSchema.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.FeedbackCreateWithTokenExtendedSchema.g.verified.cs @@ -15,14 +15,14 @@ public sealed partial class FeedbackCreateWithTokenExtendedSchema /// /// [global::System.Text.Json.Serialization.JsonPropertyName("score")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory3))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Score { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("value")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory4))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Value { get; set; } /// @@ -35,7 +35,7 @@ public sealed partial class FeedbackCreateWithTokenExtendedSchema /// /// [global::System.Text.Json.Serialization.JsonPropertyName("correction")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Correction { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.FeedbackSchema.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.FeedbackSchema.g.verified.cs index 08b10434c9..f2d260f6e2 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.FeedbackSchema.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.FeedbackSchema.g.verified.cs @@ -34,14 +34,14 @@ public sealed partial class FeedbackSchema /// /// [global::System.Text.Json.Serialization.JsonPropertyName("score")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory3))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Score { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("value")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory5))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Value { get; set; } /// @@ -54,7 +54,7 @@ public sealed partial class FeedbackSchema /// /// [global::System.Text.Json.Serialization.JsonPropertyName("correction")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Correction { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.FeedbackUpdateSchema.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.FeedbackUpdateSchema.g.verified.cs index c88641c5f6..efe2e9c649 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.FeedbackUpdateSchema.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.FeedbackUpdateSchema.g.verified.cs @@ -15,14 +15,14 @@ public sealed partial class FeedbackUpdateSchema /// /// [global::System.Text.Json.Serialization.JsonPropertyName("score")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory3))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Score { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("value")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory5))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Value { get; set; } /// @@ -35,7 +35,7 @@ public sealed partial class FeedbackUpdateSchema /// /// [global::System.Text.Json.Serialization.JsonPropertyName("correction")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Correction { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.ModelPriceMapCreateSchema.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.ModelPriceMapCreateSchema.g.verified.cs index a87ec550d4..9320c8ea6f 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.ModelPriceMapCreateSchema.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.ModelPriceMapCreateSchema.g.verified.cs @@ -41,7 +41,7 @@ public sealed partial class ModelPriceMapCreateSchema /// /// [global::System.Text.Json.Serialization.JsonPropertyName("prompt_cost")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf PromptCost { get; set; } @@ -49,7 +49,7 @@ public sealed partial class ModelPriceMapCreateSchema /// /// [global::System.Text.Json.Serialization.JsonPropertyName("completion_cost")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf CompletionCost { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.ModelPriceMapUpdateSchema.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.ModelPriceMapUpdateSchema.g.verified.cs index 8861a2ab7a..add8b7d9ad 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.ModelPriceMapUpdateSchema.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.ModelPriceMapUpdateSchema.g.verified.cs @@ -41,7 +41,7 @@ public sealed partial class ModelPriceMapUpdateSchema /// /// [global::System.Text.Json.Serialization.JsonPropertyName("prompt_cost")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf PromptCost { get; set; } @@ -49,7 +49,7 @@ public sealed partial class ModelPriceMapUpdateSchema /// /// [global::System.Text.Json.Serialization.JsonPropertyName("completion_cost")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf CompletionCost { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.PutDatasetVersionsSchema.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.PutDatasetVersionsSchema.g.verified.cs index 9c94a80196..b29dfb1fcc 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.PutDatasetVersionsSchema.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.PutDatasetVersionsSchema.g.verified.cs @@ -15,7 +15,7 @@ public sealed partial class PutDatasetVersionsSchema /// Only modifications made on or before this time are included. If None, the latest version of the dataset is used. /// [global::System.Text.Json.Serialization.JsonPropertyName("as_of")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf AsOf { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.RunnableConfig.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.RunnableConfig.g.verified.cs index 4b5e6c8f47..36b8aa7673 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.RunnableConfig.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.RunnableConfig.g.verified.cs @@ -27,7 +27,7 @@ public sealed partial class RunnableConfig /// /// [global::System.Text.Json.Serialization.JsonPropertyName("callbacks")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter, object>))] public global::G.AnyOf, object>? Callbacks { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.UpdateRunRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.UpdateRunRequest.g.verified.cs index 5ca3076d04..5e056aa357 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.UpdateRunRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.Models.UpdateRunRequest.g.verified.cs @@ -33,7 +33,7 @@ public sealed partial class UpdateRunRequest /// /// [global::System.Text.Json.Serialization.JsonPropertyName("end_time")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? EndTime { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs deleted file mode 100644 index f9c99bb843..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.AnyOfFactory2.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class AnyOfJsonConverterFactory2 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.AnyOf<,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(AnyOfJsonConverter<,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#JsonConverters.AnyOfFactory3.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#JsonConverters.AnyOfFactory3.g.verified.cs deleted file mode 100644 index 29dabb78d9..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#JsonConverters.AnyOfFactory3.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.AnyOfFactory3.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class AnyOfJsonConverterFactory3 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.AnyOf<,,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(AnyOfJsonConverter<,,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#JsonConverters.AnyOfFactory4.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#JsonConverters.AnyOfFactory4.g.verified.cs deleted file mode 100644 index c1e52ef7a7..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#JsonConverters.AnyOfFactory4.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.AnyOfFactory4.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class AnyOfJsonConverterFactory4 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.AnyOf<,,,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(AnyOfJsonConverter<,,,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#JsonConverters.AnyOfFactory5.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#JsonConverters.AnyOfFactory5.g.verified.cs deleted file mode 100644 index fd3ca73733..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#JsonConverters.AnyOfFactory5.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.AnyOfFactory5.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class AnyOfJsonConverterFactory5 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.AnyOf<,,,,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(AnyOfJsonConverter<,,,,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs deleted file mode 100644 index c4dd3d03e3..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.OneOfFactory2.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class OneOfJsonConverterFactory2 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.OneOf<,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(OneOfJsonConverter<,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs index dde0a0afb1..8d0becaf05 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs @@ -117,12 +117,73 @@ internal sealed partial class JsonSerializerContextConverters typeof(global::G.JsonConverters.ListRepoTagsApiV1ReposTagsGetIsArchivedNullableJsonConverter), typeof(global::G.JsonConverters.ListRepoTagsApiV1ReposTagsGetIsPublicJsonConverter), typeof(global::G.JsonConverters.ListRepoTagsApiV1ReposTagsGetIsPublicNullableJsonConverter), - typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2), - typeof(global::G.JsonConverters.AnyOfJsonConverterFactory3), - typeof(global::G.JsonConverters.AnyOfJsonConverterFactory5), - typeof(global::G.JsonConverters.AnyOfJsonConverterFactory4), typeof(global::G.JsonConverters.EntitiesItemJsonConverter), - typeof(global::G.JsonConverters.OneOfJsonConverterFactory2), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter, global::G.Missing>), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter, string>), + typeof(global::G.JsonConverters.AnyOfJsonConverter, string>), + typeof(global::G.JsonConverters.AnyOfJsonConverter, string>), + typeof(global::G.JsonConverters.AnyOfJsonConverter, string>), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter, object>), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter>), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter, global::G.DataType?>), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList>), + typeof(global::G.JsonConverters.AnyOfJsonConverter>), + typeof(global::G.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList>), }; } } \ No newline at end of file diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#G.Api.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#G.Api.g.verified.cs index 65ede09039..252a8b927a 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#G.Api.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#G.Api.g.verified.cs @@ -58,8 +58,9 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable new global::G.JsonConverters.OrderByNullableJsonConverter(), new global::G.JsonConverters.ScalingConfigTypeJsonConverter(), new global::G.JsonConverters.ScalingConfigTypeNullableJsonConverter(), - new global::G.JsonConverters.AnyOfJsonConverterFactory2(), - new global::G.JsonConverters.AllOfJsonConverterFactory1(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), } }; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#JsonConverters.AllOfFactory1.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#JsonConverters.AllOfFactory1.g.verified.cs deleted file mode 100644 index 4a2f8b96bd..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#JsonConverters.AllOfFactory1.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.AllOfFactory1.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class AllOfJsonConverterFactory1 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.AllOf<>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(AllOfJsonConverter<>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs deleted file mode 100644 index f9c99bb843..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.AnyOfFactory2.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class AnyOfJsonConverterFactory2 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.AnyOf<,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(AnyOfJsonConverter<,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs index 7f4117eb5d..6a4f0668aa 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs @@ -29,8 +29,9 @@ internal sealed partial class JsonSerializerContextConverters typeof(global::G.JsonConverters.OrderByNullableJsonConverter), typeof(global::G.JsonConverters.ScalingConfigTypeJsonConverter), typeof(global::G.JsonConverters.ScalingConfigTypeNullableJsonConverter), - typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2), - typeof(global::G.JsonConverters.AllOfJsonConverterFactory1), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), }; } } \ No newline at end of file diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.g.verified.cs index 3d3b3cd9f4..ee662658a3 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Api.g.verified.cs @@ -58,7 +58,7 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable new global::G.JsonConverters.DoneReasonJsonConverter(), new global::G.JsonConverters.CreateModelStatusJsonConverter(), new global::G.JsonConverters.PullModelStatusJsonConverter(), - new global::G.JsonConverters.AnyOfJsonConverterFactory2(), + new global::G.JsonConverters.AnyOfJsonConverter(), } }; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Models.PushModelResponse.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Models.PushModelResponse.g.verified.cs index b8f521a7dd..c1d31bec8e 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Models.PushModelResponse.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#G.Models.PushModelResponse.g.verified.cs @@ -15,7 +15,7 @@ public sealed partial class PushModelResponse /// Status pushing the model. /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Status { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs deleted file mode 100644 index f9c99bb843..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.AnyOfFactory2.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class AnyOfJsonConverterFactory2 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.AnyOf<,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(AnyOfJsonConverter<,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs index de6d8efd3b..973fc2e39d 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Ollama/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs @@ -28,7 +28,7 @@ internal sealed partial class JsonSerializerContextConverters typeof(global::G.JsonConverters.DoneReasonJsonConverter), typeof(global::G.JsonConverters.CreateModelStatusJsonConverter), typeof(global::G.JsonConverters.PullModelStatusJsonConverter), - typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2), + typeof(global::G.JsonConverters.AnyOfJsonConverter), }; } } \ No newline at end of file diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestAssistantMessage.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestAssistantMessage.g.verified.cs index 64fee97c1d..2aef94a536 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestAssistantMessage.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestAssistantMessage.g.verified.cs @@ -15,7 +15,7 @@ public sealed partial class ChatCompletionRequestAssistantMessage /// The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified. /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter>))] public global::G.OneOf>? Content { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestSystemMessage.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestSystemMessage.g.verified.cs index ca07ccee2c..ef3f9c1341 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestSystemMessage.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestSystemMessage.g.verified.cs @@ -15,7 +15,7 @@ public sealed partial class ChatCompletionRequestSystemMessage /// The contents of the system message. /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter>))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf> Content { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestToolMessage.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestToolMessage.g.verified.cs index 6602e80362..2b7d58bcf2 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestToolMessage.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestToolMessage.g.verified.cs @@ -22,7 +22,7 @@ public sealed partial class ChatCompletionRequestToolMessage /// The contents of the tool message. /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter>))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf> Content { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestUserMessage.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestUserMessage.g.verified.cs index 8ee00c271d..7747c2499e 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestUserMessage.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestUserMessage.g.verified.cs @@ -15,7 +15,7 @@ public sealed partial class ChatCompletionRequestUserMessage /// The contents of the user message. /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter>))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf> Content { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateAssistantRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateAssistantRequest.g.verified.cs index 99a8bc0303..4228101e11 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateAssistantRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateAssistantRequest.g.verified.cs @@ -17,7 +17,7 @@ public sealed partial class CreateAssistantRequest /// /// gpt-4o [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf Model { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateChatCompletionRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateChatCompletionRequest.g.verified.cs index 3a9c321c10..1c3ed2ff09 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateChatCompletionRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateChatCompletionRequest.g.verified.cs @@ -24,7 +24,7 @@ public sealed partial class CreateChatCompletionRequest /// /// gpt-4o [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf Model { get; set; } @@ -113,7 +113,7 @@ public sealed partial class CreateChatCompletionRequest /// Up to 4 sequences where the API will stop generating further tokens. /// [global::System.Text.Json.Serialization.JsonPropertyName("stop")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter>))] public global::G.OneOf>? Stop { get; set; } /// @@ -190,7 +190,7 @@ public sealed partial class CreateChatCompletionRequest /// `none` is the default when no functions are present. `auto` is the default if functions are present. /// [global::System.Text.Json.Serialization.JsonPropertyName("function_call")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? FunctionCall { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateCompletionRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateCompletionRequest.g.verified.cs index 9812df37c7..5df55f127a 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateCompletionRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateCompletionRequest.g.verified.cs @@ -15,7 +15,7 @@ public sealed partial class CreateCompletionRequest /// ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models/overview) for descriptions of them. /// [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf Model { get; set; } @@ -25,7 +25,7 @@ public sealed partial class CreateCompletionRequest /// Default Value: <|endoftext|> /// [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory4))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>? Prompt { get; set; } @@ -107,7 +107,7 @@ public sealed partial class CreateCompletionRequest /// Up to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence. /// [global::System.Text.Json.Serialization.JsonPropertyName("stop")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter>))] public global::G.OneOf>? Stop { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateEmbeddingRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateEmbeddingRequest.g.verified.cs index dded7e61ac..3eab56c05d 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateEmbeddingRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateEmbeddingRequest.g.verified.cs @@ -17,7 +17,7 @@ public sealed partial class CreateEmbeddingRequest /// /// The quick brown fox jumped over the lazy dog [global::System.Text.Json.Serialization.JsonPropertyName("input")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory4))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>> Input { get; set; } @@ -27,7 +27,7 @@ public sealed partial class CreateEmbeddingRequest /// /// text-embedding-3-small [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf Model { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateFineTuningJobRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateFineTuningJobRequest.g.verified.cs index 2e51bd0c24..e2dac63f58 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateFineTuningJobRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateFineTuningJobRequest.g.verified.cs @@ -18,7 +18,7 @@ public sealed partial class CreateFineTuningJobRequest /// /// gpt-4o-mini [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf Model { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateFineTuningJobRequestHyperparameters.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateFineTuningJobRequestHyperparameters.g.verified.cs index 4e140f6b43..406ea90da8 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateFineTuningJobRequestHyperparameters.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateFineTuningJobRequestHyperparameters.g.verified.cs @@ -17,7 +17,7 @@ public sealed partial class CreateFineTuningJobRequestHyperparameters /// Default Value: auto /// [global::System.Text.Json.Serialization.JsonPropertyName("batch_size")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? BatchSize { get; set; } /// @@ -26,7 +26,7 @@ public sealed partial class CreateFineTuningJobRequestHyperparameters /// Default Value: auto /// [global::System.Text.Json.Serialization.JsonPropertyName("learning_rate_multiplier")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? LearningRateMultiplier { get; set; } /// @@ -35,7 +35,7 @@ public sealed partial class CreateFineTuningJobRequestHyperparameters /// Default Value: auto /// [global::System.Text.Json.Serialization.JsonPropertyName("n_epochs")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? NEpochs { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateImageEditRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateImageEditRequest.g.verified.cs index a8db86fec2..61301b1ccb 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateImageEditRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateImageEditRequest.g.verified.cs @@ -53,7 +53,7 @@ public sealed partial class CreateImageEditRequest /// /// dall-e-2 [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Model { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateImageRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateImageRequest.g.verified.cs index ba38a5b6a4..d41a34792a 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateImageRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateImageRequest.g.verified.cs @@ -27,7 +27,7 @@ public sealed partial class CreateImageRequest /// /// dall-e-3 [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Model { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateImageVariationRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateImageVariationRequest.g.verified.cs index 9ae51df86d..319e646d54 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateImageVariationRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateImageVariationRequest.g.verified.cs @@ -32,7 +32,7 @@ public sealed partial class CreateImageVariationRequest /// /// dall-e-2 [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Model { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateMessageRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateMessageRequest.g.verified.cs index 5fd0b815ad..ce4a2cdbd5 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateMessageRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateMessageRequest.g.verified.cs @@ -25,7 +25,7 @@ public sealed partial class CreateMessageRequest /// /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter>))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf> Content { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateModerationRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateModerationRequest.g.verified.cs index aee9ecf941..8195f35cc0 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateModerationRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateModerationRequest.g.verified.cs @@ -15,7 +15,7 @@ public sealed partial class CreateModerationRequest /// The input text to classify /// [global::System.Text.Json.Serialization.JsonPropertyName("input")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter>))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf> Input { get; set; } @@ -27,7 +27,7 @@ public sealed partial class CreateModerationRequest /// /// text-moderation-stable [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Model { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateRunRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateRunRequest.g.verified.cs index b723134c2d..797646e43a 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateRunRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateRunRequest.g.verified.cs @@ -24,7 +24,7 @@ public sealed partial class CreateRunRequest /// /// gpt-4o [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Model { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateSpeechRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateSpeechRequest.g.verified.cs index 652a3e5850..5b96df06ff 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateSpeechRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateSpeechRequest.g.verified.cs @@ -15,7 +15,7 @@ public sealed partial class CreateSpeechRequest /// One of the available [TTS models](/docs/models/tts): `tts-1` or `tts-1-hd` /// [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf Model { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateThreadAndRunRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateThreadAndRunRequest.g.verified.cs index 43312285ec..01bcc11dea 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateThreadAndRunRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateThreadAndRunRequest.g.verified.cs @@ -30,7 +30,7 @@ public sealed partial class CreateThreadAndRunRequest /// /// gpt-4o [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Model { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateTranscriptionRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateTranscriptionRequest.g.verified.cs index 83ea214371..0248285722 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateTranscriptionRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateTranscriptionRequest.g.verified.cs @@ -31,7 +31,7 @@ public sealed partial class CreateTranscriptionRequest /// /// whisper-1 [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf Model { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateTranslationRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateTranslationRequest.g.verified.cs index 00fa43ed50..0e1cf94390 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateTranslationRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateTranslationRequest.g.verified.cs @@ -31,7 +31,7 @@ public sealed partial class CreateTranslationRequest /// /// whisper-1 [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf Model { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.FineTuningJobHyperparameters.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.FineTuningJobHyperparameters.g.verified.cs index 3d700add1c..0114d17a75 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.FineTuningJobHyperparameters.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.FineTuningJobHyperparameters.g.verified.cs @@ -18,7 +18,7 @@ public sealed partial class FineTuningJobHyperparameters /// /// global::G.FineTuningJobHyperparametersNEpochs.Auto [global::System.Text.Json.Serialization.JsonPropertyName("n_epochs")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf NEpochs { get; set; } = global::G.FineTuningJobHyperparametersNEpochs.Auto; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs deleted file mode 100644 index f9c99bb843..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.AnyOfFactory2.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class AnyOfJsonConverterFactory2 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.AnyOf<,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(AnyOfJsonConverter<,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#JsonConverters.OneOfFactory1.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#JsonConverters.OneOfFactory1.g.verified.cs deleted file mode 100644 index 6d1b482f23..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#JsonConverters.OneOfFactory1.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.OneOfFactory1.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class OneOfJsonConverterFactory1 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.OneOf<>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(OneOfJsonConverter<>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs deleted file mode 100644 index c4dd3d03e3..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.OneOfFactory2.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class OneOfJsonConverterFactory2 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.OneOf<,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(OneOfJsonConverter<,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#JsonConverters.OneOfFactory4.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#JsonConverters.OneOfFactory4.g.verified.cs deleted file mode 100644 index 6780854101..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#JsonConverters.OneOfFactory4.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.OneOfFactory4.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class OneOfJsonConverterFactory4 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.OneOf<,,,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(OneOfJsonConverter<,,,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#JsonConverters.OneOfFactory5.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#JsonConverters.OneOfFactory5.g.verified.cs deleted file mode 100644 index 439eadd9a9..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#JsonConverters.OneOfFactory5.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.OneOfFactory5.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class OneOfJsonConverterFactory5 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.OneOf<,,,,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(OneOfJsonConverter<,,,,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs index e43da7d076..d0827b2936 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs @@ -553,9 +553,6 @@ internal sealed partial class JsonSerializerContextConverters typeof(global::G.JsonConverters.ListFilesInVectorStoreBatchOrderNullableJsonConverter), typeof(global::G.JsonConverters.ListFilesInVectorStoreBatchFilterJsonConverter), typeof(global::G.JsonConverters.ListFilesInVectorStoreBatchFilterNullableJsonConverter), - typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2), - typeof(global::G.JsonConverters.OneOfJsonConverterFactory4), - typeof(global::G.JsonConverters.OneOfJsonConverterFactory2), typeof(global::G.JsonConverters.ChatCompletionRequestMessageJsonConverter), typeof(global::G.JsonConverters.ChatCompletionRequestSystemMessageContentPartJsonConverter), typeof(global::G.JsonConverters.ChatCompletionRequestUserMessageContentPartJsonConverter), @@ -564,8 +561,6 @@ internal sealed partial class JsonSerializerContextConverters typeof(global::G.JsonConverters.FineTuneChatCompletionRequestAssistantMessageJsonConverter), typeof(global::G.JsonConverters.ChatCompletionToolChoiceOptionJsonConverter), typeof(global::G.JsonConverters.ResponseFormatJsonConverter), - typeof(global::G.JsonConverters.OneOfJsonConverterFactory1), - typeof(global::G.JsonConverters.OneOfJsonConverterFactory5), typeof(global::G.JsonConverters.AssistantsApiResponseFormatOptionJsonConverter), typeof(global::G.JsonConverters.ToolsItemJsonConverter), typeof(global::G.JsonConverters.ToolsItem2JsonConverter), @@ -593,6 +588,39 @@ internal sealed partial class JsonSerializerContextConverters typeof(global::G.JsonConverters.VectorStoreFileObjectChunkingStrategyJsonConverter), typeof(global::G.JsonConverters.ChunkingStrategyRequestParamJsonConverter), typeof(global::G.JsonConverters.AssistantStreamEventJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>), + typeof(global::G.JsonConverters.OneOfJsonConverter>), + typeof(global::G.JsonConverters.OneOfJsonConverter>), + typeof(global::G.JsonConverters.OneOfJsonConverter>), + typeof(global::G.JsonConverters.OneOfJsonConverter>), + typeof(global::G.JsonConverters.OneOfJsonConverter>), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter>), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter>), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter>), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), }; } } \ No newline at end of file diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#G.Api.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#G.Api.g.verified.cs index 29a2004988..32221dc2b7 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#G.Api.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#G.Api.g.verified.cs @@ -114,10 +114,14 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable new global::G.JsonConverters.RerankResponseObjectJsonConverter(), new global::G.JsonConverters.RerankResponseObjectNullableJsonConverter(), new global::G.JsonConverters.ChatCompletionMessageParamJsonConverter(), - new global::G.JsonConverters.OneOfJsonConverterFactory2(), new global::G.JsonConverters.ChatCompletionStreamJsonConverter(), new global::G.JsonConverters.CompletionStreamJsonConverter(), new global::G.JsonConverters.FinetuneResponseTrainingTypeJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter(), + new global::G.JsonConverters.OneOfJsonConverter>(), + new global::G.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList>(), + new global::G.JsonConverters.OneOfJsonConverter(), } }; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#G.Models.ChatCompletionRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#G.Models.ChatCompletionRequest.g.verified.cs index d983d92780..bd4c761ffe 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#G.Models.ChatCompletionRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#G.Models.ChatCompletionRequest.g.verified.cs @@ -27,7 +27,7 @@ public sealed partial class ChatCompletionRequest /// /// [global::System.Text.Json.Serialization.JsonPropertyName("function_call")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? FunctionCall { get; set; } /// @@ -135,7 +135,7 @@ public sealed partial class ChatCompletionRequest /// Controls which (if any) function is called by the model. By default uses `auto`, which lets the model pick between generating a message or calling a function. /// [global::System.Text.Json.Serialization.JsonPropertyName("tool_choice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? ToolChoice { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#G.Models.EmbeddingsRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#G.Models.EmbeddingsRequest.g.verified.cs index c5a99a7d9f..c31719f16c 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#G.Models.EmbeddingsRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#G.Models.EmbeddingsRequest.g.verified.cs @@ -16,7 +16,7 @@ public sealed partial class EmbeddingsRequest /// /// "Our solar system orbits the Milky Way galaxy at about 515,000 mph" [global::System.Text.Json.Serialization.JsonPropertyName("input")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter>))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf> Input { get; set; } = "Our solar system orbits the Milky Way galaxy at about 515,000 mph"; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#G.Models.Request.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#G.Models.Request.g.verified.cs index 4dadc3bb18..8eaaed00bc 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#G.Models.Request.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#G.Models.Request.g.verified.cs @@ -70,7 +70,7 @@ public sealed partial class Request /// /// [global::System.Text.Json.Serialization.JsonPropertyName("training_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter))] public global::G.OneOf? TrainingType { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#G.Models.RerankRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#G.Models.RerankRequest.g.verified.cs index 8f82763404..1baa9f52d0 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#G.Models.RerankRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#G.Models.RerankRequest.g.verified.cs @@ -16,7 +16,7 @@ public sealed partial class RerankRequest /// Default Value: [, , , ] /// [global::System.Text.Json.Serialization.JsonPropertyName("documents")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList>))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.OneOf, global::System.Collections.Generic.IList> Documents { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs deleted file mode 100644 index c4dd3d03e3..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#JsonConverters.OneOfFactory2.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.OneOfFactory2.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class OneOfJsonConverterFactory2 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.OneOf<,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(OneOfJsonConverter<,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs index 858bf57ae2..4c277bbff5 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Together/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs @@ -84,10 +84,14 @@ internal sealed partial class JsonSerializerContextConverters typeof(global::G.JsonConverters.RerankResponseObjectJsonConverter), typeof(global::G.JsonConverters.RerankResponseObjectNullableJsonConverter), typeof(global::G.JsonConverters.ChatCompletionMessageParamJsonConverter), - typeof(global::G.JsonConverters.OneOfJsonConverterFactory2), typeof(global::G.JsonConverters.ChatCompletionStreamJsonConverter), typeof(global::G.JsonConverters.CompletionStreamJsonConverter), typeof(global::G.JsonConverters.FinetuneResponseTrainingTypeJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter), + typeof(global::G.JsonConverters.OneOfJsonConverter>), + typeof(global::G.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList>), + typeof(global::G.JsonConverters.OneOfJsonConverter), }; } } \ No newline at end of file diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.Api.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.Api.g.verified.cs index d322979ad8..cef7f12e2e 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.Api.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.Api.g.verified.cs @@ -113,8 +113,9 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable new global::G.JsonConverters.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetFormatTypeNullableJsonConverter(), new global::G.JsonConverters.GetCharactersUsageMetricsV1UsageCharacterStatsGetBreakdownTypeJsonConverter(), new global::G.JsonConverters.GetCharactersUsageMetricsV1UsageCharacterStatsGetBreakdownTypeNullableJsonConverter(), - new global::G.JsonConverters.AnyOfJsonConverterFactory2(), - new global::G.JsonConverters.AllOfJsonConverterFactory1(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), } }; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#JsonConverters.AllOfFactory1.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#JsonConverters.AllOfFactory1.g.verified.cs deleted file mode 100644 index 4a2f8b96bd..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#JsonConverters.AllOfFactory1.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.AllOfFactory1.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class AllOfJsonConverterFactory1 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.AllOf<>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(AllOfJsonConverter<>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs deleted file mode 100644 index f9c99bb843..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.AnyOfFactory2.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class AnyOfJsonConverterFactory2 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.AnyOf<,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(AnyOfJsonConverter<,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs index cf100dd166..fce8c4b7e6 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs @@ -83,8 +83,9 @@ internal sealed partial class JsonSerializerContextConverters typeof(global::G.JsonConverters.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetFormatTypeNullableJsonConverter), typeof(global::G.JsonConverters.GetCharactersUsageMetricsV1UsageCharacterStatsGetBreakdownTypeJsonConverter), typeof(global::G.JsonConverters.GetCharactersUsageMetricsV1UsageCharacterStatsGetBreakdownTypeNullableJsonConverter), - typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2), - typeof(global::G.JsonConverters.AllOfJsonConverterFactory1), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), }; } } \ No newline at end of file diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Api.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Api.g.verified.cs index 95e184d64a..c1fc9a814b 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Api.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Api.g.verified.cs @@ -65,10 +65,27 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable new global::G.JsonConverters.TextEmbeddingAPIInputEmbeddingTypeItemNullableJsonConverter(), new global::G.JsonConverters.TrainingAPIInputVisibilityJsonConverter(), new global::G.JsonConverters.TrainingAPIInputVisibilityNullableJsonConverter(), - new global::G.JsonConverters.AnyOfJsonConverterFactory4(), - new global::G.JsonConverters.AnyOfJsonConverterFactory3(), - new global::G.JsonConverters.AnyOfJsonConverterFactory2(), new global::G.JsonConverters.EmbeddingInputJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter>, global::G.ApiSchemasClassificationTextDoc, global::G.ApiSchemasClassificationImageDoc, string>(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter, string, global::System.Collections.Generic.IList, global::G.ApiSchemasEmbeddingTextDoc>(), + new global::G.JsonConverters.AnyOfJsonConverter>(), + new global::G.JsonConverters.AnyOfJsonConverter>(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter>(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter>(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList>(), + new global::G.JsonConverters.AnyOfJsonConverter, string, global::System.Collections.Generic.IList, global::G.ApiSchemasEmbeddingTextDoc>(), + new global::G.JsonConverters.AnyOfJsonConverter>(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter>, global::G.TextExampleDoc, global::G.ImageExampleDoc>(), + new global::G.JsonConverters.AnyOfJsonConverter(), } }; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.ApiSchemasClassificationImageDoc.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.ApiSchemasClassificationImageDoc.g.verified.cs index 5a570f00bb..fe73ec75fd 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.ApiSchemasClassificationImageDoc.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.ApiSchemasClassificationImageDoc.g.verified.cs @@ -41,7 +41,7 @@ public sealed partial class ApiSchemasClassificationImageDoc /// Image representation that can hold URL of an image or a base64 representation /// [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Image { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.ApiSchemasEmbeddingImageDoc.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.ApiSchemasEmbeddingImageDoc.g.verified.cs index c72ce5b89f..67ef92c71a 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.ApiSchemasEmbeddingImageDoc.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.ApiSchemasEmbeddingImageDoc.g.verified.cs @@ -41,7 +41,7 @@ public sealed partial class ApiSchemasEmbeddingImageDoc /// Image representation that can hold URL of an image or a base64 representation /// [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Image { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.ClassificationAPIInput.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.ClassificationAPIInput.g.verified.cs index 7ac47dcaef..9d9ddd06ba 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.ClassificationAPIInput.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.ClassificationAPIInput.g.verified.cs @@ -37,7 +37,7 @@ public sealed partial class ClassificationAPIInput /// List of text and images or a single text and image for classification /// [global::System.Text.Json.Serialization.JsonPropertyName("input")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory4))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter>, global::G.ApiSchemasClassificationTextDoc, global::G.ApiSchemasClassificationImageDoc, string>))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf>, global::G.ApiSchemasClassificationTextDoc, global::G.ApiSchemasClassificationImageDoc, string> Input { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.ImageEmbeddingInput.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.ImageEmbeddingInput.g.verified.cs index 1cd28dcd64..aec327e09e 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.ImageEmbeddingInput.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.ImageEmbeddingInput.g.verified.cs @@ -25,7 +25,7 @@ public sealed partial class ImageEmbeddingInput /// List of images to embed /// [global::System.Text.Json.Serialization.JsonPropertyName("input")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter>))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf> Input { get; set; } @@ -33,7 +33,7 @@ public sealed partial class ImageEmbeddingInput /// The format in which you want the embeddings to be returned.Possible value are `float`, `base64`, `binary`, `ubinary` or a list containing any of them. Defaults to `float` /// [global::System.Text.Json.Serialization.JsonPropertyName("embedding_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter>))] public global::G.AnyOf>? EmbeddingType { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.ImageExampleDoc.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.ImageExampleDoc.g.verified.cs index 13363a6e84..f4ae61e7c0 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.ImageExampleDoc.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.ImageExampleDoc.g.verified.cs @@ -41,14 +41,14 @@ public sealed partial class ImageExampleDoc /// Image representation that can hold URL of an image or a base64 representation /// [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? Image { get; set; } /// /// The label of the image /// [global::System.Text.Json.Serialization.JsonPropertyName("label")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf Label { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.MixedEmbeddingInput.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.MixedEmbeddingInput.g.verified.cs index 99b55d483a..978d56083e 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.MixedEmbeddingInput.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.MixedEmbeddingInput.g.verified.cs @@ -32,7 +32,7 @@ public sealed partial class MixedEmbeddingInput /// The format in which you want the embeddings to be returned.Possible value are `float`, `base64`, `binary`, `ubinary` or a list containing any of them. Defaults to `float` /// [global::System.Text.Json.Serialization.JsonPropertyName("embedding_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter>))] public global::G.AnyOf>? EmbeddingType { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.RankAPIInput.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.RankAPIInput.g.verified.cs index a8d82e29be..863c1bc616 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.RankAPIInput.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.RankAPIInput.g.verified.cs @@ -28,7 +28,7 @@ public sealed partial class RankAPIInput /// The search query /// [global::System.Text.Json.Serialization.JsonPropertyName("query")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf Query { get; set; } @@ -36,7 +36,7 @@ public sealed partial class RankAPIInput /// A list of text documents or strings to rerank. If a document is provided the text fields is required and all other fields will be preserved in the response. /// [global::System.Text.Json.Serialization.JsonPropertyName("documents")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList>))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf, global::System.Collections.Generic.IList> Documents { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.TextEmbeddingAPIInput.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.TextEmbeddingAPIInput.g.verified.cs index 3cb280f62f..a2da542a04 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.TextEmbeddingAPIInput.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.TextEmbeddingAPIInput.g.verified.cs @@ -24,7 +24,7 @@ public sealed partial class TextEmbeddingAPIInput /// List of texts to embed /// [global::System.Text.Json.Serialization.JsonPropertyName("input")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory4))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter, string, global::System.Collections.Generic.IList, global::G.ApiSchemasEmbeddingTextDoc>))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf, string, global::System.Collections.Generic.IList, global::G.ApiSchemasEmbeddingTextDoc> Input { get; set; } @@ -40,7 +40,7 @@ public sealed partial class TextEmbeddingAPIInput /// The format in which you want the embeddings to be returned.Possible value are `float`, `base64`, `binary`, `ubinary` or a list containing any of them. Defaults to `float` /// [global::System.Text.Json.Serialization.JsonPropertyName("embedding_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter>))] public global::G.AnyOf>? EmbeddingType { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.TextEmbeddingInput.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.TextEmbeddingInput.g.verified.cs index 42381c0485..07546968e7 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.TextEmbeddingInput.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.TextEmbeddingInput.g.verified.cs @@ -31,14 +31,14 @@ public sealed partial class TextEmbeddingInput /// List of texts to embed /// [global::System.Text.Json.Serialization.JsonPropertyName("input")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory4))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter, string, global::System.Collections.Generic.IList, global::G.ApiSchemasEmbeddingTextDoc>))] public global::G.AnyOf, string, global::System.Collections.Generic.IList, global::G.ApiSchemasEmbeddingTextDoc>? Input { get; set; } /// /// The format in which you want the embeddings to be returned.Possible value are `float`, `base64`, `binary`, `ubinary` or a list containing any of them. Defaults to `float` /// [global::System.Text.Json.Serialization.JsonPropertyName("embedding_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter>))] public global::G.AnyOf>? EmbeddingType { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.TextExampleDoc.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.TextExampleDoc.g.verified.cs index ad93daf30f..7b1fea3856 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.TextExampleDoc.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.TextExampleDoc.g.verified.cs @@ -30,7 +30,7 @@ public sealed partial class TextExampleDoc /// The label of the text /// [global::System.Text.Json.Serialization.JsonPropertyName("label")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf Label { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.TrainingAPIInput.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.TrainingAPIInput.g.verified.cs index c343f6fcf6..93cefff00b 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.TrainingAPIInput.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.Models.TrainingAPIInput.g.verified.cs @@ -45,7 +45,7 @@ public sealed partial class TrainingAPIInput /// List of text and images and labels or a single text and image and label to train the classifier /// [global::System.Text.Json.Serialization.JsonPropertyName("input")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory3))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter>, global::G.TextExampleDoc, global::G.ImageExampleDoc>))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf>, global::G.TextExampleDoc, global::G.ImageExampleDoc> Input { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs deleted file mode 100644 index f9c99bb843..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.AnyOfFactory2.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class AnyOfJsonConverterFactory2 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.AnyOf<,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(AnyOfJsonConverter<,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#JsonConverters.AnyOfFactory3.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#JsonConverters.AnyOfFactory3.g.verified.cs deleted file mode 100644 index 29dabb78d9..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#JsonConverters.AnyOfFactory3.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.AnyOfFactory3.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class AnyOfJsonConverterFactory3 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.AnyOf<,,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(AnyOfJsonConverter<,,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#JsonConverters.AnyOfFactory4.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#JsonConverters.AnyOfFactory4.g.verified.cs deleted file mode 100644 index c1e52ef7a7..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#JsonConverters.AnyOfFactory4.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.AnyOfFactory4.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class AnyOfJsonConverterFactory4 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.AnyOf<,,,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(AnyOfJsonConverter<,,,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs index 1b7d3f156a..6120d21f5b 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs @@ -35,10 +35,27 @@ internal sealed partial class JsonSerializerContextConverters typeof(global::G.JsonConverters.TextEmbeddingAPIInputEmbeddingTypeItemNullableJsonConverter), typeof(global::G.JsonConverters.TrainingAPIInputVisibilityJsonConverter), typeof(global::G.JsonConverters.TrainingAPIInputVisibilityNullableJsonConverter), - typeof(global::G.JsonConverters.AnyOfJsonConverterFactory4), - typeof(global::G.JsonConverters.AnyOfJsonConverterFactory3), - typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2), typeof(global::G.JsonConverters.EmbeddingInputJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter>, global::G.ApiSchemasClassificationTextDoc, global::G.ApiSchemasClassificationImageDoc, string>), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter, string, global::System.Collections.Generic.IList, global::G.ApiSchemasEmbeddingTextDoc>), + typeof(global::G.JsonConverters.AnyOfJsonConverter>), + typeof(global::G.JsonConverters.AnyOfJsonConverter>), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter>), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter>), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList>), + typeof(global::G.JsonConverters.AnyOfJsonConverter, string, global::System.Collections.Generic.IList, global::G.ApiSchemasEmbeddingTextDoc>), + typeof(global::G.JsonConverters.AnyOfJsonConverter>), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter>, global::G.TextExampleDoc, global::G.ImageExampleDoc>), + typeof(global::G.JsonConverters.AnyOfJsonConverter), }; } } \ No newline at end of file diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Api.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Api.g.verified.cs index ed41fc0d47..d8cf05e439 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Api.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Api.g.verified.cs @@ -132,7 +132,6 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable new global::G.JsonConverters.RetrieveModelV1ModelsModelIdGetResponseDiscriminatorTypeJsonConverter(), new global::G.JsonConverters.RetrieveModelV1ModelsModelIdGetResponseDiscriminatorTypeNullableJsonConverter(), new global::G.JsonConverters.MessagesItemJsonConverter(), - new global::G.JsonConverters.AnyOfJsonConverterFactory2(), new global::G.JsonConverters.ContentChunkJsonConverter(), new global::G.JsonConverters.MessagesItem2JsonConverter(), new global::G.JsonConverters.ChatCompletionResponseJsonConverter(), @@ -147,6 +146,18 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable new global::G.JsonConverters.RepositoriesItem3JsonConverter(), new global::G.JsonConverters.DataItemJsonConverter(), new global::G.JsonConverters.RetrieveModelV1ModelsModelIdGetResponseJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter>(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter>(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter>(), + new global::G.JsonConverters.AnyOfJsonConverter>(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter>(), + new global::G.JsonConverters.AnyOfJsonConverter>(), + new global::G.JsonConverters.AnyOfJsonConverter(), + new global::G.JsonConverters.AnyOfJsonConverter(), } }; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.AgentsCompletionRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.AgentsCompletionRequest.g.verified.cs index 53c15a90bd..7ea72068eb 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.AgentsCompletionRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.AgentsCompletionRequest.g.verified.cs @@ -55,7 +55,7 @@ public sealed partial class AgentsCompletionRequest /// Stop generation if this token is detected. Or if one of these tokens is detected when providing an array /// [global::System.Text.Json.Serialization.JsonPropertyName("stop")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter>))] public global::G.AnyOf>? Stop { get; set; } /// @@ -69,7 +69,7 @@ public sealed partial class AgentsCompletionRequest /// Default Value: auto /// [global::System.Text.Json.Serialization.JsonPropertyName("tool_choice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? ToolChoice { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.ChatCompletionRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.ChatCompletionRequest.g.verified.cs index ddde386b5b..2e973aa09b 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.ChatCompletionRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.ChatCompletionRequest.g.verified.cs @@ -64,7 +64,7 @@ public sealed partial class ChatCompletionRequest /// Stop generation if this token is detected. Or if one of these tokens is detected when providing an array /// [global::System.Text.Json.Serialization.JsonPropertyName("stop")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter>))] public global::G.AnyOf>? Stop { get; set; } /// @@ -85,7 +85,7 @@ public sealed partial class ChatCompletionRequest /// Default Value: auto /// [global::System.Text.Json.Serialization.JsonPropertyName("tool_choice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] public global::G.AnyOf? ToolChoice { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.EmbeddingRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.EmbeddingRequest.g.verified.cs index 9cd52973bd..3728329910 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.EmbeddingRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.EmbeddingRequest.g.verified.cs @@ -22,7 +22,7 @@ public sealed partial class EmbeddingRequest /// Text to embed. /// [global::System.Text.Json.Serialization.JsonPropertyName("input")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter>))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf> Input { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.FIMCompletionRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.FIMCompletionRequest.g.verified.cs index 0f04f86711..cc1266fc82 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.FIMCompletionRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.FIMCompletionRequest.g.verified.cs @@ -54,7 +54,7 @@ public sealed partial class FIMCompletionRequest /// Stop generation if this token is detected. Or if one of these tokens is detected when providing an array /// [global::System.Text.Json.Serialization.JsonPropertyName("stop")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter>))] public global::G.AnyOf>? Stop { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.FunctionCall.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.FunctionCall.g.verified.cs index bef9a4fc69..0dc333bc9d 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.FunctionCall.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.FunctionCall.g.verified.cs @@ -15,7 +15,7 @@ public sealed partial class FunctionCall /// /// [global::System.Text.Json.Serialization.JsonPropertyName("arguments")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf Arguments { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.ImageURLChunk.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.ImageURLChunk.g.verified.cs index 2254f8e30b..ad381b6f3c 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.ImageURLChunk.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.ImageURLChunk.g.verified.cs @@ -15,7 +15,7 @@ public sealed partial class ImageURLChunk /// /// [global::System.Text.Json.Serialization.JsonPropertyName("image_url")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf ImageUrl { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.SystemMessage.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.SystemMessage.g.verified.cs index 76ff8274d1..d776493cfa 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.SystemMessage.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.SystemMessage.g.verified.cs @@ -15,7 +15,7 @@ public sealed partial class SystemMessage /// /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter>))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf> Content { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.UserMessage.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.UserMessage.g.verified.cs index fc77d3817c..870f4a0f8d 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.UserMessage.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.Models.UserMessage.g.verified.cs @@ -15,7 +15,7 @@ public sealed partial class UserMessage /// /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AnyOfJsonConverter>))] [global::System.Text.Json.Serialization.JsonRequired] public required global::G.AnyOf> Content { get; set; } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs deleted file mode 100644 index f9c99bb843..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#JsonConverters.AnyOfFactory2.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.AnyOfFactory2.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class AnyOfJsonConverterFactory2 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.AnyOf<,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(AnyOfJsonConverter<,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs index 0cf4f534e5..93b3dd8da3 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs @@ -102,7 +102,6 @@ internal sealed partial class JsonSerializerContextConverters typeof(global::G.JsonConverters.RetrieveModelV1ModelsModelIdGetResponseDiscriminatorTypeJsonConverter), typeof(global::G.JsonConverters.RetrieveModelV1ModelsModelIdGetResponseDiscriminatorTypeNullableJsonConverter), typeof(global::G.JsonConverters.MessagesItemJsonConverter), - typeof(global::G.JsonConverters.AnyOfJsonConverterFactory2), typeof(global::G.JsonConverters.ContentChunkJsonConverter), typeof(global::G.JsonConverters.MessagesItem2JsonConverter), typeof(global::G.JsonConverters.ChatCompletionResponseJsonConverter), @@ -117,6 +116,18 @@ internal sealed partial class JsonSerializerContextConverters typeof(global::G.JsonConverters.RepositoriesItem3JsonConverter), typeof(global::G.JsonConverters.DataItemJsonConverter), typeof(global::G.JsonConverters.RetrieveModelV1ModelsModelIdGetResponseJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter>), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter>), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter>), + typeof(global::G.JsonConverters.AnyOfJsonConverter>), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter>), + typeof(global::G.JsonConverters.AnyOfJsonConverter>), + typeof(global::G.JsonConverters.AnyOfJsonConverter), + typeof(global::G.JsonConverters.AnyOfJsonConverter), }; } } \ No newline at end of file diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/vectara/SystemTextJson/_#G.Api.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/vectara/SystemTextJson/_#G.Api.g.verified.cs index 20a4ad56c5..dd5dc3ba00 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/vectara/SystemTextJson/_#G.Api.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/vectara/SystemTextJson/_#G.Api.g.verified.cs @@ -90,11 +90,11 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable new global::G.JsonConverters.SearchRerankerJsonConverter(), new global::G.JsonConverters.SearchCorporaParametersJsonConverter(), new global::G.JsonConverters.KeyedSearchCorpusJsonConverter(), - new global::G.JsonConverters.AllOfJsonConverterFactory2(), new global::G.JsonConverters.QueryStreamedResponseJsonConverter(), new global::G.JsonConverters.CreateDocumentRequestJsonConverter(), new global::G.JsonConverters.ChatStreamedResponseJsonConverter(), new global::G.JsonConverters.CreateAppClientRequestJsonConverter(), + new global::G.JsonConverters.AllOfJsonConverter(), } }; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/vectara/SystemTextJson/_#G.Models.QueryCorpusRequest.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/vectara/SystemTextJson/_#G.Models.QueryCorpusRequest.g.verified.cs index b30445c158..d0f9f8afca 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/vectara/SystemTextJson/_#G.Models.QueryCorpusRequest.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/vectara/SystemTextJson/_#G.Models.QueryCorpusRequest.g.verified.cs @@ -22,7 +22,7 @@ public sealed partial class QueryCorpusRequest /// The parameters to search one corpus. /// [global::System.Text.Json.Serialization.JsonPropertyName("search")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AllOfJsonConverterFactory2))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.AllOfJsonConverter))] public global::G.AllOf? Search { get; set; } /// diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/vectara/SystemTextJson/_#JsonConverters.AllOfFactory2.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/vectara/SystemTextJson/_#JsonConverters.AllOfFactory2.g.verified.cs deleted file mode 100644 index fc5a454d6f..0000000000 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/vectara/SystemTextJson/_#JsonConverters.AllOfFactory2.g.verified.cs +++ /dev/null @@ -1,26 +0,0 @@ -//HintName: JsonConverters.AllOfFactory2.g.cs -#nullable enable - -namespace G.JsonConverters -{ - /// - public sealed class AllOfJsonConverterFactory2 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::G.AllOf<,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(AllOfJsonConverter<,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/vectara/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/vectara/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs index 6776b6517b..0c8e8acec8 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/vectara/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/vectara/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs @@ -42,11 +42,11 @@ internal sealed partial class JsonSerializerContextConverters typeof(global::G.JsonConverters.SearchRerankerJsonConverter), typeof(global::G.JsonConverters.SearchCorporaParametersJsonConverter), typeof(global::G.JsonConverters.KeyedSearchCorpusJsonConverter), - typeof(global::G.JsonConverters.AllOfJsonConverterFactory2), typeof(global::G.JsonConverters.QueryStreamedResponseJsonConverter), typeof(global::G.JsonConverters.CreateDocumentRequestJsonConverter), typeof(global::G.JsonConverters.ChatStreamedResponseJsonConverter), typeof(global::G.JsonConverters.CreateAppClientRequestJsonConverter), + typeof(global::G.JsonConverters.AllOfJsonConverter), }; } } \ No newline at end of file