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 #4728

Open
BenedictStrunk-otto opened this issue Apr 10, 2025 · 0 comments
Open

[Schema Inaccuracy] Code Scanning Alert #4728

BenedictStrunk-otto opened this issue Apr 10, 2025 · 0 comments

Comments

@BenedictStrunk-otto
Copy link

BenedictStrunk-otto commented Apr 10, 2025

Schema Inaccuracy

The Response Schema for the code scanning alert endpoint(for organizations) defines 4 valid values for classifications. When using this endpoint we sometimes get the value "documentation" which is not listed.

"code-scanning-alert-classification": {
        "type": "string",
        "description": "A classification of the file. For example to identify it as generated.",
        "nullable": true,
        "enum": [
          "source",
          "generated",
          "test",
          "library"
        ]
      },

Expected

The schema should include all values

"code-scanning-alert-classification": {
        "type": "string",
        "description": "A classification of the file. For example to identify it as generated.",
        "nullable": true,
        "enum": [
          "source",
          "generated",
          "test",
          "library",
          "documentation"
        ]
      },

Reproduction Steps

Due to the sensitive nature of the alerts I cannot provide an explicit example.

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