Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1enterprises~1{enterprise}~1teams~1{enterprise-team}~1organizations/get #5542

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

#/components/examples/organization-simple/value

Schema and example mismatch. The schema suggests an array. The example is an element.

Here's a snippet

>   1: {
    2:   "avatar_url" : "https://github.com/images/error/octocat_happy.gif",
    3:   "description" : "A great organization",
    4:   "events_url" : "https://api.github.com/orgs/github/events",
    5:   "hooks_url" : "https://api.github.com/orgs/github/hooks",

Expected

The schema and example are in sync

Reproduction Steps

I could reproduce this in

  • fpt
  • ghec

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