Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Schema Inaccuracy] alert field of secret scanning alert webhook events have no required fields

Aperta
#4,807 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
openapi, typescript
Ambito
api

Direzione di ricerca

Inizia individuando il componente dello schema secret-scanning-alert-webhook e le descrizioni dei webhook webhook-secret-scanning-alert-* menzionate nell’issue. Usa l’esempio TypeScript con @octokit/openapi-webhooks-types-ghec per esaminare il tipo di evento generato; il lavoro è completato quando le proprietà di alert sono obbligatorie invece di includere undefined.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

feature

Schema Inaccuracy

The secret-scanning-alert-webhook schema component, used by the alert field of the webhook-secret-scanning-alert-* webhooks (e.g. webhook-secret-scanning-alert-created, does not have any required fields.

The alert is the subject of the webhook and is never optional. Many of the fields of the alert are primary keys or other required elements, such as number, created_at, updated_at, url, html_url, and many more.

Expected

The alert field of all of the webhook-secret-scanning-alert- webhooks should have required properties.

Reproduction Steps

Discovered by using TypeScript and reviewing the code of the ghec REST API descriptions. Using code, it can be discovered by:

import { webhooks } from '@octokit/openapi-webhooks-types-ghec'

type SecretScanningAlertCreatedEvent = webhooks['secret-scanning-alert-created']['post']['requestBody']['content']['application/json'];

const event: SecretScanningAlertCreatedEvent;
// Review type of event - all fields have a type that includes `| undefined`
Lingua principale
Nessun dato sulla lingua
Stelle
1.6k
Fork
342
Merge medio
2h 23m
PR unite (30g)
57

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di github/rest-api-description

Tutte le issue di github/rest-api-description

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.