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"
},
https://docs.github.com/en/rest/copilot/copilot-user-management?apiVersion=2022-11-28#list-all-copilot-seat-assignments-for-an-organization
However, the code here errors with
Code:
|
type CopilotSeatDetails struct { |
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.
There is a bug in the copilot seat details, per the spec null is a valid response type for the assignee:
https://docs.github.com/en/rest/copilot/copilot-user-management?apiVersion=2022-11-28#list-all-copilot-seat-assignments-for-an-organization
However, the code here errors with
Code:
go-github/github/copilot.go
Line 47 in eff2bbd
go-github/github/copilot.go
Line 212 in eff2bbd
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