Skip to content

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

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

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

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

Here's a snippet

    1: {
    2:   "created_at" : "2019-08-10T14:59:22Z",
    3:   "name" : "GH_TOKEN",
    4:   "updated_at" : "2020-01-10T14:59:22Z",
>   5:   "visibility" : "all"
    6: }

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