Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1repos~1{owner}~1{repo}~1transfer/post #5643

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

#/components/examples/minimal-repository/value

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

Here's a snippet

   88:   "subscription_url" : "https://api.github.com/repos/octocat/Hello-World/subscription",
   89:   "svn_url" : "https://svn.github.com/octocat/Hello-World",
   90:   "tags_url" : "https://api.github.com/repos/octocat/Hello-World/tags",
   91:   "teams_url" : "https://api.github.com/repos/octocat/Hello-World/teams",
>  92:   "template_repository" : {
   93:     "id" : 1296269,
   94:     "node_id" : "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
   95:     "name" : "Hello-World-Template",
   96:     "full_name" : "octocat/Hello-World-Template",

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