Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1classrooms/get #5863

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the JSON ref for the example

#/components/examples/simple-classroom/value

Schema and example mismatch. The schema expects a list. The example is a single object.
Also, archived contains a trailing comma.

Here's a snippet

>   1: {
    2:   "archived" : "false,",
    3:   "id" : 1296269,
    4:   "name" : "Programming Elixir",
    5:   "url" : "https://classroom.github.com/classrooms/1-programming-elixir"

Affected Schema Refs

#/paths/~1classrooms/get

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