You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When retrieving a repository that is unavailable for legal reasons (e.g. a DMCA takedown request), the GitHub API responds with an HTTP status "451 Unavailable For Legal Reasons" and a response body such as:
This response code and error body are not described in the schema.
Relevant schema excerpt:
"/repos/{owner}/{repo}":
get:
summary: Get a repositorydescription: |- The `parent` and `source` objects are present when the repository is a fork. `parent` is the repository this repository was forked from, `source` is the ultimate source for the network. **Note:** In order to see the `security_and_analysis` block for a repository you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."tags:
- reposoperationId: repos/getexternalDocs:
description: API method documentationurl: https://docs.github.com/rest/repos/repos#get-a-repositoryparameters:
- "$ref": "#/components/parameters/owner"
- "$ref": "#/components/parameters/repo"responses:
'200':
description: Responsecontent:
application/json:
schema:
"$ref": "#/components/schemas/full-repository"examples:
default-response:
"$ref": "#/components/examples/full-repository-default-response"'403':
"$ref": "#/components/responses/forbidden"'404':
"$ref": "#/components/responses/not_found"'301':
"$ref": "#/components/responses/moved_permanently"
Expected
Expected a 451 response description for "Get a repository".
Reproduction Steps
gh api --verbose /repositories/239386228
The text was updated successfully, but these errors were encountered:
Schema Inaccuracy
When retrieving a repository that is unavailable for legal reasons (e.g. a DMCA takedown request), the GitHub API responds with an HTTP status "451 Unavailable For Legal Reasons" and a response body such as:
This response code and error body are not described in the schema.
Relevant schema excerpt:
Expected
Expected a 451 response description for "Get a repository".
Reproduction Steps
The text was updated successfully, but these errors were encountered: