acacode / acacode/swagger-typescript-api

prefixItems with the same minItems and maxItems value should generate tuples

Đang mở
#285 0 bình luận 3 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ả

For example, if we want a list of lat, lon coordinates, this:
```yaml
type: array
items:
type: array
minItems: 2
maxItems: 2
prefixItems:
- number
- number
```
should generate:
```
[number, number][];
```
rather than the current:
```
any[][]
```

----

For now the closest we seem to be able to get is:
```yaml
type: array
items:
type: array
items:
type: number
```
generating:
```
number[][]
```

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.