Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1enterprises~1{enterprise}~1secret-scanning~1alerts/get #5541

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

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

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

Here's a snippet

  143:   "push_protection_bypass_request_comment" : "Example comment",
  144:   "push_protection_bypass_request_html_url" : "https://github.com/owner/repo/secret_scanning_exemptions/1",
  145:   "resolution_comment" : "Example comment",
  146:   "validity" : "active",
> 147:   "publicly_leaked" : false,
  148:   "multi_repo" : false,
  149:   "is_base64_encoded" : false,
  150:   "first_location_detected" : {
  151:     "path" : "/example/secrets.txt",

Expected

The schema and example are in sync

Reproduction Steps

I could reproduce this in

  • 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