acacode / acacode/swagger-typescript-api
prefixItems with the same minItems and maxItems value should generate tuples
Đang mở
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á.