Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1classrooms~1{classroom_id}~1assignments/get #5865

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the JSON ref for the example

#/components/examples/simple-classroom-assignment/value

Schema and example mismatch. The schema expects an array, but the example is a single object.
Also, some fields that are numbers and booleans have a trailing commas.

Here's a snippet

>   1: {
    2:   "accepted" : 100,
    3:   "classroom" : {
    4:     "id" : 1296269,
    5:     "name" : "Programming Elixir",

Affected Schema Refs

#/paths/~1classrooms~1{classroom_id}~1assignments/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