Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1app~1installations~1{installation_id}~1access_tokens/post #5662

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

#/components/examples/installation-token/value

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

Here's a snippet

  101:       "push" : false,
  102:       "pull" : true
  103:     },
  104:     "allow_rebase_merge" : true,
> 105:     "template_repository" : null,
  106:     "temp_clone_token" : "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
  107:     "allow_squash_merge" : true,
  108:     "allow_auto_merge" : false,
  109:     "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