acacode / acacode/swagger-typescript-api
prefixItems with the same minItems and maxItems value should generate tuples
Offen
enhancement
- Vorherrschende Sprache
- TypeScript
- Sterne
- 4.1k
- Forks
- 436
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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[][]
```
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.