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