acacode / acacode/swagger-typescript-api

$ref from JSON is not recognized and replaced by any

未關閉
#748 2 則留言 9 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
4.1k
分支
436
PR 合併指標
30 天內沒有已合併 PR

描述

In my yaml I have references to json models in the local files, like this

` schemas:
details:
$ref: 'models/details.json'
`

When I generate TS, I am gettin the property type as "any". No errors are shown. Just a missing type in a result.

When I describe details as Yaml in this file, then everything works as expected, and generator creates an interface. So it's something about the external JSON models that is not working. However the same setup works with another TS generator, so models themselves are correct.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。