Enterprise accounts schema preview always included in introspection queries

It seems there’s currently (as of this post) a problem where the default introspection query for GitHub GraphQL v4 API includes the Enterprise accounts schema preview, even when it’s not asked for.

Consider:

$ curl -s -H “Authorization: bearer $GITHUB_TOKEN” https://api.github.com/graphql > default.json
$ curl -s -H “Authorization: bearer $GITHUB_TOKEN” -H “Accept: application/vnd.github.enterprise-accounts-preview+json” https://api.github.com/graphql > with_enterprise_preview.json
$ diff ./default.json ./with_enterprise_preview.json
$ echo $?
0

Hope this is helpful to you.

Thanks for letting us know! I’ve passed this along to the correct team for investigation. I can’t promise anything or give an ETA, but it’s in the right hands.

Thanks again :+1:

2 Likes

The Enterprise accounts schema preview has been merged into the stable API by now, so this is resolved.