Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1enterprises~1{enterprise}~1rulesets/post #5871

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the JSON ref for the example

#/components/examples/enterprise-ruleset/value

There's this in the example

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

There isn't a oneOf in #/components/schemas/repository-rule/oneOf with that as the type.

Affected Schema Refs

#/paths/~1enterprises~1{enterprise}~1rulesets/post
#/paths/~1enterprises~1{enterprise}~1rulesets~1{ruleset_id}/get
#/paths/~1enterprises~1{enterprise}~1rulesets~1{ruleset_id}/put

Expected

The schema and example are in sync

Reproduction Steps

I could reproduce 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