Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1enterprises~1{enterprise}~1enterprise-roles~1{role_id}/get #5868

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the JSON ref for the example

#/components/examples/enterprise-role/value

Schema and example mismatch. id has a trailing comma.

Here's a snippet

    1: {
    2:   "created_at" : "2022-07-04T22:19:11Z",
    3:   "description" : "A role for security managers",
    4:   "enterprise" : {
>   5:     "id" : "1,",
    6:     "slug" : "github-inc",
    7:     "name" : "GitHub, Inc",
    8:     "node_id" : "E_kgAB",
    9:     "avatar_url" : "https://github.com/images/error/octocat_happy.gif",

Affected Schema Refs

#/paths/~1enterprises~1{enterprise}~1enterprise-roles~1{role_id}/get

Expected

The schema and example are in sync

Reproduction Steps

I could reproduce this in

  • 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