[BUG]: A webhook typed PackageEvent with a nuget_metadata field throw an JsonException #460
Closed
1 task done
Labels
Status: Triage
This is being looked at and prioritized
Type: Bug
Something isn't working as documented
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>?
webhooks.net/src/Octokit.Webhooks/Models/PackageVersion.cs
Line 72 in 4b9912f
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
The text was updated successfully, but these errors were encountered: