acacode / acacode/swagger-typescript-api

Unable to use $ref in "paths"

未关闭
#447 6 条评论 2 个 reaction 已指派 1 人 已被 @js2me 认领 在 GitHub 查看
enhancement
主要语言
TypeScript
星标
4.1k
派生
436
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。