You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2adc64d
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: openapi-processor-core/src/test/groovy/io/openapiprocessor/core/converter/ApiConverterParameterGSpec.groovy
Copy file name to clipboardExpand all lines: openapi-processor-core/src/test/groovy/io/openapiprocessor/core/converter/DataTypeConverterArrayTypeMappingSpec.groovy
+78-78Lines changed: 78 additions & 78 deletions
Original file line number
Diff line number
Diff line change
@@ -27,18 +27,18 @@ class DataTypeConverterArrayTypeMappingSpec extends Specification {
27
27
""")
28
28
29
29
def openApi = parseApiBody ("""
30
-
|paths:
31
-
| /array-string:
32
-
| get:
33
-
| responses:
34
-
| '200':
35
-
| content:
36
-
| application/vnd.any:
37
-
| schema:
38
-
| type: array
39
-
| items:
40
-
| type: string
41
-
| description: none
30
+
paths:
31
+
/array-string:
32
+
get:
33
+
responses:
34
+
'200':
35
+
content:
36
+
application/vnd.any:
37
+
schema:
38
+
type: array
39
+
items:
40
+
type: string
41
+
description: none
42
42
""")
43
43
44
44
when:
@@ -66,20 +66,20 @@ class DataTypeConverterArrayTypeMappingSpec extends Specification {
66
66
""")
67
67
68
68
def openApi = parseApiBody ("""
69
-
|paths:
70
-
| /page:
71
-
| get:
72
-
| parameters:
73
-
| - in: query
74
-
| name: date
75
-
| required: false
76
-
| schema:
77
-
| type: array
78
-
| items:
79
-
| type: string
80
-
| responses:
81
-
| '204':
82
-
| description: none
69
+
paths:
70
+
/page:
71
+
get:
72
+
parameters:
73
+
- in: query
74
+
name: date
75
+
required: false
76
+
schema:
77
+
type: array
78
+
items:
79
+
type: string
80
+
responses:
81
+
'204':
82
+
description: none
83
83
""")
84
84
85
85
when:
@@ -95,20 +95,20 @@ class DataTypeConverterArrayTypeMappingSpec extends Specification {
95
95
def options = parseOptionsMapping(mappings)
96
96
97
97
def openApi = parseApiBody ("""
98
-
|paths:
99
-
| /foo:
100
-
| get:
101
-
| parameters:
102
-
| - in: query
103
-
| name: date
104
-
| required: false
105
-
| schema:
106
-
| type: array
107
-
| items:
108
-
| type: string
109
-
| responses:
110
-
| '204':
111
-
| description: none
98
+
paths:
99
+
/foo:
100
+
get:
101
+
parameters:
102
+
- in: query
103
+
name: date
104
+
required: false
105
+
schema:
106
+
type: array
107
+
items:
108
+
type: string
109
+
responses:
110
+
'204':
111
+
description: none
112
112
""")
113
113
114
114
when:
@@ -158,18 +158,18 @@ class DataTypeConverterArrayTypeMappingSpec extends Specification {
158
158
""")
159
159
160
160
def openApi = parseApiBody ("""
161
-
|paths:
162
-
| /foo:
163
-
| get:
164
-
| responses:
165
-
| '200':
166
-
| content:
167
-
| application/vnd.any:
168
-
| schema:
169
-
| type: array
170
-
| items:
171
-
| type: string
172
-
| description: none
161
+
paths:
162
+
/foo:
163
+
get:
164
+
responses:
165
+
'200':
166
+
content:
167
+
application/vnd.any:
168
+
schema:
169
+
type: array
170
+
items:
171
+
type: string
172
+
description: none
173
173
""")
174
174
175
175
when:
@@ -194,20 +194,20 @@ class DataTypeConverterArrayTypeMappingSpec extends Specification {
194
194
def options = parseOptionsMapping(mappings)
195
195
196
196
def openApi = parseApiBody ("""
197
-
|paths:
198
-
| /foobar:
199
-
| get:
200
-
| parameters:
201
-
| - in: query
202
-
| name: foobar
203
-
| required: false
204
-
| schema:
205
-
| type: array
206
-
| items:
207
-
| type: string
208
-
| responses:
209
-
| '204':
210
-
| description: empty
197
+
paths:
198
+
/foobar:
199
+
get:
200
+
parameters:
201
+
- in: query
202
+
name: foobar
203
+
required: false
204
+
schema:
205
+
type: array
206
+
items:
207
+
type: string
208
+
responses:
209
+
'204':
210
+
description: empty
211
211
""")
212
212
213
213
when:
@@ -247,18 +247,18 @@ class DataTypeConverterArrayTypeMappingSpec extends Specification {
0 commit comments