acacode / acacode/swagger-typescript-api

prefixItems with the same minItems and maxItems value should generate tuples

オープン
#285 コメント 0 件 リアクション 3 件 担当者 0 名 GitHub で見る
enhancement
主要言語
TypeScript
スター
4.1k
フォーク
436
PR マージ指標
30日以内にマージされた PR はありません

説明

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[][]
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

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

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