Skip to content

[Schema Inaccuracy] code-scanning-alert-dismissed-reason enum contains null but is already nullable #3667

Open
@hfhbd

Description

@hfhbd

Schema Inaccuracy

You should not include the null value in the enum if the enum itself is nullable, like you do in other enum descriptions, eg state_reason.

Expected

"code-scanning-alert-dismissed-reason": {
        "type": "string",
        "description": "**Required when the state is dismissed.** The reason for dismissing or closing the alert.",
        "nullable": true,
        "enum": [
          "false positive",
          "won't fix",
          "used in tests"
        ]
      }

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