[Schema Inaccuracy] Create and update org repository missing `has_discussions` parameters

Open Beginner friendly
#4,842 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
openapi
Domain
api

Research direction

Start with the OpenAPI definitions for the Create an organization repository and Update a repository endpoints. Verify how existing body parameters are described and add has_discussions to both endpoint schemas. Done means the parameter appears in the description for both endpoints and the schema remains valid.

Written by the indexing model from the issue text.

Description

feature fundamentals-and-support

Schema Inaccuracy

The REST API description for Create an organization repository and Update a repository does not include has_discussions as a documented body parameter.

Expected

The has_discussions parameter should be added to these endpoints, as they appear to be valid and accepted if specified https://github.com/github/safe-settings/issues/797#issuecomment-2873080376.

Reproduction Steps

Only tested with Safe-Settings, however, by specifying has_discussions it will be passed to the create/update repository endpoints and change the discussions setting.

Dominant language
No language data
Stars
1.6k
Forks
342
Avg merge
3h 33m
Merged PRs (30d)
51

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/rest-api-description

All issues in github/rest-api-description

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.