Skip to content

[Schema Inaccuracy] Invalid example for path /enterprises/{enterprise}/rulesets requestBody #5048

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the JSON Ref

#/paths/~1enterprises~1{enterprise}~1rulesets/post/requestBody/content/application~1json/examples/default/value

It contains this

            "rules" : [ {
              "type" : "repository_delete"
            } ],

The type for rules is #/components/schemas/repository-rule and it doesn't contain one with repository_delete.

The likely candidate is #/components/schemas/repository-rule-deletion with deletion.

Reproduction Steps

I found this in

  • GHEC

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