Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1repos~1{owner}~1{repo}~1secret-scanning~1alerts/get #5642

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

#/components/examples/secret-scanning-alert-list/value

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

Here's a snippet

   51:     "site_admin" : true
   52:   },
   53:   "push_protection_bypassed" : true,
   54:   "push_protection_bypassed_at" : "2020-11-06T21:48:51Z",
>  55:   "push_protection_bypass_request_reviewer" : {
   56:     "login" : "octocat",
   57:     "id" : 3,
   58:     "node_id" : "MDQ6VXNlcjI=",
   59:     "avatar_url" : "https://alambic.github.com/avatars/u/3?",

Expected

The schema and example are in sync

Reproduction Steps

I could reproduce this in

  • ghes-3.14
  • ghes-3.15
  • ghes-3.16
  • 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