Skip to content

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

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the JSON ref for the example

#/components/examples/enterprise-role-list/value

Schema and example mismatch. There's a trailing comma for the numeric field.

Here's a snippet

    4:     "name" : "Security Manager",
    5:     "description" : "A role for security managers",
    6:     "permissions" : [ "read_enterprise_custom_enterprise_role", "write_enterprise_security_configuration" ],
    7:     "enterprise" : {
>   8:       "id" : "1,",
    9:       "slug" : "github-inc",
   10:       "name" : "GitHub, Inc",
   11:       "node_id" : "E_kgAB",
   12:       "avatar_url" : "https://github.com/images/error/octocat_happy.gif",

Affected Schema Refs

#/paths/~1enterprises~1{enterprise}~1enterprise-roles/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