-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Labels
Status: TriageThis is being looked at and prioritizedThis is being looked at and prioritizedType: BugSomething isn't working as documentedSomething isn't working as documented
Description
What happened?
A webhook typed PackageEvent with a nuget_metadata field throw an JsonException
The type of nuget_metadata field in Octokit.Webhooks is IDictionary<string, dynamic>?
| public IDictionary<string, dynamic>? NugetMetadata { get; init; } |
But in the GitHub documentation the type of nuget_metadata is array of objects or null
https://docs.github.com/en/webhooks/webhook-events-and-payloads#package
Below a reproducible test case on dotnetfiddle.com
https://dotnetfiddle.net/CeroqZ
Versions
Octokit.Webhooks v2.1.0
Relevant log output
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
Status: TriageThis is being looked at and prioritizedThis is being looked at and prioritizedType: BugSomething isn't working as documentedSomething isn't working as documented
Type
Projects
Status
✅ Done