From a754e5de11aa3a9dc60c2c676a355bd3bb3143b5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 29 Aug 2024 06:07:26 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...sClient.ActionsCreateWorkflowDispatch.g.cs | 8 +-- ....ActionsClient.ActionsDisableWorkflow.g.cs | 6 +- ...b.ActionsClient.ActionsEnableWorkflow.g.cs | 6 +- ...tHub.ActionsClient.ActionsGetWorkflow.g.cs | 6 +- ...ActionsClient.ActionsGetWorkflowUsage.g.cs | 6 +- ...ActionsClient.ActionsListWorkflowRuns.g.cs | 6 +- .../GitHub.ChecksClient.ChecksCreate.g.cs | 2 +- .../GitHub.ChecksClient.ChecksUpdate.g.cs | 2 +- ...ent.CodeScanningCreateVariantAnalysis.g.cs | 2 +- ...ateOrUpdateSecretForAuthenticatedUser.g.cs | 2 +- .../GitHub.IssuesClient.IssuesAddLabels.g.cs | 8 +-- .../GitHub.IssuesClient.IssuesCreate.g.cs | 6 +- .../GitHub.IssuesClient.IssuesListEvents.g.cs | 2 +- ...uesClient.IssuesListEventsForTimeline.g.cs | 2 +- .../GitHub.IssuesClient.IssuesSetLabels.g.cs | 8 +-- .../GitHub.IssuesClient.IssuesUpdate.g.cs | 6 +- .../GitHub.MetaClient.MetaGetAllVersions.g.cs | 2 +- .../Generated/GitHub.Models.CheckRun.g.cs | 2 +- ...ub.Models.ChecksCreateRequestVariant1.g.cs | 4 +- ...els.ChecksCreateRequestVariant1Status.g.cs | 35 ++++++++-- ...ub.Models.ChecksCreateRequestVariant2.g.cs | 1 + ...els.ChecksCreateRequestVariant2Status.g.cs | 41 ++++++++++-- ...ub.Models.ChecksUpdateRequestVariant1.g.cs | 1 + ...els.ChecksUpdateRequestVariant1Status.g.cs | 35 ++++++++-- ...ub.Models.ChecksUpdateRequestVariant2.g.cs | 1 + ...els.ChecksUpdateRequestVariant2Status.g.cs | 41 ++++++++++-- ...dels.CodeSecurityDefaultConfiguration.g.cs | 1 + ...efaultConfigurationDefaultForNewRepos.g.cs | 47 +++++++++++-- .../Generated/GitHub.Models.Codespace.g.cs | 2 +- ...ub.Models.CodespaceWithFullRepository.g.cs | 2 +- ...dateSecretForAuthenticatedUserRequest.g.cs | 2 +- .../Generated/GitHub.Models.Collaborator.g.cs | 2 +- .../GitHub.Models.CustomProperty.g.cs | 2 +- .../GitHub.Models.CustomPropertyValue.g.cs | 2 +- .../Generated/GitHub.Models.Deployment.g.cs | 4 +- .../GitHub.Models.DeploymentStatus.g.cs | 2 +- .../Generated/GitHub.Models.Environment.g.cs | 2 +- .../GitHub.Models.FullRepository.g.cs | 2 +- .../Generated/GitHub.Models.GpgKey.g.cs | 2 +- .../GitHub/Generated/GitHub.Models.Issue.g.cs | 2 +- .../Generated/GitHub.Models.IssueComment.g.cs | 2 +- .../Generated/GitHub.Models.IssueEvent.g.cs | 2 +- .../GitHub.Models.IssuesCreateRequest.g.cs | 6 +- .../GitHub.Models.IssuesUpdateRequest.g.cs | 6 +- .../GitHub/Generated/GitHub.Models.Label.g.cs | 2 +- .../Generated/GitHub.Models.Migration.g.cs | 2 +- .../GitHub.Models.MinimalRepository.g.cs | 2 +- .../GitHub.Models.NullableCollaborator.g.cs | 2 +- .../GitHub.Models.NullableIssue.g.cs | 2 +- ...tHub.Models.NullableMinimalRepository.g.cs | 2 +- .../GitHub.Models.NullableRepository.g.cs | 2 +- ...Hub.Models.NullableRepositoryWebhooks.g.cs | 2 +- .../GitHub.Models.NullableSimpleUser.g.cs | 2 +- ...gsCreateOrUpdateCustomPropertyRequest.g.cs | 2 +- .../GitHub.Models.PageDeployment.g.cs | 2 +- ...b.Models.PendingDeploymentEnvironment.g.cs | 2 +- .../Generated/GitHub.Models.PrivateUser.g.cs | 2 +- .../Generated/GitHub.Models.ProjectCard.g.cs | 2 +- .../Generated/GitHub.Models.PullRequest.g.cs | 2 +- .../GitHub.Models.PullRequestReview.g.cs | 2 +- ...itHub.Models.PullRequestReviewComment.g.cs | 4 +- .../GitHub.Models.PullRequestSimple.g.cs | 2 +- .../GitHub.Models.PullsCreateRequest.g.cs | 2 +- ...b.Models.ReposCreateDeploymentRequest.g.cs | 2 +- .../Generated/GitHub.Models.Repository.g.cs | 2 +- .../GitHub.Models.RepositoryInvitation.g.cs | 2 +- .../GitHub.Models.RepositoryWebhooks.g.cs | 2 +- .../GitHub.Models.ReviewComment.g.cs | 4 +- .../GitHub.Models.SimpleRepository.g.cs | 2 +- .../Generated/GitHub.Models.SimpleUser.g.cs | 2 +- .../GitHub.Models.ValidationErrorError.g.cs | 2 +- ...ls.WebhookDeploymentCreatedDeployment.g.cs | 2 +- ...hookDeploymentStatusCreatedDeployment.g.cs | 2 +- ...PackagePublishedPackagePackageVersion.g.cs | 2 +- ...ackagePackageVersionNugetMetadataItem.g.cs | 4 +- ...V2ItemEditedChangesVariant1FieldValue.g.cs | 4 +- ...ublishedRegistryPackagePackageVersion.g.cs | 2 +- ...istryPackagePackageVersionNpmMetadata.g.cs | 10 +-- ...ackagePackageVersionNugetMetadataItem.g.cs | 4 +- ...ient.OrgsCreateOrUpdateCustomProperty.g.cs | 2 +- .../GitHub.PullsClient.PullsCreate.g.cs | 2 +- ...Hub.PullsClient.PullsRequestReviewers.g.cs | 2 +- ...eposClient.ReposCancelPagesDeployment.g.cs | 6 +- ...Hub.ReposClient.ReposCreateDeployment.g.cs | 2 +- ...tHub.ReposClient.ReposCreatePagesSite.g.cs | 2 +- ...itHub.ReposClient.ReposGetBranchRules.g.cs | 2 +- ...b.ReposClient.ReposGetPagesDeployment.g.cs | 6 +- ....ReposUpdateInformationAboutPagesSite.g.cs | 2 +- ...ecurityAdvisoriesListGlobalAdvisories.g.cs | 12 ++-- ...ent.UsersAddEmailForAuthenticatedUser.g.cs | 8 +-- ....UsersDeleteEmailForAuthenticatedUser.g.cs | 8 +-- ...ers.ChecksCreateRequestVariant1Status.g.cs | 49 ++++++++++++++ ...ksCreateRequestVariant1StatusNullable.g.cs | 56 ++++++++++++++++ ...ers.ChecksCreateRequestVariant2Status.g.cs | 49 ++++++++++++++ ...ksCreateRequestVariant2StatusNullable.g.cs | 56 ++++++++++++++++ ...ers.ChecksUpdateRequestVariant1Status.g.cs | 49 ++++++++++++++ ...ksUpdateRequestVariant1StatusNullable.g.cs | 56 ++++++++++++++++ ...ers.ChecksUpdateRequestVariant2Status.g.cs | 49 ++++++++++++++ ...ksUpdateRequestVariant2StatusNullable.g.cs | 56 ++++++++++++++++ ...efaultConfigurationDefaultForNewRepos.g.cs | 49 ++++++++++++++ ...nfigurationDefaultForNewReposNullable.g.cs | 56 ++++++++++++++++ .../Generated/JsonSerializerContext.g.cs | 10 +++ .../Generated/JsonSerializerContextTypes.g.cs | 66 +++++++++---------- 103 files changed, 886 insertions(+), 188 deletions(-) create mode 100644 src/libs/GitHub/Generated/JsonConverters.ChecksCreateRequestVariant1Status.g.cs create mode 100644 src/libs/GitHub/Generated/JsonConverters.ChecksCreateRequestVariant1StatusNullable.g.cs create mode 100644 src/libs/GitHub/Generated/JsonConverters.ChecksCreateRequestVariant2Status.g.cs create mode 100644 src/libs/GitHub/Generated/JsonConverters.ChecksCreateRequestVariant2StatusNullable.g.cs create mode 100644 src/libs/GitHub/Generated/JsonConverters.ChecksUpdateRequestVariant1Status.g.cs create mode 100644 src/libs/GitHub/Generated/JsonConverters.ChecksUpdateRequestVariant1StatusNullable.g.cs create mode 100644 src/libs/GitHub/Generated/JsonConverters.ChecksUpdateRequestVariant2Status.g.cs create mode 100644 src/libs/GitHub/Generated/JsonConverters.ChecksUpdateRequestVariant2StatusNullable.g.cs create mode 100644 src/libs/GitHub/Generated/JsonConverters.CodeSecurityDefaultConfigurationDefaultForNewRepos.g.cs create mode 100644 src/libs/GitHub/Generated/JsonConverters.CodeSecurityDefaultConfigurationDefaultForNewReposNullable.g.cs diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsCreateWorkflowDispatch.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsCreateWorkflowDispatch.g.cs index 63a00875..f5c7688c 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsCreateWorkflowDispatch.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsCreateWorkflowDispatch.g.cs @@ -9,14 +9,14 @@ partial void PrepareActionsCreateWorkflowDispatchArguments( global::System.Net.Http.HttpClient httpClient, ref string owner, ref string repo, - ref global::System.OneOf workflowId, + ref global::System.OneOf workflowId, global::GitHub.ActionsCreateWorkflowDispatchRequest request); partial void PrepareActionsCreateWorkflowDispatchRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string owner, string repo, - global::System.OneOf workflowId, + global::System.OneOf workflowId, global::GitHub.ActionsCreateWorkflowDispatchRequest request); partial void ProcessActionsCreateWorkflowDispatchResponse( global::System.Net.Http.HttpClient httpClient, @@ -37,7 +37,7 @@ partial void ProcessActionsCreateWorkflowDispatchResponse( public async global::System.Threading.Tasks.Task ActionsCreateWorkflowDispatchAsync( string owner, string repo, - global::System.OneOf workflowId, + global::System.OneOf workflowId, global::GitHub.ActionsCreateWorkflowDispatchRequest request, global::System.Threading.CancellationToken cancellationToken = default) { @@ -107,7 +107,7 @@ partial void ProcessActionsCreateWorkflowDispatchResponse( public async global::System.Threading.Tasks.Task ActionsCreateWorkflowDispatchAsync( string owner, string repo, - global::System.OneOf workflowId, + global::System.OneOf workflowId, string @ref, global::GitHub.ActionsCreateWorkflowDispatchRequestInputs? inputs = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsDisableWorkflow.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsDisableWorkflow.g.cs index 593cf07a..369a845b 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsDisableWorkflow.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsDisableWorkflow.g.cs @@ -9,13 +9,13 @@ partial void PrepareActionsDisableWorkflowArguments( global::System.Net.Http.HttpClient httpClient, ref string owner, ref string repo, - ref global::System.OneOf workflowId); + ref global::System.OneOf workflowId); partial void PrepareActionsDisableWorkflowRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string owner, string repo, - global::System.OneOf workflowId); + global::System.OneOf workflowId); partial void ProcessActionsDisableWorkflowResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -33,7 +33,7 @@ partial void ProcessActionsDisableWorkflowResponse( public async global::System.Threading.Tasks.Task ActionsDisableWorkflowAsync( string owner, string repo, - global::System.OneOf workflowId, + global::System.OneOf workflowId, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsEnableWorkflow.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsEnableWorkflow.g.cs index 01c82e5f..ac9d8e58 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsEnableWorkflow.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsEnableWorkflow.g.cs @@ -9,13 +9,13 @@ partial void PrepareActionsEnableWorkflowArguments( global::System.Net.Http.HttpClient httpClient, ref string owner, ref string repo, - ref global::System.OneOf workflowId); + ref global::System.OneOf workflowId); partial void PrepareActionsEnableWorkflowRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string owner, string repo, - global::System.OneOf workflowId); + global::System.OneOf workflowId); partial void ProcessActionsEnableWorkflowResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -33,7 +33,7 @@ partial void ProcessActionsEnableWorkflowResponse( public async global::System.Threading.Tasks.Task ActionsEnableWorkflowAsync( string owner, string repo, - global::System.OneOf workflowId, + global::System.OneOf workflowId, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsGetWorkflow.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsGetWorkflow.g.cs index dad1c9a1..b56ae063 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsGetWorkflow.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsGetWorkflow.g.cs @@ -9,13 +9,13 @@ partial void PrepareActionsGetWorkflowArguments( global::System.Net.Http.HttpClient httpClient, ref string owner, ref string repo, - ref global::System.OneOf workflowId); + ref global::System.OneOf workflowId); partial void PrepareActionsGetWorkflowRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string owner, string repo, - global::System.OneOf workflowId); + global::System.OneOf workflowId); partial void ProcessActionsGetWorkflowResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -40,7 +40,7 @@ partial void ProcessActionsGetWorkflowResponseContent( public async global::System.Threading.Tasks.Task ActionsGetWorkflowAsync( string owner, string repo, - global::System.OneOf workflowId, + global::System.OneOf workflowId, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsGetWorkflowUsage.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsGetWorkflowUsage.g.cs index e689c801..83453894 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsGetWorkflowUsage.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsGetWorkflowUsage.g.cs @@ -9,13 +9,13 @@ partial void PrepareActionsGetWorkflowUsageArguments( global::System.Net.Http.HttpClient httpClient, ref string owner, ref string repo, - ref global::System.OneOf workflowId); + ref global::System.OneOf workflowId); partial void PrepareActionsGetWorkflowUsageRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string owner, string repo, - global::System.OneOf workflowId); + global::System.OneOf workflowId); partial void ProcessActionsGetWorkflowUsageResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -40,7 +40,7 @@ partial void ProcessActionsGetWorkflowUsageResponseContent( public async global::System.Threading.Tasks.Task ActionsGetWorkflowUsageAsync( string owner, string repo, - global::System.OneOf workflowId, + global::System.OneOf workflowId, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListWorkflowRuns.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListWorkflowRuns.g.cs index 674fb1a5..85568fd7 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListWorkflowRuns.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListWorkflowRuns.g.cs @@ -9,7 +9,7 @@ partial void PrepareActionsListWorkflowRunsArguments( global::System.Net.Http.HttpClient httpClient, ref string owner, ref string repo, - ref global::System.OneOf workflowId, + ref global::System.OneOf workflowId, ref string? actor, ref string? branch, ref string? @event, @@ -25,7 +25,7 @@ partial void PrepareActionsListWorkflowRunsRequest( global::System.Net.Http.HttpRequestMessage httpRequestMessage, string owner, string repo, - global::System.OneOf workflowId, + global::System.OneOf workflowId, string? actor, string? branch, string? @event, @@ -75,7 +75,7 @@ partial void ProcessActionsListWorkflowRunsResponseContent( public async global::System.Threading.Tasks.Task ActionsListWorkflowRunsAsync( string owner, string repo, - global::System.OneOf workflowId, + global::System.OneOf workflowId, string? actor, string? branch, string? @event, diff --git a/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksCreate.g.cs b/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksCreate.g.cs index 4459658c..ee4f9589 100644 --- a/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksCreate.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksCreate.g.cs @@ -55,7 +55,7 @@ partial void ProcessChecksCreateResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/check-runs", global::System.UriKind.RelativeOrAbsolute)); - var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.ChecksCreateRequest); + var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.OneOf); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksUpdate.g.cs b/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksUpdate.g.cs index fe4ac518..b5f0ea38 100644 --- a/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksUpdate.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksUpdate.g.cs @@ -59,7 +59,7 @@ partial void ProcessChecksUpdateResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/check-runs/{checkRunId}", global::System.UriKind.RelativeOrAbsolute)); - var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.ChecksUpdateRequest); + var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.AnyOf); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningCreateVariantAnalysis.g.cs b/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningCreateVariantAnalysis.g.cs index 7808cfad..1deb73cc 100644 --- a/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningCreateVariantAnalysis.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningCreateVariantAnalysis.g.cs @@ -55,7 +55,7 @@ partial void ProcessCodeScanningCreateVariantAnalysisResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses", global::System.UriKind.RelativeOrAbsolute)); - var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.CodeScanningCreateVariantAnalysisRequest); + var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.OneOf); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesCreateOrUpdateSecretForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesCreateOrUpdateSecretForAuthenticatedUser.g.cs index 43e16643..1913323a 100644 --- a/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesCreateOrUpdateSecretForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesCreateOrUpdateSecretForAuthenticatedUser.g.cs @@ -127,7 +127,7 @@ partial void ProcessCodespacesCreateOrUpdateSecretForAuthenticatedUserResponseCo string secretName, string keyId, string? encryptedValue = default, - global::System.Collections.Generic.IList>? selectedRepositoryIds = default, + global::System.Collections.Generic.IList>? selectedRepositoryIds = default, global::System.Threading.CancellationToken cancellationToken = default) { var request = new global::GitHub.CodespacesCreateOrUpdateSecretForAuthenticatedUserRequest diff --git a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesAddLabels.g.cs b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesAddLabels.g.cs index 7c74aa95..9891d73d 100644 --- a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesAddLabels.g.cs +++ b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesAddLabels.g.cs @@ -10,14 +10,14 @@ partial void PrepareIssuesAddLabelsArguments( ref string owner, ref string repo, ref int issueNumber, - global::System.OneOf, global::GitHub.IssuesAddLabelsRequestVariant3, global::System.Collections.Generic.IList, string?> request); + global::System.OneOf, global::GitHub.IssuesAddLabelsRequestVariant3, global::System.Collections.Generic.IList, string> request); partial void PrepareIssuesAddLabelsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string owner, string repo, int issueNumber, - global::System.OneOf, global::GitHub.IssuesAddLabelsRequestVariant3, global::System.Collections.Generic.IList, string?> request); + global::System.OneOf, global::GitHub.IssuesAddLabelsRequestVariant3, global::System.Collections.Generic.IList, string> request); partial void ProcessIssuesAddLabelsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -41,7 +41,7 @@ partial void ProcessIssuesAddLabelsResponseContent( string owner, string repo, int issueNumber, - global::System.OneOf, global::GitHub.IssuesAddLabelsRequestVariant3, global::System.Collections.Generic.IList, string?> request, + global::System.OneOf, global::GitHub.IssuesAddLabelsRequestVariant3, global::System.Collections.Generic.IList, string> request, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -126,7 +126,7 @@ partial void ProcessIssuesAddLabelsResponseContent( int issueNumber, global::System.Threading.CancellationToken cancellationToken = default) { - var request = new global::System.OneOf, global::GitHub.IssuesAddLabelsRequestVariant3, global::System.Collections.Generic.IList, string?> + var request = new global::System.OneOf, global::GitHub.IssuesAddLabelsRequestVariant3, global::System.Collections.Generic.IList, string> { }; diff --git a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesCreate.g.cs b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesCreate.g.cs index 1a56e0df..ff10f8fd 100644 --- a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesCreate.g.cs +++ b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesCreate.g.cs @@ -148,11 +148,11 @@ partial void ProcessIssuesCreateResponseContent( public async global::System.Threading.Tasks.Task IssuesCreateAsync( string owner, string repo, - global::System.OneOf title, + global::System.OneOf title, string? body = default, string? assignee = default, - global::System.OneOf? milestone = default, - global::System.Collections.Generic.IList>? labels = default, + global::System.OneOf? milestone = default, + global::System.Collections.Generic.IList>? labels = default, global::System.Collections.Generic.IList? assignees = default, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListEvents.g.cs b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListEvents.g.cs index 0ab1cd2f..d8f17d32 100644 --- a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListEvents.g.cs +++ b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListEvents.g.cs @@ -111,7 +111,7 @@ partial void ProcessIssuesListEventsResponseContent( } return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::GitHub.SourceGenerationContext.Default.IListIssueEventForIssue) ?? + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::GitHub.SourceGenerationContext.Default.IListNullableIssueEventForIssue) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } } diff --git a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListEventsForTimeline.g.cs b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListEventsForTimeline.g.cs index ae532dd6..3f4c27a6 100644 --- a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListEventsForTimeline.g.cs +++ b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListEventsForTimeline.g.cs @@ -111,7 +111,7 @@ partial void ProcessIssuesListEventsForTimelineResponseContent( } return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::GitHub.SourceGenerationContext.Default.IListTimelineIssueEvents) ?? + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::GitHub.SourceGenerationContext.Default.IListNullableTimelineIssueEvents) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } } diff --git a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesSetLabels.g.cs b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesSetLabels.g.cs index a854386a..5f742ba6 100644 --- a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesSetLabels.g.cs +++ b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesSetLabels.g.cs @@ -10,14 +10,14 @@ partial void PrepareIssuesSetLabelsArguments( ref string owner, ref string repo, ref int issueNumber, - global::System.OneOf, global::GitHub.IssuesSetLabelsRequestVariant3, global::System.Collections.Generic.IList, string?> request); + global::System.OneOf, global::GitHub.IssuesSetLabelsRequestVariant3, global::System.Collections.Generic.IList, string> request); partial void PrepareIssuesSetLabelsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string owner, string repo, int issueNumber, - global::System.OneOf, global::GitHub.IssuesSetLabelsRequestVariant3, global::System.Collections.Generic.IList, string?> request); + global::System.OneOf, global::GitHub.IssuesSetLabelsRequestVariant3, global::System.Collections.Generic.IList, string> request); partial void ProcessIssuesSetLabelsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -41,7 +41,7 @@ partial void ProcessIssuesSetLabelsResponseContent( string owner, string repo, int issueNumber, - global::System.OneOf, global::GitHub.IssuesSetLabelsRequestVariant3, global::System.Collections.Generic.IList, string?> request, + global::System.OneOf, global::GitHub.IssuesSetLabelsRequestVariant3, global::System.Collections.Generic.IList, string> request, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -126,7 +126,7 @@ partial void ProcessIssuesSetLabelsResponseContent( int issueNumber, global::System.Threading.CancellationToken cancellationToken = default) { - var request = new global::System.OneOf, global::GitHub.IssuesSetLabelsRequestVariant3, global::System.Collections.Generic.IList, string?> + var request = new global::System.OneOf, global::GitHub.IssuesSetLabelsRequestVariant3, global::System.Collections.Generic.IList, string> { }; diff --git a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesUpdate.g.cs b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesUpdate.g.cs index 4c0b5fc1..7dde6eb9 100644 --- a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesUpdate.g.cs +++ b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesUpdate.g.cs @@ -159,13 +159,13 @@ partial void ProcessIssuesUpdateResponseContent( string owner, string repo, int issueNumber, - global::System.OneOf? title = default, + global::System.OneOf? title = default, string? body = default, string? assignee = default, global::GitHub.IssuesUpdateRequestState? state = default, global::GitHub.IssuesUpdateRequestStateReason? stateReason = default, - global::System.OneOf? milestone = default, - global::System.Collections.Generic.IList>? labels = default, + global::System.OneOf? milestone = default, + global::System.Collections.Generic.IList>? labels = default, global::System.Collections.Generic.IList? assignees = default, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/GitHub/Generated/GitHub.MetaClient.MetaGetAllVersions.g.cs b/src/libs/GitHub/Generated/GitHub.MetaClient.MetaGetAllVersions.g.cs index 9cf16b16..b38d49be 100644 --- a/src/libs/GitHub/Generated/GitHub.MetaClient.MetaGetAllVersions.g.cs +++ b/src/libs/GitHub/Generated/GitHub.MetaClient.MetaGetAllVersions.g.cs @@ -77,7 +77,7 @@ partial void ProcessMetaGetAllVersionsResponseContent( } return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::GitHub.SourceGenerationContext.Default.IListDateTime) ?? + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::GitHub.SourceGenerationContext.Default.IListglobal::System.DateTime) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } } diff --git a/src/libs/GitHub/Generated/GitHub.Models.CheckRun.g.cs b/src/libs/GitHub/Generated/GitHub.Models.CheckRun.g.cs index 787372d6..5c5145e0 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.CheckRun.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.CheckRun.g.cs @@ -10,7 +10,7 @@ public sealed partial class CheckRun { /// /// The id of the check.
- /// Example: 21 + /// Example: 21L ///
[global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.ChecksCreateRequestVariant1.g.cs b/src/libs/GitHub/Generated/GitHub.Models.ChecksCreateRequestVariant1.g.cs index 87d9244a..7e37cbb4 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.ChecksCreateRequestVariant1.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.ChecksCreateRequestVariant1.g.cs @@ -12,8 +12,8 @@ public sealed partial class ChecksCreateRequestVariant1 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::GitHub.ChecksCreateRequestVariant1Status Status { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ChecksCreateRequestVariant1StatusJsonConverter))] + public global::GitHub.ChecksCreateRequestVariant1Status Status { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/GitHub/Generated/GitHub.Models.ChecksCreateRequestVariant1Status.g.cs b/src/libs/GitHub/Generated/GitHub.Models.ChecksCreateRequestVariant1Status.g.cs index 92492e77..9265fc0f 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.ChecksCreateRequestVariant1Status.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.ChecksCreateRequestVariant1Status.g.cs @@ -6,13 +6,40 @@ namespace GitHub /// /// /// - public sealed partial class ChecksCreateRequestVariant1Status + public enum ChecksCreateRequestVariant1Status { + /// + /// + /// + Completed, + } + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ChecksCreateRequestVariant1StatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ChecksCreateRequestVariant1Status value) + { + return value switch + { + ChecksCreateRequestVariant1Status.Completed => "completed", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } /// - /// Additional properties that are not explicitly defined in the schema + /// Converts an string to a enum. /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + public static ChecksCreateRequestVariant1Status? ToEnum(string value) + { + return value switch + { + "completed" => ChecksCreateRequestVariant1Status.Completed, + _ => null, + }; + } } } \ No newline at end of file diff --git a/src/libs/GitHub/Generated/GitHub.Models.ChecksCreateRequestVariant2.g.cs b/src/libs/GitHub/Generated/GitHub.Models.ChecksCreateRequestVariant2.g.cs index eb38589a..e58977fd 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.ChecksCreateRequestVariant2.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.ChecksCreateRequestVariant2.g.cs @@ -12,6 +12,7 @@ public sealed partial class ChecksCreateRequestVariant2 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ChecksCreateRequestVariant2StatusJsonConverter))] public global::GitHub.ChecksCreateRequestVariant2Status? Status { get; set; } /// diff --git a/src/libs/GitHub/Generated/GitHub.Models.ChecksCreateRequestVariant2Status.g.cs b/src/libs/GitHub/Generated/GitHub.Models.ChecksCreateRequestVariant2Status.g.cs index edaeeeab..02803823 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.ChecksCreateRequestVariant2Status.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.ChecksCreateRequestVariant2Status.g.cs @@ -6,13 +6,46 @@ namespace GitHub /// /// /// - public sealed partial class ChecksCreateRequestVariant2Status + public enum ChecksCreateRequestVariant2Status { + /// + /// + /// + Queued, + /// + /// + /// + InProgress, + } + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ChecksCreateRequestVariant2StatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ChecksCreateRequestVariant2Status value) + { + return value switch + { + ChecksCreateRequestVariant2Status.Queued => "queued", + ChecksCreateRequestVariant2Status.InProgress => "in_progress", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } /// - /// Additional properties that are not explicitly defined in the schema + /// Converts an string to a enum. /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + public static ChecksCreateRequestVariant2Status? ToEnum(string value) + { + return value switch + { + "queued" => ChecksCreateRequestVariant2Status.Queued, + "in_progress" => ChecksCreateRequestVariant2Status.InProgress, + _ => null, + }; + } } } \ No newline at end of file diff --git a/src/libs/GitHub/Generated/GitHub.Models.ChecksUpdateRequestVariant1.g.cs b/src/libs/GitHub/Generated/GitHub.Models.ChecksUpdateRequestVariant1.g.cs index 304911d8..b8320794 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.ChecksUpdateRequestVariant1.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.ChecksUpdateRequestVariant1.g.cs @@ -12,6 +12,7 @@ public sealed partial class ChecksUpdateRequestVariant1 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ChecksUpdateRequestVariant1StatusJsonConverter))] public global::GitHub.ChecksUpdateRequestVariant1Status? Status { get; set; } /// diff --git a/src/libs/GitHub/Generated/GitHub.Models.ChecksUpdateRequestVariant1Status.g.cs b/src/libs/GitHub/Generated/GitHub.Models.ChecksUpdateRequestVariant1Status.g.cs index 33f20c3b..fede1738 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.ChecksUpdateRequestVariant1Status.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.ChecksUpdateRequestVariant1Status.g.cs @@ -6,13 +6,40 @@ namespace GitHub /// /// /// - public sealed partial class ChecksUpdateRequestVariant1Status + public enum ChecksUpdateRequestVariant1Status { + /// + /// + /// + Completed, + } + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ChecksUpdateRequestVariant1StatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ChecksUpdateRequestVariant1Status value) + { + return value switch + { + ChecksUpdateRequestVariant1Status.Completed => "completed", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } /// - /// Additional properties that are not explicitly defined in the schema + /// Converts an string to a enum. /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + public static ChecksUpdateRequestVariant1Status? ToEnum(string value) + { + return value switch + { + "completed" => ChecksUpdateRequestVariant1Status.Completed, + _ => null, + }; + } } } \ No newline at end of file diff --git a/src/libs/GitHub/Generated/GitHub.Models.ChecksUpdateRequestVariant2.g.cs b/src/libs/GitHub/Generated/GitHub.Models.ChecksUpdateRequestVariant2.g.cs index 0e6ed8a7..a93e5fd8 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.ChecksUpdateRequestVariant2.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.ChecksUpdateRequestVariant2.g.cs @@ -12,6 +12,7 @@ public sealed partial class ChecksUpdateRequestVariant2 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ChecksUpdateRequestVariant2StatusJsonConverter))] public global::GitHub.ChecksUpdateRequestVariant2Status? Status { get; set; } /// diff --git a/src/libs/GitHub/Generated/GitHub.Models.ChecksUpdateRequestVariant2Status.g.cs b/src/libs/GitHub/Generated/GitHub.Models.ChecksUpdateRequestVariant2Status.g.cs index ca52ec00..77192c71 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.ChecksUpdateRequestVariant2Status.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.ChecksUpdateRequestVariant2Status.g.cs @@ -6,13 +6,46 @@ namespace GitHub /// /// /// - public sealed partial class ChecksUpdateRequestVariant2Status + public enum ChecksUpdateRequestVariant2Status { + /// + /// + /// + Queued, + /// + /// + /// + InProgress, + } + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ChecksUpdateRequestVariant2StatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ChecksUpdateRequestVariant2Status value) + { + return value switch + { + ChecksUpdateRequestVariant2Status.Queued => "queued", + ChecksUpdateRequestVariant2Status.InProgress => "in_progress", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } /// - /// Additional properties that are not explicitly defined in the schema + /// Converts an string to a enum. /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + public static ChecksUpdateRequestVariant2Status? ToEnum(string value) + { + return value switch + { + "queued" => ChecksUpdateRequestVariant2Status.Queued, + "in_progress" => ChecksUpdateRequestVariant2Status.InProgress, + _ => null, + }; + } } } \ No newline at end of file diff --git a/src/libs/GitHub/Generated/GitHub.Models.CodeSecurityDefaultConfiguration.g.cs b/src/libs/GitHub/Generated/GitHub.Models.CodeSecurityDefaultConfiguration.g.cs index 5018dd03..d5bc41ee 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.CodeSecurityDefaultConfiguration.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.CodeSecurityDefaultConfiguration.g.cs @@ -12,6 +12,7 @@ public sealed partial class CodeSecurityDefaultConfiguration /// The visibility of newly created repositories for which the code security configuration will be applied to by default /// [global::System.Text.Json.Serialization.JsonPropertyName("default_for_new_repos")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.CodeSecurityDefaultConfigurationDefaultForNewReposJsonConverter))] public global::GitHub.CodeSecurityDefaultConfigurationDefaultForNewRepos? DefaultForNewRepos { get; set; } /// diff --git a/src/libs/GitHub/Generated/GitHub.Models.CodeSecurityDefaultConfigurationDefaultForNewRepos.g.cs b/src/libs/GitHub/Generated/GitHub.Models.CodeSecurityDefaultConfigurationDefaultForNewRepos.g.cs index 10d6da15..46d13df2 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.CodeSecurityDefaultConfigurationDefaultForNewRepos.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.CodeSecurityDefaultConfigurationDefaultForNewRepos.g.cs @@ -6,13 +6,52 @@ namespace GitHub /// /// The visibility of newly created repositories for which the code security configuration will be applied to by default /// - public sealed partial class CodeSecurityDefaultConfigurationDefaultForNewRepos + public enum CodeSecurityDefaultConfigurationDefaultForNewRepos { + /// + /// + /// + Public, + /// + /// + /// + PrivateAndInternal, + /// + /// + /// + All, + } + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CodeSecurityDefaultConfigurationDefaultForNewReposExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CodeSecurityDefaultConfigurationDefaultForNewRepos value) + { + return value switch + { + CodeSecurityDefaultConfigurationDefaultForNewRepos.Public => "public", + CodeSecurityDefaultConfigurationDefaultForNewRepos.PrivateAndInternal => "private_and_internal", + CodeSecurityDefaultConfigurationDefaultForNewRepos.All => "all", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } /// - /// Additional properties that are not explicitly defined in the schema + /// Converts an string to a enum. /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + public static CodeSecurityDefaultConfigurationDefaultForNewRepos? ToEnum(string value) + { + return value switch + { + "public" => CodeSecurityDefaultConfigurationDefaultForNewRepos.Public, + "private_and_internal" => CodeSecurityDefaultConfigurationDefaultForNewRepos.PrivateAndInternal, + "all" => CodeSecurityDefaultConfigurationDefaultForNewRepos.All, + _ => null, + }; + } } } \ No newline at end of file diff --git a/src/libs/GitHub/Generated/GitHub.Models.Codespace.g.cs b/src/libs/GitHub/Generated/GitHub.Models.Codespace.g.cs index a99be215..02cc5553 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.Codespace.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.Codespace.g.cs @@ -9,7 +9,7 @@ namespace GitHub public sealed partial class Codespace { /// - /// Example: 1 + /// Example: 1L /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.CodespaceWithFullRepository.g.cs b/src/libs/GitHub/Generated/GitHub.Models.CodespaceWithFullRepository.g.cs index be5ba289..88654e7b 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.CodespaceWithFullRepository.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.CodespaceWithFullRepository.g.cs @@ -9,7 +9,7 @@ namespace GitHub public sealed partial class CodespaceWithFullRepository { /// - /// Example: 1 + /// Example: 1L /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.CodespacesCreateOrUpdateSecretForAuthenticatedUserRequest.g.cs b/src/libs/GitHub/Generated/GitHub.Models.CodespacesCreateOrUpdateSecretForAuthenticatedUserRequest.g.cs index c28958ea..56ba9462 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.CodespacesCreateOrUpdateSecretForAuthenticatedUserRequest.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.CodespacesCreateOrUpdateSecretForAuthenticatedUserRequest.g.cs @@ -27,7 +27,7 @@ public sealed partial class CodespacesCreateOrUpdateSecretForAuthenticatedUserRe /// An array of repository ids that can access the user secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Set selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#set-selected-repositories-for-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints. /// [global::System.Text.Json.Serialization.JsonPropertyName("selected_repository_ids")] - public global::System.Collections.Generic.IList>? SelectedRepositoryIds { get; set; } + public global::System.Collections.Generic.IList>? SelectedRepositoryIds { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/GitHub/Generated/GitHub.Models.Collaborator.g.cs b/src/libs/GitHub/Generated/GitHub.Models.Collaborator.g.cs index 2434f6a4..2684ffaf 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.Collaborator.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.Collaborator.g.cs @@ -16,7 +16,7 @@ public sealed partial class Collaborator public required string Login { get; set; } /// - /// Example: 1 + /// Example: 1L /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.CustomProperty.g.cs b/src/libs/GitHub/Generated/GitHub.Models.CustomProperty.g.cs index 1c21b171..4a0b49d1 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.CustomProperty.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.CustomProperty.g.cs @@ -43,7 +43,7 @@ public sealed partial class CustomProperty /// [global::System.Text.Json.Serialization.JsonPropertyName("default_value")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory2))] - public global::System.OneOf>? DefaultValue { get; set; } + public global::System.OneOf>? DefaultValue { get; set; } /// /// Short description of the property diff --git a/src/libs/GitHub/Generated/GitHub.Models.CustomPropertyValue.g.cs b/src/libs/GitHub/Generated/GitHub.Models.CustomPropertyValue.g.cs index bce12a7c..2ab1c44b 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.CustomPropertyValue.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.CustomPropertyValue.g.cs @@ -23,7 +23,7 @@ public sealed partial class CustomPropertyValue [global::System.Text.Json.Serialization.JsonPropertyName("value")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory2))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.OneOf>? Value { get; set; } + public required global::System.OneOf>? Value { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/GitHub/Generated/GitHub.Models.Deployment.g.cs b/src/libs/GitHub/Generated/GitHub.Models.Deployment.g.cs index 87d11662..29b558b3 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.Deployment.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.Deployment.g.cs @@ -19,7 +19,7 @@ public sealed partial class Deployment /// /// Unique identifier of the deployment
- /// Example: 42 + /// Example: 42L ///
[global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] @@ -61,7 +61,7 @@ public sealed partial class Deployment [global::System.Text.Json.Serialization.JsonPropertyName("payload")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory2))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.OneOf Payload { get; set; } + public required global::System.OneOf Payload { get; set; } /// /// Example: staging diff --git a/src/libs/GitHub/Generated/GitHub.Models.DeploymentStatus.g.cs b/src/libs/GitHub/Generated/GitHub.Models.DeploymentStatus.g.cs index deb7d24c..e7b58001 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.DeploymentStatus.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.DeploymentStatus.g.cs @@ -16,7 +16,7 @@ public sealed partial class DeploymentStatus public required string Url { get; set; } /// - /// Example: 1 + /// Example: 1L /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.Environment.g.cs b/src/libs/GitHub/Generated/GitHub.Models.Environment.g.cs index be6b6cc6..6dc8adb2 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.Environment.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.Environment.g.cs @@ -12,7 +12,7 @@ public sealed partial class Environment { /// /// The id of the environment.
- /// Example: 56780428 + /// Example: 56780428L ///
[global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.FullRepository.g.cs b/src/libs/GitHub/Generated/GitHub.Models.FullRepository.g.cs index fc1e6e1b..8d0200c8 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.FullRepository.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.FullRepository.g.cs @@ -9,7 +9,7 @@ namespace GitHub public sealed partial class FullRepository { /// - /// Example: 1296269 + /// Example: 1296269L /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.GpgKey.g.cs b/src/libs/GitHub/Generated/GitHub.Models.GpgKey.g.cs index 20294efa..a3c90877 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.GpgKey.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.GpgKey.g.cs @@ -9,7 +9,7 @@ namespace GitHub public sealed partial class GpgKey { /// - /// Example: 3 + /// Example: 3L /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.Issue.g.cs b/src/libs/GitHub/Generated/GitHub.Models.Issue.g.cs index 9ba7841d..3fa124a4 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.Issue.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.Issue.g.cs @@ -119,7 +119,7 @@ public sealed partial class Issue ///
[global::System.Text.Json.Serialization.JsonPropertyName("labels")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> Labels { get; set; } + public required global::System.Collections.Generic.IList> Labels { get; set; } /// /// A GitHub user. diff --git a/src/libs/GitHub/Generated/GitHub.Models.IssueComment.g.cs b/src/libs/GitHub/Generated/GitHub.Models.IssueComment.g.cs index fed991bf..ae722020 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.IssueComment.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.IssueComment.g.cs @@ -10,7 +10,7 @@ public sealed partial class IssueComment { /// /// Unique identifier of the issue comment
- /// Example: 42 + /// Example: 42L ///
[global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.IssueEvent.g.cs b/src/libs/GitHub/Generated/GitHub.Models.IssueEvent.g.cs index 882eda0a..56eb8b54 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.IssueEvent.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.IssueEvent.g.cs @@ -9,7 +9,7 @@ namespace GitHub public sealed partial class IssueEvent { /// - /// Example: 1 + /// Example: 1L /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.IssuesCreateRequest.g.cs b/src/libs/GitHub/Generated/GitHub.Models.IssuesCreateRequest.g.cs index 8d489dc5..caf8fc58 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.IssuesCreateRequest.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.IssuesCreateRequest.g.cs @@ -16,7 +16,7 @@ public sealed partial class IssuesCreateRequest [global::System.Text.Json.Serialization.JsonPropertyName("title")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory2))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.OneOf Title { get; set; } + public required global::System.OneOf Title { get; set; } /// /// The contents of the issue. @@ -35,13 +35,13 @@ public sealed partial class IssuesCreateRequest /// [global::System.Text.Json.Serialization.JsonPropertyName("milestone")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory2))] - public global::System.OneOf? Milestone { get; set; } + public global::System.OneOf? Milestone { get; set; } /// /// Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._ /// [global::System.Text.Json.Serialization.JsonPropertyName("labels")] - public global::System.Collections.Generic.IList>? Labels { get; set; } + public global::System.Collections.Generic.IList>? Labels { get; set; } /// /// Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._ diff --git a/src/libs/GitHub/Generated/GitHub.Models.IssuesUpdateRequest.g.cs b/src/libs/GitHub/Generated/GitHub.Models.IssuesUpdateRequest.g.cs index 011ca986..1f949322 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.IssuesUpdateRequest.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.IssuesUpdateRequest.g.cs @@ -15,7 +15,7 @@ public sealed partial class IssuesUpdateRequest /// [global::System.Text.Json.Serialization.JsonPropertyName("title")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory2))] - public global::System.OneOf? Title { get; set; } + public global::System.OneOf? Title { get; set; } /// /// The contents of the issue. @@ -49,13 +49,13 @@ public sealed partial class IssuesUpdateRequest /// [global::System.Text.Json.Serialization.JsonPropertyName("milestone")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory2))] - public global::System.OneOf? Milestone { get; set; } + public global::System.OneOf? Milestone { get; set; } /// /// Labels to associate with this issue. Pass one or more labels to _replace_ the set of labels on this issue. Send an empty array (`[]`) to clear all labels from the issue. Only users with push access can set labels for issues. Without push access to the repository, label changes are silently dropped. /// [global::System.Text.Json.Serialization.JsonPropertyName("labels")] - public global::System.Collections.Generic.IList>? Labels { get; set; } + public global::System.Collections.Generic.IList>? Labels { get; set; } /// /// Usernames to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this issue. Send an empty array (`[]`) to clear all assignees from the issue. Only users with push access can set assignees for new issues. Without push access to the repository, assignee changes are silently dropped. diff --git a/src/libs/GitHub/Generated/GitHub.Models.Label.g.cs b/src/libs/GitHub/Generated/GitHub.Models.Label.g.cs index 5bbf77c2..2caffb15 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.Label.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.Label.g.cs @@ -10,7 +10,7 @@ public sealed partial class Label { /// /// Unique identifier for the label.
- /// Example: 208045946 + /// Example: 208045946L ///
[global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.Migration.g.cs b/src/libs/GitHub/Generated/GitHub.Models.Migration.g.cs index e3c73f6f..e6c0efc1 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.Migration.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.Migration.g.cs @@ -9,7 +9,7 @@ namespace GitHub public sealed partial class Migration { /// - /// Example: 79 + /// Example: 79L /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.MinimalRepository.g.cs b/src/libs/GitHub/Generated/GitHub.Models.MinimalRepository.g.cs index 9fbd01d4..09a1d5bd 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.MinimalRepository.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.MinimalRepository.g.cs @@ -9,7 +9,7 @@ namespace GitHub public sealed partial class MinimalRepository { /// - /// Example: 1296269 + /// Example: 1296269L /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.NullableCollaborator.g.cs b/src/libs/GitHub/Generated/GitHub.Models.NullableCollaborator.g.cs index 9d13a174..7b82a790 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.NullableCollaborator.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.NullableCollaborator.g.cs @@ -16,7 +16,7 @@ public sealed partial class NullableCollaborator public required string Login { get; set; } /// - /// Example: 1 + /// Example: 1L /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.NullableIssue.g.cs b/src/libs/GitHub/Generated/GitHub.Models.NullableIssue.g.cs index 98f52275..57a77a35 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.NullableIssue.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.NullableIssue.g.cs @@ -119,7 +119,7 @@ public sealed partial class NullableIssue ///
[global::System.Text.Json.Serialization.JsonPropertyName("labels")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> Labels { get; set; } + public required global::System.Collections.Generic.IList> Labels { get; set; } /// /// A GitHub user. diff --git a/src/libs/GitHub/Generated/GitHub.Models.NullableMinimalRepository.g.cs b/src/libs/GitHub/Generated/GitHub.Models.NullableMinimalRepository.g.cs index 97e4d4a8..4ec8f633 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.NullableMinimalRepository.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.NullableMinimalRepository.g.cs @@ -9,7 +9,7 @@ namespace GitHub public sealed partial class NullableMinimalRepository { /// - /// Example: 1296269 + /// Example: 1296269L /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.NullableRepository.g.cs b/src/libs/GitHub/Generated/GitHub.Models.NullableRepository.g.cs index 78986a82..7dfdbec6 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.NullableRepository.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.NullableRepository.g.cs @@ -10,7 +10,7 @@ public sealed partial class NullableRepository { /// /// Unique identifier of the repository
- /// Example: 42 + /// Example: 42L ///
[global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.NullableRepositoryWebhooks.g.cs b/src/libs/GitHub/Generated/GitHub.Models.NullableRepositoryWebhooks.g.cs index d428928d..cb76bc59 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.NullableRepositoryWebhooks.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.NullableRepositoryWebhooks.g.cs @@ -11,7 +11,7 @@ public sealed partial class NullableRepositoryWebhooks { /// /// Unique identifier of the repository
- /// Example: 42 + /// Example: 42L ///
[global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.NullableSimpleUser.g.cs b/src/libs/GitHub/Generated/GitHub.Models.NullableSimpleUser.g.cs index 0361f6f7..efa64a82 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.NullableSimpleUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.NullableSimpleUser.g.cs @@ -28,7 +28,7 @@ public sealed partial class NullableSimpleUser public required string Login { get; set; } /// - /// Example: 1 + /// Example: 1L /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.OrgsCreateOrUpdateCustomPropertyRequest.g.cs b/src/libs/GitHub/Generated/GitHub.Models.OrgsCreateOrUpdateCustomPropertyRequest.g.cs index 248e0316..99b3ee3b 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.OrgsCreateOrUpdateCustomPropertyRequest.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.OrgsCreateOrUpdateCustomPropertyRequest.g.cs @@ -30,7 +30,7 @@ public sealed partial class OrgsCreateOrUpdateCustomPropertyRequest ///
[global::System.Text.Json.Serialization.JsonPropertyName("default_value")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory2))] - public global::System.OneOf>? DefaultValue { get; set; } + public global::System.OneOf>? DefaultValue { get; set; } /// /// Short description of the property diff --git a/src/libs/GitHub/Generated/GitHub.Models.PageDeployment.g.cs b/src/libs/GitHub/Generated/GitHub.Models.PageDeployment.g.cs index d8bd9b0d..f5595bb6 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.PageDeployment.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.PageDeployment.g.cs @@ -16,7 +16,7 @@ public sealed partial class PageDeployment [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory2))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.OneOf Id { get; set; } + public required global::System.OneOf Id { get; set; } /// /// The URI to monitor GitHub Pages deployment status.
diff --git a/src/libs/GitHub/Generated/GitHub.Models.PendingDeploymentEnvironment.g.cs b/src/libs/GitHub/Generated/GitHub.Models.PendingDeploymentEnvironment.g.cs index 35c23f8b..7076b5e8 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.PendingDeploymentEnvironment.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.PendingDeploymentEnvironment.g.cs @@ -10,7 +10,7 @@ public sealed partial class PendingDeploymentEnvironment { /// /// The id of the environment.
- /// Example: 56780428 + /// Example: 56780428L ///
[global::System.Text.Json.Serialization.JsonPropertyName("id")] public long Id { get; set; } diff --git a/src/libs/GitHub/Generated/GitHub.Models.PrivateUser.g.cs b/src/libs/GitHub/Generated/GitHub.Models.PrivateUser.g.cs index a99e32e6..534bf710 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.PrivateUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.PrivateUser.g.cs @@ -16,7 +16,7 @@ public sealed partial class PrivateUser public required string Login { get; set; } /// - /// Example: 1 + /// Example: 1L /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.ProjectCard.g.cs b/src/libs/GitHub/Generated/GitHub.Models.ProjectCard.g.cs index 948af43c..6ee4eacc 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.ProjectCard.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.ProjectCard.g.cs @@ -17,7 +17,7 @@ public sealed partial class ProjectCard /// /// The project card's ID
- /// Example: 42 + /// Example: 42L ///
[global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.PullRequest.g.cs b/src/libs/GitHub/Generated/GitHub.Models.PullRequest.g.cs index 669dca03..56a62d5d 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.PullRequest.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.PullRequest.g.cs @@ -16,7 +16,7 @@ public sealed partial class PullRequest public required string Url { get; set; } /// - /// Example: 1 + /// Example: 1L /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.PullRequestReview.g.cs b/src/libs/GitHub/Generated/GitHub.Models.PullRequestReview.g.cs index 3c3089d2..44fbe7f8 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.PullRequestReview.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.PullRequestReview.g.cs @@ -10,7 +10,7 @@ public sealed partial class PullRequestReview { /// /// Unique identifier of the review
- /// Example: 42 + /// Example: 42L ///
[global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.PullRequestReviewComment.g.cs b/src/libs/GitHub/Generated/GitHub.Models.PullRequestReviewComment.g.cs index 4c0e79b8..05c65ed2 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.PullRequestReviewComment.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.PullRequestReviewComment.g.cs @@ -18,7 +18,7 @@ public sealed partial class PullRequestReviewComment /// /// The ID of the pull request review to which the comment belongs.
- /// Example: 42 + /// Example: 42L ///
[global::System.Text.Json.Serialization.JsonPropertyName("pull_request_review_id")] [global::System.Text.Json.Serialization.JsonRequired] @@ -26,7 +26,7 @@ public sealed partial class PullRequestReviewComment /// /// The ID of the pull request review comment.
- /// Example: 1 + /// Example: 1L ///
[global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.PullRequestSimple.g.cs b/src/libs/GitHub/Generated/GitHub.Models.PullRequestSimple.g.cs index 3b85194a..1da1ea73 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.PullRequestSimple.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.PullRequestSimple.g.cs @@ -16,7 +16,7 @@ public sealed partial class PullRequestSimple public required string Url { get; set; } /// - /// Example: 1 + /// Example: 1L /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.PullsCreateRequest.g.cs b/src/libs/GitHub/Generated/GitHub.Models.PullsCreateRequest.g.cs index 89ac4747..52c811f1 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.PullsCreateRequest.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.PullsCreateRequest.g.cs @@ -55,7 +55,7 @@ public sealed partial class PullsCreateRequest /// /// An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless `title` is specified.
- /// Example: 1 + /// Example: 1L ///
[global::System.Text.Json.Serialization.JsonPropertyName("issue")] public long Issue { get; set; } diff --git a/src/libs/GitHub/Generated/GitHub.Models.ReposCreateDeploymentRequest.g.cs b/src/libs/GitHub/Generated/GitHub.Models.ReposCreateDeploymentRequest.g.cs index 5a26538c..4eedd856 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.ReposCreateDeploymentRequest.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.ReposCreateDeploymentRequest.g.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::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory2))] - public global::System.OneOf? Payload { get; set; } + public global::System.OneOf? Payload { get; set; } /// /// Name for the target deployment environment (e.g., `production`, `staging`, `qa`).
diff --git a/src/libs/GitHub/Generated/GitHub.Models.Repository.g.cs b/src/libs/GitHub/Generated/GitHub.Models.Repository.g.cs index cf3c3cd8..693b17a2 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.Repository.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.Repository.g.cs @@ -10,7 +10,7 @@ public sealed partial class Repository { /// /// Unique identifier of the repository
- /// Example: 42 + /// Example: 42L ///
[global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.RepositoryInvitation.g.cs b/src/libs/GitHub/Generated/GitHub.Models.RepositoryInvitation.g.cs index 864f38c8..2d7da9f2 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.RepositoryInvitation.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.RepositoryInvitation.g.cs @@ -10,7 +10,7 @@ public sealed partial class RepositoryInvitation { /// /// Unique identifier of the repository invitation.
- /// Example: 42 + /// Example: 42L ///
[global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.RepositoryWebhooks.g.cs b/src/libs/GitHub/Generated/GitHub.Models.RepositoryWebhooks.g.cs index 09e2685a..490f3587 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.RepositoryWebhooks.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.RepositoryWebhooks.g.cs @@ -11,7 +11,7 @@ public sealed partial class RepositoryWebhooks { /// /// Unique identifier of the repository
- /// Example: 42 + /// Example: 42L ///
[global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.ReviewComment.g.cs b/src/libs/GitHub/Generated/GitHub.Models.ReviewComment.g.cs index 786c97bd..4faf6b18 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.ReviewComment.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.ReviewComment.g.cs @@ -16,14 +16,14 @@ public sealed partial class ReviewComment public required string Url { get; set; } /// - /// Example: 42 + /// Example: 42L /// [global::System.Text.Json.Serialization.JsonPropertyName("pull_request_review_id")] [global::System.Text.Json.Serialization.JsonRequired] public required long? PullRequestReviewId { get; set; } /// - /// Example: 10 + /// Example: 10L /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.SimpleRepository.g.cs b/src/libs/GitHub/Generated/GitHub.Models.SimpleRepository.g.cs index ed1d8950..cbdfaf5f 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.SimpleRepository.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.SimpleRepository.g.cs @@ -10,7 +10,7 @@ public sealed partial class SimpleRepository { /// /// A unique identifier of the repository.
- /// Example: 1296269 + /// Example: 1296269L ///
[global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.SimpleUser.g.cs b/src/libs/GitHub/Generated/GitHub.Models.SimpleUser.g.cs index 9b4bbe35..ca569476 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.SimpleUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.SimpleUser.g.cs @@ -28,7 +28,7 @@ public sealed partial class SimpleUser public required string Login { get; set; } /// - /// Example: 1 + /// Example: 1L /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/GitHub/Generated/GitHub.Models.ValidationErrorError.g.cs b/src/libs/GitHub/Generated/GitHub.Models.ValidationErrorError.g.cs index c33df417..ad37fa5e 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.ValidationErrorError.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.ValidationErrorError.g.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::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory3))] - public global::System.OneOf>? Value { get; set; } + public global::System.OneOf>? Value { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/GitHub/Generated/GitHub.Models.WebhookDeploymentCreatedDeployment.g.cs b/src/libs/GitHub/Generated/GitHub.Models.WebhookDeploymentCreatedDeployment.g.cs index c18e94f0..ef438f6b 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.WebhookDeploymentCreatedDeployment.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.WebhookDeploymentCreatedDeployment.g.cs @@ -65,7 +65,7 @@ public sealed partial class WebhookDeploymentCreatedDeployment [global::System.Text.Json.Serialization.JsonPropertyName("payload")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory2))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.OneOf Payload { get; set; } + public required global::System.OneOf Payload { get; set; } /// /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. diff --git a/src/libs/GitHub/Generated/GitHub.Models.WebhookDeploymentStatusCreatedDeployment.g.cs b/src/libs/GitHub/Generated/GitHub.Models.WebhookDeploymentStatusCreatedDeployment.g.cs index c2b1a37d..9eaf4ec7 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.WebhookDeploymentStatusCreatedDeployment.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.WebhookDeploymentStatusCreatedDeployment.g.cs @@ -65,7 +65,7 @@ public sealed partial class WebhookDeploymentStatusCreatedDeployment [global::System.Text.Json.Serialization.JsonPropertyName("payload")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory2))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.OneOf? Payload { get; set; } + public required global::System.OneOf? Payload { get; set; } /// /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. diff --git a/src/libs/GitHub/Generated/GitHub.Models.WebhookPackagePublishedPackagePackageVersion.g.cs b/src/libs/GitHub/Generated/GitHub.Models.WebhookPackagePublishedPackagePackageVersion.g.cs index da7bf4d0..a61c8d93 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.WebhookPackagePublishedPackagePackageVersion.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.WebhookPackagePublishedPackagePackageVersion.g.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::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory2))] - public global::System.OneOf? Body { get; set; } + public global::System.OneOf? Body { get; set; } /// /// diff --git a/src/libs/GitHub/Generated/GitHub.Models.WebhookPackagePublishedPackagePackageVersionNugetMetadataItem.g.cs b/src/libs/GitHub/Generated/GitHub.Models.WebhookPackagePublishedPackagePackageVersionNugetMetadataItem.g.cs index 9ebfdcb9..0434eb4c 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.WebhookPackagePublishedPackagePackageVersionNugetMetadataItem.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.WebhookPackagePublishedPackagePackageVersionNugetMetadataItem.g.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::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory2))] - public global::System.OneOf? Id { get; set; } + public global::System.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::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory4))] - public global::System.OneOf? Value { get; set; } + public global::System.OneOf? Value { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/GitHub/Generated/GitHub.Models.WebhookProjectsV2ItemEditedChangesVariant1FieldValue.g.cs b/src/libs/GitHub/Generated/GitHub.Models.WebhookProjectsV2ItemEditedChangesVariant1FieldValue.g.cs index 36cf091d..9c7e6f77 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.WebhookProjectsV2ItemEditedChangesVariant1FieldValue.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.WebhookProjectsV2ItemEditedChangesVariant1FieldValue.g.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::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory4))] - public global::System.OneOf? From { get; set; } + public global::System.OneOf? From { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("to")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory4))] - public global::System.OneOf? To { get; set; } + public global::System.OneOf? To { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/GitHub/Generated/GitHub.Models.WebhookRegistryPackagePublishedRegistryPackagePackageVersion.g.cs b/src/libs/GitHub/Generated/GitHub.Models.WebhookRegistryPackagePublishedRegistryPackagePackageVersion.g.cs index ba812aa2..f1aac6fa 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.WebhookRegistryPackagePublishedRegistryPackagePackageVersion.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.WebhookRegistryPackagePublishedRegistryPackagePackageVersion.g.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::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory2))] - public global::System.OneOf? Body { get; set; } + public global::System.OneOf? Body { get; set; } /// /// diff --git a/src/libs/GitHub/Generated/GitHub.Models.WebhookRegistryPackagePublishedRegistryPackagePackageVersionNpmMetadata.g.cs b/src/libs/GitHub/Generated/GitHub.Models.WebhookRegistryPackagePublishedRegistryPackagePackageVersionNpmMetadata.g.cs index e9441024..98c18dae 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.WebhookRegistryPackagePublishedRegistryPackagePackageVersionNpmMetadata.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.WebhookRegistryPackagePublishedRegistryPackagePackageVersionNpmMetadata.g.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::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory2))] - public global::System.OneOf? Author { get; set; } + public global::System.OneOf? Author { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("bugs")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory2))] - public global::System.OneOf? Bugs { get; set; } + public global::System.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::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory2))] - public global::System.OneOf? Dist { get; set; } + public global::System.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::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory2))] - public global::System.OneOf? Repository { get; set; } + public global::System.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::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory2))] - public global::System.OneOf? Directories { get; set; } + public global::System.OneOf? Directories { get; set; } /// /// diff --git a/src/libs/GitHub/Generated/GitHub.Models.WebhookRegistryPackagePublishedRegistryPackagePackageVersionNugetMetadataItem.g.cs b/src/libs/GitHub/Generated/GitHub.Models.WebhookRegistryPackagePublishedRegistryPackagePackageVersionNugetMetadataItem.g.cs index 7933ced7..ffe01aa3 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.WebhookRegistryPackagePublishedRegistryPackagePackageVersionNugetMetadataItem.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.WebhookRegistryPackagePublishedRegistryPackagePackageVersionNugetMetadataItem.g.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::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory3))] - public global::System.OneOf? Id { get; set; } + public global::System.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::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory4))] - public global::System.OneOf? Value { get; set; } + public global::System.OneOf? Value { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsCreateOrUpdateCustomProperty.g.cs b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsCreateOrUpdateCustomProperty.g.cs index f36f0464..caacd960 100644 --- a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsCreateOrUpdateCustomProperty.g.cs +++ b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsCreateOrUpdateCustomProperty.g.cs @@ -143,7 +143,7 @@ partial void ProcessOrgsCreateOrUpdateCustomPropertyResponseContent( string customPropertyName, global::GitHub.OrgsCreateOrUpdateCustomPropertyRequestValueType valueType, bool required = default, - global::System.OneOf>? defaultValue = default, + global::System.OneOf>? defaultValue = default, string? description = default, global::System.Collections.Generic.IList? allowedValues = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/GitHub/Generated/GitHub.PullsClient.PullsCreate.g.cs b/src/libs/GitHub/Generated/GitHub.PullsClient.PullsCreate.g.cs index 368d523f..31ea698d 100644 --- a/src/libs/GitHub/Generated/GitHub.PullsClient.PullsCreate.g.cs +++ b/src/libs/GitHub/Generated/GitHub.PullsClient.PullsCreate.g.cs @@ -151,7 +151,7 @@ partial void ProcessPullsCreateResponseContent( /// /// /// An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless `title` is specified.
- /// Example: 1 + /// Example: 1L /// /// The token to cancel the operation with /// diff --git a/src/libs/GitHub/Generated/GitHub.PullsClient.PullsRequestReviewers.g.cs b/src/libs/GitHub/Generated/GitHub.PullsClient.PullsRequestReviewers.g.cs index 64e0b6e6..7cda4124 100644 --- a/src/libs/GitHub/Generated/GitHub.PullsClient.PullsRequestReviewers.g.cs +++ b/src/libs/GitHub/Generated/GitHub.PullsClient.PullsRequestReviewers.g.cs @@ -57,7 +57,7 @@ partial void ProcessPullsRequestReviewersResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/pulls/{pullNumber}/requested_reviewers", global::System.UriKind.RelativeOrAbsolute)); - var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.PullsRequestReviewersRequest); + var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.AnyOf); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposCancelPagesDeployment.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposCancelPagesDeployment.g.cs index 12c93ddc..cb3e2951 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposCancelPagesDeployment.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposCancelPagesDeployment.g.cs @@ -9,13 +9,13 @@ partial void PrepareReposCancelPagesDeploymentArguments( global::System.Net.Http.HttpClient httpClient, ref string owner, ref string repo, - ref global::System.OneOf pagesDeploymentId); + ref global::System.OneOf pagesDeploymentId); partial void PrepareReposCancelPagesDeploymentRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string owner, string repo, - global::System.OneOf pagesDeploymentId); + global::System.OneOf pagesDeploymentId); partial void ProcessReposCancelPagesDeploymentResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -38,7 +38,7 @@ partial void ProcessReposCancelPagesDeploymentResponseContent( public async global::System.Threading.Tasks.Task ReposCancelPagesDeploymentAsync( string owner, string repo, - global::System.OneOf pagesDeploymentId, + global::System.OneOf pagesDeploymentId, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposCreateDeployment.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposCreateDeployment.g.cs index 404cb331..be128079 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposCreateDeployment.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposCreateDeployment.g.cs @@ -217,7 +217,7 @@ partial void ProcessReposCreateDeploymentResponseContent( string? task = "deploy", bool autoMerge = true, global::System.Collections.Generic.IList? requiredContexts = default, - global::System.OneOf? payload = default, + global::System.OneOf? payload = default, string? environment = "production", string? description = default, bool transientEnvironment = false, diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposCreatePagesSite.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposCreatePagesSite.g.cs index 69a5ead2..0cbd436d 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposCreatePagesSite.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposCreatePagesSite.g.cs @@ -53,7 +53,7 @@ partial void ProcessReposCreatePagesSiteResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/pages", global::System.UriKind.RelativeOrAbsolute)); - var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.ReposCreatePagesSiteRequest); + var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.AnyOf); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetBranchRules.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetBranchRules.g.cs index 4fd26060..5a67d430 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetBranchRules.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetBranchRules.g.cs @@ -114,7 +114,7 @@ partial void ProcessReposGetBranchRulesResponseContent( } return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::GitHub.SourceGenerationContext.Default.IListRepositoryRuleDetailed) ?? + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::GitHub.SourceGenerationContext.Default.IListNullableRepositoryRuleDetailed) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } } diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetPagesDeployment.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetPagesDeployment.g.cs index f1672130..1467c569 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetPagesDeployment.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetPagesDeployment.g.cs @@ -9,13 +9,13 @@ partial void PrepareReposGetPagesDeploymentArguments( global::System.Net.Http.HttpClient httpClient, ref string owner, ref string repo, - ref global::System.OneOf pagesDeploymentId); + ref global::System.OneOf pagesDeploymentId); partial void PrepareReposGetPagesDeploymentRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string owner, string repo, - global::System.OneOf pagesDeploymentId); + global::System.OneOf pagesDeploymentId); partial void ProcessReposGetPagesDeploymentResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -38,7 +38,7 @@ partial void ProcessReposGetPagesDeploymentResponseContent( public async global::System.Threading.Tasks.Task ReposGetPagesDeploymentAsync( string owner, string repo, - global::System.OneOf pagesDeploymentId, + global::System.OneOf pagesDeploymentId, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposUpdateInformationAboutPagesSite.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposUpdateInformationAboutPagesSite.g.cs index 63156c1c..84b1f9fc 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposUpdateInformationAboutPagesSite.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposUpdateInformationAboutPagesSite.g.cs @@ -53,7 +53,7 @@ partial void ProcessReposUpdateInformationAboutPagesSiteResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Put, requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/pages", global::System.UriKind.RelativeOrAbsolute)); - var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.ReposUpdateInformationAboutPagesSiteRequest); + var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.AnyOf); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/GitHub/Generated/GitHub.SecurityAdvisoriesClient.SecurityAdvisoriesListGlobalAdvisories.g.cs b/src/libs/GitHub/Generated/GitHub.SecurityAdvisoriesClient.SecurityAdvisoriesListGlobalAdvisories.g.cs index efe5bf4c..7b4f12ae 100644 --- a/src/libs/GitHub/Generated/GitHub.SecurityAdvisoriesClient.SecurityAdvisoriesListGlobalAdvisories.g.cs +++ b/src/libs/GitHub/Generated/GitHub.SecurityAdvisoriesClient.SecurityAdvisoriesListGlobalAdvisories.g.cs @@ -12,9 +12,9 @@ partial void PrepareSecurityAdvisoriesListGlobalAdvisoriesArguments( ref string? cveId, ref global::GitHub.SecurityAdvisoryEcosystems? ecosystem, ref global::GitHub.SecurityAdvisoriesListGlobalAdvisoriesSeverity? severity, - ref global::System.OneOf>? cwes, + ref global::System.OneOf>? cwes, ref bool isWithdrawn, - ref global::System.OneOf>? affects, + ref global::System.OneOf>? affects, ref string? published, ref string? updated, ref string? modified, @@ -33,9 +33,9 @@ partial void PrepareSecurityAdvisoriesListGlobalAdvisoriesRequest( string? cveId, global::GitHub.SecurityAdvisoryEcosystems? ecosystem, global::GitHub.SecurityAdvisoriesListGlobalAdvisoriesSeverity? severity, - global::System.OneOf>? cwes, + global::System.OneOf>? cwes, bool isWithdrawn, - global::System.OneOf>? affects, + global::System.OneOf>? affects, string? published, string? updated, string? modified, @@ -96,9 +96,9 @@ partial void ProcessSecurityAdvisoriesListGlobalAdvisoriesResponseContent( string? cveId, global::GitHub.SecurityAdvisoryEcosystems? ecosystem, global::GitHub.SecurityAdvisoriesListGlobalAdvisoriesSeverity? severity, - global::System.OneOf>? cwes, + global::System.OneOf>? cwes, bool isWithdrawn, - global::System.OneOf>? affects, + global::System.OneOf>? affects, string? published, string? updated, string? modified, diff --git a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersAddEmailForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersAddEmailForAuthenticatedUser.g.cs index 71796bed..10def9ec 100644 --- a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersAddEmailForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersAddEmailForAuthenticatedUser.g.cs @@ -7,11 +7,11 @@ public partial class UsersClient { partial void PrepareUsersAddEmailForAuthenticatedUserArguments( global::System.Net.Http.HttpClient httpClient, - global::System.OneOf, string?> request); + global::System.OneOf, string> request); partial void PrepareUsersAddEmailForAuthenticatedUserRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.OneOf, string?> request); + global::System.OneOf, string> request); partial void ProcessUsersAddEmailForAuthenticatedUserResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -29,7 +29,7 @@ partial void ProcessUsersAddEmailForAuthenticatedUserResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> UsersAddEmailForAuthenticatedUserAsync( - global::System.OneOf, string?> request, + global::System.OneOf, string> request, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -102,7 +102,7 @@ partial void ProcessUsersAddEmailForAuthenticatedUserResponseContent( public async global::System.Threading.Tasks.Task> UsersAddEmailForAuthenticatedUserAsync( global::System.Threading.CancellationToken cancellationToken = default) { - var request = new global::System.OneOf, string?> + var request = new global::System.OneOf, string> { }; diff --git a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersDeleteEmailForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersDeleteEmailForAuthenticatedUser.g.cs index f2c59fcd..ec630cb4 100644 --- a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersDeleteEmailForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersDeleteEmailForAuthenticatedUser.g.cs @@ -7,11 +7,11 @@ public partial class UsersClient { partial void PrepareUsersDeleteEmailForAuthenticatedUserArguments( global::System.Net.Http.HttpClient httpClient, - global::System.OneOf, string?> request); + global::System.OneOf, string> request); partial void PrepareUsersDeleteEmailForAuthenticatedUserRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.OneOf, string?> request); + global::System.OneOf, string> request); partial void ProcessUsersDeleteEmailForAuthenticatedUserResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -29,7 +29,7 @@ partial void ProcessUsersDeleteEmailForAuthenticatedUserResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task UsersDeleteEmailForAuthenticatedUserAsync( - global::System.OneOf, string?> request, + global::System.OneOf, string> request, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -102,7 +102,7 @@ partial void ProcessUsersDeleteEmailForAuthenticatedUserResponseContent( public async global::System.Threading.Tasks.Task UsersDeleteEmailForAuthenticatedUserAsync( global::System.Threading.CancellationToken cancellationToken = default) { - var request = new global::System.OneOf, string?> + var request = new global::System.OneOf, string> { }; diff --git a/src/libs/GitHub/Generated/JsonConverters.ChecksCreateRequestVariant1Status.g.cs b/src/libs/GitHub/Generated/JsonConverters.ChecksCreateRequestVariant1Status.g.cs new file mode 100644 index 00000000..80c749f5 --- /dev/null +++ b/src/libs/GitHub/Generated/JsonConverters.ChecksCreateRequestVariant1Status.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace OpenApiGenerator.JsonConverters +{ + /// + public sealed class ChecksCreateRequestVariant1StatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::GitHub.ChecksCreateRequestVariant1Status Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::GitHub.ChecksCreateRequestVariant1StatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::GitHub.ChecksCreateRequestVariant1Status)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::GitHub.ChecksCreateRequestVariant1Status value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::GitHub.ChecksCreateRequestVariant1StatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/GitHub/Generated/JsonConverters.ChecksCreateRequestVariant1StatusNullable.g.cs b/src/libs/GitHub/Generated/JsonConverters.ChecksCreateRequestVariant1StatusNullable.g.cs new file mode 100644 index 00000000..9747cd27 --- /dev/null +++ b/src/libs/GitHub/Generated/JsonConverters.ChecksCreateRequestVariant1StatusNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace OpenApiGenerator.JsonConverters +{ + /// + public sealed class ChecksCreateRequestVariant1StatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::GitHub.ChecksCreateRequestVariant1Status? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::GitHub.ChecksCreateRequestVariant1StatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::GitHub.ChecksCreateRequestVariant1Status)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::GitHub.ChecksCreateRequestVariant1Status? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::GitHub.ChecksCreateRequestVariant1StatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/GitHub/Generated/JsonConverters.ChecksCreateRequestVariant2Status.g.cs b/src/libs/GitHub/Generated/JsonConverters.ChecksCreateRequestVariant2Status.g.cs new file mode 100644 index 00000000..9cad8d87 --- /dev/null +++ b/src/libs/GitHub/Generated/JsonConverters.ChecksCreateRequestVariant2Status.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace OpenApiGenerator.JsonConverters +{ + /// + public sealed class ChecksCreateRequestVariant2StatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::GitHub.ChecksCreateRequestVariant2Status Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::GitHub.ChecksCreateRequestVariant2StatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::GitHub.ChecksCreateRequestVariant2Status)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::GitHub.ChecksCreateRequestVariant2Status value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::GitHub.ChecksCreateRequestVariant2StatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/GitHub/Generated/JsonConverters.ChecksCreateRequestVariant2StatusNullable.g.cs b/src/libs/GitHub/Generated/JsonConverters.ChecksCreateRequestVariant2StatusNullable.g.cs new file mode 100644 index 00000000..75f8800e --- /dev/null +++ b/src/libs/GitHub/Generated/JsonConverters.ChecksCreateRequestVariant2StatusNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace OpenApiGenerator.JsonConverters +{ + /// + public sealed class ChecksCreateRequestVariant2StatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::GitHub.ChecksCreateRequestVariant2Status? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::GitHub.ChecksCreateRequestVariant2StatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::GitHub.ChecksCreateRequestVariant2Status)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::GitHub.ChecksCreateRequestVariant2Status? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::GitHub.ChecksCreateRequestVariant2StatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/GitHub/Generated/JsonConverters.ChecksUpdateRequestVariant1Status.g.cs b/src/libs/GitHub/Generated/JsonConverters.ChecksUpdateRequestVariant1Status.g.cs new file mode 100644 index 00000000..9df8b3bd --- /dev/null +++ b/src/libs/GitHub/Generated/JsonConverters.ChecksUpdateRequestVariant1Status.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace OpenApiGenerator.JsonConverters +{ + /// + public sealed class ChecksUpdateRequestVariant1StatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::GitHub.ChecksUpdateRequestVariant1Status Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::GitHub.ChecksUpdateRequestVariant1StatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::GitHub.ChecksUpdateRequestVariant1Status)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::GitHub.ChecksUpdateRequestVariant1Status value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::GitHub.ChecksUpdateRequestVariant1StatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/GitHub/Generated/JsonConverters.ChecksUpdateRequestVariant1StatusNullable.g.cs b/src/libs/GitHub/Generated/JsonConverters.ChecksUpdateRequestVariant1StatusNullable.g.cs new file mode 100644 index 00000000..87825a8a --- /dev/null +++ b/src/libs/GitHub/Generated/JsonConverters.ChecksUpdateRequestVariant1StatusNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace OpenApiGenerator.JsonConverters +{ + /// + public sealed class ChecksUpdateRequestVariant1StatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::GitHub.ChecksUpdateRequestVariant1Status? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::GitHub.ChecksUpdateRequestVariant1StatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::GitHub.ChecksUpdateRequestVariant1Status)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::GitHub.ChecksUpdateRequestVariant1Status? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::GitHub.ChecksUpdateRequestVariant1StatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/GitHub/Generated/JsonConverters.ChecksUpdateRequestVariant2Status.g.cs b/src/libs/GitHub/Generated/JsonConverters.ChecksUpdateRequestVariant2Status.g.cs new file mode 100644 index 00000000..219dbf68 --- /dev/null +++ b/src/libs/GitHub/Generated/JsonConverters.ChecksUpdateRequestVariant2Status.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace OpenApiGenerator.JsonConverters +{ + /// + public sealed class ChecksUpdateRequestVariant2StatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::GitHub.ChecksUpdateRequestVariant2Status Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::GitHub.ChecksUpdateRequestVariant2StatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::GitHub.ChecksUpdateRequestVariant2Status)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::GitHub.ChecksUpdateRequestVariant2Status value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::GitHub.ChecksUpdateRequestVariant2StatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/GitHub/Generated/JsonConverters.ChecksUpdateRequestVariant2StatusNullable.g.cs b/src/libs/GitHub/Generated/JsonConverters.ChecksUpdateRequestVariant2StatusNullable.g.cs new file mode 100644 index 00000000..6e0a4179 --- /dev/null +++ b/src/libs/GitHub/Generated/JsonConverters.ChecksUpdateRequestVariant2StatusNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace OpenApiGenerator.JsonConverters +{ + /// + public sealed class ChecksUpdateRequestVariant2StatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::GitHub.ChecksUpdateRequestVariant2Status? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::GitHub.ChecksUpdateRequestVariant2StatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::GitHub.ChecksUpdateRequestVariant2Status)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::GitHub.ChecksUpdateRequestVariant2Status? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::GitHub.ChecksUpdateRequestVariant2StatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/GitHub/Generated/JsonConverters.CodeSecurityDefaultConfigurationDefaultForNewRepos.g.cs b/src/libs/GitHub/Generated/JsonConverters.CodeSecurityDefaultConfigurationDefaultForNewRepos.g.cs new file mode 100644 index 00000000..5dc0ee66 --- /dev/null +++ b/src/libs/GitHub/Generated/JsonConverters.CodeSecurityDefaultConfigurationDefaultForNewRepos.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace OpenApiGenerator.JsonConverters +{ + /// + public sealed class CodeSecurityDefaultConfigurationDefaultForNewReposJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::GitHub.CodeSecurityDefaultConfigurationDefaultForNewRepos Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::GitHub.CodeSecurityDefaultConfigurationDefaultForNewReposExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::GitHub.CodeSecurityDefaultConfigurationDefaultForNewRepos)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::GitHub.CodeSecurityDefaultConfigurationDefaultForNewRepos value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::GitHub.CodeSecurityDefaultConfigurationDefaultForNewReposExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/GitHub/Generated/JsonConverters.CodeSecurityDefaultConfigurationDefaultForNewReposNullable.g.cs b/src/libs/GitHub/Generated/JsonConverters.CodeSecurityDefaultConfigurationDefaultForNewReposNullable.g.cs new file mode 100644 index 00000000..45ffa9f2 --- /dev/null +++ b/src/libs/GitHub/Generated/JsonConverters.CodeSecurityDefaultConfigurationDefaultForNewReposNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace OpenApiGenerator.JsonConverters +{ + /// + public sealed class CodeSecurityDefaultConfigurationDefaultForNewReposNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::GitHub.CodeSecurityDefaultConfigurationDefaultForNewRepos? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::GitHub.CodeSecurityDefaultConfigurationDefaultForNewReposExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::GitHub.CodeSecurityDefaultConfigurationDefaultForNewRepos)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::GitHub.CodeSecurityDefaultConfigurationDefaultForNewRepos? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::GitHub.CodeSecurityDefaultConfigurationDefaultForNewReposExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/GitHub/Generated/JsonSerializerContext.g.cs b/src/libs/GitHub/Generated/JsonSerializerContext.g.cs index dfa04c24..03940c27 100644 --- a/src/libs/GitHub/Generated/JsonSerializerContext.g.cs +++ b/src/libs/GitHub/Generated/JsonSerializerContext.g.cs @@ -225,6 +225,8 @@ namespace GitHub typeof(global::OpenApiGenerator.JsonConverters.CodeSecurityConfigurationPrivateVulnerabilityReportingNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.CodeSecurityConfigurationEnforcementJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.CodeSecurityConfigurationEnforcementNullableJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.CodeSecurityDefaultConfigurationDefaultForNewReposJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.CodeSecurityDefaultConfigurationDefaultForNewReposNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.CodeSecurityConfigurationRepositoriesStatusJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.CodeSecurityConfigurationRepositoriesStatusNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.NullableCodespaceMachinePrebuildAvailabilityJsonConverter), @@ -5067,12 +5069,20 @@ namespace GitHub typeof(global::OpenApiGenerator.JsonConverters.ChecksCreateRequestConclusionNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ChecksCreateRequestOutputAnnotationAnnotationLevelJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ChecksCreateRequestOutputAnnotationAnnotationLevelNullableJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.ChecksCreateRequestVariant1StatusJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.ChecksCreateRequestVariant1StatusNullableJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.ChecksCreateRequestVariant2StatusJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.ChecksCreateRequestVariant2StatusNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ChecksUpdateRequestStatusJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ChecksUpdateRequestStatusNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ChecksUpdateRequestConclusionJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ChecksUpdateRequestConclusionNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ChecksUpdateRequestOutputAnnotationAnnotationLevelJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ChecksUpdateRequestOutputAnnotationAnnotationLevelNullableJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.ChecksUpdateRequestVariant1StatusJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.ChecksUpdateRequestVariant1StatusNullableJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.ChecksUpdateRequestVariant2StatusJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.ChecksUpdateRequestVariant2StatusNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.CodespacesCreateWithRepoForAuthenticatedUserRequestGeoJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.CodespacesCreateWithRepoForAuthenticatedUserRequestGeoNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ReactionsCreateForCommitCommentRequestContentJsonConverter), diff --git a/src/libs/GitHub/Generated/JsonSerializerContextTypes.g.cs b/src/libs/GitHub/Generated/JsonSerializerContextTypes.g.cs index 3f967c8f..0291ca3f 100644 --- a/src/libs/GitHub/Generated/JsonSerializerContextTypes.g.cs +++ b/src/libs/GitHub/Generated/JsonSerializerContextTypes.g.cs @@ -165,7 +165,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.OneOf>? Type38 { get; set; } + public global::System.OneOf>? Type38 { get; set; } /// /// /// @@ -701,11 +701,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList>? Type172 { get; set; } + public global::System.Collections.Generic.IList>? Type172 { get; set; } /// /// /// - public global::System.OneOf? Type173 { get; set; } + public global::System.OneOf? Type173 { get; set; } /// /// /// @@ -1465,7 +1465,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.OneOf>? Type363 { get; set; } + public global::System.OneOf>? Type363 { get; set; } /// /// /// @@ -2369,7 +2369,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.OneOf? Type589 { get; set; } + public global::System.OneOf? Type589 { get; set; } /// /// /// @@ -3505,11 +3505,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList>? Type873 { get; set; } + public global::System.Collections.Generic.IList>? Type873 { get; set; } /// /// /// - public global::System.OneOf? Type874 { get; set; } + public global::System.OneOf? Type874 { get; set; } /// /// /// @@ -3849,7 +3849,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.OneOf? Type959 { get; set; } + public global::System.OneOf? Type959 { get; set; } /// /// /// @@ -7629,7 +7629,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.OneOf? Type1904 { get; set; } + public global::System.OneOf? Type1904 { get; set; } /// /// /// @@ -8249,7 +8249,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.OneOf? Type2059 { get; set; } + public global::System.OneOf? Type2059 { get; set; } /// /// /// @@ -13581,7 +13581,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.OneOf? Type3392 { get; set; } + public global::System.OneOf? Type3392 { get; set; } /// /// /// @@ -13701,7 +13701,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.OneOf? Type3422 { get; set; } + public global::System.OneOf? Type3422 { get; set; } /// /// /// @@ -14185,7 +14185,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.OneOf? Type3543 { get; set; } + public global::System.OneOf? Type3543 { get; set; } /// /// /// @@ -21273,7 +21273,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.OneOf? Type5315 { get; set; } + public global::System.OneOf? Type5315 { get; set; } /// /// /// @@ -21317,7 +21317,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.OneOf? Type5326 { get; set; } + public global::System.OneOf? Type5326 { get; set; } /// /// /// @@ -21325,7 +21325,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.OneOf? Type5328 { get; set; } + public global::System.OneOf? Type5328 { get; set; } /// /// /// @@ -21349,7 +21349,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.OneOf? Type5334 { get; set; } + public global::System.OneOf? Type5334 { get; set; } /// /// /// @@ -21357,7 +21357,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.OneOf? Type5336 { get; set; } + public global::System.OneOf? Type5336 { get; set; } /// /// /// @@ -21381,7 +21381,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.OneOf? Type5342 { get; set; } + public global::System.OneOf? Type5342 { get; set; } /// /// /// @@ -21397,7 +21397,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.OneOf? Type5346 { get; set; } + public global::System.OneOf? Type5346 { get; set; } /// /// /// @@ -21405,7 +21405,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.OneOf? Type5348 { get; set; } + public global::System.OneOf? Type5348 { get; set; } /// /// /// @@ -24109,7 +24109,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.OneOf? Type6024 { get; set; } + public global::System.OneOf? Type6024 { get; set; } /// /// /// @@ -24277,15 +24277,15 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.OneOf? Type6066 { get; set; } + public global::System.OneOf? Type6066 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type6067 { get; set; } + public global::System.Collections.Generic.IList>? Type6067 { get; set; } /// /// /// - public global::System.OneOf? Type6068 { get; set; } + public global::System.OneOf? Type6068 { get; set; } /// /// /// @@ -24317,11 +24317,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList>? Type6076 { get; set; } + public global::System.Collections.Generic.IList>? Type6076 { get; set; } /// /// /// - public global::System.OneOf? Type6077 { get; set; } + public global::System.OneOf? Type6077 { get; set; } /// /// /// @@ -24341,7 +24341,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.OneOf, global::GitHub.IssuesAddLabelsRequestVariant3, global::System.Collections.Generic.IList, string?>? Type6082 { get; set; } + public global::System.OneOf, global::GitHub.IssuesAddLabelsRequestVariant3, global::System.Collections.Generic.IList, string>? Type6082 { get; set; } /// /// /// @@ -24369,7 +24369,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.OneOf, global::GitHub.IssuesSetLabelsRequestVariant3, global::System.Collections.Generic.IList, string?>? Type6089 { get; set; } + public global::System.OneOf, global::GitHub.IssuesSetLabelsRequestVariant3, global::System.Collections.Generic.IList, string>? Type6089 { get; set; } /// /// /// @@ -24841,11 +24841,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList>? Type6207 { get; set; } + public global::System.Collections.Generic.IList>? Type6207 { get; set; } /// /// /// - public global::System.AnyOf? Type6208 { get; set; } + public global::System.AnyOf? Type6208 { get; set; } /// /// /// @@ -24869,7 +24869,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.OneOf, string?>? Type6214 { get; set; } + public global::System.OneOf, string>? Type6214 { get; set; } /// /// /// @@ -24877,7 +24877,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.OneOf, string?>? Type6216 { get; set; } + public global::System.OneOf, string>? Type6216 { get; set; } /// /// ///