[Schema Inaccuracy] Example and schema mismatch for `#/paths/~1orgs~1{org}~1code-security~1configurations~1defaults/get`

Open
#5,591 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 by comparing the schema for #/paths/1orgs1{org}1code-security1configurations~1defaults/get with the example at #/components/examples/code-security-default-configurations/value. Check how security_configuration_id is represented in each, then verify that the schema and example are in sync for the reported GHES 3.15 case.

Written by the indexing model from the issue text.

Description

feature

Schema Inaccuracy

This is the json ref for the example

#/components/examples/code-security-default-configurations/value

The field security_configuration_id doesn't exist in the schema, but exists in the example.

Here's a snippet

   14:     "secret_scanning_push_protection" : "enabled",
   15:     "secret_scanning_delegated_bypass" : "enabled",
   16:     "secret_scanning_delegated_bypass_options" : {
   17:       "reviewers" : [ {
>  18:         "security_configuration_id" : 1325,
   19:         "reviewer_id" : 5678,
   20:         "reviewer_type" : "TEAM"
   21:       } ]
   22:     },

Expected

The schema and example are in sync

Reproduction Steps

I could reproduce this in

  • ghes-3.15
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.