Skip to content

Commit 42fe7d2

Browse files
committed
feat: deserialize any additional data to a dictionary
1 parent 918523b commit 42fe7d2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Octokit.Webhooks/WebhookEvent.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,10 @@ public abstract record WebhookEvent
1717

1818
[JsonPropertyName("sender")]
1919
public User? Sender { get; init; }
20+
21+
/// <summary>
22+
/// Gets any additional properties that were not mapped to a strongly-typed property on the event.
23+
/// </summary>
24+
[JsonExtensionData]
25+
public IDictionary<string, dynamic>? AdditionalProperties { get; init; }
2026
}

0 commit comments

Comments
 (0)