acacode / acacode/swagger-typescript-api

feat: external schemas

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

描述

# Description

In one of the last updates the handling of external schemas was changed. For example we have in many contracts a schema like
```yaml
"400":
description: "Bad Request"
content:
application/problem+json:
schema:
$ref: './common/default-responses.yaml#/components/schemas/ValidationProblem'
```

In old versions this was just ignored, now it is resolved and the types are added to every type file. Can this behaviours be configured?

Possible solutions:
1. shared type file (preferred) - it would be cool when these are only created into a shared file once instead of every file
2. just toggle this behaviour on/off

貢獻指南

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

評估

這個 Issue 還沒有評估資料。

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

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