github / rest-api-description

An OpenAPI description for GitHub's REST API
MIT License
1.38k stars 225 forks source link

[Schema Inaccuracy] `/repos/{template_owner}/{template_repo}/generate` wrong `enabledForGitHubApps` #3723

Open georgesfarah opened 3 months ago

georgesfarah commented 3 months ago

Schema Inaccuracy

In https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.json:

the endpoint: /repos/{template_owner}/{template_repo}/generate should have enabledForGitHubApps set to true.

It's written here it's enabled for GitHub Apps: https://docs.github.com/en/rest/authentication/endpoints-available-for-github-app-installation-access-tokens?apiVersion=2022-11-28

Expected

the endpoint: /repos/{template_owner}/{template_repo}/generate should have enabledForGitHubApps set to true.

Reproduction Steps

Go to https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.json, search for the endpoint /repos/{template_owner}/{template_repo}/generate, check the enabledForGitHubApps attribute.

shiftkey commented 3 months ago

Thanks for the report @georgesfarah! I've reached out to the team who looks after that API to confirm this config should be set to true.