Skip to content

[Schema Inaccuracy] Type boolean should not have an enum with true/false #3927

Open
@hfhbd

Description

@hfhbd

Schema Inaccuracy

Some boolean types have an enum with true and false, but by definition of boolean, the value can only be true or false, and there is no option to have other values.

Expected

Reproduction Steps

Check your api with this regex: "enum": \[\s*true and "enum": \[\s*false.

Activity

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

        @shiftkey@hfhbd

        Issue actions

          [Schema Inaccuracy] Type boolean should not have an enum with true/false · Issue #3927 · github/rest-api-description