Skip to content

[Schema Inaccuracy] create-release api param make_latest default value error #2496

Open
@yanyongyu

Description

@yanyongyu

Schema Inaccuracy

Docs: https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#create-a-release
Schema:

make_latest:
  type: string
  enum:
  - 'true'
  - 'false'
  - legacy
  default: true

default value of make_latest is a boolean value (not quoted).


update: the update-release api also has the error default value for make_latest.

Expected

make_latest:
  type: string
  enum:
  - 'true'
  - 'false'
  - legacy
  default: 'true'

Reproduction Steps

pass

Activity

hfhbd

hfhbd commented on Jun 17, 2024

@hfhbd

Any chance to update this field? It is truely wrong, and I need to fix this field manually everytime I fetch the latest API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ahoglund@hfhbd@yanyongyu

        Issue actions

          [Schema Inaccuracy] `create-release` api param `make_latest` default value error · Issue #2496 · github/rest-api-description