Skip to content

Commit 3c73f48

Browse files
committed
fix tests
1 parent 7ea6df1 commit 3c73f48

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

lib/src/test/java/com/github/slamdev/openapispringgenerator/lib/generator/GeneratorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public void should_generate() {
2020

2121
@Test
2222
public void should_generate_list_with_singular_name() {
23-
generate(file("event-spec-v2.yaml"), "server", Paths.get("build/test-output"), true);
23+
generate(file("http-spec-v2.yaml"), "server", Paths.get("build/test-output"), true);
2424
}
2525

2626
private Path file(String name) {

lib/src/test/resources/event-spec-v2.yaml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,6 @@ paths:
1212
description: OK
1313
schema:
1414
"$ref": "#/definitions/UserEvent"
15-
/users/list:
16-
post:
17-
responses:
18-
'200':
19-
description: OK
20-
schema:
21-
"$ref": "#/definitions/UserRequest"
2215
definitions:
2316
UserEvent:
2417
type: object
25-
UserRequest:
26-
type: object
27-
properties:
28-
output:
29-
type: array
30-
items:
31-
type: string
32-
x-skipSingular: true
33-

lib/src/test/resources/http-spec-v2.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,25 @@ paths:
3030
type: array
3131
items:
3232
"$ref": "#/definitions/ResponseDto"
33+
/users/list:
34+
post:
35+
produces:
36+
- application/json
37+
responses:
38+
'200':
39+
description: OK
40+
schema:
41+
"$ref": "#/definitions/UserRequest"
3342
definitions:
3443
RequestDto:
3544
type: object
3645
ResponseDto:
3746
type: object
47+
UserRequest:
48+
type: object
49+
properties:
50+
output:
51+
type: array
52+
items:
53+
type: string
54+
x-skipSingular: true

0 commit comments

Comments
 (0)