Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1organizations~1{organization_id}~1custom_roles/get #5549

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

#/components/examples/organization-custom-repository-role-example/value

The field base_role doesn't exist in the schema, but exists in the example. This should be nested under custom_role.

Here's a snippet

    1: {
>   2:   "base_role" : "maintain",
    3:   "created_at" : "2022-07-04T22:19:11Z",
    4:   "description" : "Able to contribute code and maintain the security pipeline",
    5:   "id" : 8030,
    6:   "name" : "Security Engineer",

Expected

The schema and example are in sync

Reproduction Steps

I could reproduce this in

  • 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