Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Schema Inaccuracy] Invalid example for path `/enterprises/{enterprise}/rulesets` requestBody

Open
#5,048 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
48/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
openapi
Domain
api

Research direction

Start at the JSON reference for /enterprises/{enterprise}/rulesets requestBody and inspect the rules example against the referenced repository-rule and repository-rule-deletion schemas. Done means the example uses a rule type accepted by the applicable schema and the OpenAPI description remains internally consistent.

Written by the indexing model from the issue text.

Description

feature

Schema Inaccuracy

This is the JSON Ref

#/paths/~1enterprises~1{enterprise}~1rulesets/post/requestBody/content/application~1json/examples/default/value

It contains this

            "rules" : [ {
              "type" : "repository_delete"
            } ],

The type for rules is #/components/schemas/repository-rule and it doesn't contain one with repository_delete.

The likely candidate is #/components/schemas/repository-rule-deletion with deletion.

Reproduction Steps

I found this in

  • GHEC
Dominant language
No language data
Stars
1.6k
Forks
342
Avg merge
2h 23m
Merged PRs (30d)
57

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.