Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1repos~1{owner}~1{repo}~1rulesets/get #5641

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

#/components/examples/repository-ruleset-items/value

Schema and example mismatch detected.

Here's a snippet

    2:   "id" : 42,
    3:   "name" : "super cool ruleset",
    4:   "source_type" : "Repository",
    5:   "source" : "monalisa/my-repo",
>   6:   "enforcement" : "enabled",
    7:   "node_id" : "RRS_lACkVXNlcgQB",
    8:   "_links" : {
    9:     "self" : {
   10:       "href" : "https://api.github.com/repos/monalisa/my-repo/rulesets/42"

Expected

The schema and example are in sync

Reproduction Steps

I could reproduce this in

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