Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1orgs~1{org}~1code-security~1configurations/get #5659

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

#/components/examples/code-security-configuration-list/value

The field code_scanning_delagated_alert_dismissal doesn't exist in the schema, but exists in the example. There's a typo.

- code_scanning_delegated_alert_dismissal
+ code_scanning_delagated_alert_dismissal

Here's a snippet

   11:   },
   12:   "dependabot_alerts" : "enabled",
   13:   "dependabot_security_updates" : "not_set",
   14:   "code_scanning_default_setup" : "enabled",
>  15:   "code_scanning_delagated_alert_dismissal" : "enabled",
                                                     ^
   16:   "secret_scanning" : "enabled",
   17:   "secret_scanning_push_protection" : "enabled",
   18:   "secret_scanning_delegated_bypass" : "enabled",
   19:   "secret_scanning_delegated_bypass_options" : {

Expected

The schema and example are in sync

Reproduction Steps

I could reproduce this in

  • fpt
  • ghec
  • 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