Skip to content

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

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

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

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

Here's a snippet

    4:   "name" : "High risk settings",
    5:   "description" : "This is a code security configuration for octo-enterprise high risk repositories",
    6:   "advanced_security" : "enabled",
    7:   "dependency_graph" : "enabled",
>   8:   "dependency_graph_autosubmit_action" : null,
    9:   "dependency_graph_autosubmit_action_options" : null,
   10:   "dependabot_alerts" : "enabled",
   11:   "dependabot_security_updates" : "enabled",
   12:   "code_scanning_default_setup" : "enabled",

Expected

The schema and example are in sync

Reproduction Steps

I could reproduce this in

  • 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