Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1enterprises~1{enterprise}~1teams~1{team_slug}/patch #5873

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the JSON ref for the example

#/components/examples/enterprise-teams-items/value

Schema and example mismatch. The schema expects a single object, but the example is an array.

Here's a snippet

>   1: [ {
    2:   "id" : 1,
    3:   "name" : "Justice League",
    4:   "description" : "A great team.",
    5:   "slug" : "justice-league",

Affected Schema Refs

#/paths/~1enterprises~1{enterprise}~1teams~1{team_slug}/patch
#/paths/~1enterprises~1{enterprise}~1teams/post
#/paths/~1enterprises~1{enterprise}~1teams~1{team_slug}/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