Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1assignments~1{assignment_id}~1accepted_assignments/get #5862

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the JSON ref for the example

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

Schema and example mismatch. The schema expects an array, but the example contains a single element.
Further, there are many numeric fields and boolean fields that are encoded as strings with a trailing comma.

Here's a snippet

>   1: {
    2:   "assignment" : {
    3:     "id" : "12,",
    4:     "public_repo" : "false,",
    5:     "title" : "Intro to Binaries",

Affected Schema Refs

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