-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Copy link
Labels
Description
There is a bug in the copilot seat details, per the spec null is a valid response type for the assignee:
"assignee": {
"anyOf": [
{
"type": "null"
},
However, the code here errors with
Code:
Line 47 in eff2bbd
type CopilotSeatDetails struct { |
Line 212 in eff2bbd
if v["type"] == nil { |
it's getting tested here and expecting an error, as invalid json.
This test checks for nil type, and returns an error, it should pass.
go-github/github/copilot_test.go
Line 30 in eff2bbd
name: "Invalid JSON", |
gmlewis