Codegen ignores parameters declared on OpenAPI Path Items

Aperta
#139 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@iyuzhang ci sta già lavorando.

Dal 17/11/2026.

  • #140 di @iyuzhang — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
openapi, typescript
Ambito
tooling

Direzione di ricerca

Start by reading parseOpenApi and the parser and generated-code regression tests mentioned in the issue. Check how Path Item parameters combine with operation parameters, including overrides for matching (name, in) pairs. Done means generated schemas and dispatchers include shared path and query parameters, with path variables removed from request URLs; the issue says a focused fix is already ready.

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

Descrizione

parseOpenApi reads only operation.parameters, so parameters declared on a Path Item disappear from generated tool schemas and dispatchers.

For example, a GET at /projects/{projectId} with parameters: [{name: 'projectId', in: 'path', required: true, schema: {type: 'string'}}] on the path produces no projectId input. The dispatcher then leaves {projectId} in the URL. Shared query parameters are also omitted.

Path Item parameters should apply to each operation, with operation parameters overriding only the same (name, in) pair. I reproduced this with parser and generated-code regression tests and have a focused fix ready.

Lingua principale
TypeScript
Stelle
170
Fork
55
Merge medio
1g 5h
PR unite (30g)
25

Preparare l'ambiente

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 taskade/mcp

Tutte le issue di taskade/mcp

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.