acacode / acacode/swagger-typescript-api

any typings using refs to components params

Đang mở
#264 3 bình luận 9 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
TypeScript
Star
4.1k
Fork
436
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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 };
}
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.