Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1orgs~1{org}~1members~1{username}~1codespaces~1{codespace_name}~1stop/post #5594

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

#/components/examples/codespace/value

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

Here's a snippet

  139:   "retention_period_minutes" : 43200,
  140:   "start_url" : "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-g4wpq6h95q/start",
  141:   "state" : "Available",
  142:   "stop_url" : "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-g4wpq6h95q/stop",
> 143:   "template" : null,
  144:   "updated_at" : "2021-10-14T00:53:32-06:00",
  145:   "url" : "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-g4wpq6h95q",
  146:   "web_url" : "https://monalisa-octocat-hello-world-g4wpq6h95q.github.dev"
  147: }

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