Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1enterprises~1{enterprise}~1code-security~1configurations~1defaults/get #5484

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

#/components/examples/code-security-default-configurations/value

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

Here's a snippet

   25:     "secret_scanning_push_protection" : "enabled",
   26:     "secret_scanning_delegated_bypass" : "enabled",
   27:     "secret_scanning_delegated_bypass_options" : {
   28:       "reviewers" : [ {
>  29:         "security_configuration_id" : 1325,
   30:         "reviewer_id" : 5678,
   31:         "reviewer_type" : "TEAM"
   32:       } ]
   33:     },

Expected

The schema and example are in sync

Reproduction Steps

I could reproduce this in

  • fpt
  • ghec
  • ghes-3.16
  • ghes-3.17

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions