Skip to content

[Schema Inaccuracy] Create a release POST /repos/{owner}/{repo}/releases response body an array, but schema says object #5737

@aSemy

Description

@aSemy

Schema Inaccuracy

The response body of the 'create a release' endpoint POST /repos/{owner}/{repo}/releases is described as an object, but it's actually an array.

Expected

Either the schema should describe the response type as an array, or the endpoint should return an object.

Reproduction Steps

https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28&versionId=free-pro-team%40latest&restPage=scripting-with-the-rest-api-and-javascript#create-a-release

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