acacode / acacode/swagger-typescript-api

Unable to use $ref in "paths"

Đang mở
#447 6 bình luận 2 reaction 1 người được giao Được @js2me nhận Xem trên GitHub
enhancement
Ngôn ngữ chính
TypeScript
Star
4.1k
Fork
436
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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? 🤔

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.