Skip to content

[Schema Inaccuracy] /orgs/{org}/code-security/configurations/{configuration_id}/repositories response example is invalid #5045

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the JSON ref

#/paths/~1orgs~1{org}~1code-security~1configurations~1{configuration_id}~1repositories/get/responses/200/content/application~1json/examples/default/value

Unrecognized field "git_url".
Path: repository -> git_url

The example has this

   46:     "forks_url" : "https://api.github.com/repos/octocat/Hello-World/forks",
   47:     "git_commits_url" : "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
   48:     "git_refs_url" : "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
   49:     "git_tags_url" : "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
>  50:     "git_url" : "git:github.com/octocat/Hello-World.git",
                       ^
   51:     "issue_comment_url" : "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
   52:     "issue_events_url" : "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
   53:     "issues_url" : "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
   54:     "keys_url" : "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",

Reproduction Steps

I reproduced this for:

  • ghes-3.15
  • ghes-3.16
  • ghes-3.17
  • ghec
  • fpt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions