Skip to content

[Schema Inaccuracy] Pull request references "team-simple", which is missing a "parent" property #306

Open
@cbrunsdon

Description

@cbrunsdon

Schema Inaccuracy

A #/components/schema/pull-request references #/components/schema/team-simple in its requested_teams field.

"requested_teams": {
  "type": "array",
  "items": {
    "$ref": "#/components/schemas/team-simple"
  },
  "nullable": true
}

Team-simple lacks a "parent" definition, which can be clearly seen in an api response for PRs.

Parent exists on team, but not team-simple.

Expected

Parent added to the description for team-simple, as seen in team:

"parent": {
  "nullable": true,
  "allOf": [
    {
      "$ref": "#/components/schemas/team-simple"
    }
  ]
}

Reproduction Steps

curl https://api.github.com/repos/solidusio/solidus/pulls/3794

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions