acacode / acacode/swagger-typescript-api
any typings using refs to components params
- 主要語言
- TypeScript
- 星號
- 4.1k
- 分支
- 436
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Hi,
Codegen in cool ^^, but i have some problem
I'm trying to use next yaml
```
openapi: 3.0.2
components:
schemas:
Employee:
type: object
required:
- id
properties:
id:
type: string
head:
type: object
required:
- id
properties:
id:
$ref: '#/components/schemas/Employee/id'
```
And after generating i have this model
```
export interface Employee {
id?: string;
head?: { id?: any };
}
```
But I think it should turn out like this:
```
export interface Employee {
id?: string;
head?: { id: string };
}
```
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。