diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Anthropic/NewtonsoftJson/_#G.Models.ImageBlockSource.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Anthropic/NewtonsoftJson/_#G.Models.ImageBlockSource.g.verified.cs index aae889579e..88a69d1e6e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Anthropic/NewtonsoftJson/_#G.Models.ImageBlockSource.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Anthropic/NewtonsoftJson/_#G.Models.ImageBlockSource.g.verified.cs @@ -24,8 +24,8 @@ public sealed partial class ImageBlockSource /// /// The type of image source. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ImageBlockSourceType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.ImageBlockSourceType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#G.Models.ImageBlockSource.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#G.Models.ImageBlockSource.g.verified.cs index 664f119d7e..72c1c2ec08 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#G.Models.ImageBlockSource.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Anthropic/SystemTextJson/_#G.Models.ImageBlockSource.g.verified.cs @@ -29,8 +29,7 @@ public sealed partial class ImageBlockSource /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ImageBlockSourceTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ImageBlockSourceType Type { get; set; } = global::G.ImageBlockSourceType.Base64; + public global::G.ImageBlockSourceType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.ContentFile.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.ContentFile.g.verified.cs index 34d1060c98..2f76cc2e67 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.ContentFile.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.ContentFile.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class ContentFile /// /// /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ContentFileType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.ContentFileType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.ContentSubmodule.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.ContentSubmodule.g.verified.cs index c4a3192f6e..6c93ba2482 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.ContentSubmodule.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.ContentSubmodule.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class ContentSubmodule /// /// /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ContentSubmoduleType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.ContentSubmoduleType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.ContentSymlink.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.ContentSymlink.g.verified.cs index d370d2bb97..8503d4e021 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.ContentSymlink.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.ContentSymlink.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class ContentSymlink /// /// /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ContentSymlinkType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.ContentSymlinkType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.OrgsUpdateMembershipForAuthenticatedUserRequest.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.OrgsUpdateMembershipForAuthenticatedUserRequest.g.verified.cs index 9a1e862eba..a1f6b57727 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.OrgsUpdateMembershipForAuthenticatedUserRequest.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.OrgsUpdateMembershipForAuthenticatedUserRequest.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class OrgsUpdateMembershipForAuthenticatedUserRequest /// /// The state that the membership should be in. Only `"active"` will be accepted. /// - [global::Newtonsoft.Json.JsonProperty("state", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.OrgsUpdateMembershipForAuthenticatedUserRequestState State { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("state")] + public global::G.OrgsUpdateMembershipForAuthenticatedUserRequestState State { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.OrgsUpdatePatAccessRequest.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.OrgsUpdatePatAccessRequest.g.verified.cs index deb933281e..b2037670e3 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.OrgsUpdatePatAccessRequest.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.OrgsUpdatePatAccessRequest.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class OrgsUpdatePatAccessRequest /// /// Action to apply to the fine-grained personal access token. /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.OrgsUpdatePatAccessRequestAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.OrgsUpdatePatAccessRequestAction Action { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.OrgsUpdatePatAccessesRequest.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.OrgsUpdatePatAccessesRequest.g.verified.cs index f040611d46..d5e3d8379e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.OrgsUpdatePatAccessesRequest.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.OrgsUpdatePatAccessesRequest.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class OrgsUpdatePatAccessesRequest /// /// Action to apply to the fine-grained personal access token. /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.OrgsUpdatePatAccessesRequestAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.OrgsUpdatePatAccessesRequestAction Action { get; set; } /// /// The IDs of the fine-grained personal access tokens. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleBranchNamePattern.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleBranchNamePattern.g.verified.cs index f6ed807f90..e6da32e475 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleBranchNamePattern.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleBranchNamePattern.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RepositoryRuleBranchNamePattern /// /// /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RepositoryRuleBranchNamePatternType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RepositoryRuleBranchNamePatternType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleCodeScanning.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleCodeScanning.g.verified.cs index 78a5b6d9bd..e185fefa34 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleCodeScanning.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleCodeScanning.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RepositoryRuleCodeScanning /// /// /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RepositoryRuleCodeScanningType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RepositoryRuleCodeScanningType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleCommitAuthorEmailPattern.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleCommitAuthorEmailPattern.g.verified.cs index 571117ba84..87db02ea17 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleCommitAuthorEmailPattern.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleCommitAuthorEmailPattern.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RepositoryRuleCommitAuthorEmailPattern /// /// /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RepositoryRuleCommitAuthorEmailPatternType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RepositoryRuleCommitAuthorEmailPatternType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleCommitMessagePattern.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleCommitMessagePattern.g.verified.cs index bd3d5650cc..13830539fd 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleCommitMessagePattern.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleCommitMessagePattern.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RepositoryRuleCommitMessagePattern /// /// /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RepositoryRuleCommitMessagePatternType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RepositoryRuleCommitMessagePatternType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleCommitterEmailPattern.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleCommitterEmailPattern.g.verified.cs index 845a971be3..64fa5c6a40 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleCommitterEmailPattern.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleCommitterEmailPattern.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RepositoryRuleCommitterEmailPattern /// /// /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RepositoryRuleCommitterEmailPatternType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RepositoryRuleCommitterEmailPatternType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleCreation.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleCreation.g.verified.cs index 405466e091..876c34d231 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleCreation.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleCreation.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RepositoryRuleCreation /// /// /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RepositoryRuleCreationType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RepositoryRuleCreationType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleDeletion.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleDeletion.g.verified.cs index 5128c5d954..cedf3e6de7 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleDeletion.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleDeletion.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RepositoryRuleDeletion /// /// /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RepositoryRuleDeletionType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RepositoryRuleDeletionType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleNonFastForward.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleNonFastForward.g.verified.cs index 98188acb7e..c5c59483c6 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleNonFastForward.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleNonFastForward.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RepositoryRuleNonFastForward /// /// /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RepositoryRuleNonFastForwardType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RepositoryRuleNonFastForwardType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRulePullRequest.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRulePullRequest.g.verified.cs index dfbeed6ed9..7f0cdc96c7 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRulePullRequest.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRulePullRequest.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RepositoryRulePullRequest /// /// /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RepositoryRulePullRequestType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RepositoryRulePullRequestType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleRequiredDeployments.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleRequiredDeployments.g.verified.cs index 1f339f68a8..0d68e83e5c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleRequiredDeployments.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleRequiredDeployments.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RepositoryRuleRequiredDeployments /// /// /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RepositoryRuleRequiredDeploymentsType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RepositoryRuleRequiredDeploymentsType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleRequiredLinearHistory.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleRequiredLinearHistory.g.verified.cs index 0b3f14e2a8..610a975227 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleRequiredLinearHistory.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleRequiredLinearHistory.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RepositoryRuleRequiredLinearHistory /// /// /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RepositoryRuleRequiredLinearHistoryType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RepositoryRuleRequiredLinearHistoryType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleRequiredSignatures.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleRequiredSignatures.g.verified.cs index 9e0db6bae2..b036efce00 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleRequiredSignatures.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleRequiredSignatures.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RepositoryRuleRequiredSignatures /// /// /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RepositoryRuleRequiredSignaturesType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RepositoryRuleRequiredSignaturesType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleRequiredStatusChecks.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleRequiredStatusChecks.g.verified.cs index 9cafbfe5af..5784925bbb 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleRequiredStatusChecks.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleRequiredStatusChecks.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RepositoryRuleRequiredStatusChecks /// /// /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RepositoryRuleRequiredStatusChecksType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RepositoryRuleRequiredStatusChecksType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleTagNamePattern.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleTagNamePattern.g.verified.cs index 143b38991e..d712477810 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleTagNamePattern.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleTagNamePattern.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RepositoryRuleTagNamePattern /// /// /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RepositoryRuleTagNamePatternType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RepositoryRuleTagNamePatternType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleUpdate.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleUpdate.g.verified.cs index a819f13da0..eb243bca1f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleUpdate.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleUpdate.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RepositoryRuleUpdate /// /// /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RepositoryRuleUpdateType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RepositoryRuleUpdateType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleVariant15.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleVariant15.g.verified.cs index aa5ccb4993..f8791b0e59 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleVariant15.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleVariant15.g.verified.cs @@ -13,8 +13,8 @@ public sealed partial class RepositoryRuleVariant15 /// /// /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RepositoryRuleVariant15Type Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RepositoryRuleVariant15Type Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleVariant16.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleVariant16.g.verified.cs index 3ab689fd84..0520e67078 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleVariant16.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleVariant16.g.verified.cs @@ -13,8 +13,8 @@ public sealed partial class RepositoryRuleVariant16 /// /// /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RepositoryRuleVariant16Type Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RepositoryRuleVariant16Type Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleVariant17.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleVariant17.g.verified.cs index 3cf323e21f..8c5ffd5393 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleVariant17.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleVariant17.g.verified.cs @@ -13,8 +13,8 @@ public sealed partial class RepositoryRuleVariant17 /// /// /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RepositoryRuleVariant17Type Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RepositoryRuleVariant17Type Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleVariant18.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleVariant18.g.verified.cs index 05f2f7d5f6..ba176bbbc7 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleVariant18.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleVariant18.g.verified.cs @@ -13,8 +13,8 @@ public sealed partial class RepositoryRuleVariant18 /// /// /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RepositoryRuleVariant18Type Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RepositoryRuleVariant18Type Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleWorkflows.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleWorkflows.g.verified.cs index 4188d72eeb..f16207695b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleWorkflows.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.RepositoryRuleWorkflows.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RepositoryRuleWorkflows /// /// /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RepositoryRuleWorkflowsType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RepositoryRuleWorkflowsType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookBranchProtectionConfigurationDisabled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookBranchProtectionConfigurationDisabled.g.verified.cs index 19b08fdf26..2c0e89d527 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookBranchProtectionConfigurationDisabled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookBranchProtectionConfigurationDisabled.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookBranchProtectionConfigurationDisabled /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookBranchProtectionConfigurationDisabledAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookBranchProtectionConfigurationDisabledAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookBranchProtectionConfigurationEnabled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookBranchProtectionConfigurationEnabled.g.verified.cs index 97fe43e307..f134e90667 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookBranchProtectionConfigurationEnabled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookBranchProtectionConfigurationEnabled.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookBranchProtectionConfigurationEnabled /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookBranchProtectionConfigurationEnabledAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookBranchProtectionConfigurationEnabledAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookBranchProtectionRuleCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookBranchProtectionRuleCreated.g.verified.cs index 62cff1061f..26c3df5e67 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookBranchProtectionRuleCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookBranchProtectionRuleCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookBranchProtectionRuleCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookBranchProtectionRuleCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookBranchProtectionRuleCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookBranchProtectionRuleDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookBranchProtectionRuleDeleted.g.verified.cs index 36a3745c15..a0bb71507c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookBranchProtectionRuleDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookBranchProtectionRuleDeleted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookBranchProtectionRuleDeleted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookBranchProtectionRuleDeletedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookBranchProtectionRuleDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookBranchProtectionRuleEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookBranchProtectionRuleEdited.g.verified.cs index 580890942e..9dcfbbacb7 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookBranchProtectionRuleEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookBranchProtectionRuleEdited.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookBranchProtectionRuleEdited /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookBranchProtectionRuleEditedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookBranchProtectionRuleEditedAction Action { get; set; } /// /// If the action was `edited`, the changes to the rule. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCheckRunRequestedAction.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCheckRunRequestedAction.g.verified.cs index 864e31b6ee..c07bb0259f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCheckRunRequestedAction.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCheckRunRequestedAction.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookCheckRunRequestedAction /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookCheckRunRequestedActionAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookCheckRunRequestedActionAction Action { get; set; } /// /// A check performed on the code of a given code change diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCheckSuiteCompleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCheckSuiteCompleted.g.verified.cs index 19d915f260..127bff2cd9 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCheckSuiteCompleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCheckSuiteCompleted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookCheckSuiteCompleted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookCheckSuiteCompletedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookCheckSuiteCompletedAction Action { get; set; } /// /// The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCheckSuiteRequested.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCheckSuiteRequested.g.verified.cs index d9b837679c..0da0db9dff 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCheckSuiteRequested.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCheckSuiteRequested.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookCheckSuiteRequested /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookCheckSuiteRequestedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookCheckSuiteRequestedAction Action { get; set; } /// /// The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCheckSuiteRerequested.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCheckSuiteRerequested.g.verified.cs index f234ad8eb8..ad9f0f0d0d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCheckSuiteRerequested.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCheckSuiteRerequested.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookCheckSuiteRerequested /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookCheckSuiteRerequestedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookCheckSuiteRerequestedAction Action { get; set; } /// /// The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertAppearedInBranch.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertAppearedInBranch.g.verified.cs index 65164fa2f6..6f5c6f47ee 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertAppearedInBranch.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertAppearedInBranch.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookCodeScanningAlertAppearedInBranch /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookCodeScanningAlertAppearedInBranchAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookCodeScanningAlertAppearedInBranchAction Action { get; set; } /// /// The code scanning alert involved in the event. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertClosedByUser.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertClosedByUser.g.verified.cs index 5efee03859..12625cd3ec 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertClosedByUser.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertClosedByUser.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookCodeScanningAlertClosedByUser /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookCodeScanningAlertClosedByUserAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookCodeScanningAlertClosedByUserAction Action { get; set; } /// /// The code scanning alert involved in the event. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertCreated.g.verified.cs index f354296c45..6210f7d6e0 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookCodeScanningAlertCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookCodeScanningAlertCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookCodeScanningAlertCreatedAction Action { get; set; } /// /// The code scanning alert involved in the event. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertFixed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertFixed.g.verified.cs index 68cdc74d40..f8b11322da 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertFixed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertFixed.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookCodeScanningAlertFixed /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookCodeScanningAlertFixedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookCodeScanningAlertFixedAction Action { get; set; } /// /// The code scanning alert involved in the event. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertFixedAlert.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertFixedAlert.g.verified.cs index 66d246a268..fb161b69a8 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertFixedAlert.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertFixedAlert.g.verified.cs @@ -66,8 +66,8 @@ public sealed partial class WebhookCodeScanningAlertFixedAlert /// /// State of a code scanning alert. /// - [global::Newtonsoft.Json.JsonProperty("state", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookCodeScanningAlertFixedAlertState State { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("state")] + public global::G.WebhookCodeScanningAlertFixedAlertState State { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertReopened.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertReopened.g.verified.cs index ece684fb66..f3c77f544e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertReopened.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertReopened.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookCodeScanningAlertReopened /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookCodeScanningAlertReopenedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookCodeScanningAlertReopenedAction Action { get; set; } /// /// The code scanning alert involved in the event. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertReopenedByUser.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertReopenedByUser.g.verified.cs index 56097e35cb..98be15e8ff 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertReopenedByUser.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCodeScanningAlertReopenedByUser.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookCodeScanningAlertReopenedByUser /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookCodeScanningAlertReopenedByUserAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookCodeScanningAlertReopenedByUserAction Action { get; set; } /// /// The code scanning alert involved in the event. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCommitCommentCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCommitCommentCreated.g.verified.cs index 91a412b7c6..3f273ce4e2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCommitCommentCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCommitCommentCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookCommitCommentCreated /// /// The action performed. Can be `created`. /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookCommitCommentCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookCommitCommentCreatedAction Action { get; set; } /// /// The [commit comment](https://docs.github.com/rest/commits/comments#get-a-commit-comment) resource. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCustomPropertyCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCustomPropertyCreated.g.verified.cs index deedff2336..93c8c3cad1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCustomPropertyCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCustomPropertyCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookCustomPropertyCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookCustomPropertyCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookCustomPropertyCreatedAction Action { get; set; } /// /// Custom property defined on an organization diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCustomPropertyDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCustomPropertyDeleted.g.verified.cs index 1673de70e1..c78b5de87b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCustomPropertyDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCustomPropertyDeleted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookCustomPropertyDeleted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookCustomPropertyDeletedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookCustomPropertyDeletedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCustomPropertyUpdated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCustomPropertyUpdated.g.verified.cs index b43d4d4cfc..d9e4d1e39a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCustomPropertyUpdated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCustomPropertyUpdated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookCustomPropertyUpdated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookCustomPropertyUpdatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookCustomPropertyUpdatedAction Action { get; set; } /// /// Custom property defined on an organization diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCustomPropertyValuesUpdated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCustomPropertyValuesUpdated.g.verified.cs index b09167ff80..eccf9cba2c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCustomPropertyValuesUpdated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookCustomPropertyValuesUpdated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookCustomPropertyValuesUpdated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookCustomPropertyValuesUpdatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookCustomPropertyValuesUpdatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertAutoDismissed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertAutoDismissed.g.verified.cs index 4e73243a3a..26b685fe1f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertAutoDismissed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertAutoDismissed.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDependabotAlertAutoDismissed /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDependabotAlertAutoDismissedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDependabotAlertAutoDismissedAction Action { get; set; } /// /// A Dependabot alert. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertAutoReopened.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertAutoReopened.g.verified.cs index 36a0e3afef..6bc10570cf 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertAutoReopened.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertAutoReopened.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDependabotAlertAutoReopened /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDependabotAlertAutoReopenedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDependabotAlertAutoReopenedAction Action { get; set; } /// /// A Dependabot alert. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertCreated.g.verified.cs index b3ee12b023..0d285d0446 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDependabotAlertCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDependabotAlertCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDependabotAlertCreatedAction Action { get; set; } /// /// A Dependabot alert. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertDismissed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertDismissed.g.verified.cs index ef57141e86..b1dc900888 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertDismissed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertDismissed.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDependabotAlertDismissed /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDependabotAlertDismissedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDependabotAlertDismissedAction Action { get; set; } /// /// A Dependabot alert. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertFixed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertFixed.g.verified.cs index 81afab81f0..bc11b36b70 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertFixed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertFixed.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDependabotAlertFixed /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDependabotAlertFixedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDependabotAlertFixedAction Action { get; set; } /// /// A Dependabot alert. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertReintroduced.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertReintroduced.g.verified.cs index 7a19a76341..516a720c39 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertReintroduced.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertReintroduced.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDependabotAlertReintroduced /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDependabotAlertReintroducedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDependabotAlertReintroducedAction Action { get; set; } /// /// A Dependabot alert. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertReopened.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertReopened.g.verified.cs index dc0eb649cf..ef82535a5a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertReopened.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDependabotAlertReopened.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDependabotAlertReopened /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDependabotAlertReopenedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDependabotAlertReopenedAction Action { get; set; } /// /// A Dependabot alert. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeployKeyCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeployKeyCreated.g.verified.cs index af91b82517..ee4862d27f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeployKeyCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeployKeyCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDeployKeyCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDeployKeyCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDeployKeyCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeployKeyDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeployKeyDeleted.g.verified.cs index 88620b901f..125f8e1bc3 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeployKeyDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeployKeyDeleted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDeployKeyDeleted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDeployKeyDeletedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDeployKeyDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeploymentCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeploymentCreated.g.verified.cs index 5a53617826..2b08121ea0 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeploymentCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeploymentCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDeploymentCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDeploymentCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDeploymentCreatedAction Action { get; set; } /// /// The [deployment](https://docs.github.com/rest/deployments/deployments#list-deployments). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeploymentReviewApproved.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeploymentReviewApproved.g.verified.cs index 5c07564f09..57f1a7e82d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeploymentReviewApproved.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeploymentReviewApproved.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDeploymentReviewApproved /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDeploymentReviewApprovedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDeploymentReviewApprovedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeploymentReviewRejected.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeploymentReviewRejected.g.verified.cs index b831656a65..b5a2c75e0e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeploymentReviewRejected.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeploymentReviewRejected.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDeploymentReviewRejected /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDeploymentReviewRejectedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDeploymentReviewRejectedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeploymentReviewRequested.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeploymentReviewRequested.g.verified.cs index e26175e32a..e93661d808 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeploymentReviewRequested.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeploymentReviewRequested.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDeploymentReviewRequested /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDeploymentReviewRequestedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDeploymentReviewRequestedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeploymentStatusCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeploymentStatusCreated.g.verified.cs index 96a4f85076..7f255b468e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeploymentStatusCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDeploymentStatusCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDeploymentStatusCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDeploymentStatusCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDeploymentStatusCreatedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionAnswered.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionAnswered.g.verified.cs index 4da896a4a7..c2ac39ce23 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionAnswered.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionAnswered.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDiscussionAnswered /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDiscussionAnsweredAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDiscussionAnsweredAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionCategoryChanged.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionCategoryChanged.g.verified.cs index 601ca38929..cdaac1581b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionCategoryChanged.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionCategoryChanged.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDiscussionCategoryChanged /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDiscussionCategoryChangedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDiscussionCategoryChangedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionClosed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionClosed.g.verified.cs index 8fedcf351f..f60b363428 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionClosed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionClosed.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDiscussionClosed /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDiscussionClosedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDiscussionClosedAction Action { get; set; } /// /// A Discussion in a repository. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionCommentCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionCommentCreated.g.verified.cs index 5a7ae90df7..5a2325370c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionCommentCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionCommentCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDiscussionCommentCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDiscussionCommentCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDiscussionCommentCreatedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionCommentDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionCommentDeleted.g.verified.cs index 00c94956cc..c614874470 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionCommentDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionCommentDeleted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDiscussionCommentDeleted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDiscussionCommentDeletedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDiscussionCommentDeletedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionCommentEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionCommentEdited.g.verified.cs index 63d258c9af..78778672b0 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionCommentEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionCommentEdited.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDiscussionCommentEdited /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDiscussionCommentEditedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDiscussionCommentEditedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionCreated.g.verified.cs index 2726bf24c5..f34f23d390 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDiscussionCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDiscussionCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDiscussionCreatedAction Action { get; set; } /// /// A Discussion in a repository. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionDeleted.g.verified.cs index 893199ce5a..526ceb647a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionDeleted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDiscussionDeleted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDiscussionDeletedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDiscussionDeletedAction Action { get; set; } /// /// A Discussion in a repository. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionEdited.g.verified.cs index 61d3f9307a..2a1dec90bb 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionEdited.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDiscussionEdited /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDiscussionEditedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDiscussionEditedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionLabeled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionLabeled.g.verified.cs index af78f17d8e..7cff03546c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionLabeled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionLabeled.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDiscussionLabeled /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDiscussionLabeledAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDiscussionLabeledAction Action { get; set; } /// /// A Discussion in a repository. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionLocked.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionLocked.g.verified.cs index b9a2616b74..00da75a98f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionLocked.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionLocked.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDiscussionLocked /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDiscussionLockedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDiscussionLockedAction Action { get; set; } /// /// A Discussion in a repository. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionPinned.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionPinned.g.verified.cs index c4e0a3084f..5928adc07a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionPinned.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionPinned.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDiscussionPinned /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDiscussionPinnedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDiscussionPinnedAction Action { get; set; } /// /// A Discussion in a repository. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionReopened.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionReopened.g.verified.cs index e634e756c4..e63a056634 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionReopened.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionReopened.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDiscussionReopened /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDiscussionReopenedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDiscussionReopenedAction Action { get; set; } /// /// A Discussion in a repository. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionTransferred.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionTransferred.g.verified.cs index bae3d3ba32..23d6dfeec1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionTransferred.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionTransferred.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDiscussionTransferred /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDiscussionTransferredAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDiscussionTransferredAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionUnanswered.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionUnanswered.g.verified.cs index ba42ddec29..282a21fc47 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionUnanswered.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionUnanswered.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDiscussionUnanswered /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDiscussionUnansweredAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDiscussionUnansweredAction Action { get; set; } /// /// A Discussion in a repository. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionUnlabeled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionUnlabeled.g.verified.cs index cca088beea..b427724cdd 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionUnlabeled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionUnlabeled.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDiscussionUnlabeled /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDiscussionUnlabeledAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDiscussionUnlabeledAction Action { get; set; } /// /// A Discussion in a repository. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionUnlocked.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionUnlocked.g.verified.cs index 0d928f870b..45dceafb7c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionUnlocked.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionUnlocked.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDiscussionUnlocked /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDiscussionUnlockedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDiscussionUnlockedAction Action { get; set; } /// /// A Discussion in a repository. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionUnpinned.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionUnpinned.g.verified.cs index d5ed59be18..9521f8850f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionUnpinned.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookDiscussionUnpinned.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookDiscussionUnpinned /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookDiscussionUnpinnedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookDiscussionUnpinnedAction Action { get; set; } /// /// A Discussion in a repository. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookGithubAppAuthorizationRevoked.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookGithubAppAuthorizationRevoked.g.verified.cs index aaa6cf7424..b938869b66 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookGithubAppAuthorizationRevoked.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookGithubAppAuthorizationRevoked.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookGithubAppAuthorizationRevoked /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookGithubAppAuthorizationRevokedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookGithubAppAuthorizationRevokedAction Action { get; set; } /// /// The GitHub user that triggered the event. This property is included in every webhook payload. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationCreated.g.verified.cs index e7a7383ecf..c7d938b824 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookInstallationCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookInstallationCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookInstallationCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationDeleted.g.verified.cs index 73d7f18bc6..adab143dad 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationDeleted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookInstallationDeleted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookInstallationDeletedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookInstallationDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationNewPermissionsAccepted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationNewPermissionsAccepted.g.verified.cs index c8f9d289f7..94f4b14291 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationNewPermissionsAccepted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationNewPermissionsAccepted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookInstallationNewPermissionsAccepted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookInstallationNewPermissionsAcceptedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookInstallationNewPermissionsAcceptedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationRepositoriesAdded.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationRepositoriesAdded.g.verified.cs index b554edafd6..25040dfaea 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationRepositoriesAdded.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationRepositoriesAdded.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookInstallationRepositoriesAdded /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookInstallationRepositoriesAddedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookInstallationRepositoriesAddedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationRepositoriesRemoved.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationRepositoriesRemoved.g.verified.cs index cc2652aa8f..cb288769f2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationRepositoriesRemoved.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationRepositoriesRemoved.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookInstallationRepositoriesRemoved /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookInstallationRepositoriesRemovedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookInstallationRepositoriesRemovedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationSuspend.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationSuspend.g.verified.cs index 95431be2fc..1d269a2e51 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationSuspend.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationSuspend.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookInstallationSuspend /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookInstallationSuspendAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookInstallationSuspendAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationTargetRenamed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationTargetRenamed.g.verified.cs index 140b473528..9f75e6996e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationTargetRenamed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationTargetRenamed.g.verified.cs @@ -18,8 +18,8 @@ public sealed partial class WebhookInstallationTargetRenamed /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookInstallationTargetRenamedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookInstallationTargetRenamedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationUnsuspend.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationUnsuspend.g.verified.cs index 14625ce524..659c557ddd 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationUnsuspend.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookInstallationUnsuspend.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookInstallationUnsuspend /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookInstallationUnsuspendAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookInstallationUnsuspendAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssueCommentCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssueCommentCreated.g.verified.cs index 0e78ebbd7b..827b6fe837 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssueCommentCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssueCommentCreated.g.verified.cs @@ -14,8 +14,8 @@ public sealed partial class WebhookIssueCommentCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookIssueCommentCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookIssueCommentCreatedAction Action { get; set; } /// /// The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssueCommentDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssueCommentDeleted.g.verified.cs index 2d2acb68cc..098f69043c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssueCommentDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssueCommentDeleted.g.verified.cs @@ -14,8 +14,8 @@ public sealed partial class WebhookIssueCommentDeleted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookIssueCommentDeletedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookIssueCommentDeletedAction Action { get; set; } /// /// The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssueCommentEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssueCommentEdited.g.verified.cs index 23c828a38a..443b543ab2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssueCommentEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssueCommentEdited.g.verified.cs @@ -14,8 +14,8 @@ public sealed partial class WebhookIssueCommentEdited /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookIssueCommentEditedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookIssueCommentEditedAction Action { get; set; } /// /// The changes to the comment. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesAssigned.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesAssigned.g.verified.cs index c3aca9bb88..857f18f4c2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesAssigned.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesAssigned.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookIssuesAssigned /// /// The action that was performed. /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookIssuesAssignedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookIssuesAssignedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesClosed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesClosed.g.verified.cs index ff8553c0b8..ba259a1e92 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesClosed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesClosed.g.verified.cs @@ -14,8 +14,8 @@ public sealed partial class WebhookIssuesClosed /// /// The action that was performed. /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookIssuesClosedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookIssuesClosedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesDeleted.g.verified.cs index 2a91735d83..c7a0db8b97 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesDeleted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookIssuesDeleted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookIssuesDeletedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookIssuesDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesDemilestoned.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesDemilestoned.g.verified.cs index 1eda7be5dd..276610fc2a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesDemilestoned.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesDemilestoned.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookIssuesDemilestoned /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookIssuesDemilestonedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookIssuesDemilestonedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesEdited.g.verified.cs index c887edf570..914a8675bd 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesEdited.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookIssuesEdited /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookIssuesEditedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookIssuesEditedAction Action { get; set; } /// /// The changes to the issue. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesLabeled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesLabeled.g.verified.cs index 26bbe10afd..78cb1e7bdc 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesLabeled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesLabeled.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookIssuesLabeled /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookIssuesLabeledAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookIssuesLabeledAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesLocked.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesLocked.g.verified.cs index e90d60940b..1e77287557 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesLocked.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesLocked.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookIssuesLocked /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookIssuesLockedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookIssuesLockedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesMilestoned.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesMilestoned.g.verified.cs index 6e57ccbc78..c10163ab16 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesMilestoned.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesMilestoned.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookIssuesMilestoned /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookIssuesMilestonedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookIssuesMilestonedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesOpened.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesOpened.g.verified.cs index 13efe2c4aa..a6e07ed3ce 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesOpened.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesOpened.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookIssuesOpened /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookIssuesOpenedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookIssuesOpenedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesPinned.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesPinned.g.verified.cs index 1ec8cf2a07..311f3a6684 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesPinned.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesPinned.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookIssuesPinned /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookIssuesPinnedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookIssuesPinnedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesReopened.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesReopened.g.verified.cs index fffd27f5ae..e5f37ed2ab 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesReopened.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesReopened.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookIssuesReopened /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookIssuesReopenedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookIssuesReopenedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesTransferred.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesTransferred.g.verified.cs index b6a52904b9..0f0cfc6309 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesTransferred.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesTransferred.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookIssuesTransferred /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookIssuesTransferredAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookIssuesTransferredAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesUnassigned.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesUnassigned.g.verified.cs index 95dbac8b19..bb391deecd 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesUnassigned.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesUnassigned.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookIssuesUnassigned /// /// The action that was performed. /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookIssuesUnassignedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookIssuesUnassignedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesUnlabeled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesUnlabeled.g.verified.cs index a4c281f35b..d13044cb62 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesUnlabeled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesUnlabeled.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookIssuesUnlabeled /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookIssuesUnlabeledAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookIssuesUnlabeledAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesUnlocked.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesUnlocked.g.verified.cs index 457948efb1..dc381d18ee 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesUnlocked.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesUnlocked.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookIssuesUnlocked /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookIssuesUnlockedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookIssuesUnlockedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesUnpinned.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesUnpinned.g.verified.cs index e66c4d14e2..3e2e57a586 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesUnpinned.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookIssuesUnpinned.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookIssuesUnpinned /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookIssuesUnpinnedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookIssuesUnpinnedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookLabelCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookLabelCreated.g.verified.cs index f50ce30b92..41b9b64b87 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookLabelCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookLabelCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookLabelCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookLabelCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookLabelCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookLabelDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookLabelDeleted.g.verified.cs index 6f65387114..142e793653 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookLabelDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookLabelDeleted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookLabelDeleted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookLabelDeletedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookLabelDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookLabelEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookLabelEdited.g.verified.cs index 2d35fba1e3..4e1f7e95e3 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookLabelEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookLabelEdited.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookLabelEdited /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookLabelEditedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookLabelEditedAction Action { get; set; } /// /// The changes to the label if the action was `edited`. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMarketplacePurchaseCancelled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMarketplacePurchaseCancelled.g.verified.cs index f11fe2b648..09586992c3 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMarketplacePurchaseCancelled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMarketplacePurchaseCancelled.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookMarketplacePurchaseCancelled /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookMarketplacePurchaseCancelledAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookMarketplacePurchaseCancelledAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMarketplacePurchaseChanged.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMarketplacePurchaseChanged.g.verified.cs index 847e3cecfb..48cc3d496a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMarketplacePurchaseChanged.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMarketplacePurchaseChanged.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookMarketplacePurchaseChanged /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookMarketplacePurchaseChangedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookMarketplacePurchaseChangedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMarketplacePurchasePendingChange.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMarketplacePurchasePendingChange.g.verified.cs index 376c1023a3..0f420ac67b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMarketplacePurchasePendingChange.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMarketplacePurchasePendingChange.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookMarketplacePurchasePendingChange /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookMarketplacePurchasePendingChangeAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookMarketplacePurchasePendingChangeAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMarketplacePurchasePendingChangeCancelled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMarketplacePurchasePendingChangeCancelled.g.verified.cs index 108ebdb679..2a43e5d313 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMarketplacePurchasePendingChangeCancelled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMarketplacePurchasePendingChangeCancelled.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookMarketplacePurchasePendingChangeCancelled /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookMarketplacePurchasePendingChangeCancelledAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookMarketplacePurchasePendingChangeCancelledAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMarketplacePurchasePurchased.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMarketplacePurchasePurchased.g.verified.cs index c6c9610b6b..9a2f7eb35a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMarketplacePurchasePurchased.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMarketplacePurchasePurchased.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookMarketplacePurchasePurchased /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookMarketplacePurchasePurchasedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookMarketplacePurchasePurchasedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMemberAdded.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMemberAdded.g.verified.cs index 99f139fd95..43fe99cb37 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMemberAdded.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMemberAdded.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookMemberAdded /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookMemberAddedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookMemberAddedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMemberEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMemberEdited.g.verified.cs index 7cdc9d7298..d3570d2d37 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMemberEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMemberEdited.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookMemberEdited /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookMemberEditedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookMemberEditedAction Action { get; set; } /// /// The changes to the collaborator permissions diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMemberRemoved.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMemberRemoved.g.verified.cs index 2c582d32dd..a48353b3c8 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMemberRemoved.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMemberRemoved.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookMemberRemoved /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookMemberRemovedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookMemberRemovedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMembershipAdded.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMembershipAdded.g.verified.cs index 963e1ba20d..c7a3f2eaca 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMembershipAdded.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMembershipAdded.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookMembershipAdded /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookMembershipAddedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookMembershipAddedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
@@ -54,8 +54,8 @@ public sealed partial class WebhookMembershipAdded /// /// The scope of the membership. Currently, can only be `team`. /// - [global::Newtonsoft.Json.JsonProperty("scope", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookMembershipAddedScope Scope { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("scope")] + public global::G.WebhookMembershipAddedScope Scope { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMembershipRemoved.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMembershipRemoved.g.verified.cs index 6cd4397c15..ad8a9e4fe1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMembershipRemoved.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMembershipRemoved.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookMembershipRemoved /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookMembershipRemovedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookMembershipRemovedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMergeGroupChecksRequested.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMergeGroupChecksRequested.g.verified.cs index 9cb95911c7..30e5e43aa1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMergeGroupChecksRequested.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMergeGroupChecksRequested.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookMergeGroupChecksRequested /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookMergeGroupChecksRequestedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookMergeGroupChecksRequestedAction Action { get; set; } /// /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMergeGroupDestroyed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMergeGroupDestroyed.g.verified.cs index acd77ac01c..4085543772 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMergeGroupDestroyed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMergeGroupDestroyed.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookMergeGroupDestroyed /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookMergeGroupDestroyedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookMergeGroupDestroyedAction Action { get; set; } /// /// Explains why the merge group is being destroyed. The group could have been merged, removed from the queue (dequeued), or invalidated by an earlier queue entry being dequeued (invalidated). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMetaDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMetaDeleted.g.verified.cs index 93f6dc87e7..6f7061673a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMetaDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMetaDeleted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookMetaDeleted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookMetaDeletedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookMetaDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMilestoneClosed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMilestoneClosed.g.verified.cs index 97f69a9079..54fc86728b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMilestoneClosed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMilestoneClosed.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookMilestoneClosed /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookMilestoneClosedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookMilestoneClosedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMilestoneCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMilestoneCreated.g.verified.cs index f59100e42b..eaccbeda87 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMilestoneCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMilestoneCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookMilestoneCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookMilestoneCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookMilestoneCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMilestoneDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMilestoneDeleted.g.verified.cs index ad21b28f4a..67d0217a73 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMilestoneDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMilestoneDeleted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookMilestoneDeleted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookMilestoneDeletedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookMilestoneDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMilestoneEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMilestoneEdited.g.verified.cs index 5315493717..5ec7d0f12e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMilestoneEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMilestoneEdited.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookMilestoneEdited /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookMilestoneEditedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookMilestoneEditedAction Action { get; set; } /// /// The changes to the milestone if the action was `edited`. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMilestoneOpened.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMilestoneOpened.g.verified.cs index 86127a0d28..db3414a9ac 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMilestoneOpened.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookMilestoneOpened.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookMilestoneOpened /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookMilestoneOpenedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookMilestoneOpenedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrgBlockBlocked.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrgBlockBlocked.g.verified.cs index 4246acc280..dba8f3e3b4 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrgBlockBlocked.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrgBlockBlocked.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookOrgBlockBlocked /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookOrgBlockBlockedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookOrgBlockBlockedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrgBlockUnblocked.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrgBlockUnblocked.g.verified.cs index 3b04f802e0..e1040372b4 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrgBlockUnblocked.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrgBlockUnblocked.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookOrgBlockUnblocked /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookOrgBlockUnblockedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookOrgBlockUnblockedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrganizationDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrganizationDeleted.g.verified.cs index 3be74f1713..e5a88eb4d4 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrganizationDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrganizationDeleted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookOrganizationDeleted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookOrganizationDeletedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookOrganizationDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrganizationMemberAdded.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrganizationMemberAdded.g.verified.cs index 0c12a9c60a..d4fc592736 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrganizationMemberAdded.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrganizationMemberAdded.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookOrganizationMemberAdded /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookOrganizationMemberAddedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookOrganizationMemberAddedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrganizationMemberInvited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrganizationMemberInvited.g.verified.cs index 8c4b253625..20ab7ec644 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrganizationMemberInvited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrganizationMemberInvited.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookOrganizationMemberInvited /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookOrganizationMemberInvitedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookOrganizationMemberInvitedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrganizationMemberRemoved.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrganizationMemberRemoved.g.verified.cs index e95fdae57c..de34d3bd13 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrganizationMemberRemoved.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrganizationMemberRemoved.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookOrganizationMemberRemoved /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookOrganizationMemberRemovedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookOrganizationMemberRemovedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrganizationRenamed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrganizationRenamed.g.verified.cs index 53a1c7add4..524e3506d2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrganizationRenamed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookOrganizationRenamed.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookOrganizationRenamed /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookOrganizationRenamedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookOrganizationRenamedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPackagePublished.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPackagePublished.g.verified.cs index 2c68caacf4..f0c92f3043 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPackagePublished.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPackagePublished.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPackagePublished /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPackagePublishedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPackagePublishedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPackageUpdated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPackageUpdated.g.verified.cs index 5b98fa6029..c69e6f855b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPackageUpdated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPackageUpdated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPackageUpdated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPackageUpdatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPackageUpdatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPersonalAccessTokenRequestApproved.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPersonalAccessTokenRequestApproved.g.verified.cs index 515e50aee7..573fef61ed 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPersonalAccessTokenRequestApproved.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPersonalAccessTokenRequestApproved.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPersonalAccessTokenRequestApproved /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPersonalAccessTokenRequestApprovedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPersonalAccessTokenRequestApprovedAction Action { get; set; } /// /// Details of a Personal Access Token Request. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPersonalAccessTokenRequestCancelled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPersonalAccessTokenRequestCancelled.g.verified.cs index 4149eb4287..774968f604 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPersonalAccessTokenRequestCancelled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPersonalAccessTokenRequestCancelled.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPersonalAccessTokenRequestCancelled /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPersonalAccessTokenRequestCancelledAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPersonalAccessTokenRequestCancelledAction Action { get; set; } /// /// Details of a Personal Access Token Request. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPersonalAccessTokenRequestCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPersonalAccessTokenRequestCreated.g.verified.cs index 1c03954a48..ff044fe0a3 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPersonalAccessTokenRequestCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPersonalAccessTokenRequestCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPersonalAccessTokenRequestCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPersonalAccessTokenRequestCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPersonalAccessTokenRequestCreatedAction Action { get; set; } /// /// Details of a Personal Access Token Request. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPersonalAccessTokenRequestDenied.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPersonalAccessTokenRequestDenied.g.verified.cs index 5b02ce8fff..f62bcae39a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPersonalAccessTokenRequestDenied.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPersonalAccessTokenRequestDenied.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPersonalAccessTokenRequestDenied /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPersonalAccessTokenRequestDeniedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPersonalAccessTokenRequestDeniedAction Action { get; set; } /// /// Details of a Personal Access Token Request. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPingHook.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPingHook.g.verified.cs index 13e65246e7..fa43e08136 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPingHook.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPingHook.g.verified.cs @@ -60,8 +60,8 @@ public sealed partial class WebhookPingHook /// /// The type of webhook. The only valid value is 'web'. /// - [global::Newtonsoft.Json.JsonProperty("name", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPingHookName Name { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("name")] + public global::G.WebhookPingHookName Name { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectCardConverted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectCardConverted.g.verified.cs index 4afa5cd7e0..89da726828 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectCardConverted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectCardConverted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookProjectCardConverted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookProjectCardConvertedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookProjectCardConvertedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectCardCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectCardCreated.g.verified.cs index 221eaa4308..c9bc24973e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectCardCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectCardCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookProjectCardCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookProjectCardCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookProjectCardCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectCardDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectCardDeleted.g.verified.cs index 7e8582c0ce..0692f912f5 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectCardDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectCardDeleted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookProjectCardDeleted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookProjectCardDeletedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookProjectCardDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectCardEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectCardEdited.g.verified.cs index fd11960ef2..aada79dc16 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectCardEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectCardEdited.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookProjectCardEdited /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookProjectCardEditedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookProjectCardEditedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectCardMoved.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectCardMoved.g.verified.cs index c084e14da6..599e4a1cc5 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectCardMoved.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectCardMoved.g.verified.cs @@ -14,8 +14,8 @@ public sealed partial class WebhookProjectCardMoved /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookProjectCardMovedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookProjectCardMovedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectClosed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectClosed.g.verified.cs index c88728b47b..71e7eaa8d8 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectClosed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectClosed.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookProjectClosed /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookProjectClosedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookProjectClosedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectColumnCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectColumnCreated.g.verified.cs index 3d66239c71..4bf2c66e07 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectColumnCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectColumnCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookProjectColumnCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookProjectColumnCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookProjectColumnCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectColumnDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectColumnDeleted.g.verified.cs index 2757168d90..40caebc9d9 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectColumnDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectColumnDeleted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookProjectColumnDeleted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookProjectColumnDeletedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookProjectColumnDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectColumnEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectColumnEdited.g.verified.cs index ae0629d220..b29eeb9bec 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectColumnEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectColumnEdited.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookProjectColumnEdited /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookProjectColumnEditedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookProjectColumnEditedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectColumnMoved.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectColumnMoved.g.verified.cs index 43b05c7df2..bf2ad5abec 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectColumnMoved.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectColumnMoved.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookProjectColumnMoved /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookProjectColumnMovedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookProjectColumnMovedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectCreated.g.verified.cs index e184acaaaa..63880334bc 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookProjectCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookProjectCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookProjectCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectDeleted.g.verified.cs index 2ac9bd9a39..0d3e0ea2d1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectDeleted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookProjectDeleted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookProjectDeletedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookProjectDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectEdited.g.verified.cs index c6a1b8ed38..d99644d970 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectEdited.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookProjectEdited /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookProjectEditedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookProjectEditedAction Action { get; set; } /// /// The changes to the project if the action was `edited`. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectReopened.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectReopened.g.verified.cs index eb12bb6577..af1ed8fc19 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectReopened.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectReopened.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookProjectReopened /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookProjectReopenedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookProjectReopenedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemArchived.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemArchived.g.verified.cs index 4394acf57f..7933750366 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemArchived.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemArchived.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookProjectsV2ItemArchived /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookProjectsV2ItemArchivedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookProjectsV2ItemArchivedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemConverted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemConverted.g.verified.cs index 75faa59ac6..3aa95f61b1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemConverted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemConverted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookProjectsV2ItemConverted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookProjectsV2ItemConvertedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookProjectsV2ItemConvertedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemCreated.g.verified.cs index 8629091b15..d763440535 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookProjectsV2ItemCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookProjectsV2ItemCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookProjectsV2ItemCreatedAction Action { get; set; } /// /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemDeleted.g.verified.cs index d08cb1894a..773d18edef 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemDeleted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookProjectsV2ItemDeleted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookProjectsV2ItemDeletedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookProjectsV2ItemDeletedAction Action { get; set; } /// /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemEdited.g.verified.cs index ede297a700..592576b465 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemEdited.g.verified.cs @@ -14,8 +14,8 @@ public sealed partial class WebhookProjectsV2ItemEdited /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookProjectsV2ItemEditedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookProjectsV2ItemEditedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemReordered.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemReordered.g.verified.cs index df19de91e9..8859d35917 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemReordered.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemReordered.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookProjectsV2ItemReordered /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookProjectsV2ItemReorderedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookProjectsV2ItemReorderedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemRestored.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemRestored.g.verified.cs index 74a7dbc38c..b76e4fac14 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemRestored.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ItemRestored.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookProjectsV2ItemRestored /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookProjectsV2ItemRestoredAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookProjectsV2ItemRestoredAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ProjectClosed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ProjectClosed.g.verified.cs index ceea142906..bcee2c915a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ProjectClosed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ProjectClosed.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookProjectsV2ProjectClosed /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookProjectsV2ProjectClosedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookProjectsV2ProjectClosedAction Action { get; set; } /// /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ProjectCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ProjectCreated.g.verified.cs index 3c08e5e32a..2c9ecd6be5 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ProjectCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ProjectCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookProjectsV2ProjectCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookProjectsV2ProjectCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookProjectsV2ProjectCreatedAction Action { get; set; } /// /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ProjectDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ProjectDeleted.g.verified.cs index 037d0693b7..1d1dce572b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ProjectDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ProjectDeleted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookProjectsV2ProjectDeleted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookProjectsV2ProjectDeletedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookProjectsV2ProjectDeletedAction Action { get; set; } /// /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ProjectEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ProjectEdited.g.verified.cs index 467aa7a3bb..2ef1c27a2f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ProjectEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ProjectEdited.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookProjectsV2ProjectEdited /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookProjectsV2ProjectEditedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookProjectsV2ProjectEditedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ProjectReopened.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ProjectReopened.g.verified.cs index 14c10c83f8..526d54d832 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ProjectReopened.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookProjectsV2ProjectReopened.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookProjectsV2ProjectReopened /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookProjectsV2ProjectReopenedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookProjectsV2ProjectReopenedAction Action { get; set; } /// /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestAssigned.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestAssigned.g.verified.cs index f3096eabb0..c5519d1c2d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestAssigned.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestAssigned.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestAssigned /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestAssignedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestAssignedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestAutoMergeDisabled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestAutoMergeDisabled.g.verified.cs index 62d9aef795..a28b9e65cf 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestAutoMergeDisabled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestAutoMergeDisabled.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestAutoMergeDisabled /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestAutoMergeDisabledAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestAutoMergeDisabledAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestAutoMergeEnabled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestAutoMergeEnabled.g.verified.cs index 2e62e1bc03..1679391a91 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestAutoMergeEnabled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestAutoMergeEnabled.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestAutoMergeEnabled /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestAutoMergeEnabledAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestAutoMergeEnabledAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestClosed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestClosed.g.verified.cs index b1b3a1dd78..3cd7a52d5a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestClosed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestClosed.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestClosed /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestClosedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestClosedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestConvertedToDraft.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestConvertedToDraft.g.verified.cs index 6518f61d09..daff5d5df4 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestConvertedToDraft.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestConvertedToDraft.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestConvertedToDraft /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestConvertedToDraftAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestConvertedToDraftAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestDemilestoned.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestDemilestoned.g.verified.cs index 8d40c8352c..527e0fe996 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestDemilestoned.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestDemilestoned.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestDemilestoned /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestDemilestonedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestDemilestonedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestDequeued.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestDequeued.g.verified.cs index 3eef9782ab..39249a9d10 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestDequeued.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestDequeued.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestDequeued /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestDequeuedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestDequeuedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestEdited.g.verified.cs index dabedfc530..ba6bd65c66 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestEdited.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestEdited /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestEditedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestEditedAction Action { get; set; } /// /// The changes to the comment if the action was `edited`. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestEnqueued.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestEnqueued.g.verified.cs index d94d7e3bcb..7fd39ac707 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestEnqueued.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestEnqueued.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestEnqueued /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestEnqueuedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestEnqueuedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestLabeled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestLabeled.g.verified.cs index 4e266d9381..95c85d9854 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestLabeled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestLabeled.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestLabeled /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestLabeledAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestLabeledAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestLocked.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestLocked.g.verified.cs index eb47ea97ed..d35f2f86d1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestLocked.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestLocked.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestLocked /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestLockedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestLockedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestMilestoned.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestMilestoned.g.verified.cs index 822ab2fbc6..2b9bc10331 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestMilestoned.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestMilestoned.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestMilestoned /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestMilestonedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestMilestonedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestOpened.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestOpened.g.verified.cs index 171449bd07..29ef043c2b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestOpened.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestOpened.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestOpened /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestOpenedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestOpenedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReadyForReview.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReadyForReview.g.verified.cs index 806de4d108..33408493bf 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReadyForReview.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReadyForReview.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestReadyForReview /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestReadyForReviewAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestReadyForReviewAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReopened.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReopened.g.verified.cs index ddfe3f729f..284b881eb3 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReopened.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReopened.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestReopened /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestReopenedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestReopenedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewCommentCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewCommentCreated.g.verified.cs index 18242aafd9..9b1a912e3b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewCommentCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewCommentCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestReviewCommentCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestReviewCommentCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestReviewCommentCreatedAction Action { get; set; } /// /// The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewCommentDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewCommentDeleted.g.verified.cs index 66812ad826..37581e1cd2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewCommentDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewCommentDeleted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestReviewCommentDeleted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestReviewCommentDeletedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestReviewCommentDeletedAction Action { get; set; } /// /// The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewCommentEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewCommentEdited.g.verified.cs index a59a95a60b..13313ceadc 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewCommentEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewCommentEdited.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestReviewCommentEdited /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestReviewCommentEditedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestReviewCommentEditedAction Action { get; set; } /// /// The changes to the comment. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewDismissed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewDismissed.g.verified.cs index 37dd5f5e20..b2d44e12c8 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewDismissed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewDismissed.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestReviewDismissed /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestReviewDismissedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestReviewDismissedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewEdited.g.verified.cs index 87dbb67d80..aba0f51727 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewEdited.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestReviewEdited /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestReviewEditedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestReviewEditedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant1.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant1.g.verified.cs index d35a8764fd..b43a31ac68 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant1.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant1.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestReviewRequestRemovedVariant1 /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestReviewRequestRemovedVariant1Action Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestReviewRequestRemovedVariant1Action Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant2.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant2.g.verified.cs index 7c0fc56542..024293c2e9 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant2.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant2.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestReviewRequestRemovedVariant2 /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestReviewRequestRemovedVariant2Action Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestReviewRequestRemovedVariant2Action Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewRequestedVariant1.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewRequestedVariant1.g.verified.cs index e9a9821cbb..0cd623d3e9 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewRequestedVariant1.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewRequestedVariant1.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestReviewRequestedVariant1 /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestReviewRequestedVariant1Action Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestReviewRequestedVariant1Action Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewRequestedVariant2.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewRequestedVariant2.g.verified.cs index af1054f745..40e37731f6 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewRequestedVariant2.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewRequestedVariant2.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestReviewRequestedVariant2 /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestReviewRequestedVariant2Action Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestReviewRequestedVariant2Action Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewSubmitted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewSubmitted.g.verified.cs index 4ca4976c01..91f3edfd57 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewSubmitted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewSubmitted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestReviewSubmitted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestReviewSubmittedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestReviewSubmittedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewThreadResolved.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewThreadResolved.g.verified.cs index 98e4e85a88..9aab699438 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewThreadResolved.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewThreadResolved.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestReviewThreadResolved /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestReviewThreadResolvedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestReviewThreadResolvedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewThreadUnresolved.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewThreadUnresolved.g.verified.cs index dcfa908f8a..88362a05f3 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewThreadUnresolved.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestReviewThreadUnresolved.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestReviewThreadUnresolved /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestReviewThreadUnresolvedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestReviewThreadUnresolvedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestSynchronize.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestSynchronize.g.verified.cs index 3996ca0276..946d7490c6 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestSynchronize.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestSynchronize.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestSynchronize /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestSynchronizeAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestSynchronizeAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestUnassigned.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestUnassigned.g.verified.cs index bfa088e7a1..577b779e13 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestUnassigned.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestUnassigned.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestUnassigned /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestUnassignedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestUnassignedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestUnlabeled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestUnlabeled.g.verified.cs index ba20d4b5ef..b2a2a55821 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestUnlabeled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestUnlabeled.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestUnlabeled /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestUnlabeledAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestUnlabeledAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestUnlocked.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestUnlocked.g.verified.cs index 276df37d28..3107d62c2a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestUnlocked.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookPullRequestUnlocked.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookPullRequestUnlocked /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookPullRequestUnlockedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookPullRequestUnlockedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRegistryPackagePublished.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRegistryPackagePublished.g.verified.cs index dcd535b2aa..3851cb7a22 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRegistryPackagePublished.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRegistryPackagePublished.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookRegistryPackagePublished /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookRegistryPackagePublishedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookRegistryPackagePublishedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRegistryPackageUpdated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRegistryPackageUpdated.g.verified.cs index af6b532aa6..0e02c8748c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRegistryPackageUpdated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRegistryPackageUpdated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookRegistryPackageUpdated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookRegistryPackageUpdatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookRegistryPackageUpdatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleaseCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleaseCreated.g.verified.cs index 2e0a30c902..d845bc656b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleaseCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleaseCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookReleaseCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookReleaseCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookReleaseCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleaseDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleaseDeleted.g.verified.cs index 339ba03b0f..fb4a15146a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleaseDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleaseDeleted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookReleaseDeleted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookReleaseDeletedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookReleaseDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleaseEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleaseEdited.g.verified.cs index b6aa84d3a9..5b2d4e2cae 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleaseEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleaseEdited.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookReleaseEdited /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookReleaseEditedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookReleaseEditedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleasePrereleased.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleasePrereleased.g.verified.cs index 356a4558e1..433c3d8f92 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleasePrereleased.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleasePrereleased.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookReleasePrereleased /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookReleasePrereleasedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookReleasePrereleasedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleasePrereleasedReleaseAsset.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleasePrereleasedReleaseAsset.g.verified.cs index 6879d8bc55..abce443c93 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleasePrereleasedReleaseAsset.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleasePrereleasedReleaseAsset.g.verified.cs @@ -66,8 +66,8 @@ public sealed partial class WebhookReleasePrereleasedReleaseAsset /// /// State of the release asset. /// - [global::Newtonsoft.Json.JsonProperty("state", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookReleasePrereleasedReleaseAssetState State { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("state")] + public global::G.WebhookReleasePrereleasedReleaseAssetState State { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleasePublished.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleasePublished.g.verified.cs index 86b8417939..a209d451d2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleasePublished.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleasePublished.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookReleasePublished /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookReleasePublishedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookReleasePublishedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleaseReleased.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleaseReleased.g.verified.cs index 76b36baa59..e4f933052d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleaseReleased.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleaseReleased.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookReleaseReleased /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookReleaseReleasedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookReleaseReleasedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleaseUnpublished.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleaseUnpublished.g.verified.cs index 3fa79aadd2..05f4bc849c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleaseUnpublished.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookReleaseUnpublished.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookReleaseUnpublished /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookReleaseUnpublishedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookReleaseUnpublishedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryAdvisoryPublished.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryAdvisoryPublished.g.verified.cs index ec1341ef26..8e7e250573 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryAdvisoryPublished.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryAdvisoryPublished.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookRepositoryAdvisoryPublished /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookRepositoryAdvisoryPublishedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookRepositoryAdvisoryPublishedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryAdvisoryReported.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryAdvisoryReported.g.verified.cs index f79ba515fd..b0904da255 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryAdvisoryReported.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryAdvisoryReported.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookRepositoryAdvisoryReported /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookRepositoryAdvisoryReportedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookRepositoryAdvisoryReportedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryArchived.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryArchived.g.verified.cs index 968ed0ecc9..b10abdeced 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryArchived.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryArchived.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookRepositoryArchived /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookRepositoryArchivedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookRepositoryArchivedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryCreated.g.verified.cs index 09d33098ca..f8d5a5b820 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookRepositoryCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookRepositoryCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookRepositoryCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryDeleted.g.verified.cs index 64f3d21c13..6b5138f99e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryDeleted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookRepositoryDeleted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookRepositoryDeletedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookRepositoryDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryEdited.g.verified.cs index 6e1c68badd..1bee09519a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryEdited.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookRepositoryEdited /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookRepositoryEditedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookRepositoryEditedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryPrivatized.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryPrivatized.g.verified.cs index d17e4b5ce2..4726de488c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryPrivatized.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryPrivatized.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookRepositoryPrivatized /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookRepositoryPrivatizedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookRepositoryPrivatizedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryPublicized.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryPublicized.g.verified.cs index 85b0e894a9..12d2cf79f7 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryPublicized.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryPublicized.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookRepositoryPublicized /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookRepositoryPublicizedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookRepositoryPublicizedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryRenamed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryRenamed.g.verified.cs index c35ccecabb..3becf71c10 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryRenamed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryRenamed.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookRepositoryRenamed /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookRepositoryRenamedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookRepositoryRenamedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryRulesetCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryRulesetCreated.g.verified.cs index f611939c9d..b4bdf8a1d2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryRulesetCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryRulesetCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookRepositoryRulesetCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookRepositoryRulesetCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookRepositoryRulesetCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryRulesetDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryRulesetDeleted.g.verified.cs index 47745ce105..5137247f86 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryRulesetDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryRulesetDeleted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookRepositoryRulesetDeleted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookRepositoryRulesetDeletedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookRepositoryRulesetDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryRulesetEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryRulesetEdited.g.verified.cs index 2619ee430b..a4da4df192 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryRulesetEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryRulesetEdited.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookRepositoryRulesetEdited /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookRepositoryRulesetEditedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookRepositoryRulesetEditedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryTransferred.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryTransferred.g.verified.cs index 301026c2a6..25fb96aff5 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryTransferred.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryTransferred.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookRepositoryTransferred /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookRepositoryTransferredAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookRepositoryTransferredAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryUnarchived.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryUnarchived.g.verified.cs index 50ecd627e7..5a4078ce64 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryUnarchived.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryUnarchived.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookRepositoryUnarchived /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookRepositoryUnarchivedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookRepositoryUnarchivedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryVulnerabilityAlertCreate.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryVulnerabilityAlertCreate.g.verified.cs index 3b13f78c79..cd28092d32 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryVulnerabilityAlertCreate.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryVulnerabilityAlertCreate.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookRepositoryVulnerabilityAlertCreate /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookRepositoryVulnerabilityAlertCreateAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookRepositoryVulnerabilityAlertCreateAction Action { get; set; } /// /// The security alert of the vulnerable dependency. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryVulnerabilityAlertDismiss.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryVulnerabilityAlertDismiss.g.verified.cs index 4fe84491b7..964aafa3a5 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryVulnerabilityAlertDismiss.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryVulnerabilityAlertDismiss.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookRepositoryVulnerabilityAlertDismiss /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookRepositoryVulnerabilityAlertDismissAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookRepositoryVulnerabilityAlertDismissAction Action { get; set; } /// /// The security alert of the vulnerable dependency. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryVulnerabilityAlertDismissAlert.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryVulnerabilityAlertDismissAlert.g.verified.cs index df00ae8eb8..d9b4e6c4a2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryVulnerabilityAlertDismissAlert.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryVulnerabilityAlertDismissAlert.g.verified.cs @@ -114,8 +114,8 @@ public sealed partial class WebhookRepositoryVulnerabilityAlertDismissAlert /// /// /// - [global::Newtonsoft.Json.JsonProperty("state", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookRepositoryVulnerabilityAlertDismissAlertState State { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("state")] + public global::G.WebhookRepositoryVulnerabilityAlertDismissAlertState State { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryVulnerabilityAlertReopen.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryVulnerabilityAlertReopen.g.verified.cs index 1465cfc5c2..c1e049bfb5 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryVulnerabilityAlertReopen.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryVulnerabilityAlertReopen.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookRepositoryVulnerabilityAlertReopen /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookRepositoryVulnerabilityAlertReopenAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookRepositoryVulnerabilityAlertReopenAction Action { get; set; } /// /// The security alert of the vulnerable dependency. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryVulnerabilityAlertResolve.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryVulnerabilityAlertResolve.g.verified.cs index aa5bf8e86f..54c6af9423 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryVulnerabilityAlertResolve.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookRepositoryVulnerabilityAlertResolve.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookRepositoryVulnerabilityAlertResolve /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookRepositoryVulnerabilityAlertResolveAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookRepositoryVulnerabilityAlertResolveAction Action { get; set; } /// /// The security alert of the vulnerable dependency. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecretScanningAlertCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecretScanningAlertCreated.g.verified.cs index 17e78ed4a5..4f36bd046b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecretScanningAlertCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecretScanningAlertCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookSecretScanningAlertCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookSecretScanningAlertCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookSecretScanningAlertCreatedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecretScanningAlertReopened.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecretScanningAlertReopened.g.verified.cs index 635361b145..85c93e3944 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecretScanningAlertReopened.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecretScanningAlertReopened.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookSecretScanningAlertReopened /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookSecretScanningAlertReopenedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookSecretScanningAlertReopenedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecretScanningAlertResolved.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecretScanningAlertResolved.g.verified.cs index 6f852907a0..5dcb540cec 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecretScanningAlertResolved.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecretScanningAlertResolved.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookSecretScanningAlertResolved /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookSecretScanningAlertResolvedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookSecretScanningAlertResolvedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecretScanningAlertRevoked.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecretScanningAlertRevoked.g.verified.cs index bc4ef08c6b..6e71665cb9 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecretScanningAlertRevoked.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecretScanningAlertRevoked.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookSecretScanningAlertRevoked /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookSecretScanningAlertRevokedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookSecretScanningAlertRevokedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecretScanningAlertValidated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecretScanningAlertValidated.g.verified.cs index 7a1c1a346c..50c1715909 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecretScanningAlertValidated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecretScanningAlertValidated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookSecretScanningAlertValidated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookSecretScanningAlertValidatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookSecretScanningAlertValidatedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecurityAdvisoryPublished.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecurityAdvisoryPublished.g.verified.cs index 8cc6810c86..ef36e31cb1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecurityAdvisoryPublished.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecurityAdvisoryPublished.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookSecurityAdvisoryPublished /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookSecurityAdvisoryPublishedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookSecurityAdvisoryPublishedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecurityAdvisoryUpdated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecurityAdvisoryUpdated.g.verified.cs index b1fb1ea0fa..20503ba59e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecurityAdvisoryUpdated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecurityAdvisoryUpdated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookSecurityAdvisoryUpdated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookSecurityAdvisoryUpdatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookSecurityAdvisoryUpdatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecurityAdvisoryWithdrawn.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecurityAdvisoryWithdrawn.g.verified.cs index 1132925adf..4ecf6c4e8e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecurityAdvisoryWithdrawn.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSecurityAdvisoryWithdrawn.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookSecurityAdvisoryWithdrawn /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookSecurityAdvisoryWithdrawnAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookSecurityAdvisoryWithdrawnAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSponsorshipCancelled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSponsorshipCancelled.g.verified.cs index cd72ab2f36..4226460e83 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSponsorshipCancelled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSponsorshipCancelled.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookSponsorshipCancelled /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookSponsorshipCancelledAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookSponsorshipCancelledAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSponsorshipCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSponsorshipCreated.g.verified.cs index 5626f985e8..2c919e5a79 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSponsorshipCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSponsorshipCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookSponsorshipCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookSponsorshipCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookSponsorshipCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSponsorshipEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSponsorshipEdited.g.verified.cs index 5d3d379e55..417ce00a94 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSponsorshipEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSponsorshipEdited.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookSponsorshipEdited /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookSponsorshipEditedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookSponsorshipEditedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSponsorshipPendingCancellation.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSponsorshipPendingCancellation.g.verified.cs index fbf921ef48..affeb19964 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSponsorshipPendingCancellation.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSponsorshipPendingCancellation.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookSponsorshipPendingCancellation /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookSponsorshipPendingCancellationAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookSponsorshipPendingCancellationAction Action { get; set; } /// /// The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSponsorshipPendingTierChange.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSponsorshipPendingTierChange.g.verified.cs index cda6b4ca9d..bd1f2bdea3 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSponsorshipPendingTierChange.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSponsorshipPendingTierChange.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookSponsorshipPendingTierChange /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookSponsorshipPendingTierChangeAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookSponsorshipPendingTierChangeAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSponsorshipTierChanged.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSponsorshipTierChanged.g.verified.cs index 34b3b4f171..d2fb267c58 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSponsorshipTierChanged.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookSponsorshipTierChanged.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookSponsorshipTierChanged /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookSponsorshipTierChangedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookSponsorshipTierChangedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookStarCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookStarCreated.g.verified.cs index f72bb9c829..b4d5ee62e2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookStarCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookStarCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookStarCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookStarCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookStarCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookStarDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookStarDeleted.g.verified.cs index e7edbd3fdc..79b6c8d766 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookStarDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookStarDeleted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookStarDeleted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookStarDeletedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookStarDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookTeamAddedToRepository.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookTeamAddedToRepository.g.verified.cs index ff61787b52..7d8918f28b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookTeamAddedToRepository.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookTeamAddedToRepository.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookTeamAddedToRepository /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookTeamAddedToRepositoryAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookTeamAddedToRepositoryAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookTeamCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookTeamCreated.g.verified.cs index b2b7d028d8..bf4f6c8e0e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookTeamCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookTeamCreated.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookTeamCreated /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookTeamCreatedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookTeamCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookTeamDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookTeamDeleted.g.verified.cs index d0e0cc7520..832b71debd 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookTeamDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookTeamDeleted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookTeamDeleted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookTeamDeletedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookTeamDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookTeamEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookTeamEdited.g.verified.cs index 19ac3c2afa..3079f205d8 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookTeamEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookTeamEdited.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookTeamEdited /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookTeamEditedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookTeamEditedAction Action { get; set; } /// /// The changes to the team if the action was `edited`. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookTeamRemovedFromRepository.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookTeamRemovedFromRepository.g.verified.cs index 06f97f2962..8700481903 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookTeamRemovedFromRepository.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookTeamRemovedFromRepository.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookTeamRemovedFromRepository /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookTeamRemovedFromRepositoryAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookTeamRemovedFromRepositoryAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWatchStarted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWatchStarted.g.verified.cs index e06bb2f569..31208d86c2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWatchStarted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWatchStarted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookWatchStarted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookWatchStartedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookWatchStartedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowJobCompleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowJobCompleted.g.verified.cs index d80c8c55fa..c0783a9c24 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowJobCompleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowJobCompleted.g.verified.cs @@ -14,8 +14,8 @@ public sealed partial class WebhookWorkflowJobCompleted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookWorkflowJobCompletedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookWorkflowJobCompletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowJobInProgress.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowJobInProgress.g.verified.cs index 233f21902a..a1f0aec82e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowJobInProgress.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowJobInProgress.g.verified.cs @@ -14,8 +14,8 @@ public sealed partial class WebhookWorkflowJobInProgress /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookWorkflowJobInProgressAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookWorkflowJobInProgressAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowJobQueued.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowJobQueued.g.verified.cs index e6a4fe4284..9068845e2d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowJobQueued.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowJobQueued.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookWorkflowJobQueued /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookWorkflowJobQueuedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookWorkflowJobQueuedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowJobWaiting.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowJobWaiting.g.verified.cs index 53e0112d1c..e33828eb31 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowJobWaiting.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowJobWaiting.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookWorkflowJobWaiting /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookWorkflowJobWaitingAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookWorkflowJobWaitingAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowRunCompleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowRunCompleted.g.verified.cs index 57a73d819d..cff1f67f67 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowRunCompleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowRunCompleted.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookWorkflowRunCompleted /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookWorkflowRunCompletedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookWorkflowRunCompletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowRunInProgress.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowRunInProgress.g.verified.cs index f3ecb76423..d1965ceceb 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowRunInProgress.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowRunInProgress.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookWorkflowRunInProgress /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookWorkflowRunInProgressAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookWorkflowRunInProgressAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowRunRequested.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowRunRequested.g.verified.cs index 57f3bfac40..2820fa5035 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowRunRequested.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhookWorkflowRunRequested.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class WebhookWorkflowRunRequested /// /// /// - [global::Newtonsoft.Json.JsonProperty("action", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhookWorkflowRunRequestedAction Action { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("action")] + public global::G.WebhookWorkflowRunRequestedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhooksAlert.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhooksAlert.g.verified.cs index db63bc33d7..a303660d10 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhooksAlert.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhooksAlert.g.verified.cs @@ -108,8 +108,8 @@ public sealed partial class WebhooksAlert /// /// /// - [global::Newtonsoft.Json.JsonProperty("state", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhooksAlertState State { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("state")] + public global::G.WebhooksAlertState State { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhooksRelease1Asset.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhooksRelease1Asset.g.verified.cs index 7bb4cbd7c0..fe3723c760 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhooksRelease1Asset.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhooksRelease1Asset.g.verified.cs @@ -66,8 +66,8 @@ public sealed partial class WebhooksRelease1Asset /// /// State of the release asset. /// - [global::Newtonsoft.Json.JsonProperty("state", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhooksRelease1AssetState State { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("state")] + public global::G.WebhooksRelease1AssetState State { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhooksReleaseAsset.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhooksReleaseAsset.g.verified.cs index cb8374ca5d..267af015f8 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhooksReleaseAsset.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.Models.WebhooksReleaseAsset.g.verified.cs @@ -66,8 +66,8 @@ public sealed partial class WebhooksReleaseAsset /// /// State of the release asset. /// - [global::Newtonsoft.Json.JsonProperty("state", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.WebhooksReleaseAssetState State { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("state")] + public global::G.WebhooksReleaseAssetState State { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.OrgsClient.OrgsUpdateMembershipForAuthenticatedUser.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.OrgsClient.OrgsUpdateMembershipForAuthenticatedUser.g.verified.cs index d1ddf64ba2..79188cf85f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.OrgsClient.OrgsUpdateMembershipForAuthenticatedUser.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.OrgsClient.OrgsUpdateMembershipForAuthenticatedUser.g.verified.cs @@ -114,7 +114,7 @@ partial void ProcessOrgsUpdateMembershipForAuthenticatedUserResponseContent( /// public async global::System.Threading.Tasks.Task OrgsUpdateMembershipForAuthenticatedUserAsync( string org, - global::G.OrgsUpdateMembershipForAuthenticatedUserRequestState state, + global::G.OrgsUpdateMembershipForAuthenticatedUserRequestState state = default, global::System.Threading.CancellationToken cancellationToken = default) { var request = new global::G.OrgsUpdateMembershipForAuthenticatedUserRequest diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.OrgsClient.OrgsUpdatePatAccess.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.OrgsClient.OrgsUpdatePatAccess.g.verified.cs index 87f8801e3a..55ca15dcf0 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.OrgsClient.OrgsUpdatePatAccess.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.OrgsClient.OrgsUpdatePatAccess.g.verified.cs @@ -124,7 +124,7 @@ partial void ProcessOrgsUpdatePatAccessResponseContent( public async global::System.Threading.Tasks.Task OrgsUpdatePatAccessAsync( string org, int patId, - global::G.OrgsUpdatePatAccessRequestAction action, + global::G.OrgsUpdatePatAccessRequestAction action = default, global::System.Threading.CancellationToken cancellationToken = default) { var request = new global::G.OrgsUpdatePatAccessRequest diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.OrgsClient.OrgsUpdatePatAccesses.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.OrgsClient.OrgsUpdatePatAccesses.g.verified.cs index 56ddf81c43..017b662204 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.OrgsClient.OrgsUpdatePatAccesses.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/NewtonsoftJson/_#G.OrgsClient.OrgsUpdatePatAccesses.g.verified.cs @@ -119,8 +119,8 @@ partial void ProcessOrgsUpdatePatAccessesResponseContent( /// public async global::System.Threading.Tasks.Task OrgsUpdatePatAccessesAsync( string org, - global::G.OrgsUpdatePatAccessesRequestAction action, global::System.Collections.Generic.IList patIds, + global::G.OrgsUpdatePatAccessesRequestAction action = default, global::System.Threading.CancellationToken cancellationToken = default) { var request = new global::G.OrgsUpdatePatAccessesRequest diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.ContentFile.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.ContentFile.g.verified.cs index 3ebd692707..61fc9686e8 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.ContentFile.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.ContentFile.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class ContentFile /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ContentFileTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ContentFileType Type { get; set; } = global::G.ContentFileType.File; + public global::G.ContentFileType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.ContentSubmodule.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.ContentSubmodule.g.verified.cs index 8bcd4bab6d..80e7347f0a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.ContentSubmodule.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.ContentSubmodule.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class ContentSubmodule /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ContentSubmoduleTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ContentSubmoduleType Type { get; set; } = global::G.ContentSubmoduleType.Submodule; + public global::G.ContentSubmoduleType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.ContentSymlink.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.ContentSymlink.g.verified.cs index 47ffe11dd3..4f71b34961 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.ContentSymlink.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.ContentSymlink.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class ContentSymlink /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ContentSymlinkTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ContentSymlinkType Type { get; set; } = global::G.ContentSymlinkType.Symlink; + public global::G.ContentSymlinkType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.OrgsUpdateMembershipForAuthenticatedUserRequest.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.OrgsUpdateMembershipForAuthenticatedUserRequest.g.verified.cs index 7d3b5c6e80..d06971cf92 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.OrgsUpdateMembershipForAuthenticatedUserRequest.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.OrgsUpdateMembershipForAuthenticatedUserRequest.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class OrgsUpdateMembershipForAuthenticatedUserRequest /// [global::System.Text.Json.Serialization.JsonPropertyName("state")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.OrgsUpdateMembershipForAuthenticatedUserRequestStateJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.OrgsUpdateMembershipForAuthenticatedUserRequestState State { get; set; } = global::G.OrgsUpdateMembershipForAuthenticatedUserRequestState.Active; + public global::G.OrgsUpdateMembershipForAuthenticatedUserRequestState State { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.OrgsUpdatePatAccessRequest.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.OrgsUpdatePatAccessRequest.g.verified.cs index e0aba46958..2473ec41e8 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.OrgsUpdatePatAccessRequest.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.OrgsUpdatePatAccessRequest.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class OrgsUpdatePatAccessRequest /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.OrgsUpdatePatAccessRequestActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.OrgsUpdatePatAccessRequestAction Action { get; set; } = global::G.OrgsUpdatePatAccessRequestAction.Revoke; + public global::G.OrgsUpdatePatAccessRequestAction Action { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.OrgsUpdatePatAccessesRequest.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.OrgsUpdatePatAccessesRequest.g.verified.cs index 0670bcd811..8b5aadc4d1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.OrgsUpdatePatAccessesRequest.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.OrgsUpdatePatAccessesRequest.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class OrgsUpdatePatAccessesRequest /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.OrgsUpdatePatAccessesRequestActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.OrgsUpdatePatAccessesRequestAction Action { get; set; } = global::G.OrgsUpdatePatAccessesRequestAction.Revoke; + public global::G.OrgsUpdatePatAccessesRequestAction Action { get; set; } /// /// The IDs of the fine-grained personal access tokens. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleBranchNamePattern.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleBranchNamePattern.g.verified.cs index 2fd525e8af..41b750b8b6 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleBranchNamePattern.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleBranchNamePattern.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RepositoryRuleBranchNamePattern /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RepositoryRuleBranchNamePatternTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RepositoryRuleBranchNamePatternType Type { get; set; } = global::G.RepositoryRuleBranchNamePatternType.BranchNamePattern; + public global::G.RepositoryRuleBranchNamePatternType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleCodeScanning.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleCodeScanning.g.verified.cs index 6d6cf8785d..eebed5b1ff 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleCodeScanning.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleCodeScanning.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RepositoryRuleCodeScanning /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RepositoryRuleCodeScanningTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RepositoryRuleCodeScanningType Type { get; set; } = global::G.RepositoryRuleCodeScanningType.CodeScanning; + public global::G.RepositoryRuleCodeScanningType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleCommitAuthorEmailPattern.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleCommitAuthorEmailPattern.g.verified.cs index dae128ada1..afc711b543 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleCommitAuthorEmailPattern.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleCommitAuthorEmailPattern.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RepositoryRuleCommitAuthorEmailPattern /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RepositoryRuleCommitAuthorEmailPatternTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RepositoryRuleCommitAuthorEmailPatternType Type { get; set; } = global::G.RepositoryRuleCommitAuthorEmailPatternType.CommitAuthorEmailPattern; + public global::G.RepositoryRuleCommitAuthorEmailPatternType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleCommitMessagePattern.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleCommitMessagePattern.g.verified.cs index 8a590c9715..bd212cf78c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleCommitMessagePattern.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleCommitMessagePattern.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RepositoryRuleCommitMessagePattern /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RepositoryRuleCommitMessagePatternTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RepositoryRuleCommitMessagePatternType Type { get; set; } = global::G.RepositoryRuleCommitMessagePatternType.CommitMessagePattern; + public global::G.RepositoryRuleCommitMessagePatternType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleCommitterEmailPattern.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleCommitterEmailPattern.g.verified.cs index f7f7240259..d8ed9162e9 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleCommitterEmailPattern.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleCommitterEmailPattern.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RepositoryRuleCommitterEmailPattern /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RepositoryRuleCommitterEmailPatternTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RepositoryRuleCommitterEmailPatternType Type { get; set; } = global::G.RepositoryRuleCommitterEmailPatternType.CommitterEmailPattern; + public global::G.RepositoryRuleCommitterEmailPatternType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleCreation.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleCreation.g.verified.cs index 189de49687..1997d6c9ea 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleCreation.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleCreation.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RepositoryRuleCreation /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RepositoryRuleCreationTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RepositoryRuleCreationType Type { get; set; } = global::G.RepositoryRuleCreationType.Creation; + public global::G.RepositoryRuleCreationType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleDeletion.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleDeletion.g.verified.cs index 2b422dec5c..2822429b4d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleDeletion.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleDeletion.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RepositoryRuleDeletion /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RepositoryRuleDeletionTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RepositoryRuleDeletionType Type { get; set; } = global::G.RepositoryRuleDeletionType.Deletion; + public global::G.RepositoryRuleDeletionType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleNonFastForward.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleNonFastForward.g.verified.cs index 004c73ec9c..cabc2da3c8 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleNonFastForward.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleNonFastForward.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RepositoryRuleNonFastForward /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RepositoryRuleNonFastForwardTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RepositoryRuleNonFastForwardType Type { get; set; } = global::G.RepositoryRuleNonFastForwardType.NonFastForward; + public global::G.RepositoryRuleNonFastForwardType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRulePullRequest.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRulePullRequest.g.verified.cs index dc42fc4dfd..10ae2479be 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRulePullRequest.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRulePullRequest.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RepositoryRulePullRequest /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RepositoryRulePullRequestTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RepositoryRulePullRequestType Type { get; set; } = global::G.RepositoryRulePullRequestType.PullRequest; + public global::G.RepositoryRulePullRequestType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleRequiredDeployments.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleRequiredDeployments.g.verified.cs index ae5f2f624d..7ad4d738b1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleRequiredDeployments.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleRequiredDeployments.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RepositoryRuleRequiredDeployments /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RepositoryRuleRequiredDeploymentsTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RepositoryRuleRequiredDeploymentsType Type { get; set; } = global::G.RepositoryRuleRequiredDeploymentsType.RequiredDeployments; + public global::G.RepositoryRuleRequiredDeploymentsType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleRequiredLinearHistory.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleRequiredLinearHistory.g.verified.cs index dc76352e77..1ce29676a4 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleRequiredLinearHistory.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleRequiredLinearHistory.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RepositoryRuleRequiredLinearHistory /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RepositoryRuleRequiredLinearHistoryTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RepositoryRuleRequiredLinearHistoryType Type { get; set; } = global::G.RepositoryRuleRequiredLinearHistoryType.RequiredLinearHistory; + public global::G.RepositoryRuleRequiredLinearHistoryType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleRequiredSignatures.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleRequiredSignatures.g.verified.cs index 9bc8c2e514..2d1eaecc1e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleRequiredSignatures.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleRequiredSignatures.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RepositoryRuleRequiredSignatures /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RepositoryRuleRequiredSignaturesTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RepositoryRuleRequiredSignaturesType Type { get; set; } = global::G.RepositoryRuleRequiredSignaturesType.RequiredSignatures; + public global::G.RepositoryRuleRequiredSignaturesType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleRequiredStatusChecks.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleRequiredStatusChecks.g.verified.cs index e74faa26da..2dd23e59d1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleRequiredStatusChecks.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleRequiredStatusChecks.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RepositoryRuleRequiredStatusChecks /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RepositoryRuleRequiredStatusChecksTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RepositoryRuleRequiredStatusChecksType Type { get; set; } = global::G.RepositoryRuleRequiredStatusChecksType.RequiredStatusChecks; + public global::G.RepositoryRuleRequiredStatusChecksType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleTagNamePattern.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleTagNamePattern.g.verified.cs index 321b9a631e..b10bc9ccfc 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleTagNamePattern.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleTagNamePattern.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RepositoryRuleTagNamePattern /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RepositoryRuleTagNamePatternTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RepositoryRuleTagNamePatternType Type { get; set; } = global::G.RepositoryRuleTagNamePatternType.TagNamePattern; + public global::G.RepositoryRuleTagNamePatternType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleUpdate.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleUpdate.g.verified.cs index f191a572fd..7bf1457ce3 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleUpdate.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleUpdate.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RepositoryRuleUpdate /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RepositoryRuleUpdateTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RepositoryRuleUpdateType Type { get; set; } = global::G.RepositoryRuleUpdateType.Update; + public global::G.RepositoryRuleUpdateType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleVariant15.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleVariant15.g.verified.cs index 5f744479d5..6a48d02395 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleVariant15.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleVariant15.g.verified.cs @@ -15,8 +15,7 @@ public sealed partial class RepositoryRuleVariant15 /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RepositoryRuleVariant15TypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RepositoryRuleVariant15Type Type { get; set; } = global::G.RepositoryRuleVariant15Type.FilePathRestriction; + public global::G.RepositoryRuleVariant15Type Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleVariant16.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleVariant16.g.verified.cs index e186889e38..cd89178d6e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleVariant16.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleVariant16.g.verified.cs @@ -15,8 +15,7 @@ public sealed partial class RepositoryRuleVariant16 /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RepositoryRuleVariant16TypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RepositoryRuleVariant16Type Type { get; set; } = global::G.RepositoryRuleVariant16Type.MaxFilePathLength; + public global::G.RepositoryRuleVariant16Type Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleVariant17.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleVariant17.g.verified.cs index 6b98e9b63a..635ce4ec83 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleVariant17.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleVariant17.g.verified.cs @@ -15,8 +15,7 @@ public sealed partial class RepositoryRuleVariant17 /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RepositoryRuleVariant17TypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RepositoryRuleVariant17Type Type { get; set; } = global::G.RepositoryRuleVariant17Type.FileExtensionRestriction; + public global::G.RepositoryRuleVariant17Type Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleVariant18.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleVariant18.g.verified.cs index 7978ed264a..5fb2e34c9b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleVariant18.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleVariant18.g.verified.cs @@ -15,8 +15,7 @@ public sealed partial class RepositoryRuleVariant18 /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RepositoryRuleVariant18TypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RepositoryRuleVariant18Type Type { get; set; } = global::G.RepositoryRuleVariant18Type.MaxFileSize; + public global::G.RepositoryRuleVariant18Type Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleWorkflows.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleWorkflows.g.verified.cs index 59c285db07..ee23fd3f12 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleWorkflows.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.RepositoryRuleWorkflows.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RepositoryRuleWorkflows /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RepositoryRuleWorkflowsTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RepositoryRuleWorkflowsType Type { get; set; } = global::G.RepositoryRuleWorkflowsType.Workflows; + public global::G.RepositoryRuleWorkflowsType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookBranchProtectionConfigurationDisabled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookBranchProtectionConfigurationDisabled.g.verified.cs index 05ac4fb924..fc783ffefd 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookBranchProtectionConfigurationDisabled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookBranchProtectionConfigurationDisabled.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookBranchProtectionConfigurationDisabled /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookBranchProtectionConfigurationDisabledActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookBranchProtectionConfigurationDisabledAction Action { get; set; } = global::G.WebhookBranchProtectionConfigurationDisabledAction.Disabled; + public global::G.WebhookBranchProtectionConfigurationDisabledAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookBranchProtectionConfigurationEnabled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookBranchProtectionConfigurationEnabled.g.verified.cs index 3f2b40836f..8e4031c60b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookBranchProtectionConfigurationEnabled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookBranchProtectionConfigurationEnabled.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookBranchProtectionConfigurationEnabled ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookBranchProtectionConfigurationEnabledActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookBranchProtectionConfigurationEnabledAction Action { get; set; } = global::G.WebhookBranchProtectionConfigurationEnabledAction.Enabled; + public global::G.WebhookBranchProtectionConfigurationEnabledAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookBranchProtectionRuleCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookBranchProtectionRuleCreated.g.verified.cs index 83be28ee5d..304ad8b1bf 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookBranchProtectionRuleCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookBranchProtectionRuleCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookBranchProtectionRuleCreated ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookBranchProtectionRuleCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookBranchProtectionRuleCreatedAction Action { get; set; } = global::G.WebhookBranchProtectionRuleCreatedAction.Created; + public global::G.WebhookBranchProtectionRuleCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookBranchProtectionRuleDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookBranchProtectionRuleDeleted.g.verified.cs index e41c9d8d07..ba5d4baa21 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookBranchProtectionRuleDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookBranchProtectionRuleDeleted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookBranchProtectionRuleDeleted ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookBranchProtectionRuleDeletedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookBranchProtectionRuleDeletedAction Action { get; set; } = global::G.WebhookBranchProtectionRuleDeletedAction.Deleted; + public global::G.WebhookBranchProtectionRuleDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookBranchProtectionRuleEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookBranchProtectionRuleEdited.g.verified.cs index d3b0592e2b..72d830c986 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookBranchProtectionRuleEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookBranchProtectionRuleEdited.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookBranchProtectionRuleEdited ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookBranchProtectionRuleEditedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookBranchProtectionRuleEditedAction Action { get; set; } = global::G.WebhookBranchProtectionRuleEditedAction.Edited; + public global::G.WebhookBranchProtectionRuleEditedAction Action { get; set; } /// /// If the action was `edited`, the changes to the rule. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCheckRunRequestedAction.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCheckRunRequestedAction.g.verified.cs index 0a5f5e0ada..5729ef7d4b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCheckRunRequestedAction.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCheckRunRequestedAction.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookCheckRunRequestedAction /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookCheckRunRequestedActionActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookCheckRunRequestedActionAction Action { get; set; } = global::G.WebhookCheckRunRequestedActionAction.RequestedAction; + public global::G.WebhookCheckRunRequestedActionAction Action { get; set; } /// /// A check performed on the code of a given code change diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCheckSuiteCompleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCheckSuiteCompleted.g.verified.cs index bf4b168ef0..ce74ac48ba 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCheckSuiteCompleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCheckSuiteCompleted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookCheckSuiteCompleted /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookCheckSuiteCompletedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookCheckSuiteCompletedAction Action { get; set; } = global::G.WebhookCheckSuiteCompletedAction.Completed; + public global::G.WebhookCheckSuiteCompletedAction Action { get; set; } /// /// The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCheckSuiteRequested.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCheckSuiteRequested.g.verified.cs index 80aafd2674..a37303114d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCheckSuiteRequested.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCheckSuiteRequested.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookCheckSuiteRequested /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookCheckSuiteRequestedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookCheckSuiteRequestedAction Action { get; set; } = global::G.WebhookCheckSuiteRequestedAction.Requested; + public global::G.WebhookCheckSuiteRequestedAction Action { get; set; } /// /// The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCheckSuiteRerequested.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCheckSuiteRerequested.g.verified.cs index cbb573531a..370e1c7ab2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCheckSuiteRerequested.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCheckSuiteRerequested.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookCheckSuiteRerequested /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookCheckSuiteRerequestedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookCheckSuiteRerequestedAction Action { get; set; } = global::G.WebhookCheckSuiteRerequestedAction.Rerequested; + public global::G.WebhookCheckSuiteRerequestedAction Action { get; set; } /// /// The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertAppearedInBranch.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertAppearedInBranch.g.verified.cs index 162b7f4243..5356ed65ef 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertAppearedInBranch.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertAppearedInBranch.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookCodeScanningAlertAppearedInBranch /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookCodeScanningAlertAppearedInBranchActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookCodeScanningAlertAppearedInBranchAction Action { get; set; } = global::G.WebhookCodeScanningAlertAppearedInBranchAction.AppearedInBranch; + public global::G.WebhookCodeScanningAlertAppearedInBranchAction Action { get; set; } /// /// The code scanning alert involved in the event. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertClosedByUser.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertClosedByUser.g.verified.cs index 74854d15e7..88301183d0 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertClosedByUser.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertClosedByUser.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookCodeScanningAlertClosedByUser /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookCodeScanningAlertClosedByUserActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookCodeScanningAlertClosedByUserAction Action { get; set; } = global::G.WebhookCodeScanningAlertClosedByUserAction.ClosedByUser; + public global::G.WebhookCodeScanningAlertClosedByUserAction Action { get; set; } /// /// The code scanning alert involved in the event. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertCreated.g.verified.cs index fec832c14c..51e06fc434 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookCodeScanningAlertCreated /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookCodeScanningAlertCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookCodeScanningAlertCreatedAction Action { get; set; } = global::G.WebhookCodeScanningAlertCreatedAction.Created; + public global::G.WebhookCodeScanningAlertCreatedAction Action { get; set; } /// /// The code scanning alert involved in the event. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertFixed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertFixed.g.verified.cs index 66b7c2fe52..79c9388a4a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertFixed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertFixed.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookCodeScanningAlertFixed /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookCodeScanningAlertFixedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookCodeScanningAlertFixedAction Action { get; set; } = global::G.WebhookCodeScanningAlertFixedAction.Fixed; + public global::G.WebhookCodeScanningAlertFixedAction Action { get; set; } /// /// The code scanning alert involved in the event. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertFixedAlert.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertFixedAlert.g.verified.cs index 00d25d0cfc..fe64aff63e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertFixedAlert.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertFixedAlert.g.verified.cs @@ -76,8 +76,7 @@ public sealed partial class WebhookCodeScanningAlertFixedAlert /// [global::System.Text.Json.Serialization.JsonPropertyName("state")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookCodeScanningAlertFixedAlertStateJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookCodeScanningAlertFixedAlertState State { get; set; } = global::G.WebhookCodeScanningAlertFixedAlertState.Fixed; + public global::G.WebhookCodeScanningAlertFixedAlertState State { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertReopened.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertReopened.g.verified.cs index 15db9fcd94..61ddce6a32 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertReopened.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertReopened.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookCodeScanningAlertReopened /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookCodeScanningAlertReopenedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookCodeScanningAlertReopenedAction Action { get; set; } = global::G.WebhookCodeScanningAlertReopenedAction.Reopened; + public global::G.WebhookCodeScanningAlertReopenedAction Action { get; set; } /// /// The code scanning alert involved in the event. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertReopenedByUser.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertReopenedByUser.g.verified.cs index 9adc8b4feb..19b77d6420 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertReopenedByUser.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCodeScanningAlertReopenedByUser.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookCodeScanningAlertReopenedByUser /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookCodeScanningAlertReopenedByUserActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookCodeScanningAlertReopenedByUserAction Action { get; set; } = global::G.WebhookCodeScanningAlertReopenedByUserAction.ReopenedByUser; + public global::G.WebhookCodeScanningAlertReopenedByUserAction Action { get; set; } /// /// The code scanning alert involved in the event. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCommitCommentCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCommitCommentCreated.g.verified.cs index 087e04c1fd..db5eb366db 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCommitCommentCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCommitCommentCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookCommitCommentCreated /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookCommitCommentCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookCommitCommentCreatedAction Action { get; set; } = global::G.WebhookCommitCommentCreatedAction.Created; + public global::G.WebhookCommitCommentCreatedAction Action { get; set; } /// /// The [commit comment](https://docs.github.com/rest/commits/comments#get-a-commit-comment) resource. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCustomPropertyCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCustomPropertyCreated.g.verified.cs index 1f4a7d7dac..2d32aaba47 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCustomPropertyCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCustomPropertyCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookCustomPropertyCreated /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookCustomPropertyCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookCustomPropertyCreatedAction Action { get; set; } = global::G.WebhookCustomPropertyCreatedAction.Created; + public global::G.WebhookCustomPropertyCreatedAction Action { get; set; } /// /// Custom property defined on an organization diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCustomPropertyDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCustomPropertyDeleted.g.verified.cs index c630d8b2e2..80b347ad76 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCustomPropertyDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCustomPropertyDeleted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookCustomPropertyDeleted /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookCustomPropertyDeletedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookCustomPropertyDeletedAction Action { get; set; } = global::G.WebhookCustomPropertyDeletedAction.Deleted; + public global::G.WebhookCustomPropertyDeletedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCustomPropertyUpdated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCustomPropertyUpdated.g.verified.cs index 5ddf072256..c5fb730c2b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCustomPropertyUpdated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCustomPropertyUpdated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookCustomPropertyUpdated /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookCustomPropertyUpdatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookCustomPropertyUpdatedAction Action { get; set; } = global::G.WebhookCustomPropertyUpdatedAction.Updated; + public global::G.WebhookCustomPropertyUpdatedAction Action { get; set; } /// /// Custom property defined on an organization diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCustomPropertyValuesUpdated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCustomPropertyValuesUpdated.g.verified.cs index f21cbe9b8a..466c920970 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCustomPropertyValuesUpdated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookCustomPropertyValuesUpdated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookCustomPropertyValuesUpdated /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookCustomPropertyValuesUpdatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookCustomPropertyValuesUpdatedAction Action { get; set; } = global::G.WebhookCustomPropertyValuesUpdatedAction.Updated; + public global::G.WebhookCustomPropertyValuesUpdatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertAutoDismissed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertAutoDismissed.g.verified.cs index bcdade4238..36860fe777 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertAutoDismissed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertAutoDismissed.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDependabotAlertAutoDismissed ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDependabotAlertAutoDismissedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDependabotAlertAutoDismissedAction Action { get; set; } = global::G.WebhookDependabotAlertAutoDismissedAction.AutoDismissed; + public global::G.WebhookDependabotAlertAutoDismissedAction Action { get; set; } /// /// A Dependabot alert. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertAutoReopened.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertAutoReopened.g.verified.cs index 8c01228fd7..f1a087c924 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertAutoReopened.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertAutoReopened.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDependabotAlertAutoReopened /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDependabotAlertAutoReopenedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDependabotAlertAutoReopenedAction Action { get; set; } = global::G.WebhookDependabotAlertAutoReopenedAction.AutoReopened; + public global::G.WebhookDependabotAlertAutoReopenedAction Action { get; set; } /// /// A Dependabot alert. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertCreated.g.verified.cs index eab520e84c..531a691b26 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDependabotAlertCreated /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDependabotAlertCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDependabotAlertCreatedAction Action { get; set; } = global::G.WebhookDependabotAlertCreatedAction.Created; + public global::G.WebhookDependabotAlertCreatedAction Action { get; set; } /// /// A Dependabot alert. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertDismissed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertDismissed.g.verified.cs index bd7360b5a8..5339022cc1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertDismissed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertDismissed.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDependabotAlertDismissed /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDependabotAlertDismissedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDependabotAlertDismissedAction Action { get; set; } = global::G.WebhookDependabotAlertDismissedAction.Dismissed; + public global::G.WebhookDependabotAlertDismissedAction Action { get; set; } /// /// A Dependabot alert. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertFixed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertFixed.g.verified.cs index 5b78397eaf..d2f2f5c4f1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertFixed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertFixed.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDependabotAlertFixed /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDependabotAlertFixedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDependabotAlertFixedAction Action { get; set; } = global::G.WebhookDependabotAlertFixedAction.Fixed; + public global::G.WebhookDependabotAlertFixedAction Action { get; set; } /// /// A Dependabot alert. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertReintroduced.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertReintroduced.g.verified.cs index 948ba5c126..f92df8d52c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertReintroduced.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertReintroduced.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDependabotAlertReintroduced /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDependabotAlertReintroducedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDependabotAlertReintroducedAction Action { get; set; } = global::G.WebhookDependabotAlertReintroducedAction.Reintroduced; + public global::G.WebhookDependabotAlertReintroducedAction Action { get; set; } /// /// A Dependabot alert. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertReopened.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertReopened.g.verified.cs index 3590e92af3..e04e511544 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertReopened.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDependabotAlertReopened.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDependabotAlertReopened /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDependabotAlertReopenedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDependabotAlertReopenedAction Action { get; set; } = global::G.WebhookDependabotAlertReopenedAction.Reopened; + public global::G.WebhookDependabotAlertReopenedAction Action { get; set; } /// /// A Dependabot alert. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeployKeyCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeployKeyCreated.g.verified.cs index ac867c7c6a..7ca6a18352 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeployKeyCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeployKeyCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDeployKeyCreated /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDeployKeyCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDeployKeyCreatedAction Action { get; set; } = global::G.WebhookDeployKeyCreatedAction.Created; + public global::G.WebhookDeployKeyCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeployKeyDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeployKeyDeleted.g.verified.cs index 680755e834..7059357bcb 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeployKeyDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeployKeyDeleted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDeployKeyDeleted ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDeployKeyDeletedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDeployKeyDeletedAction Action { get; set; } = global::G.WebhookDeployKeyDeletedAction.Deleted; + public global::G.WebhookDeployKeyDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentCreated.g.verified.cs index 41feb7a820..e9235c196e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDeploymentCreated ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDeploymentCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDeploymentCreatedAction Action { get; set; } = global::G.WebhookDeploymentCreatedAction.Created; + public global::G.WebhookDeploymentCreatedAction Action { get; set; } /// /// The [deployment](https://docs.github.com/rest/deployments/deployments#list-deployments). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentReviewApproved.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentReviewApproved.g.verified.cs index c5e685cb57..40ada74db0 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentReviewApproved.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentReviewApproved.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDeploymentReviewApproved /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDeploymentReviewApprovedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDeploymentReviewApprovedAction Action { get; set; } = global::G.WebhookDeploymentReviewApprovedAction.Approved; + public global::G.WebhookDeploymentReviewApprovedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentReviewRejected.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentReviewRejected.g.verified.cs index 6d6844d725..19b702cc0a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentReviewRejected.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentReviewRejected.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDeploymentReviewRejected /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDeploymentReviewRejectedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDeploymentReviewRejectedAction Action { get; set; } = global::G.WebhookDeploymentReviewRejectedAction.Rejected; + public global::G.WebhookDeploymentReviewRejectedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentReviewRequested.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentReviewRequested.g.verified.cs index b80facfa62..38ad1f1fc6 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentReviewRequested.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentReviewRequested.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDeploymentReviewRequested /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDeploymentReviewRequestedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDeploymentReviewRequestedAction Action { get; set; } = global::G.WebhookDeploymentReviewRequestedAction.Requested; + public global::G.WebhookDeploymentReviewRequestedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentStatusCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentStatusCreated.g.verified.cs index f86dc3f20d..df0d13332b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentStatusCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDeploymentStatusCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDeploymentStatusCreated ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDeploymentStatusCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDeploymentStatusCreatedAction Action { get; set; } = global::G.WebhookDeploymentStatusCreatedAction.Created; + public global::G.WebhookDeploymentStatusCreatedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionAnswered.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionAnswered.g.verified.cs index 1b3f73e8b1..93a51d2420 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionAnswered.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionAnswered.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDiscussionAnswered /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDiscussionAnsweredActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDiscussionAnsweredAction Action { get; set; } = global::G.WebhookDiscussionAnsweredAction.Answered; + public global::G.WebhookDiscussionAnsweredAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionCategoryChanged.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionCategoryChanged.g.verified.cs index fc1f0699c0..ade59b5e37 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionCategoryChanged.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionCategoryChanged.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDiscussionCategoryChanged /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDiscussionCategoryChangedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDiscussionCategoryChangedAction Action { get; set; } = global::G.WebhookDiscussionCategoryChangedAction.CategoryChanged; + public global::G.WebhookDiscussionCategoryChangedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionClosed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionClosed.g.verified.cs index 870a0d9607..a6ee1783ba 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionClosed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionClosed.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDiscussionClosed /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDiscussionClosedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDiscussionClosedAction Action { get; set; } = global::G.WebhookDiscussionClosedAction.Closed; + public global::G.WebhookDiscussionClosedAction Action { get; set; } /// /// A Discussion in a repository. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionCommentCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionCommentCreated.g.verified.cs index d4786e76ef..9756b928bb 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionCommentCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionCommentCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDiscussionCommentCreated /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDiscussionCommentCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDiscussionCommentCreatedAction Action { get; set; } = global::G.WebhookDiscussionCommentCreatedAction.Created; + public global::G.WebhookDiscussionCommentCreatedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionCommentDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionCommentDeleted.g.verified.cs index e2f122b12e..4599353cf5 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionCommentDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionCommentDeleted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDiscussionCommentDeleted /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDiscussionCommentDeletedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDiscussionCommentDeletedAction Action { get; set; } = global::G.WebhookDiscussionCommentDeletedAction.Deleted; + public global::G.WebhookDiscussionCommentDeletedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionCommentEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionCommentEdited.g.verified.cs index 415a3cc472..b95d142d62 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionCommentEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionCommentEdited.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDiscussionCommentEdited /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDiscussionCommentEditedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDiscussionCommentEditedAction Action { get; set; } = global::G.WebhookDiscussionCommentEditedAction.Edited; + public global::G.WebhookDiscussionCommentEditedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionCreated.g.verified.cs index 9c039055fa..fc7f75edbb 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDiscussionCreated /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDiscussionCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDiscussionCreatedAction Action { get; set; } = global::G.WebhookDiscussionCreatedAction.Created; + public global::G.WebhookDiscussionCreatedAction Action { get; set; } /// /// A Discussion in a repository. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionDeleted.g.verified.cs index 44ad76dceb..be3be765fe 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionDeleted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDiscussionDeleted /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDiscussionDeletedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDiscussionDeletedAction Action { get; set; } = global::G.WebhookDiscussionDeletedAction.Deleted; + public global::G.WebhookDiscussionDeletedAction Action { get; set; } /// /// A Discussion in a repository. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionEdited.g.verified.cs index b862a630dd..8559b1a5c8 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionEdited.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDiscussionEdited /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDiscussionEditedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDiscussionEditedAction Action { get; set; } = global::G.WebhookDiscussionEditedAction.Edited; + public global::G.WebhookDiscussionEditedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionLabeled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionLabeled.g.verified.cs index 92edd6289f..5b2ccd3ec5 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionLabeled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionLabeled.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDiscussionLabeled /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDiscussionLabeledActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDiscussionLabeledAction Action { get; set; } = global::G.WebhookDiscussionLabeledAction.Labeled; + public global::G.WebhookDiscussionLabeledAction Action { get; set; } /// /// A Discussion in a repository. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionLocked.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionLocked.g.verified.cs index f26515c7ac..8841ce9e88 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionLocked.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionLocked.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDiscussionLocked /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDiscussionLockedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDiscussionLockedAction Action { get; set; } = global::G.WebhookDiscussionLockedAction.Locked; + public global::G.WebhookDiscussionLockedAction Action { get; set; } /// /// A Discussion in a repository. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionPinned.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionPinned.g.verified.cs index 0420f90bea..cf6764519f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionPinned.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionPinned.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDiscussionPinned /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDiscussionPinnedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDiscussionPinnedAction Action { get; set; } = global::G.WebhookDiscussionPinnedAction.Pinned; + public global::G.WebhookDiscussionPinnedAction Action { get; set; } /// /// A Discussion in a repository. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionReopened.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionReopened.g.verified.cs index 6108cf9ec6..fda50eb1aa 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionReopened.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionReopened.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDiscussionReopened /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDiscussionReopenedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDiscussionReopenedAction Action { get; set; } = global::G.WebhookDiscussionReopenedAction.Reopened; + public global::G.WebhookDiscussionReopenedAction Action { get; set; } /// /// A Discussion in a repository. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionTransferred.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionTransferred.g.verified.cs index 14de63a0ea..ce992cba5d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionTransferred.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionTransferred.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDiscussionTransferred /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDiscussionTransferredActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDiscussionTransferredAction Action { get; set; } = global::G.WebhookDiscussionTransferredAction.Transferred; + public global::G.WebhookDiscussionTransferredAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionUnanswered.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionUnanswered.g.verified.cs index 7b73b41594..9b4289e1e6 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionUnanswered.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionUnanswered.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDiscussionUnanswered /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDiscussionUnansweredActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDiscussionUnansweredAction Action { get; set; } = global::G.WebhookDiscussionUnansweredAction.Unanswered; + public global::G.WebhookDiscussionUnansweredAction Action { get; set; } /// /// A Discussion in a repository. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionUnlabeled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionUnlabeled.g.verified.cs index ca2f21c467..6d59854790 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionUnlabeled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionUnlabeled.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDiscussionUnlabeled /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDiscussionUnlabeledActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDiscussionUnlabeledAction Action { get; set; } = global::G.WebhookDiscussionUnlabeledAction.Unlabeled; + public global::G.WebhookDiscussionUnlabeledAction Action { get; set; } /// /// A Discussion in a repository. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionUnlocked.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionUnlocked.g.verified.cs index ce7c5e77f5..2533ca39b0 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionUnlocked.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionUnlocked.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDiscussionUnlocked /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDiscussionUnlockedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDiscussionUnlockedAction Action { get; set; } = global::G.WebhookDiscussionUnlockedAction.Unlocked; + public global::G.WebhookDiscussionUnlockedAction Action { get; set; } /// /// A Discussion in a repository. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionUnpinned.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionUnpinned.g.verified.cs index 52fcd3fee7..bc91c5dbe0 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionUnpinned.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookDiscussionUnpinned.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookDiscussionUnpinned /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookDiscussionUnpinnedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookDiscussionUnpinnedAction Action { get; set; } = global::G.WebhookDiscussionUnpinnedAction.Unpinned; + public global::G.WebhookDiscussionUnpinnedAction Action { get; set; } /// /// A Discussion in a repository. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookGithubAppAuthorizationRevoked.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookGithubAppAuthorizationRevoked.g.verified.cs index 4e4a6028c4..92789f66a2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookGithubAppAuthorizationRevoked.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookGithubAppAuthorizationRevoked.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookGithubAppAuthorizationRevoked /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookGithubAppAuthorizationRevokedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookGithubAppAuthorizationRevokedAction Action { get; set; } = global::G.WebhookGithubAppAuthorizationRevokedAction.Revoked; + public global::G.WebhookGithubAppAuthorizationRevokedAction Action { get; set; } /// /// The GitHub user that triggered the event. This property is included in every webhook payload. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationCreated.g.verified.cs index 74ed9d3af2..eb08528ff2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookInstallationCreated /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookInstallationCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookInstallationCreatedAction Action { get; set; } = global::G.WebhookInstallationCreatedAction.Created; + public global::G.WebhookInstallationCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationDeleted.g.verified.cs index abd9353ebc..f29fc6ccae 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationDeleted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookInstallationDeleted ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookInstallationDeletedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookInstallationDeletedAction Action { get; set; } = global::G.WebhookInstallationDeletedAction.Deleted; + public global::G.WebhookInstallationDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationNewPermissionsAccepted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationNewPermissionsAccepted.g.verified.cs index 24d78de8b1..0eebbfdaed 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationNewPermissionsAccepted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationNewPermissionsAccepted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookInstallationNewPermissionsAccepted ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookInstallationNewPermissionsAcceptedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookInstallationNewPermissionsAcceptedAction Action { get; set; } = global::G.WebhookInstallationNewPermissionsAcceptedAction.NewPermissionsAccepted; + public global::G.WebhookInstallationNewPermissionsAcceptedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationRepositoriesAdded.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationRepositoriesAdded.g.verified.cs index 6f2a19564d..fbb5d8e784 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationRepositoriesAdded.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationRepositoriesAdded.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookInstallationRepositoriesAdded ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookInstallationRepositoriesAddedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookInstallationRepositoriesAddedAction Action { get; set; } = global::G.WebhookInstallationRepositoriesAddedAction.Added; + public global::G.WebhookInstallationRepositoriesAddedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationRepositoriesRemoved.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationRepositoriesRemoved.g.verified.cs index 5ce48d8538..ba0fe05cba 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationRepositoriesRemoved.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationRepositoriesRemoved.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookInstallationRepositoriesRemoved ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookInstallationRepositoriesRemovedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookInstallationRepositoriesRemovedAction Action { get; set; } = global::G.WebhookInstallationRepositoriesRemovedAction.Removed; + public global::G.WebhookInstallationRepositoriesRemovedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationSuspend.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationSuspend.g.verified.cs index 1883872c06..01415e8edc 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationSuspend.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationSuspend.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookInstallationSuspend ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookInstallationSuspendActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookInstallationSuspendAction Action { get; set; } = global::G.WebhookInstallationSuspendAction.Suspend; + public global::G.WebhookInstallationSuspendAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationTargetRenamed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationTargetRenamed.g.verified.cs index 89133b5ffe..b48976559f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationTargetRenamed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationTargetRenamed.g.verified.cs @@ -21,8 +21,7 @@ public sealed partial class WebhookInstallationTargetRenamed ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookInstallationTargetRenamedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookInstallationTargetRenamedAction Action { get; set; } = global::G.WebhookInstallationTargetRenamedAction.Renamed; + public global::G.WebhookInstallationTargetRenamedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationUnsuspend.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationUnsuspend.g.verified.cs index 2230cb0fd7..f16f8c6686 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationUnsuspend.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookInstallationUnsuspend.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookInstallationUnsuspend /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookInstallationUnsuspendActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookInstallationUnsuspendAction Action { get; set; } = global::G.WebhookInstallationUnsuspendAction.Unsuspend; + public global::G.WebhookInstallationUnsuspendAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssueCommentCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssueCommentCreated.g.verified.cs index 79774d9cd4..42f5770c3a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssueCommentCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssueCommentCreated.g.verified.cs @@ -16,8 +16,7 @@ public sealed partial class WebhookIssueCommentCreated ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookIssueCommentCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookIssueCommentCreatedAction Action { get; set; } = global::G.WebhookIssueCommentCreatedAction.Created; + public global::G.WebhookIssueCommentCreatedAction Action { get; set; } /// /// The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssueCommentDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssueCommentDeleted.g.verified.cs index 1bdad16702..da75610f23 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssueCommentDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssueCommentDeleted.g.verified.cs @@ -16,8 +16,7 @@ public sealed partial class WebhookIssueCommentDeleted /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookIssueCommentDeletedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookIssueCommentDeletedAction Action { get; set; } = global::G.WebhookIssueCommentDeletedAction.Deleted; + public global::G.WebhookIssueCommentDeletedAction Action { get; set; } /// /// The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssueCommentEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssueCommentEdited.g.verified.cs index de13e8534e..9ebc154848 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssueCommentEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssueCommentEdited.g.verified.cs @@ -16,8 +16,7 @@ public sealed partial class WebhookIssueCommentEdited /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookIssueCommentEditedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookIssueCommentEditedAction Action { get; set; } = global::G.WebhookIssueCommentEditedAction.Edited; + public global::G.WebhookIssueCommentEditedAction Action { get; set; } /// /// The changes to the comment. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesAssigned.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesAssigned.g.verified.cs index 218dfa0f40..7d0d62659d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesAssigned.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesAssigned.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookIssuesAssigned /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookIssuesAssignedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookIssuesAssignedAction Action { get; set; } = global::G.WebhookIssuesAssignedAction.Assigned; + public global::G.WebhookIssuesAssignedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesClosed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesClosed.g.verified.cs index 055bdddc92..33680c5313 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesClosed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesClosed.g.verified.cs @@ -16,8 +16,7 @@ public sealed partial class WebhookIssuesClosed /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookIssuesClosedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookIssuesClosedAction Action { get; set; } = global::G.WebhookIssuesClosedAction.Closed; + public global::G.WebhookIssuesClosedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesDeleted.g.verified.cs index 480a5ddc20..f01767932e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesDeleted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookIssuesDeleted ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookIssuesDeletedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookIssuesDeletedAction Action { get; set; } = global::G.WebhookIssuesDeletedAction.Deleted; + public global::G.WebhookIssuesDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesDemilestoned.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesDemilestoned.g.verified.cs index d412faaa27..62a829e652 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesDemilestoned.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesDemilestoned.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookIssuesDemilestoned ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookIssuesDemilestonedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookIssuesDemilestonedAction Action { get; set; } = global::G.WebhookIssuesDemilestonedAction.Demilestoned; + public global::G.WebhookIssuesDemilestonedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesEdited.g.verified.cs index 33e7384b67..7c80498a41 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesEdited.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookIssuesEdited ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookIssuesEditedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookIssuesEditedAction Action { get; set; } = global::G.WebhookIssuesEditedAction.Edited; + public global::G.WebhookIssuesEditedAction Action { get; set; } /// /// The changes to the issue. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesLabeled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesLabeled.g.verified.cs index 7772b1af13..9d5a3c72e3 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesLabeled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesLabeled.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookIssuesLabeled /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookIssuesLabeledActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookIssuesLabeledAction Action { get; set; } = global::G.WebhookIssuesLabeledAction.Labeled; + public global::G.WebhookIssuesLabeledAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesLocked.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesLocked.g.verified.cs index e0992d1b3a..3980db6d68 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesLocked.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesLocked.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookIssuesLocked ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookIssuesLockedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookIssuesLockedAction Action { get; set; } = global::G.WebhookIssuesLockedAction.Locked; + public global::G.WebhookIssuesLockedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesMilestoned.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesMilestoned.g.verified.cs index c2e94eea23..a7a4eb5abe 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesMilestoned.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesMilestoned.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookIssuesMilestoned ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookIssuesMilestonedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookIssuesMilestonedAction Action { get; set; } = global::G.WebhookIssuesMilestonedAction.Milestoned; + public global::G.WebhookIssuesMilestonedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesOpened.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesOpened.g.verified.cs index 8cf5eb9148..e11bd7be4e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesOpened.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesOpened.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookIssuesOpened ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookIssuesOpenedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookIssuesOpenedAction Action { get; set; } = global::G.WebhookIssuesOpenedAction.Opened; + public global::G.WebhookIssuesOpenedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesPinned.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesPinned.g.verified.cs index 5bbc4b9681..ae5bc01d9e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesPinned.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesPinned.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookIssuesPinned /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookIssuesPinnedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookIssuesPinnedAction Action { get; set; } = global::G.WebhookIssuesPinnedAction.Pinned; + public global::G.WebhookIssuesPinnedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesReopened.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesReopened.g.verified.cs index fd527743cd..85301e7664 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesReopened.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesReopened.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookIssuesReopened ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookIssuesReopenedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookIssuesReopenedAction Action { get; set; } = global::G.WebhookIssuesReopenedAction.Reopened; + public global::G.WebhookIssuesReopenedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesTransferred.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesTransferred.g.verified.cs index 6c775016e4..dced7b1170 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesTransferred.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesTransferred.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookIssuesTransferred ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookIssuesTransferredActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookIssuesTransferredAction Action { get; set; } = global::G.WebhookIssuesTransferredAction.Transferred; + public global::G.WebhookIssuesTransferredAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesUnassigned.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesUnassigned.g.verified.cs index 2d4a7c1504..87990b160c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesUnassigned.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesUnassigned.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookIssuesUnassigned /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookIssuesUnassignedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookIssuesUnassignedAction Action { get; set; } = global::G.WebhookIssuesUnassignedAction.Unassigned; + public global::G.WebhookIssuesUnassignedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesUnlabeled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesUnlabeled.g.verified.cs index 29c5c5df3d..5596bd4545 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesUnlabeled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesUnlabeled.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookIssuesUnlabeled /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookIssuesUnlabeledActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookIssuesUnlabeledAction Action { get; set; } = global::G.WebhookIssuesUnlabeledAction.Unlabeled; + public global::G.WebhookIssuesUnlabeledAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesUnlocked.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesUnlocked.g.verified.cs index 661341215a..7b42b00fcc 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesUnlocked.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesUnlocked.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookIssuesUnlocked ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookIssuesUnlockedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookIssuesUnlockedAction Action { get; set; } = global::G.WebhookIssuesUnlockedAction.Unlocked; + public global::G.WebhookIssuesUnlockedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesUnpinned.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesUnpinned.g.verified.cs index fba61d19bc..ea8dfcd8f7 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesUnpinned.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookIssuesUnpinned.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookIssuesUnpinned ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookIssuesUnpinnedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookIssuesUnpinnedAction Action { get; set; } = global::G.WebhookIssuesUnpinnedAction.Unpinned; + public global::G.WebhookIssuesUnpinnedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookLabelCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookLabelCreated.g.verified.cs index 528f023e09..f2d8974d0d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookLabelCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookLabelCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookLabelCreated ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookLabelCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookLabelCreatedAction Action { get; set; } = global::G.WebhookLabelCreatedAction.Created; + public global::G.WebhookLabelCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookLabelDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookLabelDeleted.g.verified.cs index 07d5cac94c..2730301f79 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookLabelDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookLabelDeleted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookLabelDeleted ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookLabelDeletedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookLabelDeletedAction Action { get; set; } = global::G.WebhookLabelDeletedAction.Deleted; + public global::G.WebhookLabelDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookLabelEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookLabelEdited.g.verified.cs index 77219c9ae2..831461793b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookLabelEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookLabelEdited.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookLabelEdited ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookLabelEditedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookLabelEditedAction Action { get; set; } = global::G.WebhookLabelEditedAction.Edited; + public global::G.WebhookLabelEditedAction Action { get; set; } /// /// The changes to the label if the action was `edited`. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMarketplacePurchaseCancelled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMarketplacePurchaseCancelled.g.verified.cs index 07df8f01c8..7e55a3f26a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMarketplacePurchaseCancelled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMarketplacePurchaseCancelled.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookMarketplacePurchaseCancelled /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookMarketplacePurchaseCancelledActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookMarketplacePurchaseCancelledAction Action { get; set; } = global::G.WebhookMarketplacePurchaseCancelledAction.Cancelled; + public global::G.WebhookMarketplacePurchaseCancelledAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMarketplacePurchaseChanged.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMarketplacePurchaseChanged.g.verified.cs index b15bfa9343..4e7a1e78a1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMarketplacePurchaseChanged.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMarketplacePurchaseChanged.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookMarketplacePurchaseChanged /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookMarketplacePurchaseChangedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookMarketplacePurchaseChangedAction Action { get; set; } = global::G.WebhookMarketplacePurchaseChangedAction.Changed; + public global::G.WebhookMarketplacePurchaseChangedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMarketplacePurchasePendingChange.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMarketplacePurchasePendingChange.g.verified.cs index 4e6d34084f..24cccc004d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMarketplacePurchasePendingChange.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMarketplacePurchasePendingChange.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookMarketplacePurchasePendingChange /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookMarketplacePurchasePendingChangeActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookMarketplacePurchasePendingChangeAction Action { get; set; } = global::G.WebhookMarketplacePurchasePendingChangeAction.PendingChange; + public global::G.WebhookMarketplacePurchasePendingChangeAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMarketplacePurchasePendingChangeCancelled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMarketplacePurchasePendingChangeCancelled.g.verified.cs index 3de04c1683..bd13249218 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMarketplacePurchasePendingChangeCancelled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMarketplacePurchasePendingChangeCancelled.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookMarketplacePurchasePendingChangeCancelled /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookMarketplacePurchasePendingChangeCancelledActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookMarketplacePurchasePendingChangeCancelledAction Action { get; set; } = global::G.WebhookMarketplacePurchasePendingChangeCancelledAction.PendingChangeCancelled; + public global::G.WebhookMarketplacePurchasePendingChangeCancelledAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMarketplacePurchasePurchased.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMarketplacePurchasePurchased.g.verified.cs index 17def8db8b..df8f00fbbe 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMarketplacePurchasePurchased.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMarketplacePurchasePurchased.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookMarketplacePurchasePurchased /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookMarketplacePurchasePurchasedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookMarketplacePurchasePurchasedAction Action { get; set; } = global::G.WebhookMarketplacePurchasePurchasedAction.Purchased; + public global::G.WebhookMarketplacePurchasePurchasedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMemberAdded.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMemberAdded.g.verified.cs index d46c26df15..a8df308f73 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMemberAdded.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMemberAdded.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookMemberAdded /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookMemberAddedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookMemberAddedAction Action { get; set; } = global::G.WebhookMemberAddedAction.Added; + public global::G.WebhookMemberAddedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMemberEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMemberEdited.g.verified.cs index 33b99de705..3656f94b0c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMemberEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMemberEdited.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookMemberEdited /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookMemberEditedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookMemberEditedAction Action { get; set; } = global::G.WebhookMemberEditedAction.Edited; + public global::G.WebhookMemberEditedAction Action { get; set; } /// /// The changes to the collaborator permissions diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMemberRemoved.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMemberRemoved.g.verified.cs index 66ec8d7811..f3559359e5 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMemberRemoved.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMemberRemoved.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookMemberRemoved /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookMemberRemovedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookMemberRemovedAction Action { get; set; } = global::G.WebhookMemberRemovedAction.Removed; + public global::G.WebhookMemberRemovedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMembershipAdded.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMembershipAdded.g.verified.cs index 63ff46b922..be2d5fc51c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMembershipAdded.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMembershipAdded.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookMembershipAdded ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookMembershipAddedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookMembershipAddedAction Action { get; set; } = global::G.WebhookMembershipAddedAction.Added; + public global::G.WebhookMembershipAddedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
@@ -60,8 +59,7 @@ public sealed partial class WebhookMembershipAdded ///
[global::System.Text.Json.Serialization.JsonPropertyName("scope")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookMembershipAddedScopeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookMembershipAddedScope Scope { get; set; } = global::G.WebhookMembershipAddedScope.Team; + public global::G.WebhookMembershipAddedScope Scope { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMembershipRemoved.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMembershipRemoved.g.verified.cs index 2693cf5128..79879ce207 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMembershipRemoved.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMembershipRemoved.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookMembershipRemoved /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookMembershipRemovedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookMembershipRemovedAction Action { get; set; } = global::G.WebhookMembershipRemovedAction.Removed; + public global::G.WebhookMembershipRemovedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMergeGroupChecksRequested.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMergeGroupChecksRequested.g.verified.cs index 0f329f5340..713b49925f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMergeGroupChecksRequested.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMergeGroupChecksRequested.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookMergeGroupChecksRequested ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookMergeGroupChecksRequestedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookMergeGroupChecksRequestedAction Action { get; set; } = global::G.WebhookMergeGroupChecksRequestedAction.ChecksRequested; + public global::G.WebhookMergeGroupChecksRequestedAction Action { get; set; } /// /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMergeGroupDestroyed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMergeGroupDestroyed.g.verified.cs index 98cc64b281..4edc589a11 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMergeGroupDestroyed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMergeGroupDestroyed.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookMergeGroupDestroyed ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookMergeGroupDestroyedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookMergeGroupDestroyedAction Action { get; set; } = global::G.WebhookMergeGroupDestroyedAction.Destroyed; + public global::G.WebhookMergeGroupDestroyedAction Action { get; set; } /// /// Explains why the merge group is being destroyed. The group could have been merged, removed from the queue (dequeued), or invalidated by an earlier queue entry being dequeued (invalidated). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMetaDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMetaDeleted.g.verified.cs index d245c9ba93..4c65575bd0 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMetaDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMetaDeleted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookMetaDeleted /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookMetaDeletedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookMetaDeletedAction Action { get; set; } = global::G.WebhookMetaDeletedAction.Deleted; + public global::G.WebhookMetaDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMilestoneClosed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMilestoneClosed.g.verified.cs index 2f546589b2..2565219463 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMilestoneClosed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMilestoneClosed.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookMilestoneClosed ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookMilestoneClosedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookMilestoneClosedAction Action { get; set; } = global::G.WebhookMilestoneClosedAction.Closed; + public global::G.WebhookMilestoneClosedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMilestoneCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMilestoneCreated.g.verified.cs index 7ce185d53b..fae3cffe0b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMilestoneCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMilestoneCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookMilestoneCreated ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookMilestoneCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookMilestoneCreatedAction Action { get; set; } = global::G.WebhookMilestoneCreatedAction.Created; + public global::G.WebhookMilestoneCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMilestoneDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMilestoneDeleted.g.verified.cs index bfb00f144b..ddaa9ff1ad 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMilestoneDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMilestoneDeleted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookMilestoneDeleted ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookMilestoneDeletedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookMilestoneDeletedAction Action { get; set; } = global::G.WebhookMilestoneDeletedAction.Deleted; + public global::G.WebhookMilestoneDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMilestoneEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMilestoneEdited.g.verified.cs index d70d1463c7..c2bb736893 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMilestoneEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMilestoneEdited.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookMilestoneEdited ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookMilestoneEditedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookMilestoneEditedAction Action { get; set; } = global::G.WebhookMilestoneEditedAction.Edited; + public global::G.WebhookMilestoneEditedAction Action { get; set; } /// /// The changes to the milestone if the action was `edited`. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMilestoneOpened.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMilestoneOpened.g.verified.cs index 786a6a4012..89f017dbfa 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMilestoneOpened.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookMilestoneOpened.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookMilestoneOpened /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookMilestoneOpenedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookMilestoneOpenedAction Action { get; set; } = global::G.WebhookMilestoneOpenedAction.Opened; + public global::G.WebhookMilestoneOpenedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrgBlockBlocked.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrgBlockBlocked.g.verified.cs index e8c168073c..8b42d4339d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrgBlockBlocked.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrgBlockBlocked.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookOrgBlockBlocked ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookOrgBlockBlockedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookOrgBlockBlockedAction Action { get; set; } = global::G.WebhookOrgBlockBlockedAction.Blocked; + public global::G.WebhookOrgBlockBlockedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrgBlockUnblocked.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrgBlockUnblocked.g.verified.cs index 0bd6e5adf8..627a836bad 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrgBlockUnblocked.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrgBlockUnblocked.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookOrgBlockUnblocked /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookOrgBlockUnblockedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookOrgBlockUnblockedAction Action { get; set; } = global::G.WebhookOrgBlockUnblockedAction.Unblocked; + public global::G.WebhookOrgBlockUnblockedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrganizationDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrganizationDeleted.g.verified.cs index 7387ec18be..38c325fc4d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrganizationDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrganizationDeleted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookOrganizationDeleted /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookOrganizationDeletedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookOrganizationDeletedAction Action { get; set; } = global::G.WebhookOrganizationDeletedAction.Deleted; + public global::G.WebhookOrganizationDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrganizationMemberAdded.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrganizationMemberAdded.g.verified.cs index 1859f5f4ad..1193880dba 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrganizationMemberAdded.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrganizationMemberAdded.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookOrganizationMemberAdded ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookOrganizationMemberAddedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookOrganizationMemberAddedAction Action { get; set; } = global::G.WebhookOrganizationMemberAddedAction.MemberAdded; + public global::G.WebhookOrganizationMemberAddedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrganizationMemberInvited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrganizationMemberInvited.g.verified.cs index b2314ffc01..580c8bc279 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrganizationMemberInvited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrganizationMemberInvited.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookOrganizationMemberInvited ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookOrganizationMemberInvitedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookOrganizationMemberInvitedAction Action { get; set; } = global::G.WebhookOrganizationMemberInvitedAction.MemberInvited; + public global::G.WebhookOrganizationMemberInvitedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrganizationMemberRemoved.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrganizationMemberRemoved.g.verified.cs index 49499dbdf5..45bec7f2aa 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrganizationMemberRemoved.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrganizationMemberRemoved.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookOrganizationMemberRemoved ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookOrganizationMemberRemovedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookOrganizationMemberRemovedAction Action { get; set; } = global::G.WebhookOrganizationMemberRemovedAction.MemberRemoved; + public global::G.WebhookOrganizationMemberRemovedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrganizationRenamed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrganizationRenamed.g.verified.cs index 836fb2b92b..a0f1429412 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrganizationRenamed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookOrganizationRenamed.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookOrganizationRenamed ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookOrganizationRenamedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookOrganizationRenamedAction Action { get; set; } = global::G.WebhookOrganizationRenamedAction.Renamed; + public global::G.WebhookOrganizationRenamedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPackagePublished.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPackagePublished.g.verified.cs index b1279d6013..a0ab42bba3 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPackagePublished.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPackagePublished.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPackagePublished /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPackagePublishedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPackagePublishedAction Action { get; set; } = global::G.WebhookPackagePublishedAction.Published; + public global::G.WebhookPackagePublishedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPackageUpdated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPackageUpdated.g.verified.cs index 176df64983..8ad94cd7db 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPackageUpdated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPackageUpdated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPackageUpdated ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPackageUpdatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPackageUpdatedAction Action { get; set; } = global::G.WebhookPackageUpdatedAction.Updated; + public global::G.WebhookPackageUpdatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPersonalAccessTokenRequestApproved.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPersonalAccessTokenRequestApproved.g.verified.cs index ec887961b8..99b2b1622f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPersonalAccessTokenRequestApproved.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPersonalAccessTokenRequestApproved.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPersonalAccessTokenRequestApproved ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPersonalAccessTokenRequestApprovedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPersonalAccessTokenRequestApprovedAction Action { get; set; } = global::G.WebhookPersonalAccessTokenRequestApprovedAction.Approved; + public global::G.WebhookPersonalAccessTokenRequestApprovedAction Action { get; set; } /// /// Details of a Personal Access Token Request. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPersonalAccessTokenRequestCancelled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPersonalAccessTokenRequestCancelled.g.verified.cs index f750d99eec..6e9f2d656c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPersonalAccessTokenRequestCancelled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPersonalAccessTokenRequestCancelled.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPersonalAccessTokenRequestCancelled /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPersonalAccessTokenRequestCancelledActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPersonalAccessTokenRequestCancelledAction Action { get; set; } = global::G.WebhookPersonalAccessTokenRequestCancelledAction.Cancelled; + public global::G.WebhookPersonalAccessTokenRequestCancelledAction Action { get; set; } /// /// Details of a Personal Access Token Request. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPersonalAccessTokenRequestCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPersonalAccessTokenRequestCreated.g.verified.cs index baa5ab5069..658613dcd4 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPersonalAccessTokenRequestCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPersonalAccessTokenRequestCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPersonalAccessTokenRequestCreated /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPersonalAccessTokenRequestCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPersonalAccessTokenRequestCreatedAction Action { get; set; } = global::G.WebhookPersonalAccessTokenRequestCreatedAction.Created; + public global::G.WebhookPersonalAccessTokenRequestCreatedAction Action { get; set; } /// /// Details of a Personal Access Token Request. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPersonalAccessTokenRequestDenied.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPersonalAccessTokenRequestDenied.g.verified.cs index fd3fd35db9..7057c3c862 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPersonalAccessTokenRequestDenied.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPersonalAccessTokenRequestDenied.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPersonalAccessTokenRequestDenied /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPersonalAccessTokenRequestDeniedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPersonalAccessTokenRequestDeniedAction Action { get; set; } = global::G.WebhookPersonalAccessTokenRequestDeniedAction.Denied; + public global::G.WebhookPersonalAccessTokenRequestDeniedAction Action { get; set; } /// /// Details of a Personal Access Token Request. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPingHook.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPingHook.g.verified.cs index c01ea802f8..7dec7826c2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPingHook.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPingHook.g.verified.cs @@ -67,8 +67,7 @@ public sealed partial class WebhookPingHook /// [global::System.Text.Json.Serialization.JsonPropertyName("name")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPingHookNameJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPingHookName Name { get; set; } = global::G.WebhookPingHookName.Web; + public global::G.WebhookPingHookName Name { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCardConverted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCardConverted.g.verified.cs index 7da6bb927b..4560c67921 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCardConverted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCardConverted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookProjectCardConverted /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookProjectCardConvertedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookProjectCardConvertedAction Action { get; set; } = global::G.WebhookProjectCardConvertedAction.Converted; + public global::G.WebhookProjectCardConvertedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCardCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCardCreated.g.verified.cs index 0d05bf1e1c..a2f0774e7d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCardCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCardCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookProjectCardCreated /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookProjectCardCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookProjectCardCreatedAction Action { get; set; } = global::G.WebhookProjectCardCreatedAction.Created; + public global::G.WebhookProjectCardCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCardDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCardDeleted.g.verified.cs index 64d9ce87da..e509c2025a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCardDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCardDeleted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookProjectCardDeleted ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookProjectCardDeletedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookProjectCardDeletedAction Action { get; set; } = global::G.WebhookProjectCardDeletedAction.Deleted; + public global::G.WebhookProjectCardDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCardEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCardEdited.g.verified.cs index 845049cc07..0ad492d53c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCardEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCardEdited.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookProjectCardEdited ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookProjectCardEditedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookProjectCardEditedAction Action { get; set; } = global::G.WebhookProjectCardEditedAction.Edited; + public global::G.WebhookProjectCardEditedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCardMoved.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCardMoved.g.verified.cs index c87e3a4dbd..eec0d60af6 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCardMoved.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCardMoved.g.verified.cs @@ -16,8 +16,7 @@ public sealed partial class WebhookProjectCardMoved /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookProjectCardMovedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookProjectCardMovedAction Action { get; set; } = global::G.WebhookProjectCardMovedAction.Moved; + public global::G.WebhookProjectCardMovedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectClosed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectClosed.g.verified.cs index 8e52cd76da..f8f0b3bfec 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectClosed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectClosed.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookProjectClosed /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookProjectClosedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookProjectClosedAction Action { get; set; } = global::G.WebhookProjectClosedAction.Closed; + public global::G.WebhookProjectClosedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectColumnCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectColumnCreated.g.verified.cs index a8b03a394d..6045a6ca3f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectColumnCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectColumnCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookProjectColumnCreated ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookProjectColumnCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookProjectColumnCreatedAction Action { get; set; } = global::G.WebhookProjectColumnCreatedAction.Created; + public global::G.WebhookProjectColumnCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectColumnDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectColumnDeleted.g.verified.cs index 42f0a3c28c..213f8f407d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectColumnDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectColumnDeleted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookProjectColumnDeleted ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookProjectColumnDeletedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookProjectColumnDeletedAction Action { get; set; } = global::G.WebhookProjectColumnDeletedAction.Deleted; + public global::G.WebhookProjectColumnDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectColumnEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectColumnEdited.g.verified.cs index 0875a578a2..3058d849bb 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectColumnEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectColumnEdited.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookProjectColumnEdited ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookProjectColumnEditedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookProjectColumnEditedAction Action { get; set; } = global::G.WebhookProjectColumnEditedAction.Edited; + public global::G.WebhookProjectColumnEditedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectColumnMoved.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectColumnMoved.g.verified.cs index 40c1fad5a5..cccdd5c694 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectColumnMoved.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectColumnMoved.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookProjectColumnMoved /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookProjectColumnMovedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookProjectColumnMovedAction Action { get; set; } = global::G.WebhookProjectColumnMovedAction.Moved; + public global::G.WebhookProjectColumnMovedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCreated.g.verified.cs index 36041cd67b..124ccebc16 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookProjectCreated ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookProjectCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookProjectCreatedAction Action { get; set; } = global::G.WebhookProjectCreatedAction.Created; + public global::G.WebhookProjectCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectDeleted.g.verified.cs index 139afbbd85..3badb39824 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectDeleted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookProjectDeleted ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookProjectDeletedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookProjectDeletedAction Action { get; set; } = global::G.WebhookProjectDeletedAction.Deleted; + public global::G.WebhookProjectDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectEdited.g.verified.cs index d00da10d2d..f8f791e525 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectEdited.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookProjectEdited ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookProjectEditedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookProjectEditedAction Action { get; set; } = global::G.WebhookProjectEditedAction.Edited; + public global::G.WebhookProjectEditedAction Action { get; set; } /// /// The changes to the project if the action was `edited`. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectReopened.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectReopened.g.verified.cs index 6a66a7b42e..dba1f05890 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectReopened.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectReopened.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookProjectReopened /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookProjectReopenedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookProjectReopenedAction Action { get; set; } = global::G.WebhookProjectReopenedAction.Reopened; + public global::G.WebhookProjectReopenedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemArchived.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemArchived.g.verified.cs index 03a6c8c6bb..905d09e35d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemArchived.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemArchived.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookProjectsV2ItemArchived ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookProjectsV2ItemArchivedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookProjectsV2ItemArchivedAction Action { get; set; } = global::G.WebhookProjectsV2ItemArchivedAction.Archived; + public global::G.WebhookProjectsV2ItemArchivedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemConverted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemConverted.g.verified.cs index 698273e91a..bb4b3fc511 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemConverted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemConverted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookProjectsV2ItemConverted /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookProjectsV2ItemConvertedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookProjectsV2ItemConvertedAction Action { get; set; } = global::G.WebhookProjectsV2ItemConvertedAction.Converted; + public global::G.WebhookProjectsV2ItemConvertedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemCreated.g.verified.cs index 6c04024c68..13ba10b0ab 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookProjectsV2ItemCreated /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookProjectsV2ItemCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookProjectsV2ItemCreatedAction Action { get; set; } = global::G.WebhookProjectsV2ItemCreatedAction.Created; + public global::G.WebhookProjectsV2ItemCreatedAction Action { get; set; } /// /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemDeleted.g.verified.cs index dd0b2c7f5a..ab447a5c82 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemDeleted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookProjectsV2ItemDeleted ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookProjectsV2ItemDeletedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookProjectsV2ItemDeletedAction Action { get; set; } = global::G.WebhookProjectsV2ItemDeletedAction.Deleted; + public global::G.WebhookProjectsV2ItemDeletedAction Action { get; set; } /// /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemEdited.g.verified.cs index 38774362f6..5b64022981 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemEdited.g.verified.cs @@ -16,8 +16,7 @@ public sealed partial class WebhookProjectsV2ItemEdited ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookProjectsV2ItemEditedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookProjectsV2ItemEditedAction Action { get; set; } = global::G.WebhookProjectsV2ItemEditedAction.Edited; + public global::G.WebhookProjectsV2ItemEditedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemReordered.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemReordered.g.verified.cs index 6451dab3cd..cc388a97e9 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemReordered.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemReordered.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookProjectsV2ItemReordered /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookProjectsV2ItemReorderedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookProjectsV2ItemReorderedAction Action { get; set; } = global::G.WebhookProjectsV2ItemReorderedAction.Reordered; + public global::G.WebhookProjectsV2ItemReorderedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemRestored.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemRestored.g.verified.cs index ac81866729..79d5290f0c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemRestored.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ItemRestored.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookProjectsV2ItemRestored /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookProjectsV2ItemRestoredActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookProjectsV2ItemRestoredAction Action { get; set; } = global::G.WebhookProjectsV2ItemRestoredAction.Restored; + public global::G.WebhookProjectsV2ItemRestoredAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ProjectClosed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ProjectClosed.g.verified.cs index 5f9314acab..f68c787bda 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ProjectClosed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ProjectClosed.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookProjectsV2ProjectClosed /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookProjectsV2ProjectClosedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookProjectsV2ProjectClosedAction Action { get; set; } = global::G.WebhookProjectsV2ProjectClosedAction.Closed; + public global::G.WebhookProjectsV2ProjectClosedAction Action { get; set; } /// /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ProjectCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ProjectCreated.g.verified.cs index a753fa666b..e94f5c341f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ProjectCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ProjectCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookProjectsV2ProjectCreated ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookProjectsV2ProjectCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookProjectsV2ProjectCreatedAction Action { get; set; } = global::G.WebhookProjectsV2ProjectCreatedAction.Created; + public global::G.WebhookProjectsV2ProjectCreatedAction Action { get; set; } /// /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ProjectDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ProjectDeleted.g.verified.cs index 92f2ca2437..e575f2b7d8 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ProjectDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ProjectDeleted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookProjectsV2ProjectDeleted ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookProjectsV2ProjectDeletedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookProjectsV2ProjectDeletedAction Action { get; set; } = global::G.WebhookProjectsV2ProjectDeletedAction.Deleted; + public global::G.WebhookProjectsV2ProjectDeletedAction Action { get; set; } /// /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ProjectEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ProjectEdited.g.verified.cs index 50805876f5..9eb02b9cb3 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ProjectEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ProjectEdited.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookProjectsV2ProjectEdited ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookProjectsV2ProjectEditedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookProjectsV2ProjectEditedAction Action { get; set; } = global::G.WebhookProjectsV2ProjectEditedAction.Edited; + public global::G.WebhookProjectsV2ProjectEditedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ProjectReopened.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ProjectReopened.g.verified.cs index d486960b0d..186f9381ea 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ProjectReopened.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookProjectsV2ProjectReopened.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookProjectsV2ProjectReopened /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookProjectsV2ProjectReopenedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookProjectsV2ProjectReopenedAction Action { get; set; } = global::G.WebhookProjectsV2ProjectReopenedAction.Reopened; + public global::G.WebhookProjectsV2ProjectReopenedAction Action { get; set; } /// /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAssigned.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAssigned.g.verified.cs index 7c60e87ced..0cd6ecc791 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAssigned.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAssigned.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestAssigned ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestAssignedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestAssignedAction Action { get; set; } = global::G.WebhookPullRequestAssignedAction.Assigned; + public global::G.WebhookPullRequestAssignedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAutoMergeDisabled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAutoMergeDisabled.g.verified.cs index 5925b39f51..13adbf6971 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAutoMergeDisabled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAutoMergeDisabled.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestAutoMergeDisabled /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestAutoMergeDisabledActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestAutoMergeDisabledAction Action { get; set; } = global::G.WebhookPullRequestAutoMergeDisabledAction.AutoMergeDisabled; + public global::G.WebhookPullRequestAutoMergeDisabledAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAutoMergeEnabled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAutoMergeEnabled.g.verified.cs index b2ec1fe8d4..d37dd73f90 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAutoMergeEnabled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestAutoMergeEnabled.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestAutoMergeEnabled ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestAutoMergeEnabledActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestAutoMergeEnabledAction Action { get; set; } = global::G.WebhookPullRequestAutoMergeEnabledAction.AutoMergeEnabled; + public global::G.WebhookPullRequestAutoMergeEnabledAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestClosed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestClosed.g.verified.cs index 508cb01dc8..cbd677d0ab 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestClosed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestClosed.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestClosed ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestClosedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestClosedAction Action { get; set; } = global::G.WebhookPullRequestClosedAction.Closed; + public global::G.WebhookPullRequestClosedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestConvertedToDraft.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestConvertedToDraft.g.verified.cs index f6815fd674..ee6ab13589 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestConvertedToDraft.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestConvertedToDraft.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestConvertedToDraft ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestConvertedToDraftActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestConvertedToDraftAction Action { get; set; } = global::G.WebhookPullRequestConvertedToDraftAction.ConvertedToDraft; + public global::G.WebhookPullRequestConvertedToDraftAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestDemilestoned.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestDemilestoned.g.verified.cs index fa9ca17a73..5252933466 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestDemilestoned.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestDemilestoned.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestDemilestoned ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestDemilestonedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestDemilestonedAction Action { get; set; } = global::G.WebhookPullRequestDemilestonedAction.Demilestoned; + public global::G.WebhookPullRequestDemilestonedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestDequeued.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestDequeued.g.verified.cs index e302baacf2..bee78da737 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestDequeued.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestDequeued.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestDequeued ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestDequeuedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestDequeuedAction Action { get; set; } = global::G.WebhookPullRequestDequeuedAction.Dequeued; + public global::G.WebhookPullRequestDequeuedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestEdited.g.verified.cs index f749d9588e..02b3d3c884 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestEdited.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestEdited ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestEditedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestEditedAction Action { get; set; } = global::G.WebhookPullRequestEditedAction.Edited; + public global::G.WebhookPullRequestEditedAction Action { get; set; } /// /// The changes to the comment if the action was `edited`. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestEnqueued.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestEnqueued.g.verified.cs index b825865002..314956471e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestEnqueued.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestEnqueued.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestEnqueued /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestEnqueuedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestEnqueuedAction Action { get; set; } = global::G.WebhookPullRequestEnqueuedAction.Enqueued; + public global::G.WebhookPullRequestEnqueuedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestLabeled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestLabeled.g.verified.cs index 5d983de268..8085148b95 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestLabeled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestLabeled.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestLabeled ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestLabeledActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestLabeledAction Action { get; set; } = global::G.WebhookPullRequestLabeledAction.Labeled; + public global::G.WebhookPullRequestLabeledAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestLocked.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestLocked.g.verified.cs index 82ae604c69..4338f561a2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestLocked.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestLocked.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestLocked ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestLockedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestLockedAction Action { get; set; } = global::G.WebhookPullRequestLockedAction.Locked; + public global::G.WebhookPullRequestLockedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestMilestoned.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestMilestoned.g.verified.cs index 647d950d1b..b13b846f8f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestMilestoned.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestMilestoned.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestMilestoned ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestMilestonedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestMilestonedAction Action { get; set; } = global::G.WebhookPullRequestMilestonedAction.Milestoned; + public global::G.WebhookPullRequestMilestonedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestOpened.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestOpened.g.verified.cs index 7b209da256..e13975f687 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestOpened.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestOpened.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestOpened ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestOpenedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestOpenedAction Action { get; set; } = global::G.WebhookPullRequestOpenedAction.Opened; + public global::G.WebhookPullRequestOpenedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReadyForReview.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReadyForReview.g.verified.cs index 0a0035d4ac..6dbedc7091 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReadyForReview.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReadyForReview.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestReadyForReview ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestReadyForReviewActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestReadyForReviewAction Action { get; set; } = global::G.WebhookPullRequestReadyForReviewAction.ReadyForReview; + public global::G.WebhookPullRequestReadyForReviewAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReopened.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReopened.g.verified.cs index 556a4c74f4..642340ec7a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReopened.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReopened.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestReopened ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestReopenedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestReopenedAction Action { get; set; } = global::G.WebhookPullRequestReopenedAction.Reopened; + public global::G.WebhookPullRequestReopenedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentCreated.g.verified.cs index ba3040d5f2..6f63ab5491 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestReviewCommentCreated ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestReviewCommentCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestReviewCommentCreatedAction Action { get; set; } = global::G.WebhookPullRequestReviewCommentCreatedAction.Created; + public global::G.WebhookPullRequestReviewCommentCreatedAction Action { get; set; } /// /// The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentDeleted.g.verified.cs index 684091b679..46a1b83e55 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentDeleted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestReviewCommentDeleted /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestReviewCommentDeletedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestReviewCommentDeletedAction Action { get; set; } = global::G.WebhookPullRequestReviewCommentDeletedAction.Deleted; + public global::G.WebhookPullRequestReviewCommentDeletedAction Action { get; set; } /// /// The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentEdited.g.verified.cs index 6830eb0299..208e231f6d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewCommentEdited.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestReviewCommentEdited /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestReviewCommentEditedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestReviewCommentEditedAction Action { get; set; } = global::G.WebhookPullRequestReviewCommentEditedAction.Edited; + public global::G.WebhookPullRequestReviewCommentEditedAction Action { get; set; } /// /// The changes to the comment. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewDismissed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewDismissed.g.verified.cs index df68a6d287..bdb4404f9f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewDismissed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewDismissed.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestReviewDismissed /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestReviewDismissedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestReviewDismissedAction Action { get; set; } = global::G.WebhookPullRequestReviewDismissedAction.Dismissed; + public global::G.WebhookPullRequestReviewDismissedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewEdited.g.verified.cs index 1f2108aab9..9dd8c277f8 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewEdited.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestReviewEdited ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestReviewEditedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestReviewEditedAction Action { get; set; } = global::G.WebhookPullRequestReviewEditedAction.Edited; + public global::G.WebhookPullRequestReviewEditedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant1.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant1.g.verified.cs index 0e87461bd9..c6a6cc1be4 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant1.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant1.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestReviewRequestRemovedVariant1 /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestReviewRequestRemovedVariant1ActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestReviewRequestRemovedVariant1Action Action { get; set; } = global::G.WebhookPullRequestReviewRequestRemovedVariant1Action.ReviewRequestRemoved; + public global::G.WebhookPullRequestReviewRequestRemovedVariant1Action Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant2.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant2.g.verified.cs index fed857ad31..581ab21851 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant2.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestRemovedVariant2.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestReviewRequestRemovedVariant2 ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestReviewRequestRemovedVariant2ActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestReviewRequestRemovedVariant2Action Action { get; set; } = global::G.WebhookPullRequestReviewRequestRemovedVariant2Action.ReviewRequestRemoved; + public global::G.WebhookPullRequestReviewRequestRemovedVariant2Action Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestedVariant1.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestedVariant1.g.verified.cs index 90757b0859..608960a87a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestedVariant1.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestedVariant1.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestReviewRequestedVariant1 ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestReviewRequestedVariant1ActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestReviewRequestedVariant1Action Action { get; set; } = global::G.WebhookPullRequestReviewRequestedVariant1Action.ReviewRequested; + public global::G.WebhookPullRequestReviewRequestedVariant1Action Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestedVariant2.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestedVariant2.g.verified.cs index bfc1fd8c44..00e75710b6 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestedVariant2.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewRequestedVariant2.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestReviewRequestedVariant2 ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestReviewRequestedVariant2ActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestReviewRequestedVariant2Action Action { get; set; } = global::G.WebhookPullRequestReviewRequestedVariant2Action.ReviewRequested; + public global::G.WebhookPullRequestReviewRequestedVariant2Action Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewSubmitted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewSubmitted.g.verified.cs index 6a36d04b76..7ca350c7ee 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewSubmitted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewSubmitted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestReviewSubmitted ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestReviewSubmittedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestReviewSubmittedAction Action { get; set; } = global::G.WebhookPullRequestReviewSubmittedAction.Submitted; + public global::G.WebhookPullRequestReviewSubmittedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewThreadResolved.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewThreadResolved.g.verified.cs index 84b56f72aa..1f52ecf27d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewThreadResolved.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewThreadResolved.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestReviewThreadResolved ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestReviewThreadResolvedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestReviewThreadResolvedAction Action { get; set; } = global::G.WebhookPullRequestReviewThreadResolvedAction.Resolved; + public global::G.WebhookPullRequestReviewThreadResolvedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewThreadUnresolved.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewThreadUnresolved.g.verified.cs index b633e24dbd..4a48acfa44 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewThreadUnresolved.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestReviewThreadUnresolved.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestReviewThreadUnresolved ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestReviewThreadUnresolvedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestReviewThreadUnresolvedAction Action { get; set; } = global::G.WebhookPullRequestReviewThreadUnresolvedAction.Unresolved; + public global::G.WebhookPullRequestReviewThreadUnresolvedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestSynchronize.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestSynchronize.g.verified.cs index d54ec9c0eb..c26058fc4b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestSynchronize.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestSynchronize.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestSynchronize ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestSynchronizeActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestSynchronizeAction Action { get; set; } = global::G.WebhookPullRequestSynchronizeAction.Synchronize; + public global::G.WebhookPullRequestSynchronizeAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnassigned.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnassigned.g.verified.cs index 966e9a4ea0..2ecd0b50db 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnassigned.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnassigned.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestUnassigned /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestUnassignedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestUnassignedAction Action { get; set; } = global::G.WebhookPullRequestUnassignedAction.Unassigned; + public global::G.WebhookPullRequestUnassignedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnlabeled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnlabeled.g.verified.cs index 5b21c6c7a9..ed820ce65b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnlabeled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnlabeled.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestUnlabeled /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestUnlabeledActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestUnlabeledAction Action { get; set; } = global::G.WebhookPullRequestUnlabeledAction.Unlabeled; + public global::G.WebhookPullRequestUnlabeledAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnlocked.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnlocked.g.verified.cs index 1ed1ffda88..4df4e415bc 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnlocked.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookPullRequestUnlocked.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookPullRequestUnlocked ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookPullRequestUnlockedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookPullRequestUnlockedAction Action { get; set; } = global::G.WebhookPullRequestUnlockedAction.Unlocked; + public global::G.WebhookPullRequestUnlockedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRegistryPackagePublished.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRegistryPackagePublished.g.verified.cs index 56ccf96a0f..bcf568d17a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRegistryPackagePublished.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRegistryPackagePublished.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookRegistryPackagePublished ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookRegistryPackagePublishedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookRegistryPackagePublishedAction Action { get; set; } = global::G.WebhookRegistryPackagePublishedAction.Published; + public global::G.WebhookRegistryPackagePublishedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRegistryPackageUpdated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRegistryPackageUpdated.g.verified.cs index b8ed1d890a..8f1641f997 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRegistryPackageUpdated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRegistryPackageUpdated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookRegistryPackageUpdated ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookRegistryPackageUpdatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookRegistryPackageUpdatedAction Action { get; set; } = global::G.WebhookRegistryPackageUpdatedAction.Updated; + public global::G.WebhookRegistryPackageUpdatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleaseCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleaseCreated.g.verified.cs index f37f4ddd17..35c862d72a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleaseCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleaseCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookReleaseCreated ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookReleaseCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookReleaseCreatedAction Action { get; set; } = global::G.WebhookReleaseCreatedAction.Created; + public global::G.WebhookReleaseCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleaseDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleaseDeleted.g.verified.cs index 78e887d1f9..3351f73bb2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleaseDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleaseDeleted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookReleaseDeleted ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookReleaseDeletedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookReleaseDeletedAction Action { get; set; } = global::G.WebhookReleaseDeletedAction.Deleted; + public global::G.WebhookReleaseDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleaseEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleaseEdited.g.verified.cs index 1ae32966ed..79e39908a5 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleaseEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleaseEdited.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookReleaseEdited ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookReleaseEditedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookReleaseEditedAction Action { get; set; } = global::G.WebhookReleaseEditedAction.Edited; + public global::G.WebhookReleaseEditedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleasePrereleased.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleasePrereleased.g.verified.cs index 88582cbed3..d20975bc82 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleasePrereleased.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleasePrereleased.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookReleasePrereleased /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookReleasePrereleasedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookReleasePrereleasedAction Action { get; set; } = global::G.WebhookReleasePrereleasedAction.Prereleased; + public global::G.WebhookReleasePrereleasedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleasePrereleasedReleaseAsset.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleasePrereleasedReleaseAsset.g.verified.cs index 0755a6891c..5d53a83d27 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleasePrereleasedReleaseAsset.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleasePrereleasedReleaseAsset.g.verified.cs @@ -77,8 +77,7 @@ public sealed partial class WebhookReleasePrereleasedReleaseAsset ///
[global::System.Text.Json.Serialization.JsonPropertyName("state")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookReleasePrereleasedReleaseAssetStateJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookReleasePrereleasedReleaseAssetState State { get; set; } = global::G.WebhookReleasePrereleasedReleaseAssetState.Uploaded; + public global::G.WebhookReleasePrereleasedReleaseAssetState State { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleasePublished.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleasePublished.g.verified.cs index 5660aae8bc..352dddd33a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleasePublished.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleasePublished.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookReleasePublished /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookReleasePublishedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookReleasePublishedAction Action { get; set; } = global::G.WebhookReleasePublishedAction.Published; + public global::G.WebhookReleasePublishedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleaseReleased.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleaseReleased.g.verified.cs index 75c7a80537..bc9f04cd4e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleaseReleased.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleaseReleased.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookReleaseReleased ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookReleaseReleasedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookReleaseReleasedAction Action { get; set; } = global::G.WebhookReleaseReleasedAction.Released; + public global::G.WebhookReleaseReleasedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleaseUnpublished.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleaseUnpublished.g.verified.cs index 676dfef764..f872a2637c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleaseUnpublished.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookReleaseUnpublished.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookReleaseUnpublished ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookReleaseUnpublishedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookReleaseUnpublishedAction Action { get; set; } = global::G.WebhookReleaseUnpublishedAction.Unpublished; + public global::G.WebhookReleaseUnpublishedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryAdvisoryPublished.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryAdvisoryPublished.g.verified.cs index b0d41db156..460925d383 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryAdvisoryPublished.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryAdvisoryPublished.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookRepositoryAdvisoryPublished ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookRepositoryAdvisoryPublishedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookRepositoryAdvisoryPublishedAction Action { get; set; } = global::G.WebhookRepositoryAdvisoryPublishedAction.Published; + public global::G.WebhookRepositoryAdvisoryPublishedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryAdvisoryReported.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryAdvisoryReported.g.verified.cs index 071f74373e..00dfb8889d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryAdvisoryReported.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryAdvisoryReported.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookRepositoryAdvisoryReported ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookRepositoryAdvisoryReportedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookRepositoryAdvisoryReportedAction Action { get; set; } = global::G.WebhookRepositoryAdvisoryReportedAction.Reported; + public global::G.WebhookRepositoryAdvisoryReportedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryArchived.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryArchived.g.verified.cs index 5ee33fee9f..658deb4b41 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryArchived.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryArchived.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookRepositoryArchived ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookRepositoryArchivedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookRepositoryArchivedAction Action { get; set; } = global::G.WebhookRepositoryArchivedAction.Archived; + public global::G.WebhookRepositoryArchivedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryCreated.g.verified.cs index b4e6d4b575..f487231f73 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookRepositoryCreated ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookRepositoryCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookRepositoryCreatedAction Action { get; set; } = global::G.WebhookRepositoryCreatedAction.Created; + public global::G.WebhookRepositoryCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryDeleted.g.verified.cs index a3f0e9e736..7600d7ff19 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryDeleted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookRepositoryDeleted ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookRepositoryDeletedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookRepositoryDeletedAction Action { get; set; } = global::G.WebhookRepositoryDeletedAction.Deleted; + public global::G.WebhookRepositoryDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryEdited.g.verified.cs index aef3813cad..d80b0d3c88 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryEdited.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookRepositoryEdited ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookRepositoryEditedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookRepositoryEditedAction Action { get; set; } = global::G.WebhookRepositoryEditedAction.Edited; + public global::G.WebhookRepositoryEditedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryPrivatized.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryPrivatized.g.verified.cs index 673765f6a3..2d8e241ada 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryPrivatized.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryPrivatized.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookRepositoryPrivatized /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookRepositoryPrivatizedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookRepositoryPrivatizedAction Action { get; set; } = global::G.WebhookRepositoryPrivatizedAction.Privatized; + public global::G.WebhookRepositoryPrivatizedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryPublicized.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryPublicized.g.verified.cs index 0eb72447b9..7163d300d3 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryPublicized.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryPublicized.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookRepositoryPublicized ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookRepositoryPublicizedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookRepositoryPublicizedAction Action { get; set; } = global::G.WebhookRepositoryPublicizedAction.Publicized; + public global::G.WebhookRepositoryPublicizedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryRenamed.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryRenamed.g.verified.cs index 27140b381b..70159895b6 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryRenamed.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryRenamed.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookRepositoryRenamed ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookRepositoryRenamedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookRepositoryRenamedAction Action { get; set; } = global::G.WebhookRepositoryRenamedAction.Renamed; + public global::G.WebhookRepositoryRenamedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryRulesetCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryRulesetCreated.g.verified.cs index b1b695946f..c2622e3b46 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryRulesetCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryRulesetCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookRepositoryRulesetCreated /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookRepositoryRulesetCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookRepositoryRulesetCreatedAction Action { get; set; } = global::G.WebhookRepositoryRulesetCreatedAction.Created; + public global::G.WebhookRepositoryRulesetCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryRulesetDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryRulesetDeleted.g.verified.cs index 8bae98039e..d7e313a768 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryRulesetDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryRulesetDeleted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookRepositoryRulesetDeleted ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookRepositoryRulesetDeletedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookRepositoryRulesetDeletedAction Action { get; set; } = global::G.WebhookRepositoryRulesetDeletedAction.Deleted; + public global::G.WebhookRepositoryRulesetDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryRulesetEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryRulesetEdited.g.verified.cs index fdc3c55826..2b1111e293 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryRulesetEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryRulesetEdited.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookRepositoryRulesetEdited ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookRepositoryRulesetEditedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookRepositoryRulesetEditedAction Action { get; set; } = global::G.WebhookRepositoryRulesetEditedAction.Edited; + public global::G.WebhookRepositoryRulesetEditedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryTransferred.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryTransferred.g.verified.cs index 3c07acb63d..6fb09b425a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryTransferred.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryTransferred.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookRepositoryTransferred ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookRepositoryTransferredActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookRepositoryTransferredAction Action { get; set; } = global::G.WebhookRepositoryTransferredAction.Transferred; + public global::G.WebhookRepositoryTransferredAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryUnarchived.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryUnarchived.g.verified.cs index 98dd4f1b5d..41fec16c07 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryUnarchived.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryUnarchived.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookRepositoryUnarchived /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookRepositoryUnarchivedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookRepositoryUnarchivedAction Action { get; set; } = global::G.WebhookRepositoryUnarchivedAction.Unarchived; + public global::G.WebhookRepositoryUnarchivedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryVulnerabilityAlertCreate.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryVulnerabilityAlertCreate.g.verified.cs index 7676274e47..6d6263730d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryVulnerabilityAlertCreate.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryVulnerabilityAlertCreate.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookRepositoryVulnerabilityAlertCreate ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookRepositoryVulnerabilityAlertCreateActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookRepositoryVulnerabilityAlertCreateAction Action { get; set; } = global::G.WebhookRepositoryVulnerabilityAlertCreateAction.Create; + public global::G.WebhookRepositoryVulnerabilityAlertCreateAction Action { get; set; } /// /// The security alert of the vulnerable dependency. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryVulnerabilityAlertDismiss.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryVulnerabilityAlertDismiss.g.verified.cs index 1100835d96..270727af7c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryVulnerabilityAlertDismiss.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryVulnerabilityAlertDismiss.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookRepositoryVulnerabilityAlertDismiss /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookRepositoryVulnerabilityAlertDismissActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookRepositoryVulnerabilityAlertDismissAction Action { get; set; } = global::G.WebhookRepositoryVulnerabilityAlertDismissAction.Dismiss; + public global::G.WebhookRepositoryVulnerabilityAlertDismissAction Action { get; set; } /// /// The security alert of the vulnerable dependency. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryVulnerabilityAlertDismissAlert.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryVulnerabilityAlertDismissAlert.g.verified.cs index 917cd89a03..be50957d05 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryVulnerabilityAlertDismissAlert.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryVulnerabilityAlertDismissAlert.g.verified.cs @@ -129,8 +129,7 @@ public sealed partial class WebhookRepositoryVulnerabilityAlertDismissAlert /// [global::System.Text.Json.Serialization.JsonPropertyName("state")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookRepositoryVulnerabilityAlertDismissAlertStateJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookRepositoryVulnerabilityAlertDismissAlertState State { get; set; } = global::G.WebhookRepositoryVulnerabilityAlertDismissAlertState.Dismissed; + public global::G.WebhookRepositoryVulnerabilityAlertDismissAlertState State { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryVulnerabilityAlertReopen.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryVulnerabilityAlertReopen.g.verified.cs index 969091c83c..ba3c7f6889 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryVulnerabilityAlertReopen.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryVulnerabilityAlertReopen.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookRepositoryVulnerabilityAlertReopen /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookRepositoryVulnerabilityAlertReopenActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookRepositoryVulnerabilityAlertReopenAction Action { get; set; } = global::G.WebhookRepositoryVulnerabilityAlertReopenAction.Reopen; + public global::G.WebhookRepositoryVulnerabilityAlertReopenAction Action { get; set; } /// /// The security alert of the vulnerable dependency. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryVulnerabilityAlertResolve.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryVulnerabilityAlertResolve.g.verified.cs index 2f9599db9f..678a9578cf 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryVulnerabilityAlertResolve.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookRepositoryVulnerabilityAlertResolve.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookRepositoryVulnerabilityAlertResolve /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookRepositoryVulnerabilityAlertResolveActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookRepositoryVulnerabilityAlertResolveAction Action { get; set; } = global::G.WebhookRepositoryVulnerabilityAlertResolveAction.Resolve; + public global::G.WebhookRepositoryVulnerabilityAlertResolveAction Action { get; set; } /// /// The security alert of the vulnerable dependency. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecretScanningAlertCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecretScanningAlertCreated.g.verified.cs index e49de4de2a..2272c32c81 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecretScanningAlertCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecretScanningAlertCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookSecretScanningAlertCreated /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookSecretScanningAlertCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookSecretScanningAlertCreatedAction Action { get; set; } = global::G.WebhookSecretScanningAlertCreatedAction.Created; + public global::G.WebhookSecretScanningAlertCreatedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecretScanningAlertReopened.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecretScanningAlertReopened.g.verified.cs index a34cd9183c..f9c29d612d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecretScanningAlertReopened.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecretScanningAlertReopened.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookSecretScanningAlertReopened /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookSecretScanningAlertReopenedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookSecretScanningAlertReopenedAction Action { get; set; } = global::G.WebhookSecretScanningAlertReopenedAction.Reopened; + public global::G.WebhookSecretScanningAlertReopenedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecretScanningAlertResolved.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecretScanningAlertResolved.g.verified.cs index 9154ea7552..b5a4b55bdb 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecretScanningAlertResolved.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecretScanningAlertResolved.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookSecretScanningAlertResolved /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookSecretScanningAlertResolvedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookSecretScanningAlertResolvedAction Action { get; set; } = global::G.WebhookSecretScanningAlertResolvedAction.Resolved; + public global::G.WebhookSecretScanningAlertResolvedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecretScanningAlertRevoked.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecretScanningAlertRevoked.g.verified.cs index b15543c09c..0a5ea8e27c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecretScanningAlertRevoked.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecretScanningAlertRevoked.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookSecretScanningAlertRevoked /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookSecretScanningAlertRevokedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookSecretScanningAlertRevokedAction Action { get; set; } = global::G.WebhookSecretScanningAlertRevokedAction.Revoked; + public global::G.WebhookSecretScanningAlertRevokedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecretScanningAlertValidated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecretScanningAlertValidated.g.verified.cs index e5691445a4..027dc9348e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecretScanningAlertValidated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecretScanningAlertValidated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookSecretScanningAlertValidated /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookSecretScanningAlertValidatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookSecretScanningAlertValidatedAction Action { get; set; } = global::G.WebhookSecretScanningAlertValidatedAction.Validated; + public global::G.WebhookSecretScanningAlertValidatedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecurityAdvisoryPublished.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecurityAdvisoryPublished.g.verified.cs index 3e4df8de2c..7022179b37 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecurityAdvisoryPublished.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecurityAdvisoryPublished.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookSecurityAdvisoryPublished /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookSecurityAdvisoryPublishedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookSecurityAdvisoryPublishedAction Action { get; set; } = global::G.WebhookSecurityAdvisoryPublishedAction.Published; + public global::G.WebhookSecurityAdvisoryPublishedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecurityAdvisoryUpdated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecurityAdvisoryUpdated.g.verified.cs index 2f6e2f0c13..f3fc53eae8 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecurityAdvisoryUpdated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecurityAdvisoryUpdated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookSecurityAdvisoryUpdated ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookSecurityAdvisoryUpdatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookSecurityAdvisoryUpdatedAction Action { get; set; } = global::G.WebhookSecurityAdvisoryUpdatedAction.Updated; + public global::G.WebhookSecurityAdvisoryUpdatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecurityAdvisoryWithdrawn.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecurityAdvisoryWithdrawn.g.verified.cs index 69fb344d2e..dbd1c73626 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecurityAdvisoryWithdrawn.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSecurityAdvisoryWithdrawn.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookSecurityAdvisoryWithdrawn ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookSecurityAdvisoryWithdrawnActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookSecurityAdvisoryWithdrawnAction Action { get; set; } = global::G.WebhookSecurityAdvisoryWithdrawnAction.Withdrawn; + public global::G.WebhookSecurityAdvisoryWithdrawnAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSponsorshipCancelled.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSponsorshipCancelled.g.verified.cs index 32b139ed54..40b3a358f9 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSponsorshipCancelled.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSponsorshipCancelled.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookSponsorshipCancelled ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookSponsorshipCancelledActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookSponsorshipCancelledAction Action { get; set; } = global::G.WebhookSponsorshipCancelledAction.Cancelled; + public global::G.WebhookSponsorshipCancelledAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSponsorshipCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSponsorshipCreated.g.verified.cs index a5162b46d5..3bddff6ecf 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSponsorshipCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSponsorshipCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookSponsorshipCreated ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookSponsorshipCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookSponsorshipCreatedAction Action { get; set; } = global::G.WebhookSponsorshipCreatedAction.Created; + public global::G.WebhookSponsorshipCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSponsorshipEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSponsorshipEdited.g.verified.cs index fd444be324..2a381bd1a0 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSponsorshipEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSponsorshipEdited.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookSponsorshipEdited ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookSponsorshipEditedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookSponsorshipEditedAction Action { get; set; } = global::G.WebhookSponsorshipEditedAction.Edited; + public global::G.WebhookSponsorshipEditedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSponsorshipPendingCancellation.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSponsorshipPendingCancellation.g.verified.cs index a7db5602ed..b932ac7454 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSponsorshipPendingCancellation.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSponsorshipPendingCancellation.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookSponsorshipPendingCancellation /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookSponsorshipPendingCancellationActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookSponsorshipPendingCancellationAction Action { get; set; } = global::G.WebhookSponsorshipPendingCancellationAction.PendingCancellation; + public global::G.WebhookSponsorshipPendingCancellationAction Action { get; set; } /// /// The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSponsorshipPendingTierChange.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSponsorshipPendingTierChange.g.verified.cs index 3ab4809562..2ed229977e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSponsorshipPendingTierChange.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSponsorshipPendingTierChange.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookSponsorshipPendingTierChange /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookSponsorshipPendingTierChangeActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookSponsorshipPendingTierChangeAction Action { get; set; } = global::G.WebhookSponsorshipPendingTierChangeAction.PendingTierChange; + public global::G.WebhookSponsorshipPendingTierChangeAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSponsorshipTierChanged.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSponsorshipTierChanged.g.verified.cs index ff8b356eca..a93761a174 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSponsorshipTierChanged.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookSponsorshipTierChanged.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookSponsorshipTierChanged /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookSponsorshipTierChangedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookSponsorshipTierChangedAction Action { get; set; } = global::G.WebhookSponsorshipTierChangedAction.TierChanged; + public global::G.WebhookSponsorshipTierChangedAction Action { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookStarCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookStarCreated.g.verified.cs index c449abfda1..5b9b040cc7 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookStarCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookStarCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookStarCreated /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookStarCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookStarCreatedAction Action { get; set; } = global::G.WebhookStarCreatedAction.Created; + public global::G.WebhookStarCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookStarDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookStarDeleted.g.verified.cs index 1932a484c9..ec950d5b5f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookStarDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookStarDeleted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookStarDeleted ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookStarDeletedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookStarDeletedAction Action { get; set; } = global::G.WebhookStarDeletedAction.Deleted; + public global::G.WebhookStarDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamAddedToRepository.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamAddedToRepository.g.verified.cs index b8d9e94570..25cde62398 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamAddedToRepository.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamAddedToRepository.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookTeamAddedToRepository ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookTeamAddedToRepositoryActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookTeamAddedToRepositoryAction Action { get; set; } = global::G.WebhookTeamAddedToRepositoryAction.AddedToRepository; + public global::G.WebhookTeamAddedToRepositoryAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamCreated.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamCreated.g.verified.cs index 7bc3ebd3d4..08e45100fd 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamCreated.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamCreated.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookTeamCreated ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookTeamCreatedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookTeamCreatedAction Action { get; set; } = global::G.WebhookTeamCreatedAction.Created; + public global::G.WebhookTeamCreatedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamDeleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamDeleted.g.verified.cs index ffdec34534..a938412d11 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamDeleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamDeleted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookTeamDeleted ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookTeamDeletedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookTeamDeletedAction Action { get; set; } = global::G.WebhookTeamDeletedAction.Deleted; + public global::G.WebhookTeamDeletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamEdited.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamEdited.g.verified.cs index 8430fa5341..ed7a3510c4 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamEdited.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamEdited.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookTeamEdited ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookTeamEditedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookTeamEditedAction Action { get; set; } = global::G.WebhookTeamEditedAction.Edited; + public global::G.WebhookTeamEditedAction Action { get; set; } /// /// The changes to the team if the action was `edited`. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamRemovedFromRepository.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamRemovedFromRepository.g.verified.cs index 07f86cb49f..a76d404934 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamRemovedFromRepository.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookTeamRemovedFromRepository.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookTeamRemovedFromRepository /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookTeamRemovedFromRepositoryActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookTeamRemovedFromRepositoryAction Action { get; set; } = global::G.WebhookTeamRemovedFromRepositoryAction.RemovedFromRepository; + public global::G.WebhookTeamRemovedFromRepositoryAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWatchStarted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWatchStarted.g.verified.cs index 97e3215865..32dd50023a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWatchStarted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWatchStarted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookWatchStarted ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookWatchStartedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookWatchStartedAction Action { get; set; } = global::G.WebhookWatchStartedAction.Started; + public global::G.WebhookWatchStartedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowJobCompleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowJobCompleted.g.verified.cs index 5b1664d8e8..3cc6e4775e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowJobCompleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowJobCompleted.g.verified.cs @@ -16,8 +16,7 @@ public sealed partial class WebhookWorkflowJobCompleted ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookWorkflowJobCompletedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookWorkflowJobCompletedAction Action { get; set; } = global::G.WebhookWorkflowJobCompletedAction.Completed; + public global::G.WebhookWorkflowJobCompletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowJobInProgress.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowJobInProgress.g.verified.cs index e5c7d20eee..62d1e80a63 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowJobInProgress.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowJobInProgress.g.verified.cs @@ -16,8 +16,7 @@ public sealed partial class WebhookWorkflowJobInProgress ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookWorkflowJobInProgressActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookWorkflowJobInProgressAction Action { get; set; } = global::G.WebhookWorkflowJobInProgressAction.InProgress; + public global::G.WebhookWorkflowJobInProgressAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowJobQueued.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowJobQueued.g.verified.cs index c45ff9d66f..e178029fd6 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowJobQueued.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowJobQueued.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookWorkflowJobQueued ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookWorkflowJobQueuedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookWorkflowJobQueuedAction Action { get; set; } = global::G.WebhookWorkflowJobQueuedAction.Queued; + public global::G.WebhookWorkflowJobQueuedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowJobWaiting.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowJobWaiting.g.verified.cs index 8e2e2d6de1..59c6e2072e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowJobWaiting.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowJobWaiting.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookWorkflowJobWaiting ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookWorkflowJobWaitingActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookWorkflowJobWaitingAction Action { get; set; } = global::G.WebhookWorkflowJobWaitingAction.Waiting; + public global::G.WebhookWorkflowJobWaitingAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowRunCompleted.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowRunCompleted.g.verified.cs index c0783dacae..dade2cf9f5 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowRunCompleted.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowRunCompleted.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookWorkflowRunCompleted ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookWorkflowRunCompletedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookWorkflowRunCompletedAction Action { get; set; } = global::G.WebhookWorkflowRunCompletedAction.Completed; + public global::G.WebhookWorkflowRunCompletedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowRunInProgress.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowRunInProgress.g.verified.cs index 5b58961739..822ca7c052 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowRunInProgress.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowRunInProgress.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookWorkflowRunInProgress ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookWorkflowRunInProgressActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookWorkflowRunInProgressAction Action { get; set; } = global::G.WebhookWorkflowRunInProgressAction.InProgress; + public global::G.WebhookWorkflowRunInProgressAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowRunRequested.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowRunRequested.g.verified.cs index 81f03e10b1..e57dcc0abe 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowRunRequested.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhookWorkflowRunRequested.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class WebhookWorkflowRunRequested ///
[global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhookWorkflowRunRequestedActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhookWorkflowRunRequestedAction Action { get; set; } = global::G.WebhookWorkflowRunRequestedAction.Requested; + public global::G.WebhookWorkflowRunRequestedAction Action { get; set; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhooksAlert.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhooksAlert.g.verified.cs index 37805b251a..c6d46b4dc7 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhooksAlert.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhooksAlert.g.verified.cs @@ -120,8 +120,7 @@ public sealed partial class WebhooksAlert ///
[global::System.Text.Json.Serialization.JsonPropertyName("state")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhooksAlertStateJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhooksAlertState State { get; set; } = global::G.WebhooksAlertState.Open; + public global::G.WebhooksAlertState State { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhooksRelease1Asset.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhooksRelease1Asset.g.verified.cs index 0c7573aedb..4249d64edd 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhooksRelease1Asset.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhooksRelease1Asset.g.verified.cs @@ -77,8 +77,7 @@ public sealed partial class WebhooksRelease1Asset /// [global::System.Text.Json.Serialization.JsonPropertyName("state")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhooksRelease1AssetStateJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhooksRelease1AssetState State { get; set; } = global::G.WebhooksRelease1AssetState.Uploaded; + public global::G.WebhooksRelease1AssetState State { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhooksReleaseAsset.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhooksReleaseAsset.g.verified.cs index ce7388986d..fd9a70d64d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhooksReleaseAsset.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.Models.WebhooksReleaseAsset.g.verified.cs @@ -77,8 +77,7 @@ public sealed partial class WebhooksReleaseAsset /// [global::System.Text.Json.Serialization.JsonPropertyName("state")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.WebhooksReleaseAssetStateJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.WebhooksReleaseAssetState State { get; set; } = global::G.WebhooksReleaseAssetState.Uploaded; + public global::G.WebhooksReleaseAssetState State { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.OrgsClient.OrgsUpdateMembershipForAuthenticatedUser.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.OrgsClient.OrgsUpdateMembershipForAuthenticatedUser.g.verified.cs index 6e37d3ef40..1f9a2c40e4 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.OrgsClient.OrgsUpdateMembershipForAuthenticatedUser.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.OrgsClient.OrgsUpdateMembershipForAuthenticatedUser.g.verified.cs @@ -114,7 +114,7 @@ partial void ProcessOrgsUpdateMembershipForAuthenticatedUserResponseContent( /// public async global::System.Threading.Tasks.Task OrgsUpdateMembershipForAuthenticatedUserAsync( string org, - global::G.OrgsUpdateMembershipForAuthenticatedUserRequestState state, + global::G.OrgsUpdateMembershipForAuthenticatedUserRequestState state = default, global::System.Threading.CancellationToken cancellationToken = default) { var request = new global::G.OrgsUpdateMembershipForAuthenticatedUserRequest diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.OrgsClient.OrgsUpdatePatAccess.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.OrgsClient.OrgsUpdatePatAccess.g.verified.cs index c74c1e6898..22502c5171 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.OrgsClient.OrgsUpdatePatAccess.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.OrgsClient.OrgsUpdatePatAccess.g.verified.cs @@ -124,7 +124,7 @@ partial void ProcessOrgsUpdatePatAccessResponseContent( public async global::System.Threading.Tasks.Task OrgsUpdatePatAccessAsync( string org, int patId, - global::G.OrgsUpdatePatAccessRequestAction action, + global::G.OrgsUpdatePatAccessRequestAction action = default, global::System.Threading.CancellationToken cancellationToken = default) { var request = new global::G.OrgsUpdatePatAccessRequest diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.OrgsClient.OrgsUpdatePatAccesses.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.OrgsClient.OrgsUpdatePatAccesses.g.verified.cs index f9a478c7d6..d463a793f1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.OrgsClient.OrgsUpdatePatAccesses.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/GitHub/SystemTextJson/_#G.OrgsClient.OrgsUpdatePatAccesses.g.verified.cs @@ -119,8 +119,8 @@ partial void ProcessOrgsUpdatePatAccessesResponseContent( /// public async global::System.Threading.Tasks.Task OrgsUpdatePatAccessesAsync( string org, - global::G.OrgsUpdatePatAccessesRequestAction action, global::System.Collections.Generic.IList patIds, + global::G.OrgsUpdatePatAccessesRequestAction action = default, global::System.Threading.CancellationToken cancellationToken = default) { var request = new global::G.OrgsUpdatePatAccessesRequest diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.BatchClient.CreateBatch.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.BatchClient.CreateBatch.g.verified.cs index f447e0fc7d..5b0d922dbf 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.BatchClient.CreateBatch.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.BatchClient.CreateBatch.g.verified.cs @@ -117,7 +117,7 @@ partial void ProcessCreateBatchResponseContent( public async global::System.Threading.Tasks.Task CreateBatchAsync( string inputFileId, global::G.CreateBatchRequestEndpoint endpoint, - global::G.CreateBatchRequestCompletionWindow completionWindow, + global::G.CreateBatchRequestCompletionWindow completionWindow = default, global::G.CreateBatchRequestMetadata? metadata = default, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.AssistantObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.AssistantObject.g.verified.cs index 31ffe1df1c..b2d85305ff 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.AssistantObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.AssistantObject.g.verified.cs @@ -20,8 +20,8 @@ public sealed partial class AssistantObject /// /// The object type, which is always `assistant`. /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.AssistantObjectObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.AssistantObjectObject Object { get; set; } /// /// The Unix timestamp (in seconds) for when the assistant was created. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.AssistantToolsCode.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.AssistantToolsCode.g.verified.cs index 226232fb49..0acf02f95f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.AssistantToolsCode.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.AssistantToolsCode.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class AssistantToolsCode /// /// The type of tool being defined: `code_interpreter` /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.AssistantToolsCodeType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.AssistantToolsCodeType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.AssistantToolsFileSearch.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.AssistantToolsFileSearch.g.verified.cs index 12b2b6e944..b6db589b44 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.AssistantToolsFileSearch.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.AssistantToolsFileSearch.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class AssistantToolsFileSearch /// /// The type of tool being defined: `file_search` /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.AssistantToolsFileSearchType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.AssistantToolsFileSearchType Type { get; set; } /// /// Overrides for the file search tool. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.AssistantToolsFileSearchTypeOnly.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.AssistantToolsFileSearchTypeOnly.g.verified.cs index dd3dc9ec39..912ba60e9f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.AssistantToolsFileSearchTypeOnly.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.AssistantToolsFileSearchTypeOnly.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class AssistantToolsFileSearchTypeOnly /// /// The type of tool being defined: `file_search` /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.AssistantToolsFileSearchTypeOnlyType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.AssistantToolsFileSearchTypeOnlyType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.AssistantToolsFunction.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.AssistantToolsFunction.g.verified.cs index be8f660dc0..bb5a9f21dd 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.AssistantToolsFunction.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.AssistantToolsFunction.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class AssistantToolsFunction /// /// The type of tool being defined: `function` /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.AssistantToolsFunctionType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.AssistantToolsFunctionType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.AutoChunkingStrategyRequestParam.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.AutoChunkingStrategyRequestParam.g.verified.cs index bc63d685d7..8766485eaf 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.AutoChunkingStrategyRequestParam.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.AutoChunkingStrategyRequestParam.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class AutoChunkingStrategyRequestParam /// /// Always `auto`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.AutoChunkingStrategyRequestParamType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.AutoChunkingStrategyRequestParamType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.Batch.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.Batch.g.verified.cs index ffba127964..d21d9dae42 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.Batch.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.Batch.g.verified.cs @@ -18,8 +18,8 @@ public sealed partial class Batch /// /// The object type, which is always `batch`. /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.BatchObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.BatchObject Object { get; set; } /// /// The OpenAI API endpoint used by the batch. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionMessageToolCall.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionMessageToolCall.g.verified.cs index 223c6641df..2654bbca35 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionMessageToolCall.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionMessageToolCall.g.verified.cs @@ -18,8 +18,8 @@ public sealed partial class ChatCompletionMessageToolCall /// /// The type of the tool. Currently, only `function` is supported. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ChatCompletionMessageToolCallType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.ChatCompletionMessageToolCallType Type { get; set; } /// /// The function that the model called. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionNamedToolChoice.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionNamedToolChoice.g.verified.cs index 779397bc47..49825ea748 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionNamedToolChoice.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionNamedToolChoice.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class ChatCompletionNamedToolChoice /// /// The type of the tool. Currently, only `function` is supported. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ChatCompletionNamedToolChoiceType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.ChatCompletionNamedToolChoiceType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestAssistantMessage.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestAssistantMessage.g.verified.cs index 12fbead5ad..f00cd5ea15 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestAssistantMessage.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestAssistantMessage.g.verified.cs @@ -26,8 +26,8 @@ public sealed partial class ChatCompletionRequestAssistantMessage /// /// The role of the messages author, in this case `assistant`. /// - [global::Newtonsoft.Json.JsonProperty("role", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ChatCompletionRequestAssistantMessageRole Role { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("role")] + public global::G.ChatCompletionRequestAssistantMessageRole Role { get; set; } /// /// An optional name for the participant. Provides the model information to differentiate between participants of the same role. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestFunctionMessage.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestFunctionMessage.g.verified.cs index 05e2dd23e2..6e8bcd0af3 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestFunctionMessage.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestFunctionMessage.g.verified.cs @@ -13,9 +13,9 @@ public sealed partial class ChatCompletionRequestFunctionMessage /// /// The role of the messages author, in this case `function`. /// - [global::Newtonsoft.Json.JsonProperty("role", Required = global::Newtonsoft.Json.Required.Always)] + [global::Newtonsoft.Json.JsonProperty("role")] [global::System.Obsolete("This property marked as deprecated.")] - public global::G.ChatCompletionRequestFunctionMessageRole Role { get; set; } = default!; + public global::G.ChatCompletionRequestFunctionMessageRole Role { get; set; } /// /// The contents of the function message. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestMessageContentPartImage.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestMessageContentPartImage.g.verified.cs index 3250c93866..7dbc654012 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestMessageContentPartImage.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestMessageContentPartImage.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class ChatCompletionRequestMessageContentPartImage /// /// The type of the content part. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ChatCompletionRequestMessageContentPartImageType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.ChatCompletionRequestMessageContentPartImageType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestMessageContentPartRefusal.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestMessageContentPartRefusal.g.verified.cs index 0cc0621325..4fbee99d55 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestMessageContentPartRefusal.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestMessageContentPartRefusal.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class ChatCompletionRequestMessageContentPartRefusal /// /// The type of the content part. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ChatCompletionRequestMessageContentPartRefusalType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.ChatCompletionRequestMessageContentPartRefusalType Type { get; set; } /// /// The refusal message generated by the model. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestMessageContentPartText.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestMessageContentPartText.g.verified.cs index 4a085bac2f..4f2968abfa 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestMessageContentPartText.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestMessageContentPartText.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class ChatCompletionRequestMessageContentPartText /// /// The type of the content part. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ChatCompletionRequestMessageContentPartTextType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.ChatCompletionRequestMessageContentPartTextType Type { get; set; } /// /// The text content. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestSystemMessage.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestSystemMessage.g.verified.cs index 9a004c921e..1c855081dd 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestSystemMessage.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestSystemMessage.g.verified.cs @@ -20,8 +20,8 @@ public sealed partial class ChatCompletionRequestSystemMessage /// /// The role of the messages author, in this case `system`. /// - [global::Newtonsoft.Json.JsonProperty("role", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ChatCompletionRequestSystemMessageRole Role { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("role")] + public global::G.ChatCompletionRequestSystemMessageRole Role { get; set; } /// /// An optional name for the participant. Provides the model information to differentiate between participants of the same role. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestToolMessage.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestToolMessage.g.verified.cs index 907ec805be..5f721910d9 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestToolMessage.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestToolMessage.g.verified.cs @@ -14,8 +14,8 @@ public sealed partial class ChatCompletionRequestToolMessage /// /// The role of the messages author, in this case `tool`. /// - [global::Newtonsoft.Json.JsonProperty("role", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ChatCompletionRequestToolMessageRole Role { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("role")] + public global::G.ChatCompletionRequestToolMessageRole Role { get; set; } /// /// The contents of the tool message. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestUserMessage.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestUserMessage.g.verified.cs index 0d9fe59918..842280af86 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestUserMessage.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionRequestUserMessage.g.verified.cs @@ -20,8 +20,8 @@ public sealed partial class ChatCompletionRequestUserMessage /// /// The role of the messages author, in this case `user`. /// - [global::Newtonsoft.Json.JsonProperty("role", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ChatCompletionRequestUserMessageRole Role { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("role")] + public global::G.ChatCompletionRequestUserMessageRole Role { get; set; } /// /// An optional name for the participant. Provides the model information to differentiate between participants of the same role. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionResponseMessage.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionResponseMessage.g.verified.cs index 0c0b1d7838..3a1055f221 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionResponseMessage.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionResponseMessage.g.verified.cs @@ -30,8 +30,8 @@ public sealed partial class ChatCompletionResponseMessage /// /// The role of the author of this message. /// - [global::Newtonsoft.Json.JsonProperty("role", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ChatCompletionResponseMessageRole Role { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("role")] + public global::G.ChatCompletionResponseMessageRole Role { get; set; } /// /// Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionTool.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionTool.g.verified.cs index ec19b24920..b0f79024d3 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionTool.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ChatCompletionTool.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class ChatCompletionTool /// /// The type of the tool. Currently, only `function` is supported. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ChatCompletionToolType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.ChatCompletionToolType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1.g.verified.cs index 3d7348fe5a..61171a42a0 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class CreateAssistantRequestToolResourcesFileSearchVectorS /// /// Always `auto`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2.g.verified.cs index 02dac94257..2d230ffb8f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class CreateAssistantRequestToolResourcesFileSearchVectorS /// /// Always `static`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateBatchRequest.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateBatchRequest.g.verified.cs index 4a4c6047a2..934f0f2342 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateBatchRequest.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateBatchRequest.g.verified.cs @@ -26,8 +26,8 @@ public sealed partial class CreateBatchRequest /// /// The time frame within which the batch should be processed. Currently only `24h` is supported. /// - [global::Newtonsoft.Json.JsonProperty("completion_window", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.CreateBatchRequestCompletionWindow CompletionWindow { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("completion_window")] + public global::G.CreateBatchRequestCompletionWindow CompletionWindow { get; set; } /// /// Optional custom metadata for the batch. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateChatCompletionFunctionResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateChatCompletionFunctionResponse.g.verified.cs index e042f04155..dec6d75191 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateChatCompletionFunctionResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateChatCompletionFunctionResponse.g.verified.cs @@ -43,8 +43,8 @@ public sealed partial class CreateChatCompletionFunctionResponse /// /// The object type, which is always `chat.completion`. /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.CreateChatCompletionFunctionResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.CreateChatCompletionFunctionResponseObject Object { get; set; } /// /// Usage statistics for the completion request. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateChatCompletionResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateChatCompletionResponse.g.verified.cs index f938ad6f4b..72db0ba637 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateChatCompletionResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateChatCompletionResponse.g.verified.cs @@ -50,8 +50,8 @@ public sealed partial class CreateChatCompletionResponse /// /// The object type, which is always `chat.completion`. /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.CreateChatCompletionResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.CreateChatCompletionResponseObject Object { get; set; } /// /// Usage statistics for the completion request. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateChatCompletionStreamResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateChatCompletionStreamResponse.g.verified.cs index a495ce383d..255ca8780a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateChatCompletionStreamResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateChatCompletionStreamResponse.g.verified.cs @@ -51,8 +51,8 @@ public sealed partial class CreateChatCompletionStreamResponse /// /// The object type, which is always `chat.completion.chunk`. /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.CreateChatCompletionStreamResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.CreateChatCompletionStreamResponseObject Object { get; set; } /// /// An optional field that will only be present when you set `stream_options: {"include_usage": true}` in your request.
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateCompletionResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateCompletionResponse.g.verified.cs index 5063ffbccf..fc963b92b2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateCompletionResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateCompletionResponse.g.verified.cs @@ -43,8 +43,8 @@ public sealed partial class CreateCompletionResponse /// /// The object type, which is always "text_completion" /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.CreateCompletionResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.CreateCompletionResponseObject Object { get; set; } /// /// Usage statistics for the completion request. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateEmbeddingResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateEmbeddingResponse.g.verified.cs index 442e147aec..16e627edb9 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateEmbeddingResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateEmbeddingResponse.g.verified.cs @@ -24,8 +24,8 @@ public sealed partial class CreateEmbeddingResponse /// /// The object type, which is always "list". /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.CreateEmbeddingResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.CreateEmbeddingResponseObject Object { get; set; } /// /// The usage information for the request. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1.g.verified.cs index 64f656b856..860251d3ba 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class CreateThreadRequestToolResourcesFileSearchVectorStor /// /// Always `auto`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2.g.verified.cs index 525646a9c4..fc4805c791 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class CreateThreadRequestToolResourcesFileSearchVectorStor /// /// Always `static`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DeleteAssistantResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DeleteAssistantResponse.g.verified.cs index f52545a4d3..a0e6883e10 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DeleteAssistantResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DeleteAssistantResponse.g.verified.cs @@ -24,8 +24,8 @@ public sealed partial class DeleteAssistantResponse /// /// /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.DeleteAssistantResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.DeleteAssistantResponseObject Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DeleteFileResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DeleteFileResponse.g.verified.cs index 9e0f38768c..8110e72532 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DeleteFileResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DeleteFileResponse.g.verified.cs @@ -18,8 +18,8 @@ public sealed partial class DeleteFileResponse /// /// /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.DeleteFileResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.DeleteFileResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DeleteMessageResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DeleteMessageResponse.g.verified.cs index c502d2cb8a..170edb990d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DeleteMessageResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DeleteMessageResponse.g.verified.cs @@ -24,8 +24,8 @@ public sealed partial class DeleteMessageResponse /// /// /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.DeleteMessageResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.DeleteMessageResponseObject Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DeleteThreadResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DeleteThreadResponse.g.verified.cs index e46e3660d0..4610556392 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DeleteThreadResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DeleteThreadResponse.g.verified.cs @@ -24,8 +24,8 @@ public sealed partial class DeleteThreadResponse /// /// /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.DeleteThreadResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.DeleteThreadResponseObject Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DeleteVectorStoreFileResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DeleteVectorStoreFileResponse.g.verified.cs index e897dff5ea..f9639431be 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DeleteVectorStoreFileResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DeleteVectorStoreFileResponse.g.verified.cs @@ -24,8 +24,8 @@ public sealed partial class DeleteVectorStoreFileResponse /// /// /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.DeleteVectorStoreFileResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.DeleteVectorStoreFileResponseObject Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DeleteVectorStoreResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DeleteVectorStoreResponse.g.verified.cs index ca1f09b2a1..7199b90572 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DeleteVectorStoreResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DeleteVectorStoreResponse.g.verified.cs @@ -24,8 +24,8 @@ public sealed partial class DeleteVectorStoreResponse /// /// /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.DeleteVectorStoreResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.DeleteVectorStoreResponseObject Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DoneEvent.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DoneEvent.g.verified.cs index 1befff8b14..dfdb1aef23 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DoneEvent.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.DoneEvent.g.verified.cs @@ -12,14 +12,14 @@ public sealed partial class DoneEvent /// /// /// - [global::Newtonsoft.Json.JsonProperty("event", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.DoneEventEvent Event { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("event")] + public global::G.DoneEventEvent Event { get; set; } /// /// /// - [global::Newtonsoft.Json.JsonProperty("data", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.DoneEventData Data { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("data")] + public global::G.DoneEventData Data { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.Embedding.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.Embedding.g.verified.cs index e7c13276a0..023e2b5e1b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.Embedding.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.Embedding.g.verified.cs @@ -24,8 +24,8 @@ public sealed partial class Embedding /// /// The object type, which is always "embedding". /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.EmbeddingObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.EmbeddingObject Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ErrorEvent.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ErrorEvent.g.verified.cs index 7485198f48..1199760172 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ErrorEvent.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ErrorEvent.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class ErrorEvent /// /// /// - [global::Newtonsoft.Json.JsonProperty("event", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ErrorEventEvent Event { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("event")] + public global::G.ErrorEventEvent Event { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.FineTuningIntegration.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.FineTuningIntegration.g.verified.cs index a3c188ab89..c1c86a5230 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.FineTuningIntegration.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.FineTuningIntegration.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class FineTuningIntegration /// /// The type of the integration being enabled for the fine-tuning job /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.FineTuningIntegrationType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.FineTuningIntegrationType Type { get; set; } /// /// The settings for your integration with Weights and Biases. This payload specifies the project that
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.FineTuningJob.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.FineTuningJob.g.verified.cs index 7c8bec7069..592385ea9b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.FineTuningJob.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.FineTuningJob.g.verified.cs @@ -56,8 +56,8 @@ public sealed partial class FineTuningJob /// /// The object type, which is always "fine_tuning.job". /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.FineTuningJobObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.FineTuningJobObject Object { get; set; } /// /// The organization that owns the fine-tuning job. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.FineTuningJobCheckpoint.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.FineTuningJobCheckpoint.g.verified.cs index 756a1cd5e0..e66c8f131d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.FineTuningJobCheckpoint.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.FineTuningJobCheckpoint.g.verified.cs @@ -48,8 +48,8 @@ public sealed partial class FineTuningJobCheckpoint /// /// The object type, which is always "fine_tuning.job.checkpoint". /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.FineTuningJobCheckpointObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.FineTuningJobCheckpointObject Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.FineTuningJobEvent.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.FineTuningJobEvent.g.verified.cs index 956178865d..9bf75d1253 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.FineTuningJobEvent.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.FineTuningJobEvent.g.verified.cs @@ -36,8 +36,8 @@ public sealed partial class FineTuningJobEvent /// /// /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.FineTuningJobEventObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.FineTuningJobEventObject Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.Invite.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.Invite.g.verified.cs index 5626efda84..95bae147a2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.Invite.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.Invite.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class Invite /// /// The object type, which is always `organization.invite` /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.InviteObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.InviteObject Object { get; set; } /// /// The identifier, which can be referenced in API endpoints diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.InviteDeleteResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.InviteDeleteResponse.g.verified.cs index 7933885ffe..ffe3633eee 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.InviteDeleteResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.InviteDeleteResponse.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class InviteDeleteResponse /// /// The object type, which is always `organization.invite.deleted` /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.InviteDeleteResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.InviteDeleteResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.InviteListResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.InviteListResponse.g.verified.cs index d035329d5b..1a85e13af4 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.InviteListResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.InviteListResponse.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class InviteListResponse /// /// The object type, which is always `list` /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.InviteListResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.InviteListResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListAuditLogsResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListAuditLogsResponse.g.verified.cs index 6cd3f0e7be..10fa39ee91 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListAuditLogsResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListAuditLogsResponse.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class ListAuditLogsResponse /// /// /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ListAuditLogsResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.ListAuditLogsResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListBatchesResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListBatchesResponse.g.verified.cs index 8d48c72758..e8d060e697 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListBatchesResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListBatchesResponse.g.verified.cs @@ -36,8 +36,8 @@ public sealed partial class ListBatchesResponse /// /// /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ListBatchesResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.ListBatchesResponseObject Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListFilesResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListFilesResponse.g.verified.cs index b470ef2f88..1e775634af 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListFilesResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListFilesResponse.g.verified.cs @@ -18,8 +18,8 @@ public sealed partial class ListFilesResponse /// /// /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ListFilesResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.ListFilesResponseObject Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListFineTuningJobCheckpointsResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListFineTuningJobCheckpointsResponse.g.verified.cs index c0dca9ef84..12d8f8cb14 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListFineTuningJobCheckpointsResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListFineTuningJobCheckpointsResponse.g.verified.cs @@ -18,8 +18,8 @@ public sealed partial class ListFineTuningJobCheckpointsResponse /// /// /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ListFineTuningJobCheckpointsResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.ListFineTuningJobCheckpointsResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListFineTuningJobEventsResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListFineTuningJobEventsResponse.g.verified.cs index 9af9e43e65..5d656ea8d4 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListFineTuningJobEventsResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListFineTuningJobEventsResponse.g.verified.cs @@ -18,8 +18,8 @@ public sealed partial class ListFineTuningJobEventsResponse /// /// /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ListFineTuningJobEventsResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.ListFineTuningJobEventsResponseObject Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListModelsResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListModelsResponse.g.verified.cs index 8367e8331c..053270834b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListModelsResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListModelsResponse.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class ListModelsResponse /// /// /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ListModelsResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.ListModelsResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListPaginatedFineTuningJobsResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListPaginatedFineTuningJobsResponse.g.verified.cs index a60ffdadd5..0c0fb1aa4c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListPaginatedFineTuningJobsResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ListPaginatedFineTuningJobsResponse.g.verified.cs @@ -24,8 +24,8 @@ public sealed partial class ListPaginatedFineTuningJobsResponse /// /// /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ListPaginatedFineTuningJobsResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.ListPaginatedFineTuningJobsResponseObject Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageContentImageFileObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageContentImageFileObject.g.verified.cs index 090a089457..b4e0b00cc6 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageContentImageFileObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageContentImageFileObject.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class MessageContentImageFileObject /// /// Always `image_file`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.MessageContentImageFileObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.MessageContentImageFileObjectType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageContentImageUrlObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageContentImageUrlObject.g.verified.cs index ccaab4d7ae..fce5ab5f2c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageContentImageUrlObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageContentImageUrlObject.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class MessageContentImageUrlObject /// /// The type of the content part. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.MessageContentImageUrlObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.MessageContentImageUrlObjectType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageContentRefusalObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageContentRefusalObject.g.verified.cs index 13497a929d..fd6a7bb820 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageContentRefusalObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageContentRefusalObject.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class MessageContentRefusalObject /// /// Always `refusal`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.MessageContentRefusalObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.MessageContentRefusalObjectType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageContentTextAnnotationsFileCitationObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageContentTextAnnotationsFileCitationObject.g.verified.cs index fdc17c07d0..820ec15fa7 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageContentTextAnnotationsFileCitationObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageContentTextAnnotationsFileCitationObject.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class MessageContentTextAnnotationsFileCitationObject /// /// Always `file_citation`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.MessageContentTextAnnotationsFileCitationObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.MessageContentTextAnnotationsFileCitationObjectType Type { get; set; } /// /// The text in the message content that needs to be replaced. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageContentTextAnnotationsFilePathObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageContentTextAnnotationsFilePathObject.g.verified.cs index 33dc74d939..7326dc8b0b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageContentTextAnnotationsFilePathObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageContentTextAnnotationsFilePathObject.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class MessageContentTextAnnotationsFilePathObject /// /// Always `file_path`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.MessageContentTextAnnotationsFilePathObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.MessageContentTextAnnotationsFilePathObjectType Type { get; set; } /// /// The text in the message content that needs to be replaced. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageContentTextObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageContentTextObject.g.verified.cs index ff891a0d31..6295a560e8 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageContentTextObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageContentTextObject.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class MessageContentTextObject /// /// Always `text`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.MessageContentTextObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.MessageContentTextObjectType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaContentImageFileObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaContentImageFileObject.g.verified.cs index c093e412c3..e3e7831c7f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaContentImageFileObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaContentImageFileObject.g.verified.cs @@ -18,8 +18,8 @@ public sealed partial class MessageDeltaContentImageFileObject /// /// Always `image_file`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.MessageDeltaContentImageFileObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.MessageDeltaContentImageFileObjectType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaContentImageUrlObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaContentImageUrlObject.g.verified.cs index 1ef38e0e8f..991ef3c7e1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaContentImageUrlObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaContentImageUrlObject.g.verified.cs @@ -18,8 +18,8 @@ public sealed partial class MessageDeltaContentImageUrlObject /// /// Always `image_url`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.MessageDeltaContentImageUrlObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.MessageDeltaContentImageUrlObjectType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaContentRefusalObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaContentRefusalObject.g.verified.cs index a2d746b7eb..2986260197 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaContentRefusalObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaContentRefusalObject.g.verified.cs @@ -18,8 +18,8 @@ public sealed partial class MessageDeltaContentRefusalObject /// /// Always `refusal`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.MessageDeltaContentRefusalObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.MessageDeltaContentRefusalObjectType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaContentTextAnnotationsFileCitationObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaContentTextAnnotationsFileCitationObject.g.verified.cs index b9b0fe1c39..9285e5053d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaContentTextAnnotationsFileCitationObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaContentTextAnnotationsFileCitationObject.g.verified.cs @@ -18,8 +18,8 @@ public sealed partial class MessageDeltaContentTextAnnotationsFileCitationObject /// /// Always `file_citation`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.MessageDeltaContentTextAnnotationsFileCitationObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.MessageDeltaContentTextAnnotationsFileCitationObjectType Type { get; set; } /// /// The text in the message content that needs to be replaced. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaContentTextAnnotationsFilePathObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaContentTextAnnotationsFilePathObject.g.verified.cs index fd9e02193e..4e4117219c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaContentTextAnnotationsFilePathObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaContentTextAnnotationsFilePathObject.g.verified.cs @@ -18,8 +18,8 @@ public sealed partial class MessageDeltaContentTextAnnotationsFilePathObject /// /// Always `file_path`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.MessageDeltaContentTextAnnotationsFilePathObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.MessageDeltaContentTextAnnotationsFilePathObjectType Type { get; set; } /// /// The text in the message content that needs to be replaced. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaContentTextObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaContentTextObject.g.verified.cs index c53261eb9a..cd3d8762f7 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaContentTextObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaContentTextObject.g.verified.cs @@ -18,8 +18,8 @@ public sealed partial class MessageDeltaContentTextObject /// /// Always `text`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.MessageDeltaContentTextObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.MessageDeltaContentTextObjectType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaObject.g.verified.cs index dcfdbb1c0c..f93e8c8dae 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageDeltaObject.g.verified.cs @@ -18,8 +18,8 @@ public sealed partial class MessageDeltaObject /// /// The object type, which is always `thread.message.delta`. /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.MessageDeltaObjectObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.MessageDeltaObjectObject Object { get; set; } /// /// The delta containing the fields that have changed on the Message. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageObject.g.verified.cs index bcaa58426a..20567a932e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageObject.g.verified.cs @@ -20,8 +20,8 @@ public sealed partial class MessageObject /// /// The object type, which is always `thread.message`. /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.MessageObjectObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.MessageObjectObject Object { get; set; } /// /// The Unix timestamp (in seconds) for when the message was created. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageRequestContentTextObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageRequestContentTextObject.g.verified.cs index 8951d56b1c..7e74e2730f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageRequestContentTextObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageRequestContentTextObject.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class MessageRequestContentTextObject /// /// Always `text`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.MessageRequestContentTextObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.MessageRequestContentTextObjectType Type { get; set; } /// /// Text content to be sent to the model diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageStreamEventVariant1.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageStreamEventVariant1.g.verified.cs index 40491ba991..a2d2d4d0bb 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageStreamEventVariant1.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageStreamEventVariant1.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class MessageStreamEventVariant1 /// /// /// - [global::Newtonsoft.Json.JsonProperty("event", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.MessageStreamEventVariant1Event Event { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("event")] + public global::G.MessageStreamEventVariant1Event Event { get; set; } /// /// Represents a message within a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageStreamEventVariant2.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageStreamEventVariant2.g.verified.cs index 394f56b1cf..394a518243 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageStreamEventVariant2.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageStreamEventVariant2.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class MessageStreamEventVariant2 /// /// /// - [global::Newtonsoft.Json.JsonProperty("event", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.MessageStreamEventVariant2Event Event { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("event")] + public global::G.MessageStreamEventVariant2Event Event { get; set; } /// /// Represents a message within a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageStreamEventVariant3.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageStreamEventVariant3.g.verified.cs index 08d2c7b557..1515aafb6c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageStreamEventVariant3.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageStreamEventVariant3.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class MessageStreamEventVariant3 /// /// /// - [global::Newtonsoft.Json.JsonProperty("event", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.MessageStreamEventVariant3Event Event { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("event")] + public global::G.MessageStreamEventVariant3Event Event { get; set; } /// /// Represents a message delta i.e. any changed fields on a message during streaming. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageStreamEventVariant4.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageStreamEventVariant4.g.verified.cs index 35571d64ec..037fde2771 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageStreamEventVariant4.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageStreamEventVariant4.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class MessageStreamEventVariant4 /// /// /// - [global::Newtonsoft.Json.JsonProperty("event", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.MessageStreamEventVariant4Event Event { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("event")] + public global::G.MessageStreamEventVariant4Event Event { get; set; } /// /// Represents a message within a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageStreamEventVariant5.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageStreamEventVariant5.g.verified.cs index faa14dde8f..d0ef7e942f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageStreamEventVariant5.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.MessageStreamEventVariant5.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class MessageStreamEventVariant5 /// /// /// - [global::Newtonsoft.Json.JsonProperty("event", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.MessageStreamEventVariant5Event Event { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("event")] + public global::G.MessageStreamEventVariant5Event Event { get; set; } /// /// Represents a message within a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.Model12.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.Model12.g.verified.cs index 7039cba919..3bcc19af4e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.Model12.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.Model12.g.verified.cs @@ -24,8 +24,8 @@ public sealed partial class Model12 /// /// The object type, which is always "model". /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ModelObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.ModelObject Object { get; set; } /// /// The organization that owns the model. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.OpenAIFile.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.OpenAIFile.g.verified.cs index 1e21a058f3..956aa031d3 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.OpenAIFile.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.OpenAIFile.g.verified.cs @@ -36,8 +36,8 @@ public sealed partial class OpenAIFile /// /// The object type, which is always `file`. /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.OpenAIFileObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.OpenAIFileObject Object { get; set; } /// /// The intended purpose of the file. Supported values are `assistants`, `assistants_output`, `batch`, `batch_output`, `fine-tune`, `fine-tune-results` and `vision`. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.OtherChunkingStrategyResponseParam.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.OtherChunkingStrategyResponseParam.g.verified.cs index fa2441f2f3..9e4965a42d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.OtherChunkingStrategyResponseParam.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.OtherChunkingStrategyResponseParam.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class OtherChunkingStrategyResponseParam /// /// Always `other`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.OtherChunkingStrategyResponseParamType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.OtherChunkingStrategyResponseParamType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.Project.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.Project.g.verified.cs index f8649cf962..d6606a447f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.Project.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.Project.g.verified.cs @@ -18,8 +18,8 @@ public sealed partial class Project /// /// The object type, which is always `organization.project` /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ProjectObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.ProjectObject Object { get; set; } /// /// The name of the project. This appears in reporting. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectApiKey.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectApiKey.g.verified.cs index 7364ef22f5..22647e0f75 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectApiKey.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectApiKey.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class ProjectApiKey /// /// The object type, which is always `organization.project.api_key` /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ProjectApiKeyObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.ProjectApiKeyObject Object { get; set; } /// /// The redacted value of the API key diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectApiKeyDeleteResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectApiKeyDeleteResponse.g.verified.cs index 812c01ed73..7aed3f029e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectApiKeyDeleteResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectApiKeyDeleteResponse.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class ProjectApiKeyDeleteResponse /// /// /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ProjectApiKeyDeleteResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.ProjectApiKeyDeleteResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectApiKeyListResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectApiKeyListResponse.g.verified.cs index 664163cb5f..d2a18c0d15 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectApiKeyListResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectApiKeyListResponse.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class ProjectApiKeyListResponse /// /// /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ProjectApiKeyListResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.ProjectApiKeyListResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectListResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectListResponse.g.verified.cs index a654a95471..0380d7a1a2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectListResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectListResponse.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class ProjectListResponse /// /// /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ProjectListResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.ProjectListResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectServiceAccount.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectServiceAccount.g.verified.cs index 071430a8c9..4c28b74ef8 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectServiceAccount.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectServiceAccount.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class ProjectServiceAccount /// /// The object type, which is always `organization.project.service_account` /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ProjectServiceAccountObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.ProjectServiceAccountObject Object { get; set; } /// /// The identifier, which can be referenced in API endpoints diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectServiceAccountApiKey.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectServiceAccountApiKey.g.verified.cs index bd3a7ec7fb..ef72fe340e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectServiceAccountApiKey.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectServiceAccountApiKey.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class ProjectServiceAccountApiKey /// /// The object type, which is always `organization.project.service_account.api_key` /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ProjectServiceAccountApiKeyObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.ProjectServiceAccountApiKeyObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectServiceAccountCreateResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectServiceAccountCreateResponse.g.verified.cs index c4452cfaaa..35f686645b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectServiceAccountCreateResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectServiceAccountCreateResponse.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class ProjectServiceAccountCreateResponse /// /// /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ProjectServiceAccountCreateResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.ProjectServiceAccountCreateResponseObject Object { get; set; } /// /// @@ -30,8 +30,8 @@ public sealed partial class ProjectServiceAccountCreateResponse /// /// Service accounts can only have one role of type `member` /// - [global::Newtonsoft.Json.JsonProperty("role", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ProjectServiceAccountCreateResponseRole Role { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("role")] + public global::G.ProjectServiceAccountCreateResponseRole Role { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectServiceAccountDeleteResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectServiceAccountDeleteResponse.g.verified.cs index 30861b7cd8..b88befc8be 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectServiceAccountDeleteResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectServiceAccountDeleteResponse.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class ProjectServiceAccountDeleteResponse /// /// /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ProjectServiceAccountDeleteResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.ProjectServiceAccountDeleteResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectServiceAccountListResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectServiceAccountListResponse.g.verified.cs index 5f2be05226..9ac05f404c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectServiceAccountListResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectServiceAccountListResponse.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class ProjectServiceAccountListResponse /// /// /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ProjectServiceAccountListResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.ProjectServiceAccountListResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectUser.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectUser.g.verified.cs index 278638f007..596b8005e0 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectUser.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectUser.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class ProjectUser /// /// The object type, which is always `organization.project.user` /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ProjectUserObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.ProjectUserObject Object { get; set; } /// /// The identifier, which can be referenced in API endpoints diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectUserDeleteResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectUserDeleteResponse.g.verified.cs index d18c3b8186..4f11617aab 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectUserDeleteResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ProjectUserDeleteResponse.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class ProjectUserDeleteResponse /// /// /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ProjectUserDeleteResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.ProjectUserDeleteResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ResponseFormatJsonObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ResponseFormatJsonObject.g.verified.cs index 3216ce2dd8..27eec85ed2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ResponseFormatJsonObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ResponseFormatJsonObject.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class ResponseFormatJsonObject /// /// The type of response format being defined: `json_object` /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ResponseFormatJsonObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.ResponseFormatJsonObjectType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ResponseFormatJsonSchema.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ResponseFormatJsonSchema.g.verified.cs index bc037dac2e..baff0e4400 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ResponseFormatJsonSchema.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ResponseFormatJsonSchema.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class ResponseFormatJsonSchema /// /// The type of response format being defined: `json_schema` /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ResponseFormatJsonSchemaType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.ResponseFormatJsonSchemaType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ResponseFormatText.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ResponseFormatText.g.verified.cs index 5033acf8e4..1e4add1655 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ResponseFormatText.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ResponseFormatText.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class ResponseFormatText /// /// The type of response format being defined: `text` /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ResponseFormatTextType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.ResponseFormatTextType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunObject.g.verified.cs index 95f3d3a050..7b00b655bb 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunObject.g.verified.cs @@ -20,8 +20,8 @@ public sealed partial class RunObject /// /// The object type, which is always `thread.run`. /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunObjectObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.RunObjectObject Object { get; set; } /// /// The Unix timestamp (in seconds) for when the run was created. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunObjectRequiredAction.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunObjectRequiredAction.g.verified.cs index a67e3d423e..a4b709586a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunObjectRequiredAction.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunObjectRequiredAction.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RunObjectRequiredAction /// /// For now, this is always `submit_tool_outputs`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunObjectRequiredActionType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RunObjectRequiredActionType Type { get; set; } /// /// Details on the tool outputs needed for this run to continue. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaObject.g.verified.cs index 27a7710042..6922e8df9a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaObject.g.verified.cs @@ -18,8 +18,8 @@ public sealed partial class RunStepDeltaObject /// /// The object type, which is always `thread.run.step.delta`. /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStepDeltaObjectObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.RunStepDeltaObjectObject Object { get; set; } /// /// The delta containing the fields that have changed on the run step. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsMessageCreationObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsMessageCreationObject.g.verified.cs index c610769204..93b592e238 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsMessageCreationObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsMessageCreationObject.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RunStepDeltaStepDetailsMessageCreationObject /// /// Always `message_creation`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStepDeltaStepDetailsMessageCreationObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RunStepDeltaStepDetailsMessageCreationObjectType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsToolCallsCodeObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsToolCallsCodeObject.g.verified.cs index c4b725afe6..080946182d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsToolCallsCodeObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsToolCallsCodeObject.g.verified.cs @@ -24,8 +24,8 @@ public sealed partial class RunStepDeltaStepDetailsToolCallsCodeObject /// /// The type of tool call. This is always going to be `code_interpreter` for this type of tool call. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStepDeltaStepDetailsToolCallsCodeObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RunStepDeltaStepDetailsToolCallsCodeObjectType Type { get; set; } /// /// The Code Interpreter tool call definition. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject.g.verified.cs index 44eb347a7d..634d6d859c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject.g.verified.cs @@ -18,8 +18,8 @@ public sealed partial class RunStepDeltaStepDetailsToolCallsCodeOutputImageObjec /// /// Always `image`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject.g.verified.cs index 33fdb47527..a9491ae7f1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject.g.verified.cs @@ -18,8 +18,8 @@ public sealed partial class RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject /// /// Always `logs`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType Type { get; set; } /// /// The text output from the Code Interpreter tool call. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsToolCallsFileSearchObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsToolCallsFileSearchObject.g.verified.cs index 6b5a258498..9d73a9e509 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsToolCallsFileSearchObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsToolCallsFileSearchObject.g.verified.cs @@ -24,8 +24,8 @@ public sealed partial class RunStepDeltaStepDetailsToolCallsFileSearchObject /// /// The type of tool call. This is always going to be `file_search` for this type of tool call. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStepDeltaStepDetailsToolCallsFileSearchObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RunStepDeltaStepDetailsToolCallsFileSearchObjectType Type { get; set; } /// /// For now, this is always going to be an empty object. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsToolCallsFunctionObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsToolCallsFunctionObject.g.verified.cs index 742d28045c..24e7fc4122 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsToolCallsFunctionObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsToolCallsFunctionObject.g.verified.cs @@ -24,8 +24,8 @@ public sealed partial class RunStepDeltaStepDetailsToolCallsFunctionObject /// /// The type of tool call. This is always going to be `function` for this type of tool call. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStepDeltaStepDetailsToolCallsFunctionObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RunStepDeltaStepDetailsToolCallsFunctionObjectType Type { get; set; } /// /// The definition of the function that was called. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsToolCallsObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsToolCallsObject.g.verified.cs index a779ed8227..f0cdb443cb 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsToolCallsObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDeltaStepDetailsToolCallsObject.g.verified.cs @@ -14,8 +14,8 @@ public sealed partial class RunStepDeltaStepDetailsToolCallsObject /// /// Always `tool_calls`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStepDeltaStepDetailsToolCallsObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RunStepDeltaStepDetailsToolCallsObjectType Type { get; set; } /// /// An array of tool calls the run step was involved in. These can be associated with one of three types of tools: `code_interpreter`, `file_search`, or `function`. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsMessageCreationObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsMessageCreationObject.g.verified.cs index b5afd53ba6..105ee977b4 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsMessageCreationObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsMessageCreationObject.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RunStepDetailsMessageCreationObject /// /// Always `message_creation`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStepDetailsMessageCreationObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RunStepDetailsMessageCreationObjectType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsToolCallsCodeObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsToolCallsCodeObject.g.verified.cs index f60d7f9f05..9d8846aa65 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsToolCallsCodeObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsToolCallsCodeObject.g.verified.cs @@ -18,8 +18,8 @@ public sealed partial class RunStepDetailsToolCallsCodeObject /// /// The type of tool call. This is always going to be `code_interpreter` for this type of tool call. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStepDetailsToolCallsCodeObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RunStepDetailsToolCallsCodeObjectType Type { get; set; } /// /// The Code Interpreter tool call definition. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsToolCallsCodeOutputImageObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsToolCallsCodeOutputImageObject.g.verified.cs index c0ef7c1bb8..5f958860a8 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsToolCallsCodeOutputImageObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsToolCallsCodeOutputImageObject.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RunStepDetailsToolCallsCodeOutputImageObject /// /// Always `image`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStepDetailsToolCallsCodeOutputImageObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RunStepDetailsToolCallsCodeOutputImageObjectType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsToolCallsCodeOutputLogsObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsToolCallsCodeOutputLogsObject.g.verified.cs index ff9f66e1f6..2a63dbde06 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsToolCallsCodeOutputLogsObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsToolCallsCodeOutputLogsObject.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RunStepDetailsToolCallsCodeOutputLogsObject /// /// Always `logs`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStepDetailsToolCallsCodeOutputLogsObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RunStepDetailsToolCallsCodeOutputLogsObjectType Type { get; set; } /// /// The text output from the Code Interpreter tool call. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsToolCallsFileSearchObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsToolCallsFileSearchObject.g.verified.cs index a3045f6810..7ef0533d35 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsToolCallsFileSearchObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsToolCallsFileSearchObject.g.verified.cs @@ -18,8 +18,8 @@ public sealed partial class RunStepDetailsToolCallsFileSearchObject /// /// The type of tool call. This is always going to be `file_search` for this type of tool call. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStepDetailsToolCallsFileSearchObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RunStepDetailsToolCallsFileSearchObjectType Type { get; set; } /// /// For now, this is always going to be an empty object. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsToolCallsFunctionObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsToolCallsFunctionObject.g.verified.cs index 3063f9756b..e8335d6593 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsToolCallsFunctionObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsToolCallsFunctionObject.g.verified.cs @@ -18,8 +18,8 @@ public sealed partial class RunStepDetailsToolCallsFunctionObject /// /// The type of tool call. This is always going to be `function` for this type of tool call. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStepDetailsToolCallsFunctionObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RunStepDetailsToolCallsFunctionObjectType Type { get; set; } /// /// The definition of the function that was called. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsToolCallsObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsToolCallsObject.g.verified.cs index e904886291..aaf3c353e1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsToolCallsObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepDetailsToolCallsObject.g.verified.cs @@ -14,8 +14,8 @@ public sealed partial class RunStepDetailsToolCallsObject /// /// Always `tool_calls`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStepDetailsToolCallsObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RunStepDetailsToolCallsObjectType Type { get; set; } /// /// An array of tool calls the run step was involved in. These can be associated with one of three types of tools: `code_interpreter`, `file_search`, or `function`. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepObject.g.verified.cs index 596f98ccb6..492aff806e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepObject.g.verified.cs @@ -20,8 +20,8 @@ public sealed partial class RunStepObject /// /// The object type, which is always `thread.run.step`. /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStepObjectObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.RunStepObjectObject Object { get; set; } /// /// The Unix timestamp (in seconds) for when the run step was created. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant1.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant1.g.verified.cs index 3c42303085..6759d874ce 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant1.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant1.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RunStepStreamEventVariant1 /// /// /// - [global::Newtonsoft.Json.JsonProperty("event", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStepStreamEventVariant1Event Event { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("event")] + public global::G.RunStepStreamEventVariant1Event Event { get; set; } /// /// Represents a step in execution of a run. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant2.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant2.g.verified.cs index a4dcd04b61..be2f37f226 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant2.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant2.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RunStepStreamEventVariant2 /// /// /// - [global::Newtonsoft.Json.JsonProperty("event", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStepStreamEventVariant2Event Event { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("event")] + public global::G.RunStepStreamEventVariant2Event Event { get; set; } /// /// Represents a step in execution of a run. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant3.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant3.g.verified.cs index 085d382c67..705a355042 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant3.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant3.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RunStepStreamEventVariant3 /// /// /// - [global::Newtonsoft.Json.JsonProperty("event", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStepStreamEventVariant3Event Event { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("event")] + public global::G.RunStepStreamEventVariant3Event Event { get; set; } /// /// Represents a run step delta i.e. any changed fields on a run step during streaming. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant4.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant4.g.verified.cs index 182c678fb7..67bb5102c9 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant4.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant4.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RunStepStreamEventVariant4 /// /// /// - [global::Newtonsoft.Json.JsonProperty("event", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStepStreamEventVariant4Event Event { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("event")] + public global::G.RunStepStreamEventVariant4Event Event { get; set; } /// /// Represents a step in execution of a run. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant5.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant5.g.verified.cs index 7521f20cc8..616a4b1b17 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant5.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant5.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RunStepStreamEventVariant5 /// /// /// - [global::Newtonsoft.Json.JsonProperty("event", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStepStreamEventVariant5Event Event { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("event")] + public global::G.RunStepStreamEventVariant5Event Event { get; set; } /// /// Represents a step in execution of a run. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant6.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant6.g.verified.cs index 42da40d092..3916e46dd3 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant6.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant6.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RunStepStreamEventVariant6 /// /// /// - [global::Newtonsoft.Json.JsonProperty("event", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStepStreamEventVariant6Event Event { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("event")] + public global::G.RunStepStreamEventVariant6Event Event { get; set; } /// /// Represents a step in execution of a run. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant7.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant7.g.verified.cs index abd9a555ca..6496d1c041 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant7.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStepStreamEventVariant7.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RunStepStreamEventVariant7 /// /// /// - [global::Newtonsoft.Json.JsonProperty("event", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStepStreamEventVariant7Event Event { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("event")] + public global::G.RunStepStreamEventVariant7Event Event { get; set; } /// /// Represents a step in execution of a run. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant1.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant1.g.verified.cs index 6c12427f38..a98c9b233b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant1.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant1.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RunStreamEventVariant1 /// /// /// - [global::Newtonsoft.Json.JsonProperty("event", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStreamEventVariant1Event Event { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("event")] + public global::G.RunStreamEventVariant1Event Event { get; set; } /// /// Represents an execution run on a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant10.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant10.g.verified.cs index 78c4b8e355..9f2f2b3ac9 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant10.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant10.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RunStreamEventVariant10 /// /// /// - [global::Newtonsoft.Json.JsonProperty("event", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStreamEventVariant10Event Event { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("event")] + public global::G.RunStreamEventVariant10Event Event { get; set; } /// /// Represents an execution run on a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant2.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant2.g.verified.cs index 80534a8974..ccebb60655 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant2.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant2.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RunStreamEventVariant2 /// /// /// - [global::Newtonsoft.Json.JsonProperty("event", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStreamEventVariant2Event Event { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("event")] + public global::G.RunStreamEventVariant2Event Event { get; set; } /// /// Represents an execution run on a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant3.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant3.g.verified.cs index 220415616f..352717728c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant3.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant3.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RunStreamEventVariant3 /// /// /// - [global::Newtonsoft.Json.JsonProperty("event", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStreamEventVariant3Event Event { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("event")] + public global::G.RunStreamEventVariant3Event Event { get; set; } /// /// Represents an execution run on a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant4.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant4.g.verified.cs index 790e794f88..27f66e7f13 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant4.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant4.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RunStreamEventVariant4 /// /// /// - [global::Newtonsoft.Json.JsonProperty("event", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStreamEventVariant4Event Event { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("event")] + public global::G.RunStreamEventVariant4Event Event { get; set; } /// /// Represents an execution run on a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant5.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant5.g.verified.cs index 76262de074..cafe758a7d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant5.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant5.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RunStreamEventVariant5 /// /// /// - [global::Newtonsoft.Json.JsonProperty("event", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStreamEventVariant5Event Event { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("event")] + public global::G.RunStreamEventVariant5Event Event { get; set; } /// /// Represents an execution run on a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant6.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant6.g.verified.cs index a45355d9f6..40af3e0ee1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant6.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant6.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RunStreamEventVariant6 /// /// /// - [global::Newtonsoft.Json.JsonProperty("event", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStreamEventVariant6Event Event { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("event")] + public global::G.RunStreamEventVariant6Event Event { get; set; } /// /// Represents an execution run on a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant7.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant7.g.verified.cs index 994cfd2fda..2628e0bcff 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant7.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant7.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RunStreamEventVariant7 /// /// /// - [global::Newtonsoft.Json.JsonProperty("event", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStreamEventVariant7Event Event { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("event")] + public global::G.RunStreamEventVariant7Event Event { get; set; } /// /// Represents an execution run on a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant8.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant8.g.verified.cs index e3e92d929a..6f80df8bb4 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant8.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant8.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RunStreamEventVariant8 /// /// /// - [global::Newtonsoft.Json.JsonProperty("event", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStreamEventVariant8Event Event { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("event")] + public global::G.RunStreamEventVariant8Event Event { get; set; } /// /// Represents an execution run on a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant9.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant9.g.verified.cs index 55e11c1b6c..4d81cafa23 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant9.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunStreamEventVariant9.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class RunStreamEventVariant9 /// /// /// - [global::Newtonsoft.Json.JsonProperty("event", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunStreamEventVariant9Event Event { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("event")] + public global::G.RunStreamEventVariant9Event Event { get; set; } /// /// Represents an execution run on a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunToolCallObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunToolCallObject.g.verified.cs index a0a47cbcb1..53ce1177e9 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunToolCallObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.RunToolCallObject.g.verified.cs @@ -18,8 +18,8 @@ public sealed partial class RunToolCallObject /// /// The type of tool call the output is required for. For now, this is always `function`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.RunToolCallObjectType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.RunToolCallObjectType Type { get; set; } /// /// The function definition. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.StaticChunkingStrategyRequestParam.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.StaticChunkingStrategyRequestParam.g.verified.cs index 660d7312be..445fa7423f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.StaticChunkingStrategyRequestParam.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.StaticChunkingStrategyRequestParam.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class StaticChunkingStrategyRequestParam /// /// Always `static`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.StaticChunkingStrategyRequestParamType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.StaticChunkingStrategyRequestParamType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.StaticChunkingStrategyResponseParam.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.StaticChunkingStrategyResponseParam.g.verified.cs index 0f4fa5b696..902e067367 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.StaticChunkingStrategyResponseParam.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.StaticChunkingStrategyResponseParam.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class StaticChunkingStrategyResponseParam /// /// Always `static`. /// - [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.StaticChunkingStrategyResponseParamType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.StaticChunkingStrategyResponseParamType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ThreadObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ThreadObject.g.verified.cs index 3bb3b0a14a..8208f674f9 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ThreadObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ThreadObject.g.verified.cs @@ -18,8 +18,8 @@ public sealed partial class ThreadObject /// /// The object type, which is always `thread`. /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ThreadObjectObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.ThreadObjectObject Object { get; set; } /// /// The Unix timestamp (in seconds) for when the thread was created. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ThreadStreamEventVariant1.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ThreadStreamEventVariant1.g.verified.cs index fd3e2b2377..4b31dab23c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ThreadStreamEventVariant1.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.ThreadStreamEventVariant1.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class ThreadStreamEventVariant1 /// /// /// - [global::Newtonsoft.Json.JsonProperty("event", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ThreadStreamEventVariant1Event Event { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("event")] + public global::G.ThreadStreamEventVariant1Event Event { get; set; } /// /// Represents a thread that contains [messages](/docs/api-reference/messages). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.UploadPart.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.UploadPart.g.verified.cs index af9ff15bb6..2736cdb059 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.UploadPart.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.UploadPart.g.verified.cs @@ -30,8 +30,8 @@ public sealed partial class UploadPart /// /// The object type, which is always `upload.part`. /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.UploadPartObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.UploadPartObject Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.User.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.User.g.verified.cs index 95781d22ed..1ac92a7c4c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.User.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.User.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class User /// /// The object type, which is always `organization.user` /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.UserObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.UserObject Object { get; set; } /// /// The identifier, which can be referenced in API endpoints diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.UserDeleteResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.UserDeleteResponse.g.verified.cs index 1475627957..2c0c1173cb 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.UserDeleteResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.UserDeleteResponse.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class UserDeleteResponse /// /// /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.UserDeleteResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.UserDeleteResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.UserListResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.UserListResponse.g.verified.cs index 8afa8426a7..2173ae3e75 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.UserListResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.UserListResponse.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class UserListResponse /// /// /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.UserListResponseObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.UserListResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.VectorStoreExpirationAfter.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.VectorStoreExpirationAfter.g.verified.cs index 28c8ed124f..3478c65c1a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.VectorStoreExpirationAfter.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.VectorStoreExpirationAfter.g.verified.cs @@ -12,8 +12,8 @@ public sealed partial class VectorStoreExpirationAfter /// /// Anchor timestamp after which the expiration policy applies. Supported anchors: `last_active_at`. /// - [global::Newtonsoft.Json.JsonProperty("anchor", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.VectorStoreExpirationAfterAnchor Anchor { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("anchor")] + public global::G.VectorStoreExpirationAfterAnchor Anchor { get; set; } /// /// The number of days after the anchor time that the vector store will expire. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.VectorStoreFileBatchObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.VectorStoreFileBatchObject.g.verified.cs index d0afd81b58..61f83497a6 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.VectorStoreFileBatchObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.VectorStoreFileBatchObject.g.verified.cs @@ -18,8 +18,8 @@ public sealed partial class VectorStoreFileBatchObject /// /// The object type, which is always `vector_store.file_batch`. /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.VectorStoreFileBatchObjectObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.VectorStoreFileBatchObjectObject Object { get; set; } /// /// The Unix timestamp (in seconds) for when the vector store files batch was created. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.VectorStoreFileObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.VectorStoreFileObject.g.verified.cs index 190df198d2..f4483bc1aa 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.VectorStoreFileObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.VectorStoreFileObject.g.verified.cs @@ -20,8 +20,8 @@ public sealed partial class VectorStoreFileObject /// /// The object type, which is always `vector_store.file`. /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.VectorStoreFileObjectObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.VectorStoreFileObjectObject Object { get; set; } /// /// The total vector store usage in bytes. Note that this may be different from the original file size. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.VectorStoreObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.VectorStoreObject.g.verified.cs index b36879b365..e61a5a7f4a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.VectorStoreObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.Models.VectorStoreObject.g.verified.cs @@ -18,8 +18,8 @@ public sealed partial class VectorStoreObject /// /// The object type, which is always `vector_store`. /// - [global::Newtonsoft.Json.JsonProperty("object", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.VectorStoreObjectObject Object { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("object")] + public global::G.VectorStoreObjectObject Object { get; set; } /// /// The Unix timestamp (in seconds) for when the vector store was created. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.BatchClient.CreateBatch.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.BatchClient.CreateBatch.g.verified.cs index 36c63d360b..17a0e24ff6 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.BatchClient.CreateBatch.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.BatchClient.CreateBatch.g.verified.cs @@ -117,7 +117,7 @@ partial void ProcessCreateBatchResponseContent( public async global::System.Threading.Tasks.Task CreateBatchAsync( string inputFileId, global::G.CreateBatchRequestEndpoint endpoint, - global::G.CreateBatchRequestCompletionWindow completionWindow, + global::G.CreateBatchRequestCompletionWindow completionWindow = default, global::G.CreateBatchRequestMetadata? metadata = default, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.AssistantObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.AssistantObject.g.verified.cs index 0f8e94bdda..e3f1f953bc 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.AssistantObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.AssistantObject.g.verified.cs @@ -23,8 +23,7 @@ public sealed partial class AssistantObject /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AssistantObjectObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.AssistantObjectObject Object { get; set; } = global::G.AssistantObjectObject.Assistant; + public global::G.AssistantObjectObject Object { get; set; } /// /// The Unix timestamp (in seconds) for when the assistant was created. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.AssistantToolsCode.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.AssistantToolsCode.g.verified.cs index a7517f7c18..f2edf67905 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.AssistantToolsCode.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.AssistantToolsCode.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class AssistantToolsCode /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AssistantToolsCodeTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.AssistantToolsCodeType Type { get; set; } = global::G.AssistantToolsCodeType.CodeInterpreter; + public global::G.AssistantToolsCodeType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.AssistantToolsFileSearch.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.AssistantToolsFileSearch.g.verified.cs index dd81f75438..3edd0b2450 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.AssistantToolsFileSearch.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.AssistantToolsFileSearch.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class AssistantToolsFileSearch /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AssistantToolsFileSearchTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.AssistantToolsFileSearchType Type { get; set; } = global::G.AssistantToolsFileSearchType.FileSearch; + public global::G.AssistantToolsFileSearchType Type { get; set; } /// /// Overrides for the file search tool. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.AssistantToolsFileSearchTypeOnly.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.AssistantToolsFileSearchTypeOnly.g.verified.cs index 047b8a5b6f..488e9c3662 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.AssistantToolsFileSearchTypeOnly.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.AssistantToolsFileSearchTypeOnly.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class AssistantToolsFileSearchTypeOnly /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AssistantToolsFileSearchTypeOnlyTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.AssistantToolsFileSearchTypeOnlyType Type { get; set; } = global::G.AssistantToolsFileSearchTypeOnlyType.FileSearch; + public global::G.AssistantToolsFileSearchTypeOnlyType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.AssistantToolsFunction.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.AssistantToolsFunction.g.verified.cs index dbf58d08db..00a6eef8b7 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.AssistantToolsFunction.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.AssistantToolsFunction.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class AssistantToolsFunction /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AssistantToolsFunctionTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.AssistantToolsFunctionType Type { get; set; } = global::G.AssistantToolsFunctionType.Function; + public global::G.AssistantToolsFunctionType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.AutoChunkingStrategyRequestParam.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.AutoChunkingStrategyRequestParam.g.verified.cs index f06a6a1237..02476d92e9 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.AutoChunkingStrategyRequestParam.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.AutoChunkingStrategyRequestParam.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class AutoChunkingStrategyRequestParam /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AutoChunkingStrategyRequestParamTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.AutoChunkingStrategyRequestParamType Type { get; set; } = global::G.AutoChunkingStrategyRequestParamType.Auto; + public global::G.AutoChunkingStrategyRequestParamType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.Batch.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.Batch.g.verified.cs index 6b6c81e888..15f924f47f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.Batch.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.Batch.g.verified.cs @@ -21,8 +21,7 @@ public sealed partial class Batch /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.BatchObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.BatchObject Object { get; set; } = global::G.BatchObject.Batch; + public global::G.BatchObject Object { get; set; } /// /// The OpenAI API endpoint used by the batch. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionMessageToolCall.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionMessageToolCall.g.verified.cs index 657911eb04..d0a5730dfb 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionMessageToolCall.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionMessageToolCall.g.verified.cs @@ -21,8 +21,7 @@ public sealed partial class ChatCompletionMessageToolCall /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ChatCompletionMessageToolCallTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ChatCompletionMessageToolCallType Type { get; set; } = global::G.ChatCompletionMessageToolCallType.Function; + public global::G.ChatCompletionMessageToolCallType Type { get; set; } /// /// The function that the model called. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionNamedToolChoice.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionNamedToolChoice.g.verified.cs index 88fcfa842a..9cbde4b994 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionNamedToolChoice.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionNamedToolChoice.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class ChatCompletionNamedToolChoice /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ChatCompletionNamedToolChoiceTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ChatCompletionNamedToolChoiceType Type { get; set; } = global::G.ChatCompletionNamedToolChoiceType.Function; + public global::G.ChatCompletionNamedToolChoiceType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestAssistantMessage.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestAssistantMessage.g.verified.cs index e8cf15af4f..c328ecba72 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestAssistantMessage.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestAssistantMessage.g.verified.cs @@ -29,8 +29,7 @@ public sealed partial class ChatCompletionRequestAssistantMessage /// [global::System.Text.Json.Serialization.JsonPropertyName("role")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ChatCompletionRequestAssistantMessageRoleJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ChatCompletionRequestAssistantMessageRole Role { get; set; } = global::G.ChatCompletionRequestAssistantMessageRole.Assistant; + public global::G.ChatCompletionRequestAssistantMessageRole Role { get; set; } /// /// An optional name for the participant. Provides the model information to differentiate between participants of the same role. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestFunctionMessage.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestFunctionMessage.g.verified.cs index 3ee313f96e..e0b5f92005 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestFunctionMessage.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestFunctionMessage.g.verified.cs @@ -15,9 +15,8 @@ public sealed partial class ChatCompletionRequestFunctionMessage /// [global::System.Text.Json.Serialization.JsonPropertyName("role")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ChatCompletionRequestFunctionMessageRoleJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] [global::System.Obsolete("This property marked as deprecated.")] - public required global::G.ChatCompletionRequestFunctionMessageRole Role { get; set; } = global::G.ChatCompletionRequestFunctionMessageRole.Function; + public global::G.ChatCompletionRequestFunctionMessageRole Role { get; set; } /// /// The contents of the function message. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestMessageContentPartImage.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestMessageContentPartImage.g.verified.cs index 6dbc2aea89..0bb9ff1dd0 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestMessageContentPartImage.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestMessageContentPartImage.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class ChatCompletionRequestMessageContentPartImage /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ChatCompletionRequestMessageContentPartImageTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ChatCompletionRequestMessageContentPartImageType Type { get; set; } = global::G.ChatCompletionRequestMessageContentPartImageType.ImageUrl; + public global::G.ChatCompletionRequestMessageContentPartImageType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestMessageContentPartRefusal.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestMessageContentPartRefusal.g.verified.cs index 620b6ffd58..04a60b9816 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestMessageContentPartRefusal.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestMessageContentPartRefusal.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class ChatCompletionRequestMessageContentPartRefusal /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ChatCompletionRequestMessageContentPartRefusalTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ChatCompletionRequestMessageContentPartRefusalType Type { get; set; } = global::G.ChatCompletionRequestMessageContentPartRefusalType.Refusal; + public global::G.ChatCompletionRequestMessageContentPartRefusalType Type { get; set; } /// /// The refusal message generated by the model. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestMessageContentPartText.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestMessageContentPartText.g.verified.cs index 0f781d9e35..7b57bd1df1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestMessageContentPartText.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestMessageContentPartText.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class ChatCompletionRequestMessageContentPartText /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ChatCompletionRequestMessageContentPartTextTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ChatCompletionRequestMessageContentPartTextType Type { get; set; } = global::G.ChatCompletionRequestMessageContentPartTextType.Text; + public global::G.ChatCompletionRequestMessageContentPartTextType Type { get; set; } /// /// The text content. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestSystemMessage.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestSystemMessage.g.verified.cs index 1c1ed72ce1..802ebc516e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestSystemMessage.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestSystemMessage.g.verified.cs @@ -24,8 +24,7 @@ public sealed partial class ChatCompletionRequestSystemMessage /// [global::System.Text.Json.Serialization.JsonPropertyName("role")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ChatCompletionRequestSystemMessageRoleJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ChatCompletionRequestSystemMessageRole Role { get; set; } = global::G.ChatCompletionRequestSystemMessageRole.System; + public global::G.ChatCompletionRequestSystemMessageRole Role { get; set; } /// /// An optional name for the participant. Provides the model information to differentiate between participants of the same role. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestToolMessage.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestToolMessage.g.verified.cs index 039c3334fd..4f52747912 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestToolMessage.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestToolMessage.g.verified.cs @@ -16,8 +16,7 @@ public sealed partial class ChatCompletionRequestToolMessage /// [global::System.Text.Json.Serialization.JsonPropertyName("role")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ChatCompletionRequestToolMessageRoleJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ChatCompletionRequestToolMessageRole Role { get; set; } = global::G.ChatCompletionRequestToolMessageRole.Tool; + public global::G.ChatCompletionRequestToolMessageRole Role { get; set; } /// /// The contents of the tool message. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestUserMessage.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestUserMessage.g.verified.cs index ec9d389f67..9a2314d41b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestUserMessage.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionRequestUserMessage.g.verified.cs @@ -24,8 +24,7 @@ public sealed partial class ChatCompletionRequestUserMessage /// [global::System.Text.Json.Serialization.JsonPropertyName("role")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ChatCompletionRequestUserMessageRoleJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ChatCompletionRequestUserMessageRole Role { get; set; } = global::G.ChatCompletionRequestUserMessageRole.User; + public global::G.ChatCompletionRequestUserMessageRole Role { get; set; } /// /// An optional name for the participant. Provides the model information to differentiate between participants of the same role. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionResponseMessage.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionResponseMessage.g.verified.cs index e2ccb8d3bf..e245e57187 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionResponseMessage.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionResponseMessage.g.verified.cs @@ -34,8 +34,7 @@ public sealed partial class ChatCompletionResponseMessage /// [global::System.Text.Json.Serialization.JsonPropertyName("role")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ChatCompletionResponseMessageRoleJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ChatCompletionResponseMessageRole Role { get; set; } = global::G.ChatCompletionResponseMessageRole.Assistant; + public global::G.ChatCompletionResponseMessageRole Role { get; set; } /// /// Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionTool.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionTool.g.verified.cs index 61f34b2cf1..bfe0b76b97 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionTool.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ChatCompletionTool.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class ChatCompletionTool /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ChatCompletionToolTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ChatCompletionToolType Type { get; set; } = global::G.ChatCompletionToolType.Function; + public global::G.ChatCompletionToolType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1.g.verified.cs index 340f3db791..92e07c0920 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class CreateAssistantRequestToolResourcesFileSearchVectorS /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1TypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type Type { get; set; } = global::G.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type.Auto; + public global::G.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2.g.verified.cs index 38cff0437d..a9aaaafa93 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class CreateAssistantRequestToolResourcesFileSearchVectorS /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2TypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type Type { get; set; } = global::G.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type.Static; + public global::G.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateBatchRequest.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateBatchRequest.g.verified.cs index 9efdff61be..912234e92b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateBatchRequest.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateBatchRequest.g.verified.cs @@ -31,8 +31,7 @@ public sealed partial class CreateBatchRequest /// [global::System.Text.Json.Serialization.JsonPropertyName("completion_window")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.CreateBatchRequestCompletionWindowJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.CreateBatchRequestCompletionWindow CompletionWindow { get; set; } = global::G.CreateBatchRequestCompletionWindow.x24h; + public global::G.CreateBatchRequestCompletionWindow CompletionWindow { get; set; } /// /// Optional custom metadata for the batch. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateChatCompletionFunctionResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateChatCompletionFunctionResponse.g.verified.cs index 37d7debca8..f05fd45aad 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateChatCompletionFunctionResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateChatCompletionFunctionResponse.g.verified.cs @@ -49,8 +49,7 @@ public sealed partial class CreateChatCompletionFunctionResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.CreateChatCompletionFunctionResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.CreateChatCompletionFunctionResponseObject Object { get; set; } = global::G.CreateChatCompletionFunctionResponseObject.ChatCompletion; + public global::G.CreateChatCompletionFunctionResponseObject Object { get; set; } /// /// Usage statistics for the completion request. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateChatCompletionResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateChatCompletionResponse.g.verified.cs index 0806e84b21..fabdb9a6c2 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateChatCompletionResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateChatCompletionResponse.g.verified.cs @@ -57,8 +57,7 @@ public sealed partial class CreateChatCompletionResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.CreateChatCompletionResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.CreateChatCompletionResponseObject Object { get; set; } = global::G.CreateChatCompletionResponseObject.ChatCompletion; + public global::G.CreateChatCompletionResponseObject Object { get; set; } /// /// Usage statistics for the completion request. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateChatCompletionStreamResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateChatCompletionStreamResponse.g.verified.cs index 381f1887d4..cd89bb277f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateChatCompletionStreamResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateChatCompletionStreamResponse.g.verified.cs @@ -58,8 +58,7 @@ public sealed partial class CreateChatCompletionStreamResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.CreateChatCompletionStreamResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.CreateChatCompletionStreamResponseObject Object { get; set; } = global::G.CreateChatCompletionStreamResponseObject.ChatCompletionChunk; + public global::G.CreateChatCompletionStreamResponseObject Object { get; set; } /// /// An optional field that will only be present when you set `stream_options: {"include_usage": true}` in your request.
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateCompletionResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateCompletionResponse.g.verified.cs index aaa71a1cb5..5c074ab1d7 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateCompletionResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateCompletionResponse.g.verified.cs @@ -49,8 +49,7 @@ public sealed partial class CreateCompletionResponse ///
[global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.CreateCompletionResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.CreateCompletionResponseObject Object { get; set; } = global::G.CreateCompletionResponseObject.TextCompletion; + public global::G.CreateCompletionResponseObject Object { get; set; } /// /// Usage statistics for the completion request. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateEmbeddingResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateEmbeddingResponse.g.verified.cs index 96ed741a8e..660bc97a13 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateEmbeddingResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateEmbeddingResponse.g.verified.cs @@ -28,8 +28,7 @@ public sealed partial class CreateEmbeddingResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.CreateEmbeddingResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.CreateEmbeddingResponseObject Object { get; set; } = global::G.CreateEmbeddingResponseObject.List; + public global::G.CreateEmbeddingResponseObject Object { get; set; } /// /// The usage information for the request. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1.g.verified.cs index 3255b7d2d1..35ef9cd944 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class CreateThreadRequestToolResourcesFileSearchVectorStor /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1TypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type Type { get; set; } = global::G.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type.Auto; + public global::G.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1Type Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2.g.verified.cs index a11d778810..34a3ffa6a7 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class CreateThreadRequestToolResourcesFileSearchVectorStor /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2TypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type Type { get; set; } = global::G.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type.Static; + public global::G.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2Type Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DeleteAssistantResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DeleteAssistantResponse.g.verified.cs index 5d91aadc70..0d3b24433a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DeleteAssistantResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DeleteAssistantResponse.g.verified.cs @@ -28,8 +28,7 @@ public sealed partial class DeleteAssistantResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.DeleteAssistantResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.DeleteAssistantResponseObject Object { get; set; } = global::G.DeleteAssistantResponseObject.AssistantDeleted; + public global::G.DeleteAssistantResponseObject Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DeleteFileResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DeleteFileResponse.g.verified.cs index c835a69f71..4b0928449d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DeleteFileResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DeleteFileResponse.g.verified.cs @@ -21,8 +21,7 @@ public sealed partial class DeleteFileResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.DeleteFileResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.DeleteFileResponseObject Object { get; set; } = global::G.DeleteFileResponseObject.File; + public global::G.DeleteFileResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DeleteMessageResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DeleteMessageResponse.g.verified.cs index c84b190a66..248d2c9151 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DeleteMessageResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DeleteMessageResponse.g.verified.cs @@ -28,8 +28,7 @@ public sealed partial class DeleteMessageResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.DeleteMessageResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.DeleteMessageResponseObject Object { get; set; } = global::G.DeleteMessageResponseObject.ThreadMessageDeleted; + public global::G.DeleteMessageResponseObject Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DeleteThreadResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DeleteThreadResponse.g.verified.cs index 69bd5b11d3..299c498a89 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DeleteThreadResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DeleteThreadResponse.g.verified.cs @@ -28,8 +28,7 @@ public sealed partial class DeleteThreadResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.DeleteThreadResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.DeleteThreadResponseObject Object { get; set; } = global::G.DeleteThreadResponseObject.ThreadDeleted; + public global::G.DeleteThreadResponseObject Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DeleteVectorStoreFileResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DeleteVectorStoreFileResponse.g.verified.cs index 67370186cf..0a6a12087a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DeleteVectorStoreFileResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DeleteVectorStoreFileResponse.g.verified.cs @@ -28,8 +28,7 @@ public sealed partial class DeleteVectorStoreFileResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.DeleteVectorStoreFileResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.DeleteVectorStoreFileResponseObject Object { get; set; } = global::G.DeleteVectorStoreFileResponseObject.VectorStoreFileDeleted; + public global::G.DeleteVectorStoreFileResponseObject Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DeleteVectorStoreResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DeleteVectorStoreResponse.g.verified.cs index 4150b8402d..48c89b10f0 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DeleteVectorStoreResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DeleteVectorStoreResponse.g.verified.cs @@ -28,8 +28,7 @@ public sealed partial class DeleteVectorStoreResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.DeleteVectorStoreResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.DeleteVectorStoreResponseObject Object { get; set; } = global::G.DeleteVectorStoreResponseObject.VectorStoreDeleted; + public global::G.DeleteVectorStoreResponseObject Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DoneEvent.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DoneEvent.g.verified.cs index db39c3f790..6b45295523 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DoneEvent.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.DoneEvent.g.verified.cs @@ -14,16 +14,14 @@ public sealed partial class DoneEvent /// [global::System.Text.Json.Serialization.JsonPropertyName("event")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.DoneEventEventJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.DoneEventEvent Event { get; set; } = global::G.DoneEventEvent.Done; + public global::G.DoneEventEvent Event { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.DoneEventDataJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.DoneEventData Data { get; set; } = global::G.DoneEventData.DONE; + public global::G.DoneEventData Data { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.Embedding.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.Embedding.g.verified.cs index 98b878d33c..be6418bc66 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.Embedding.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.Embedding.g.verified.cs @@ -28,8 +28,7 @@ public sealed partial class Embedding /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.EmbeddingObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.EmbeddingObject Object { get; set; } = global::G.EmbeddingObject.Embedding; + public global::G.EmbeddingObject Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ErrorEvent.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ErrorEvent.g.verified.cs index 6142b98c1c..0cc101bd7f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ErrorEvent.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ErrorEvent.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class ErrorEvent /// [global::System.Text.Json.Serialization.JsonPropertyName("event")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ErrorEventEventJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ErrorEventEvent Event { get; set; } = global::G.ErrorEventEvent.Error; + public global::G.ErrorEventEvent Event { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.FineTuningIntegration.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.FineTuningIntegration.g.verified.cs index 0cc3eade06..80a0a7916a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.FineTuningIntegration.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.FineTuningIntegration.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class FineTuningIntegration /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.FineTuningIntegrationTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.FineTuningIntegrationType Type { get; set; } = global::G.FineTuningIntegrationType.Wandb; + public global::G.FineTuningIntegrationType Type { get; set; } /// /// The settings for your integration with Weights and Biases. This payload specifies the project that
diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.FineTuningJob.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.FineTuningJob.g.verified.cs index 7d702d8ff5..f7211568d6 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.FineTuningJob.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.FineTuningJob.g.verified.cs @@ -65,8 +65,7 @@ public sealed partial class FineTuningJob ///
[global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.FineTuningJobObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.FineTuningJobObject Object { get; set; } = global::G.FineTuningJobObject.FineTuningJob; + public global::G.FineTuningJobObject Object { get; set; } /// /// The organization that owns the fine-tuning job. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.FineTuningJobCheckpoint.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.FineTuningJobCheckpoint.g.verified.cs index 9523aa5617..9031da36f5 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.FineTuningJobCheckpoint.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.FineTuningJobCheckpoint.g.verified.cs @@ -56,8 +56,7 @@ public sealed partial class FineTuningJobCheckpoint /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.FineTuningJobCheckpointObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.FineTuningJobCheckpointObject Object { get; set; } = global::G.FineTuningJobCheckpointObject.FineTuningJobCheckpoint; + public global::G.FineTuningJobCheckpointObject Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.FineTuningJobEvent.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.FineTuningJobEvent.g.verified.cs index 8f07ac4f66..46f9093a24 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.FineTuningJobEvent.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.FineTuningJobEvent.g.verified.cs @@ -43,8 +43,7 @@ public sealed partial class FineTuningJobEvent /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.FineTuningJobEventObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.FineTuningJobEventObject Object { get; set; } = global::G.FineTuningJobEventObject.FineTuningJobEvent; + public global::G.FineTuningJobEventObject Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.Invite.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.Invite.g.verified.cs index 77ede34154..ee1e9adbab 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.Invite.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.Invite.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class Invite /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.InviteObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.InviteObject Object { get; set; } = global::G.InviteObject.OrganizationInvite; + public global::G.InviteObject Object { get; set; } /// /// The identifier, which can be referenced in API endpoints diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.InviteDeleteResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.InviteDeleteResponse.g.verified.cs index 62a72e243a..aeea5ca2ee 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.InviteDeleteResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.InviteDeleteResponse.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class InviteDeleteResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.InviteDeleteResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.InviteDeleteResponseObject Object { get; set; } = global::G.InviteDeleteResponseObject.OrganizationInviteDeleted; + public global::G.InviteDeleteResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.InviteListResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.InviteListResponse.g.verified.cs index 357556cb42..a9e92a1838 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.InviteListResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.InviteListResponse.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class InviteListResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.InviteListResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.InviteListResponseObject Object { get; set; } = global::G.InviteListResponseObject.List; + public global::G.InviteListResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListAuditLogsResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListAuditLogsResponse.g.verified.cs index e3fb3a3374..3759ad44cf 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListAuditLogsResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListAuditLogsResponse.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class ListAuditLogsResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ListAuditLogsResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ListAuditLogsResponseObject Object { get; set; } = global::G.ListAuditLogsResponseObject.List; + public global::G.ListAuditLogsResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListBatchesResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListBatchesResponse.g.verified.cs index 6686f490f1..1571197db7 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListBatchesResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListBatchesResponse.g.verified.cs @@ -40,8 +40,7 @@ public sealed partial class ListBatchesResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ListBatchesResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ListBatchesResponseObject Object { get; set; } = global::G.ListBatchesResponseObject.List; + public global::G.ListBatchesResponseObject Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListFilesResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListFilesResponse.g.verified.cs index f457d1e23e..1b05b7db47 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListFilesResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListFilesResponse.g.verified.cs @@ -21,8 +21,7 @@ public sealed partial class ListFilesResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ListFilesResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ListFilesResponseObject Object { get; set; } = global::G.ListFilesResponseObject.List; + public global::G.ListFilesResponseObject Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListFineTuningJobCheckpointsResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListFineTuningJobCheckpointsResponse.g.verified.cs index 2dca47ab83..1cfa368b88 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListFineTuningJobCheckpointsResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListFineTuningJobCheckpointsResponse.g.verified.cs @@ -21,8 +21,7 @@ public sealed partial class ListFineTuningJobCheckpointsResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ListFineTuningJobCheckpointsResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ListFineTuningJobCheckpointsResponseObject Object { get; set; } = global::G.ListFineTuningJobCheckpointsResponseObject.List; + public global::G.ListFineTuningJobCheckpointsResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListFineTuningJobEventsResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListFineTuningJobEventsResponse.g.verified.cs index 25cb345556..8b350ec55c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListFineTuningJobEventsResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListFineTuningJobEventsResponse.g.verified.cs @@ -21,8 +21,7 @@ public sealed partial class ListFineTuningJobEventsResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ListFineTuningJobEventsResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ListFineTuningJobEventsResponseObject Object { get; set; } = global::G.ListFineTuningJobEventsResponseObject.List; + public global::G.ListFineTuningJobEventsResponseObject Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListModelsResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListModelsResponse.g.verified.cs index f5b0bfe711..cec69b9f96 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListModelsResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListModelsResponse.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class ListModelsResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ListModelsResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ListModelsResponseObject Object { get; set; } = global::G.ListModelsResponseObject.List; + public global::G.ListModelsResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListPaginatedFineTuningJobsResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListPaginatedFineTuningJobsResponse.g.verified.cs index d40011a313..945ad6e158 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListPaginatedFineTuningJobsResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ListPaginatedFineTuningJobsResponse.g.verified.cs @@ -28,8 +28,7 @@ public sealed partial class ListPaginatedFineTuningJobsResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ListPaginatedFineTuningJobsResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ListPaginatedFineTuningJobsResponseObject Object { get; set; } = global::G.ListPaginatedFineTuningJobsResponseObject.List; + public global::G.ListPaginatedFineTuningJobsResponseObject Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageContentImageFileObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageContentImageFileObject.g.verified.cs index 0f72e7b29d..d4a6eb0b39 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageContentImageFileObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageContentImageFileObject.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class MessageContentImageFileObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.MessageContentImageFileObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.MessageContentImageFileObjectType Type { get; set; } = global::G.MessageContentImageFileObjectType.ImageFile; + public global::G.MessageContentImageFileObjectType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageContentImageUrlObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageContentImageUrlObject.g.verified.cs index dd00973e94..8959ee4bd6 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageContentImageUrlObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageContentImageUrlObject.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class MessageContentImageUrlObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.MessageContentImageUrlObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.MessageContentImageUrlObjectType Type { get; set; } = global::G.MessageContentImageUrlObjectType.ImageUrl; + public global::G.MessageContentImageUrlObjectType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageContentRefusalObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageContentRefusalObject.g.verified.cs index 9ca865a282..901955ae05 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageContentRefusalObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageContentRefusalObject.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class MessageContentRefusalObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.MessageContentRefusalObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.MessageContentRefusalObjectType Type { get; set; } = global::G.MessageContentRefusalObjectType.Refusal; + public global::G.MessageContentRefusalObjectType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageContentTextAnnotationsFileCitationObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageContentTextAnnotationsFileCitationObject.g.verified.cs index a8c87f904b..6d1853841a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageContentTextAnnotationsFileCitationObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageContentTextAnnotationsFileCitationObject.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class MessageContentTextAnnotationsFileCitationObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.MessageContentTextAnnotationsFileCitationObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.MessageContentTextAnnotationsFileCitationObjectType Type { get; set; } = global::G.MessageContentTextAnnotationsFileCitationObjectType.FileCitation; + public global::G.MessageContentTextAnnotationsFileCitationObjectType Type { get; set; } /// /// The text in the message content that needs to be replaced. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageContentTextAnnotationsFilePathObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageContentTextAnnotationsFilePathObject.g.verified.cs index a98b51bfae..86106b95f4 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageContentTextAnnotationsFilePathObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageContentTextAnnotationsFilePathObject.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class MessageContentTextAnnotationsFilePathObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.MessageContentTextAnnotationsFilePathObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.MessageContentTextAnnotationsFilePathObjectType Type { get; set; } = global::G.MessageContentTextAnnotationsFilePathObjectType.FilePath; + public global::G.MessageContentTextAnnotationsFilePathObjectType Type { get; set; } /// /// The text in the message content that needs to be replaced. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageContentTextObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageContentTextObject.g.verified.cs index 7f64e72196..e858155d17 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageContentTextObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageContentTextObject.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class MessageContentTextObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.MessageContentTextObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.MessageContentTextObjectType Type { get; set; } = global::G.MessageContentTextObjectType.Text; + public global::G.MessageContentTextObjectType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaContentImageFileObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaContentImageFileObject.g.verified.cs index 02cebbcee1..2d4bb4eeb9 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaContentImageFileObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaContentImageFileObject.g.verified.cs @@ -21,8 +21,7 @@ public sealed partial class MessageDeltaContentImageFileObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.MessageDeltaContentImageFileObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.MessageDeltaContentImageFileObjectType Type { get; set; } = global::G.MessageDeltaContentImageFileObjectType.ImageFile; + public global::G.MessageDeltaContentImageFileObjectType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaContentImageUrlObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaContentImageUrlObject.g.verified.cs index 6a9d35f7de..4e8b221633 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaContentImageUrlObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaContentImageUrlObject.g.verified.cs @@ -21,8 +21,7 @@ public sealed partial class MessageDeltaContentImageUrlObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.MessageDeltaContentImageUrlObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.MessageDeltaContentImageUrlObjectType Type { get; set; } = global::G.MessageDeltaContentImageUrlObjectType.ImageUrl; + public global::G.MessageDeltaContentImageUrlObjectType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaContentRefusalObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaContentRefusalObject.g.verified.cs index 5f9551fe9f..5ba07c1bd0 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaContentRefusalObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaContentRefusalObject.g.verified.cs @@ -21,8 +21,7 @@ public sealed partial class MessageDeltaContentRefusalObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.MessageDeltaContentRefusalObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.MessageDeltaContentRefusalObjectType Type { get; set; } = global::G.MessageDeltaContentRefusalObjectType.Refusal; + public global::G.MessageDeltaContentRefusalObjectType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaContentTextAnnotationsFileCitationObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaContentTextAnnotationsFileCitationObject.g.verified.cs index 5a1f292265..efcb0662f6 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaContentTextAnnotationsFileCitationObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaContentTextAnnotationsFileCitationObject.g.verified.cs @@ -21,8 +21,7 @@ public sealed partial class MessageDeltaContentTextAnnotationsFileCitationObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.MessageDeltaContentTextAnnotationsFileCitationObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.MessageDeltaContentTextAnnotationsFileCitationObjectType Type { get; set; } = global::G.MessageDeltaContentTextAnnotationsFileCitationObjectType.FileCitation; + public global::G.MessageDeltaContentTextAnnotationsFileCitationObjectType Type { get; set; } /// /// The text in the message content that needs to be replaced. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaContentTextAnnotationsFilePathObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaContentTextAnnotationsFilePathObject.g.verified.cs index 0ff6c81a3e..0e591c21b6 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaContentTextAnnotationsFilePathObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaContentTextAnnotationsFilePathObject.g.verified.cs @@ -21,8 +21,7 @@ public sealed partial class MessageDeltaContentTextAnnotationsFilePathObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.MessageDeltaContentTextAnnotationsFilePathObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.MessageDeltaContentTextAnnotationsFilePathObjectType Type { get; set; } = global::G.MessageDeltaContentTextAnnotationsFilePathObjectType.FilePath; + public global::G.MessageDeltaContentTextAnnotationsFilePathObjectType Type { get; set; } /// /// The text in the message content that needs to be replaced. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaContentTextObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaContentTextObject.g.verified.cs index 23fa5a3cdc..3df7b73400 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaContentTextObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaContentTextObject.g.verified.cs @@ -21,8 +21,7 @@ public sealed partial class MessageDeltaContentTextObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.MessageDeltaContentTextObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.MessageDeltaContentTextObjectType Type { get; set; } = global::G.MessageDeltaContentTextObjectType.Text; + public global::G.MessageDeltaContentTextObjectType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaObject.g.verified.cs index 724f0fd5b0..9d950334b4 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageDeltaObject.g.verified.cs @@ -21,8 +21,7 @@ public sealed partial class MessageDeltaObject /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.MessageDeltaObjectObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.MessageDeltaObjectObject Object { get; set; } = global::G.MessageDeltaObjectObject.ThreadMessageDelta; + public global::G.MessageDeltaObjectObject Object { get; set; } /// /// The delta containing the fields that have changed on the Message. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageObject.g.verified.cs index 2177b82b54..17480ee567 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageObject.g.verified.cs @@ -23,8 +23,7 @@ public sealed partial class MessageObject /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.MessageObjectObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.MessageObjectObject Object { get; set; } = global::G.MessageObjectObject.ThreadMessage; + public global::G.MessageObjectObject Object { get; set; } /// /// The Unix timestamp (in seconds) for when the message was created. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageRequestContentTextObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageRequestContentTextObject.g.verified.cs index cb27fc68f9..48ff7b2af3 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageRequestContentTextObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageRequestContentTextObject.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class MessageRequestContentTextObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.MessageRequestContentTextObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.MessageRequestContentTextObjectType Type { get; set; } = global::G.MessageRequestContentTextObjectType.Text; + public global::G.MessageRequestContentTextObjectType Type { get; set; } /// /// Text content to be sent to the model diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageStreamEventVariant1.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageStreamEventVariant1.g.verified.cs index c4875f6b83..996f24ba0e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageStreamEventVariant1.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageStreamEventVariant1.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class MessageStreamEventVariant1 /// [global::System.Text.Json.Serialization.JsonPropertyName("event")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.MessageStreamEventVariant1EventJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.MessageStreamEventVariant1Event Event { get; set; } = global::G.MessageStreamEventVariant1Event.ThreadMessageCreated; + public global::G.MessageStreamEventVariant1Event Event { get; set; } /// /// Represents a message within a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageStreamEventVariant2.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageStreamEventVariant2.g.verified.cs index f38404128d..ec767dc31f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageStreamEventVariant2.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageStreamEventVariant2.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class MessageStreamEventVariant2 /// [global::System.Text.Json.Serialization.JsonPropertyName("event")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.MessageStreamEventVariant2EventJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.MessageStreamEventVariant2Event Event { get; set; } = global::G.MessageStreamEventVariant2Event.ThreadMessageInProgress; + public global::G.MessageStreamEventVariant2Event Event { get; set; } /// /// Represents a message within a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageStreamEventVariant3.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageStreamEventVariant3.g.verified.cs index 131fe891ba..44c7478029 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageStreamEventVariant3.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageStreamEventVariant3.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class MessageStreamEventVariant3 /// [global::System.Text.Json.Serialization.JsonPropertyName("event")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.MessageStreamEventVariant3EventJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.MessageStreamEventVariant3Event Event { get; set; } = global::G.MessageStreamEventVariant3Event.ThreadMessageDelta; + public global::G.MessageStreamEventVariant3Event Event { get; set; } /// /// Represents a message delta i.e. any changed fields on a message during streaming. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageStreamEventVariant4.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageStreamEventVariant4.g.verified.cs index dea6e87175..46a0613629 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageStreamEventVariant4.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageStreamEventVariant4.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class MessageStreamEventVariant4 /// [global::System.Text.Json.Serialization.JsonPropertyName("event")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.MessageStreamEventVariant4EventJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.MessageStreamEventVariant4Event Event { get; set; } = global::G.MessageStreamEventVariant4Event.ThreadMessageCompleted; + public global::G.MessageStreamEventVariant4Event Event { get; set; } /// /// Represents a message within a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageStreamEventVariant5.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageStreamEventVariant5.g.verified.cs index 4045d89c86..185289e57d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageStreamEventVariant5.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.MessageStreamEventVariant5.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class MessageStreamEventVariant5 /// [global::System.Text.Json.Serialization.JsonPropertyName("event")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.MessageStreamEventVariant5EventJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.MessageStreamEventVariant5Event Event { get; set; } = global::G.MessageStreamEventVariant5Event.ThreadMessageIncomplete; + public global::G.MessageStreamEventVariant5Event Event { get; set; } /// /// Represents a message within a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.Model12.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.Model12.g.verified.cs index 6d04a486a0..3309893cf1 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.Model12.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.Model12.g.verified.cs @@ -28,8 +28,7 @@ public sealed partial class Model12 /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ModelObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ModelObject Object { get; set; } = global::G.ModelObject.Model; + public global::G.ModelObject Object { get; set; } /// /// The organization that owns the model. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.OpenAIFile.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.OpenAIFile.g.verified.cs index c0cbb220e5..3f75b45919 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.OpenAIFile.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.OpenAIFile.g.verified.cs @@ -42,8 +42,7 @@ public sealed partial class OpenAIFile /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.OpenAIFileObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.OpenAIFileObject Object { get; set; } = global::G.OpenAIFileObject.File; + public global::G.OpenAIFileObject Object { get; set; } /// /// The intended purpose of the file. Supported values are `assistants`, `assistants_output`, `batch`, `batch_output`, `fine-tune`, `fine-tune-results` and `vision`. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.OtherChunkingStrategyResponseParam.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.OtherChunkingStrategyResponseParam.g.verified.cs index 6f13fe1c76..90f6398667 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.OtherChunkingStrategyResponseParam.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.OtherChunkingStrategyResponseParam.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class OtherChunkingStrategyResponseParam /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.OtherChunkingStrategyResponseParamTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.OtherChunkingStrategyResponseParamType Type { get; set; } = global::G.OtherChunkingStrategyResponseParamType.Other; + public global::G.OtherChunkingStrategyResponseParamType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.Project.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.Project.g.verified.cs index 144e5f093b..26a78568c5 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.Project.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.Project.g.verified.cs @@ -21,8 +21,7 @@ public sealed partial class Project /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ProjectObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ProjectObject Object { get; set; } = global::G.ProjectObject.OrganizationProject; + public global::G.ProjectObject Object { get; set; } /// /// The name of the project. This appears in reporting. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectApiKey.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectApiKey.g.verified.cs index 91a1890fb2..b8ad5192a4 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectApiKey.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectApiKey.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class ProjectApiKey /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ProjectApiKeyObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ProjectApiKeyObject Object { get; set; } = global::G.ProjectApiKeyObject.OrganizationProjectApiKey; + public global::G.ProjectApiKeyObject Object { get; set; } /// /// The redacted value of the API key diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectApiKeyDeleteResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectApiKeyDeleteResponse.g.verified.cs index da76a2032b..4544ed32ea 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectApiKeyDeleteResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectApiKeyDeleteResponse.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class ProjectApiKeyDeleteResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ProjectApiKeyDeleteResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ProjectApiKeyDeleteResponseObject Object { get; set; } = global::G.ProjectApiKeyDeleteResponseObject.OrganizationProjectApiKeyDeleted; + public global::G.ProjectApiKeyDeleteResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectApiKeyListResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectApiKeyListResponse.g.verified.cs index e4df9c05f4..58af375635 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectApiKeyListResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectApiKeyListResponse.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class ProjectApiKeyListResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ProjectApiKeyListResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ProjectApiKeyListResponseObject Object { get; set; } = global::G.ProjectApiKeyListResponseObject.List; + public global::G.ProjectApiKeyListResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectListResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectListResponse.g.verified.cs index 223c314a72..7d5a4f734c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectListResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectListResponse.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class ProjectListResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ProjectListResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ProjectListResponseObject Object { get; set; } = global::G.ProjectListResponseObject.List; + public global::G.ProjectListResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectServiceAccount.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectServiceAccount.g.verified.cs index 425edd2e84..80fbe927bf 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectServiceAccount.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectServiceAccount.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class ProjectServiceAccount /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ProjectServiceAccountObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ProjectServiceAccountObject Object { get; set; } = global::G.ProjectServiceAccountObject.OrganizationProjectServiceAccount; + public global::G.ProjectServiceAccountObject Object { get; set; } /// /// The identifier, which can be referenced in API endpoints diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectServiceAccountApiKey.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectServiceAccountApiKey.g.verified.cs index 518b98f8c1..bb529cbda8 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectServiceAccountApiKey.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectServiceAccountApiKey.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class ProjectServiceAccountApiKey /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ProjectServiceAccountApiKeyObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ProjectServiceAccountApiKeyObject Object { get; set; } = global::G.ProjectServiceAccountApiKeyObject.OrganizationProjectServiceAccountApiKey; + public global::G.ProjectServiceAccountApiKeyObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectServiceAccountCreateResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectServiceAccountCreateResponse.g.verified.cs index 44375dc218..114a3c8df3 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectServiceAccountCreateResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectServiceAccountCreateResponse.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class ProjectServiceAccountCreateResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ProjectServiceAccountCreateResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ProjectServiceAccountCreateResponseObject Object { get; set; } = global::G.ProjectServiceAccountCreateResponseObject.OrganizationProjectServiceAccount; + public global::G.ProjectServiceAccountCreateResponseObject Object { get; set; } /// /// @@ -36,8 +35,7 @@ public sealed partial class ProjectServiceAccountCreateResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("role")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ProjectServiceAccountCreateResponseRoleJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ProjectServiceAccountCreateResponseRole Role { get; set; } = global::G.ProjectServiceAccountCreateResponseRole.Member; + public global::G.ProjectServiceAccountCreateResponseRole Role { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectServiceAccountDeleteResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectServiceAccountDeleteResponse.g.verified.cs index e2aca5350c..f43750d2b6 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectServiceAccountDeleteResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectServiceAccountDeleteResponse.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class ProjectServiceAccountDeleteResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ProjectServiceAccountDeleteResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ProjectServiceAccountDeleteResponseObject Object { get; set; } = global::G.ProjectServiceAccountDeleteResponseObject.OrganizationProjectServiceAccountDeleted; + public global::G.ProjectServiceAccountDeleteResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectServiceAccountListResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectServiceAccountListResponse.g.verified.cs index 59195c8542..cabfa7f426 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectServiceAccountListResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectServiceAccountListResponse.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class ProjectServiceAccountListResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ProjectServiceAccountListResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ProjectServiceAccountListResponseObject Object { get; set; } = global::G.ProjectServiceAccountListResponseObject.List; + public global::G.ProjectServiceAccountListResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectUser.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectUser.g.verified.cs index f94cb7035d..27b5c306b9 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectUser.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectUser.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class ProjectUser /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ProjectUserObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ProjectUserObject Object { get; set; } = global::G.ProjectUserObject.OrganizationProjectUser; + public global::G.ProjectUserObject Object { get; set; } /// /// The identifier, which can be referenced in API endpoints diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectUserDeleteResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectUserDeleteResponse.g.verified.cs index 80eb9fcd38..6b0a84e1a5 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectUserDeleteResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ProjectUserDeleteResponse.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class ProjectUserDeleteResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ProjectUserDeleteResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ProjectUserDeleteResponseObject Object { get; set; } = global::G.ProjectUserDeleteResponseObject.OrganizationProjectUserDeleted; + public global::G.ProjectUserDeleteResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ResponseFormatJsonObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ResponseFormatJsonObject.g.verified.cs index b268fa85f7..4f5c68209c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ResponseFormatJsonObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ResponseFormatJsonObject.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class ResponseFormatJsonObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ResponseFormatJsonObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ResponseFormatJsonObjectType Type { get; set; } = global::G.ResponseFormatJsonObjectType.JsonObject; + public global::G.ResponseFormatJsonObjectType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ResponseFormatJsonSchema.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ResponseFormatJsonSchema.g.verified.cs index 2c4505e1dd..597fd17355 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ResponseFormatJsonSchema.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ResponseFormatJsonSchema.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class ResponseFormatJsonSchema /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ResponseFormatJsonSchemaTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ResponseFormatJsonSchemaType Type { get; set; } = global::G.ResponseFormatJsonSchemaType.JsonSchema; + public global::G.ResponseFormatJsonSchemaType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ResponseFormatText.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ResponseFormatText.g.verified.cs index 6f3faf79b3..7ec144c400 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ResponseFormatText.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ResponseFormatText.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class ResponseFormatText /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ResponseFormatTextTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ResponseFormatTextType Type { get; set; } = global::G.ResponseFormatTextType.Text; + public global::G.ResponseFormatTextType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunObject.g.verified.cs index 1f207b27ca..270aced9b0 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunObject.g.verified.cs @@ -23,8 +23,7 @@ public sealed partial class RunObject /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunObjectObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunObjectObject Object { get; set; } = global::G.RunObjectObject.ThreadRun; + public global::G.RunObjectObject Object { get; set; } /// /// The Unix timestamp (in seconds) for when the run was created. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunObjectRequiredAction.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunObjectRequiredAction.g.verified.cs index dea7b384ac..7ea728eebb 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunObjectRequiredAction.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunObjectRequiredAction.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RunObjectRequiredAction /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunObjectRequiredActionTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunObjectRequiredActionType Type { get; set; } = global::G.RunObjectRequiredActionType.SubmitToolOutputs; + public global::G.RunObjectRequiredActionType Type { get; set; } /// /// Details on the tool outputs needed for this run to continue. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaObject.g.verified.cs index be92370576..97f6382e1e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaObject.g.verified.cs @@ -21,8 +21,7 @@ public sealed partial class RunStepDeltaObject /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStepDeltaObjectObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStepDeltaObjectObject Object { get; set; } = global::G.RunStepDeltaObjectObject.ThreadRunStepDelta; + public global::G.RunStepDeltaObjectObject Object { get; set; } /// /// The delta containing the fields that have changed on the run step. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsMessageCreationObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsMessageCreationObject.g.verified.cs index 52ce668f8c..413dc58b3f 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsMessageCreationObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsMessageCreationObject.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RunStepDeltaStepDetailsMessageCreationObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStepDeltaStepDetailsMessageCreationObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStepDeltaStepDetailsMessageCreationObjectType Type { get; set; } = global::G.RunStepDeltaStepDetailsMessageCreationObjectType.MessageCreation; + public global::G.RunStepDeltaStepDetailsMessageCreationObjectType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsToolCallsCodeObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsToolCallsCodeObject.g.verified.cs index ec9b2e6b45..ca45379e74 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsToolCallsCodeObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsToolCallsCodeObject.g.verified.cs @@ -27,8 +27,7 @@ public sealed partial class RunStepDeltaStepDetailsToolCallsCodeObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStepDeltaStepDetailsToolCallsCodeObjectType Type { get; set; } = global::G.RunStepDeltaStepDetailsToolCallsCodeObjectType.CodeInterpreter; + public global::G.RunStepDeltaStepDetailsToolCallsCodeObjectType Type { get; set; } /// /// The Code Interpreter tool call definition. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject.g.verified.cs index c2bb0bbf96..c8f18aae71 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject.g.verified.cs @@ -21,8 +21,7 @@ public sealed partial class RunStepDeltaStepDetailsToolCallsCodeOutputImageObjec /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType Type { get; set; } = global::G.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType.Image; + public global::G.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject.g.verified.cs index 2c6ff119a4..e33940aad0 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject.g.verified.cs @@ -21,8 +21,7 @@ public sealed partial class RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType Type { get; set; } = global::G.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType.Logs; + public global::G.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType Type { get; set; } /// /// The text output from the Code Interpreter tool call. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsToolCallsFileSearchObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsToolCallsFileSearchObject.g.verified.cs index 5e0315d4d4..a26c9bae88 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsToolCallsFileSearchObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsToolCallsFileSearchObject.g.verified.cs @@ -27,8 +27,7 @@ public sealed partial class RunStepDeltaStepDetailsToolCallsFileSearchObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStepDeltaStepDetailsToolCallsFileSearchObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStepDeltaStepDetailsToolCallsFileSearchObjectType Type { get; set; } = global::G.RunStepDeltaStepDetailsToolCallsFileSearchObjectType.FileSearch; + public global::G.RunStepDeltaStepDetailsToolCallsFileSearchObjectType Type { get; set; } /// /// For now, this is always going to be an empty object. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsToolCallsFunctionObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsToolCallsFunctionObject.g.verified.cs index 0a09fef2e1..adb352b7bd 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsToolCallsFunctionObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsToolCallsFunctionObject.g.verified.cs @@ -27,8 +27,7 @@ public sealed partial class RunStepDeltaStepDetailsToolCallsFunctionObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStepDeltaStepDetailsToolCallsFunctionObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStepDeltaStepDetailsToolCallsFunctionObjectType Type { get; set; } = global::G.RunStepDeltaStepDetailsToolCallsFunctionObjectType.Function; + public global::G.RunStepDeltaStepDetailsToolCallsFunctionObjectType Type { get; set; } /// /// The definition of the function that was called. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsToolCallsObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsToolCallsObject.g.verified.cs index 8c9ae7ab88..a975e4eabd 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsToolCallsObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDeltaStepDetailsToolCallsObject.g.verified.cs @@ -16,8 +16,7 @@ public sealed partial class RunStepDeltaStepDetailsToolCallsObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStepDeltaStepDetailsToolCallsObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStepDeltaStepDetailsToolCallsObjectType Type { get; set; } = global::G.RunStepDeltaStepDetailsToolCallsObjectType.ToolCalls; + public global::G.RunStepDeltaStepDetailsToolCallsObjectType Type { get; set; } /// /// An array of tool calls the run step was involved in. These can be associated with one of three types of tools: `code_interpreter`, `file_search`, or `function`. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsMessageCreationObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsMessageCreationObject.g.verified.cs index 129fb6cb88..38c6733be7 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsMessageCreationObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsMessageCreationObject.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RunStepDetailsMessageCreationObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStepDetailsMessageCreationObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStepDetailsMessageCreationObjectType Type { get; set; } = global::G.RunStepDetailsMessageCreationObjectType.MessageCreation; + public global::G.RunStepDetailsMessageCreationObjectType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsToolCallsCodeObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsToolCallsCodeObject.g.verified.cs index 631d6568e7..4ec82cd124 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsToolCallsCodeObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsToolCallsCodeObject.g.verified.cs @@ -21,8 +21,7 @@ public sealed partial class RunStepDetailsToolCallsCodeObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStepDetailsToolCallsCodeObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStepDetailsToolCallsCodeObjectType Type { get; set; } = global::G.RunStepDetailsToolCallsCodeObjectType.CodeInterpreter; + public global::G.RunStepDetailsToolCallsCodeObjectType Type { get; set; } /// /// The Code Interpreter tool call definition. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsToolCallsCodeOutputImageObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsToolCallsCodeOutputImageObject.g.verified.cs index 60da1dca0c..79bb150230 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsToolCallsCodeOutputImageObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsToolCallsCodeOutputImageObject.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RunStepDetailsToolCallsCodeOutputImageObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStepDetailsToolCallsCodeOutputImageObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStepDetailsToolCallsCodeOutputImageObjectType Type { get; set; } = global::G.RunStepDetailsToolCallsCodeOutputImageObjectType.Image; + public global::G.RunStepDetailsToolCallsCodeOutputImageObjectType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsToolCallsCodeOutputLogsObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsToolCallsCodeOutputLogsObject.g.verified.cs index 5744073d09..25ec8f3b41 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsToolCallsCodeOutputLogsObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsToolCallsCodeOutputLogsObject.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RunStepDetailsToolCallsCodeOutputLogsObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStepDetailsToolCallsCodeOutputLogsObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStepDetailsToolCallsCodeOutputLogsObjectType Type { get; set; } = global::G.RunStepDetailsToolCallsCodeOutputLogsObjectType.Logs; + public global::G.RunStepDetailsToolCallsCodeOutputLogsObjectType Type { get; set; } /// /// The text output from the Code Interpreter tool call. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsToolCallsFileSearchObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsToolCallsFileSearchObject.g.verified.cs index bd35cc0ef1..83a28bcc1e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsToolCallsFileSearchObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsToolCallsFileSearchObject.g.verified.cs @@ -21,8 +21,7 @@ public sealed partial class RunStepDetailsToolCallsFileSearchObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStepDetailsToolCallsFileSearchObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStepDetailsToolCallsFileSearchObjectType Type { get; set; } = global::G.RunStepDetailsToolCallsFileSearchObjectType.FileSearch; + public global::G.RunStepDetailsToolCallsFileSearchObjectType Type { get; set; } /// /// For now, this is always going to be an empty object. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsToolCallsFunctionObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsToolCallsFunctionObject.g.verified.cs index 59d92df513..7f803d24ef 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsToolCallsFunctionObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsToolCallsFunctionObject.g.verified.cs @@ -21,8 +21,7 @@ public sealed partial class RunStepDetailsToolCallsFunctionObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStepDetailsToolCallsFunctionObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStepDetailsToolCallsFunctionObjectType Type { get; set; } = global::G.RunStepDetailsToolCallsFunctionObjectType.Function; + public global::G.RunStepDetailsToolCallsFunctionObjectType Type { get; set; } /// /// The definition of the function that was called. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsToolCallsObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsToolCallsObject.g.verified.cs index 326cb1ec94..e0abb88b0d 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsToolCallsObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepDetailsToolCallsObject.g.verified.cs @@ -16,8 +16,7 @@ public sealed partial class RunStepDetailsToolCallsObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStepDetailsToolCallsObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStepDetailsToolCallsObjectType Type { get; set; } = global::G.RunStepDetailsToolCallsObjectType.ToolCalls; + public global::G.RunStepDetailsToolCallsObjectType Type { get; set; } /// /// An array of tool calls the run step was involved in. These can be associated with one of three types of tools: `code_interpreter`, `file_search`, or `function`. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepObject.g.verified.cs index b4a7382d4d..7537db9b48 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepObject.g.verified.cs @@ -23,8 +23,7 @@ public sealed partial class RunStepObject /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStepObjectObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStepObjectObject Object { get; set; } = global::G.RunStepObjectObject.ThreadRunStep; + public global::G.RunStepObjectObject Object { get; set; } /// /// The Unix timestamp (in seconds) for when the run step was created. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant1.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant1.g.verified.cs index 3b829f983c..a9a5069f21 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant1.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant1.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RunStepStreamEventVariant1 /// [global::System.Text.Json.Serialization.JsonPropertyName("event")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStepStreamEventVariant1EventJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStepStreamEventVariant1Event Event { get; set; } = global::G.RunStepStreamEventVariant1Event.ThreadRunStepCreated; + public global::G.RunStepStreamEventVariant1Event Event { get; set; } /// /// Represents a step in execution of a run. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant2.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant2.g.verified.cs index 22313fbfed..e63a0e8156 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant2.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant2.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RunStepStreamEventVariant2 /// [global::System.Text.Json.Serialization.JsonPropertyName("event")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStepStreamEventVariant2EventJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStepStreamEventVariant2Event Event { get; set; } = global::G.RunStepStreamEventVariant2Event.ThreadRunStepInProgress; + public global::G.RunStepStreamEventVariant2Event Event { get; set; } /// /// Represents a step in execution of a run. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant3.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant3.g.verified.cs index 83411547f6..51ff63e257 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant3.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant3.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RunStepStreamEventVariant3 /// [global::System.Text.Json.Serialization.JsonPropertyName("event")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStepStreamEventVariant3EventJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStepStreamEventVariant3Event Event { get; set; } = global::G.RunStepStreamEventVariant3Event.ThreadRunStepDelta; + public global::G.RunStepStreamEventVariant3Event Event { get; set; } /// /// Represents a run step delta i.e. any changed fields on a run step during streaming. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant4.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant4.g.verified.cs index 986a67f79d..966b7d6fcd 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant4.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant4.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RunStepStreamEventVariant4 /// [global::System.Text.Json.Serialization.JsonPropertyName("event")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStepStreamEventVariant4EventJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStepStreamEventVariant4Event Event { get; set; } = global::G.RunStepStreamEventVariant4Event.ThreadRunStepCompleted; + public global::G.RunStepStreamEventVariant4Event Event { get; set; } /// /// Represents a step in execution of a run. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant5.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant5.g.verified.cs index 71ee4216f8..8331f05389 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant5.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant5.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RunStepStreamEventVariant5 /// [global::System.Text.Json.Serialization.JsonPropertyName("event")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStepStreamEventVariant5EventJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStepStreamEventVariant5Event Event { get; set; } = global::G.RunStepStreamEventVariant5Event.ThreadRunStepFailed; + public global::G.RunStepStreamEventVariant5Event Event { get; set; } /// /// Represents a step in execution of a run. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant6.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant6.g.verified.cs index 5eb316a494..69c947b0d4 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant6.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant6.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RunStepStreamEventVariant6 /// [global::System.Text.Json.Serialization.JsonPropertyName("event")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStepStreamEventVariant6EventJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStepStreamEventVariant6Event Event { get; set; } = global::G.RunStepStreamEventVariant6Event.ThreadRunStepCancelled; + public global::G.RunStepStreamEventVariant6Event Event { get; set; } /// /// Represents a step in execution of a run. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant7.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant7.g.verified.cs index 3106e8f8e1..c14b9e6d3e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant7.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStepStreamEventVariant7.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RunStepStreamEventVariant7 /// [global::System.Text.Json.Serialization.JsonPropertyName("event")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStepStreamEventVariant7EventJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStepStreamEventVariant7Event Event { get; set; } = global::G.RunStepStreamEventVariant7Event.ThreadRunStepExpired; + public global::G.RunStepStreamEventVariant7Event Event { get; set; } /// /// Represents a step in execution of a run. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant1.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant1.g.verified.cs index d21387af95..24179185cb 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant1.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant1.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RunStreamEventVariant1 /// [global::System.Text.Json.Serialization.JsonPropertyName("event")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStreamEventVariant1EventJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStreamEventVariant1Event Event { get; set; } = global::G.RunStreamEventVariant1Event.ThreadRunCreated; + public global::G.RunStreamEventVariant1Event Event { get; set; } /// /// Represents an execution run on a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant10.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant10.g.verified.cs index 5c9d5c45d1..edd8b72843 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant10.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant10.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RunStreamEventVariant10 /// [global::System.Text.Json.Serialization.JsonPropertyName("event")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStreamEventVariant10EventJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStreamEventVariant10Event Event { get; set; } = global::G.RunStreamEventVariant10Event.ThreadRunExpired; + public global::G.RunStreamEventVariant10Event Event { get; set; } /// /// Represents an execution run on a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant2.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant2.g.verified.cs index 7d3b5436aa..eb10ae4820 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant2.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant2.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RunStreamEventVariant2 /// [global::System.Text.Json.Serialization.JsonPropertyName("event")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStreamEventVariant2EventJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStreamEventVariant2Event Event { get; set; } = global::G.RunStreamEventVariant2Event.ThreadRunQueued; + public global::G.RunStreamEventVariant2Event Event { get; set; } /// /// Represents an execution run on a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant3.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant3.g.verified.cs index 78d42d37bd..b97587037e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant3.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant3.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RunStreamEventVariant3 /// [global::System.Text.Json.Serialization.JsonPropertyName("event")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStreamEventVariant3EventJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStreamEventVariant3Event Event { get; set; } = global::G.RunStreamEventVariant3Event.ThreadRunInProgress; + public global::G.RunStreamEventVariant3Event Event { get; set; } /// /// Represents an execution run on a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant4.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant4.g.verified.cs index 9d4309c3e5..d3cacee383 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant4.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant4.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RunStreamEventVariant4 /// [global::System.Text.Json.Serialization.JsonPropertyName("event")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStreamEventVariant4EventJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStreamEventVariant4Event Event { get; set; } = global::G.RunStreamEventVariant4Event.ThreadRunRequiresAction; + public global::G.RunStreamEventVariant4Event Event { get; set; } /// /// Represents an execution run on a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant5.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant5.g.verified.cs index 10335838c1..8646c2f05b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant5.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant5.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RunStreamEventVariant5 /// [global::System.Text.Json.Serialization.JsonPropertyName("event")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStreamEventVariant5EventJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStreamEventVariant5Event Event { get; set; } = global::G.RunStreamEventVariant5Event.ThreadRunCompleted; + public global::G.RunStreamEventVariant5Event Event { get; set; } /// /// Represents an execution run on a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant6.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant6.g.verified.cs index 8d3c0bfbca..1e31cce50c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant6.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant6.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RunStreamEventVariant6 /// [global::System.Text.Json.Serialization.JsonPropertyName("event")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStreamEventVariant6EventJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStreamEventVariant6Event Event { get; set; } = global::G.RunStreamEventVariant6Event.ThreadRunIncomplete; + public global::G.RunStreamEventVariant6Event Event { get; set; } /// /// Represents an execution run on a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant7.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant7.g.verified.cs index cf50b54990..727e1e4bf7 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant7.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant7.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RunStreamEventVariant7 /// [global::System.Text.Json.Serialization.JsonPropertyName("event")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStreamEventVariant7EventJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStreamEventVariant7Event Event { get; set; } = global::G.RunStreamEventVariant7Event.ThreadRunFailed; + public global::G.RunStreamEventVariant7Event Event { get; set; } /// /// Represents an execution run on a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant8.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant8.g.verified.cs index 73a2590d2d..564da62835 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant8.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant8.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RunStreamEventVariant8 /// [global::System.Text.Json.Serialization.JsonPropertyName("event")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStreamEventVariant8EventJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStreamEventVariant8Event Event { get; set; } = global::G.RunStreamEventVariant8Event.ThreadRunCancelling; + public global::G.RunStreamEventVariant8Event Event { get; set; } /// /// Represents an execution run on a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant9.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant9.g.verified.cs index ca0c913113..d050600367 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant9.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunStreamEventVariant9.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class RunStreamEventVariant9 /// [global::System.Text.Json.Serialization.JsonPropertyName("event")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStreamEventVariant9EventJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunStreamEventVariant9Event Event { get; set; } = global::G.RunStreamEventVariant9Event.ThreadRunCancelled; + public global::G.RunStreamEventVariant9Event Event { get; set; } /// /// Represents an execution run on a [thread](/docs/api-reference/threads). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunToolCallObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunToolCallObject.g.verified.cs index 25dea67a76..c0b467bf57 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunToolCallObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.RunToolCallObject.g.verified.cs @@ -21,8 +21,7 @@ public sealed partial class RunToolCallObject /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunToolCallObjectTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.RunToolCallObjectType Type { get; set; } = global::G.RunToolCallObjectType.Function; + public global::G.RunToolCallObjectType Type { get; set; } /// /// The function definition. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.StaticChunkingStrategyRequestParam.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.StaticChunkingStrategyRequestParam.g.verified.cs index 8426632681..42282b0392 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.StaticChunkingStrategyRequestParam.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.StaticChunkingStrategyRequestParam.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class StaticChunkingStrategyRequestParam /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.StaticChunkingStrategyRequestParamTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.StaticChunkingStrategyRequestParamType Type { get; set; } = global::G.StaticChunkingStrategyRequestParamType.Static; + public global::G.StaticChunkingStrategyRequestParamType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.StaticChunkingStrategyResponseParam.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.StaticChunkingStrategyResponseParam.g.verified.cs index 147ce939bd..ae9740aa03 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.StaticChunkingStrategyResponseParam.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.StaticChunkingStrategyResponseParam.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class StaticChunkingStrategyResponseParam /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.StaticChunkingStrategyResponseParamTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.StaticChunkingStrategyResponseParamType Type { get; set; } = global::G.StaticChunkingStrategyResponseParamType.Static; + public global::G.StaticChunkingStrategyResponseParamType Type { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ThreadObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ThreadObject.g.verified.cs index dfb3e6b1ed..31027f4770 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ThreadObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ThreadObject.g.verified.cs @@ -21,8 +21,7 @@ public sealed partial class ThreadObject /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ThreadObjectObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ThreadObjectObject Object { get; set; } = global::G.ThreadObjectObject.Thread; + public global::G.ThreadObjectObject Object { get; set; } /// /// The Unix timestamp (in seconds) for when the thread was created. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ThreadStreamEventVariant1.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ThreadStreamEventVariant1.g.verified.cs index a055efd462..9c36d4c023 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ThreadStreamEventVariant1.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.ThreadStreamEventVariant1.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class ThreadStreamEventVariant1 /// [global::System.Text.Json.Serialization.JsonPropertyName("event")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ThreadStreamEventVariant1EventJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ThreadStreamEventVariant1Event Event { get; set; } = global::G.ThreadStreamEventVariant1Event.ThreadCreated; + public global::G.ThreadStreamEventVariant1Event Event { get; set; } /// /// Represents a thread that contains [messages](/docs/api-reference/messages). diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.UploadPart.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.UploadPart.g.verified.cs index cb7ebf1d28..9da5cf1f08 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.UploadPart.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.UploadPart.g.verified.cs @@ -35,8 +35,7 @@ public sealed partial class UploadPart /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.UploadPartObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.UploadPartObject Object { get; set; } = global::G.UploadPartObject.UploadPart; + public global::G.UploadPartObject Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.User.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.User.g.verified.cs index 884128cbf8..247543f820 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.User.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.User.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class User /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.UserObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.UserObject Object { get; set; } = global::G.UserObject.OrganizationUser; + public global::G.UserObject Object { get; set; } /// /// The identifier, which can be referenced in API endpoints diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.UserDeleteResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.UserDeleteResponse.g.verified.cs index 1ede362854..b870b6bd68 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.UserDeleteResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.UserDeleteResponse.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class UserDeleteResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.UserDeleteResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.UserDeleteResponseObject Object { get; set; } = global::G.UserDeleteResponseObject.OrganizationUserDeleted; + public global::G.UserDeleteResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.UserListResponse.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.UserListResponse.g.verified.cs index 82507fa25f..d1b33625a5 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.UserListResponse.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.UserListResponse.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class UserListResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.UserListResponseObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.UserListResponseObject Object { get; set; } = global::G.UserListResponseObject.List; + public global::G.UserListResponseObject Object { get; set; } /// /// diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.VectorStoreExpirationAfter.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.VectorStoreExpirationAfter.g.verified.cs index 7008a3162f..a52b3dd4ab 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.VectorStoreExpirationAfter.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.VectorStoreExpirationAfter.g.verified.cs @@ -14,8 +14,7 @@ public sealed partial class VectorStoreExpirationAfter /// [global::System.Text.Json.Serialization.JsonPropertyName("anchor")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.VectorStoreExpirationAfterAnchorJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.VectorStoreExpirationAfterAnchor Anchor { get; set; } = global::G.VectorStoreExpirationAfterAnchor.LastActiveAt; + public global::G.VectorStoreExpirationAfterAnchor Anchor { get; set; } /// /// The number of days after the anchor time that the vector store will expire. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.VectorStoreFileBatchObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.VectorStoreFileBatchObject.g.verified.cs index fd696c4df1..5679181a3e 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.VectorStoreFileBatchObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.VectorStoreFileBatchObject.g.verified.cs @@ -21,8 +21,7 @@ public sealed partial class VectorStoreFileBatchObject /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.VectorStoreFileBatchObjectObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.VectorStoreFileBatchObjectObject Object { get; set; } = global::G.VectorStoreFileBatchObjectObject.VectorStoreFilesBatch; + public global::G.VectorStoreFileBatchObjectObject Object { get; set; } /// /// The Unix timestamp (in seconds) for when the vector store files batch was created. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.VectorStoreFileObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.VectorStoreFileObject.g.verified.cs index 6f909c0cf5..9ac2e807c9 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.VectorStoreFileObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.VectorStoreFileObject.g.verified.cs @@ -23,8 +23,7 @@ public sealed partial class VectorStoreFileObject /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.VectorStoreFileObjectObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.VectorStoreFileObjectObject Object { get; set; } = global::G.VectorStoreFileObjectObject.VectorStoreFile; + public global::G.VectorStoreFileObjectObject Object { get; set; } /// /// The total vector store usage in bytes. Note that this may be different from the original file size. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.VectorStoreObject.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.VectorStoreObject.g.verified.cs index e040dda399..4fde398640 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.VectorStoreObject.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.Models.VectorStoreObject.g.verified.cs @@ -21,8 +21,7 @@ public sealed partial class VectorStoreObject /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.VectorStoreObjectObjectJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.VectorStoreObjectObject Object { get; set; } = global::G.VectorStoreObjectObject.VectorStore; + public global::G.VectorStoreObjectObject Object { get; set; } /// /// The Unix timestamp (in seconds) for when the vector store was created. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/NewtonsoftJson/_#G.Models.ExtensionBitsProductCost.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/NewtonsoftJson/_#G.Models.ExtensionBitsProductCost.g.verified.cs index caf2502947..4b38ce4880 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/NewtonsoftJson/_#G.Models.ExtensionBitsProductCost.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/NewtonsoftJson/_#G.Models.ExtensionBitsProductCost.g.verified.cs @@ -20,8 +20,8 @@ public sealed partial class ExtensionBitsProductCost ///
/// * bits ///
- [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ExtensionBitsProductCostType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.ExtensionBitsProductCostType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/NewtonsoftJson/_#G.Models.ExtensionTransaction.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/NewtonsoftJson/_#G.Models.ExtensionTransaction.g.verified.cs index 445c17d144..fa4c63d983 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/NewtonsoftJson/_#G.Models.ExtensionTransaction.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/NewtonsoftJson/_#G.Models.ExtensionTransaction.g.verified.cs @@ -62,8 +62,8 @@ public sealed partial class ExtensionTransaction ///
/// * BITS\_IN\_EXTENSION ///
- [global::Newtonsoft.Json.JsonProperty("product_type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ExtensionTransactionProductType ProductType { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("product_type")] + public global::G.ExtensionTransactionProductType ProductType { get; set; } /// /// Contains details about the digital product. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/NewtonsoftJson/_#G.Models.ExtensionTransactionProductDataCost.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/NewtonsoftJson/_#G.Models.ExtensionTransactionProductDataCost.g.verified.cs index 5988b75737..d24d010c8a 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/NewtonsoftJson/_#G.Models.ExtensionTransactionProductDataCost.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/NewtonsoftJson/_#G.Models.ExtensionTransactionProductDataCost.g.verified.cs @@ -20,8 +20,8 @@ public sealed partial class ExtensionTransactionProductDataCost ///
/// * bits ///
- [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.ExtensionTransactionProductDataCostType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.ExtensionTransactionProductDataCostType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/NewtonsoftJson/_#G.Models.Stream.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/NewtonsoftJson/_#G.Models.Stream.g.verified.cs index a353f26fa0..f9bbb6a670 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/NewtonsoftJson/_#G.Models.Stream.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/NewtonsoftJson/_#G.Models.Stream.g.verified.cs @@ -52,8 +52,8 @@ public sealed partial class Stream ///
/// If an error occurs, this field is set to an empty string. ///
- [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.StreamType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.StreamType Type { get; set; } /// /// The stream’s title. Is an empty string if not set. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/NewtonsoftJson/_#G.Models.UpdateExtensionBitsProductBodyCost.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/NewtonsoftJson/_#G.Models.UpdateExtensionBitsProductBodyCost.g.verified.cs index 8732703caf..75428ab78c 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/NewtonsoftJson/_#G.Models.UpdateExtensionBitsProductBodyCost.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/NewtonsoftJson/_#G.Models.UpdateExtensionBitsProductBodyCost.g.verified.cs @@ -20,8 +20,8 @@ public sealed partial class UpdateExtensionBitsProductBodyCost ///
/// * bits — The minimum price is 1 and the maximum is 10000. ///
- [global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] - public global::G.UpdateExtensionBitsProductBodyCostType Type { get; set; } = default!; + [global::Newtonsoft.Json.JsonProperty("type")] + public global::G.UpdateExtensionBitsProductBodyCostType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/SystemTextJson/_#G.Models.ExtensionBitsProductCost.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/SystemTextJson/_#G.Models.ExtensionBitsProductCost.g.verified.cs index 9ae3c8bef0..bab81d4313 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/SystemTextJson/_#G.Models.ExtensionBitsProductCost.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/SystemTextJson/_#G.Models.ExtensionBitsProductCost.g.verified.cs @@ -23,8 +23,7 @@ public sealed partial class ExtensionBitsProductCost /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ExtensionBitsProductCostTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ExtensionBitsProductCostType Type { get; set; } = global::G.ExtensionBitsProductCostType.Bits; + public global::G.ExtensionBitsProductCostType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/SystemTextJson/_#G.Models.ExtensionTransaction.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/SystemTextJson/_#G.Models.ExtensionTransaction.g.verified.cs index 4d39573686..e4b3177cf8 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/SystemTextJson/_#G.Models.ExtensionTransaction.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/SystemTextJson/_#G.Models.ExtensionTransaction.g.verified.cs @@ -72,8 +72,7 @@ public sealed partial class ExtensionTransaction /// [global::System.Text.Json.Serialization.JsonPropertyName("product_type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ExtensionTransactionProductTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ExtensionTransactionProductType ProductType { get; set; } = global::G.ExtensionTransactionProductType.BITSINEXTENSION; + public global::G.ExtensionTransactionProductType ProductType { get; set; } /// /// Contains details about the digital product. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/SystemTextJson/_#G.Models.ExtensionTransactionProductDataCost.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/SystemTextJson/_#G.Models.ExtensionTransactionProductDataCost.g.verified.cs index 8e1ffb46eb..ad3020bf45 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/SystemTextJson/_#G.Models.ExtensionTransactionProductDataCost.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/SystemTextJson/_#G.Models.ExtensionTransactionProductDataCost.g.verified.cs @@ -23,8 +23,7 @@ public sealed partial class ExtensionTransactionProductDataCost /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ExtensionTransactionProductDataCostTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.ExtensionTransactionProductDataCostType Type { get; set; } = global::G.ExtensionTransactionProductDataCostType.Bits; + public global::G.ExtensionTransactionProductDataCostType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/SystemTextJson/_#G.Models.Stream.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/SystemTextJson/_#G.Models.Stream.g.verified.cs index 023a9f46ae..3ea0a95a09 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/SystemTextJson/_#G.Models.Stream.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/SystemTextJson/_#G.Models.Stream.g.verified.cs @@ -60,8 +60,7 @@ public sealed partial class Stream /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.StreamTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.StreamType Type { get; set; } = global::G.StreamType.Live; + public global::G.StreamType Type { get; set; } /// /// The stream’s title. Is an empty string if not set. diff --git a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/SystemTextJson/_#G.Models.UpdateExtensionBitsProductBodyCost.g.verified.cs b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/SystemTextJson/_#G.Models.UpdateExtensionBitsProductBodyCost.g.verified.cs index 57b79021b2..d98eb8c94b 100644 --- a/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/SystemTextJson/_#G.Models.UpdateExtensionBitsProductBodyCost.g.verified.cs +++ b/src/tests/OpenApiGenerator.SnapshotTests/Snapshots/Twitch/SystemTextJson/_#G.Models.UpdateExtensionBitsProductBodyCost.g.verified.cs @@ -23,8 +23,7 @@ public sealed partial class UpdateExtensionBitsProductBodyCost /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.UpdateExtensionBitsProductBodyCostTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::G.UpdateExtensionBitsProductBodyCostType Type { get; set; } = global::G.UpdateExtensionBitsProductBodyCostType.Bits; + public global::G.UpdateExtensionBitsProductBodyCostType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema