acacode / acacode/swagger-typescript-api
Query params of type array are not generated as array
- 主要言語
- TypeScript
- スター
- 4.1k
- フォーク
- 436
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hi,
when the query param is an array it does not get generated as array.
## Example of swagger.json
```json
"/api/integrations/{id}/files": {
"get": {
"tags": [
"integration-file-controller"
],
"summary": "getIntegrationFiles",
"description": "Returns a integration file list (pageable).",
"operationId": "getIntegrationFilesGET",
"produces": [
"application/json",
"application/xml"
],
"parameters": [
{
"name": "fileTypes",
"in": "query",
"description": "File types",
"required": false,
"type": "array",
"items": {
"type": "string",
"enum": [
"RESOURCE",
"ROUTE",
"PROPERTIES",
]
},
"collectionFormat": "multi",
"enum": [
"RESOURCE",
"ROUTE",
"PROPERTIES"
]
},
```
### Output
but the generated query is not an array:
```javascript
getIntegrationFilesGet: (
query?: {
/** File types */
fileTypes?: GetIntegrationFilesGetParamsFileTypes;
```
### Expected output:
```javascript
getIntegrationFilesGet: (
query?: {
/** File types */
fileTypes?: Array;
```
Thanks
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。