Skip to content

Commit ea9df9a

Browse files
committed
https://github.com/OpenAPITools/openapi-generator/issues/7889
1 parent d584ac3 commit ea9df9a

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
openapi: 3.0.0
2+
info:
3+
version: 0.1.0-beta
4+
title: Bug 7889
5+
6+
paths:
7+
/articles:
8+
get:
9+
summary: Get articles
10+
operationId: GetArticles
11+
parameters:
12+
- name: category
13+
in: query
14+
description: Comma separated list of categories to filter
15+
required: false
16+
schema:
17+
# NOTE elm code generation for array type query params is buggy as of now.
18+
type: array
19+
items:
20+
$ref: "#/components/schemas/articleCategory"
21+
responses:
22+
"200":
23+
description: Articles
24+
components:
25+
schemas:
26+
articleCategory:
27+
type: string
28+
enum:
29+
- Travel
30+
- Business

cli/src/TestGenScript.elm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ run =
129129
|> OpenApi.Config.withInput binaryResponse
130130
|> OpenApi.Config.withInput nullableEnum
131131
|> OpenApi.Config.withInput cookieAuth
132+
|> OpenApi.Config.withInput (bug 7889)
132133
|> OpenApi.Config.withInput (bug 10398)
133134
|> OpenApi.Config.withInput (bug 16104)
134135
|> OpenApi.Config.withInput (bug 22119)

0 commit comments

Comments
 (0)