Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1users~1{username}~1ssh_signing_keys/get #5649

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

#/components/examples/ssh-signing-key-items/value

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

Here's a snippet

    1: [ {
    2:   "key" : "2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234",
    3:   "id" : 2,
>   4:   "url" : "https://api.github.com/user/keys/2",
    5:   "title" : "ssh-rsa AAAAB3NzaC1yc2EAAA",
    6:   "created_at" : "2020-06-11T21:31:57Z"
    7: }, {
    8:   "key" : "2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJy931234",

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