Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hfhbd opened this issue Jun 18, 2024 · 0 comments

Comments

@hfhbd
Copy link

hfhbd commented Jun 18, 2024

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"
        ]
      }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants