Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1repos~1{owner}~1{repo}~1branches~1{branch}~1protection/get #5608

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

#/components/examples/branch-protection/value

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

Here's a snippet

   89:         "permissions" : {
   90:           "metadata" : "read",
   91:           "contents" : "read",
   92:           "issues" : "write",
>  93:           "single_file" : "write"
   94:         },
   95:         "events" : [ "push", "pull_request" ]
   96:       } ]
   97:     },

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