Skip to content

[Schema Inaccuracy] Boolean default value for string-type make_latest parameter in repos/update-release #5858

@lgacnik

Description

@lgacnik

Schema Inaccuracy

The repos/update-release operation has a boolean default value for a string-type field. The make_latest parameter is defined as type: "string" with enum ["true", "false", "legacy"], but has default: true (boolean) instead of default: "true" (string).

This is inconsistent with the repos/create-release operation which correctly uses the string default "true".

Expected

{
  "make_latest": {
    "type": "string",
    "enum": ["true", "false", "legacy"],
    "default": "true"
  }
}

Reproduction Steps

jq '.paths["/repos/{owner}/{repo}/releases/{release_id}"].patch.requestBody.content["application/json"].schema.properties.make_latest' descriptions/api.github.com/api.github.com.json

Shows "default": true (boolean) instead of "default": "true" (string).

Compare with the correct version:

jq '.paths["/repos/{owner}/{repo}/releases"].post.requestBody.content["application/json"].schema.properties.make_latest' descriptions/api.github.com/api.github.com.json

Shows "default": "true" (string).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions