Skip to content

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

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

#/components/examples/deploy-key-items/value

Schema and example mismatch. The schema has an array. The example has an element.

Here's a snippet

>   1: {
    2:   "enabled" : [ {
    3:     "id" : 1,
    4:     "key" : "ssh-rsa AAA...",
    5:     "url" : "https://api.github.com/repos/octocat/Hello-World/keys/1",

Expected

The schema and example are in sync

Reproduction Steps

I could reproduce this in

  • ghes-3.14
  • ghes-3.15

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