acacode / acacode/swagger-typescript-api

any typings using refs to components params

オープン
#264 コメント 3 件 リアクション 9 件 担当者 0 名 GitHub で見る
enhancement
主要言語
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。