Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1repos~1{owner}~1{repo}~1commits~1{commit_sha}~1pulls/get #5626

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

#/components/examples/pull-request-simple-items/value

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

Here's a snippet

  303:         "push" : false,
  304:         "pull" : true
  305:       },
  306:       "allow_rebase_merge" : true,
> 307:       "template_repository" : null,
  308:       "temp_clone_token" : "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
  309:       "allow_squash_merge" : true,
  310:       "allow_auto_merge" : false,
  311:       "delete_branch_on_merge" : true,

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