Skip to content

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

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

#/components/examples/repo-codespaces-secret-paginated/value

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

Here's a snippet

    2:   "secrets" : [ {
    3:     "name" : "GH_TOKEN",
    4:     "created_at" : "2019-08-10T14:59:22Z",
    5:     "updated_at" : "2020-01-10T14:59:22Z",
>   6:     "visibility" : "all"
    7:   }, {
    8:     "name" : "GIST_ID",
    9:     "created_at" : "2020-01-10T10:59:22Z",
   10:     "updated_at" : "2020-01-11T11:59:22Z",

Expected

The schema and example are in sync

Reproduction Steps

I could reproduce this in

  • fpt
  • ghec

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