acacode / acacode/swagger-typescript-api

maxItems \ minItems support?

Open
#489 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.1k
Forks
436
PR merge metrics
No merged PRs in 30d

Description

Hi! Any chance to generate more strict types when max\min items are defined?

**Example input scheme:**
```
point:
title: Point
maxItems: 2
minItems: 2
type: array
items:
type: number
```

*Current output:*
```
point: number[];
```

Expected:
```
point: [number, number];
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.