Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1orgs~1{org}~1organization-roles~1{role_id}/get #5598

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

#/components/examples/organization-role/value

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

Here's a snippet

    9:     "node_id" : "MDEyOk9yZ2FuaXphdGlvbjE=",
   10:     "url" : "https://api.github.com/orgs/github",
   11:     "repos_url" : "https://api.github.com/orgs/github/repos",
   12:     "events_url" : "https://api.github.com/orgs/github/events",
>  13:     "hooks_url" : "https://api.github.com/orgs/github/hooks",
                         ^
   14:     "issues_url" : "https://api.github.com/orgs/github/issues",
   15:     "members_url" : "https://api.github.com/orgs/github/members{/member}",
   16:     "public_members_url" : "https://api.github.com/orgs/github/public_members{/member}",
   17:     "avatar_url" : "https://github.com/images/error/octocat_happy.gif",

Expected

The schema and example are in sync

Reproduction Steps

I could reproduce this in

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

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