acacode / acacode/swagger-typescript-api

Unable to use $ref in "paths"

Aperta
#447 6 commenti 2 reazioni 1 assegnatario Rivendicata da @js2me Vedi su GitHub
enhancement
Lingua principale
TypeScript
Stelle
4.1k
Fork
436
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hello. I'm getting errors while generating typescript definitions for my api. Some paths are defined in other files, so I pass a `$ref` to them. Feel free to check out the minimal bug repro repository I made https://github.com/bartekczyz/swagger-typescript-api-bug-repro

I'm getting

```
TypeError: Cannot create property 'consumes' on string './paths/repro.yaml#/hello'
```

Is there a workaround I could use? 🤔

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.