You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The webhook-code-scanning-alert-reopened schema component sets its alert field as "nullable": true. This is likely a schema inaccuracy for the following reasons:
The alert is the subject of the webhook - something that doesn't exist cannot be 'reopened'.
All other webhook-code-scanning-alert-* webhook event payloads set alert as not-nullable.
Expected
The alert field of the webhook-code-scanning-alert-reopened schema should not be set as "nullable": true
Schema Inaccuracy
The
webhook-code-scanning-alert-reopened
schema component sets itsalert
field as"nullable": true
. This is likely a schema inaccuracy for the following reasons:alert
is the subject of the webhook - something that doesn't exist cannot be 'reopened'.webhook-code-scanning-alert-*
webhook event payloads setalert
as not-nullable.Expected
The
alert
field of thewebhook-code-scanning-alert-reopened
schema should not be set as"nullable": true
Reproduction Steps
None - observed by reviewing https://raw.githubusercontent.com/github/rest-api-description/refs/heads/main/descriptions/ghec/ghec.json and trying to use @octokit/openapi-webhooks-types-ghec (which depends on the schema data) in TypeScript.
The text was updated successfully, but these errors were encountered: