@flock/wirespec 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js +294 -294
- package/kotlin/kotlin-kotlin-stdlib-js-ir.js +6 -6
- package/kotlin/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin/kotlin-openapi-bindings.js +3633 -3633
- package/kotlin/kotlin-openapi-bindings.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1238 -1238
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +979 -979
- package/kotlin/wirespec-cli.js +80 -80
- package/kotlin/wirespec-core.js +525 -268
- package/kotlin/wirespec-core.js.map +1 -1
- package/kotlin/wirespec-lib.js +38 -38
- package/kotlin/wirespec-openapi.js +720 -626
- package/kotlin/wirespec-openapi.js.map +1 -1
- package/package.json +1 -1
- package/sync-hashes/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.hash +1 -1
- package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.hash +1 -1
- package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.map.hash +1 -1
- package/sync-hashes/kotlin-openapi-bindings.js.hash +1 -1
- package/sync-hashes/kotlin-openapi-bindings.js.map.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +1 -1
- package/sync-hashes/wirespec-cli.js.hash +1 -1
- package/sync-hashes/wirespec-core.js.hash +1 -1
- package/sync-hashes/wirespec-core.js.map.hash +1 -1
- package/sync-hashes/wirespec-lib.js.hash +1 -1
- package/sync-hashes/wirespec-openapi.js.hash +1 -1
- package/sync-hashes/wirespec-openapi.js.map.hash +1 -1
|
@@ -28,29 +28,38 @@
|
|
|
28
28
|
var Default_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i1;
|
|
29
29
|
var Unit_getInstance = kotlin_kotlin.$_$.i3;
|
|
30
30
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
|
|
31
|
-
var
|
|
31
|
+
var plus = kotlin_kotlin.$_$.p5;
|
|
32
|
+
var ParameterLocation_QUERY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.t;
|
|
32
33
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.c4;
|
|
33
34
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.f;
|
|
34
|
-
var
|
|
35
|
-
var
|
|
35
|
+
var ParameterLocation_HEADER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s;
|
|
36
|
+
var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r;
|
|
36
37
|
var emptyList = kotlin_kotlin.$_$.r4;
|
|
37
38
|
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ta;
|
|
39
|
+
var NotImplementedError = kotlin_kotlin.$_$.u9;
|
|
40
|
+
var SchemaObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g;
|
|
38
41
|
var ReferenceObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d;
|
|
42
|
+
var Content = kotlin_community_flock_wirespec_compiler_core.$_$.g;
|
|
43
|
+
var Request = kotlin_community_flock_wirespec_compiler_core.$_$.i;
|
|
44
|
+
var addAll = kotlin_kotlin.$_$.z3;
|
|
45
|
+
var listOf = kotlin_kotlin.$_$.i5;
|
|
46
|
+
var emptyMap = kotlin_kotlin.$_$.s4;
|
|
47
|
+
var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b1;
|
|
48
|
+
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.j;
|
|
49
|
+
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.m;
|
|
50
|
+
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.s;
|
|
51
|
+
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.t;
|
|
39
52
|
var ParameterObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b;
|
|
40
53
|
var Ref = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e;
|
|
41
54
|
var toString = kotlin_kotlin.$_$.y7;
|
|
42
55
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.e1;
|
|
43
56
|
var to = kotlin_kotlin.$_$.xa;
|
|
44
|
-
var SchemaObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g;
|
|
45
|
-
var NotImplementedError = kotlin_kotlin.$_$.u9;
|
|
46
57
|
var BooleanObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a;
|
|
47
58
|
var ResponseObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f;
|
|
48
59
|
var Identifier = kotlin_community_flock_wirespec_compiler_core.$_$.o;
|
|
49
60
|
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.p;
|
|
50
61
|
var contains = kotlin_kotlin.$_$.d4;
|
|
51
62
|
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.r;
|
|
52
|
-
var listOf = kotlin_kotlin.$_$.i5;
|
|
53
|
-
var plus = kotlin_kotlin.$_$.p5;
|
|
54
63
|
var getStringHashCode = kotlin_kotlin.$_$.x6;
|
|
55
64
|
var hashCode = kotlin_kotlin.$_$.y6;
|
|
56
65
|
var THROW_CCE = kotlin_kotlin.$_$.y9;
|
|
@@ -79,15 +88,6 @@
|
|
|
79
88
|
var Path__hashCode_impl_go73kd = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.x;
|
|
80
89
|
var StatusCode = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h;
|
|
81
90
|
var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a1;
|
|
82
|
-
var emptyMap = kotlin_kotlin.$_$.s4;
|
|
83
|
-
var ParameterLocation_QUERY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.t;
|
|
84
|
-
var ParameterLocation_HEADER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s;
|
|
85
|
-
var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r;
|
|
86
|
-
var Content = kotlin_community_flock_wirespec_compiler_core.$_$.g;
|
|
87
|
-
var Request = kotlin_community_flock_wirespec_compiler_core.$_$.i;
|
|
88
|
-
var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b1;
|
|
89
|
-
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.j;
|
|
90
|
-
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.m;
|
|
91
91
|
var toMap = kotlin_kotlin.$_$.a6;
|
|
92
92
|
var Default_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j1;
|
|
93
93
|
var ParameterLocation_QUERY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.w;
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
function Common() {
|
|
129
129
|
Common_instance = this;
|
|
130
130
|
}
|
|
131
|
-
protoOf(Common).
|
|
131
|
+
protoOf(Common).x1s = function (arg) {
|
|
132
132
|
return joinToString(arg, '', VOID, VOID, VOID, VOID, Common$className$lambda);
|
|
133
133
|
};
|
|
134
134
|
var Common_instance;
|
|
@@ -140,14 +140,14 @@
|
|
|
140
140
|
function Companion() {
|
|
141
141
|
Companion_instance = this;
|
|
142
142
|
}
|
|
143
|
-
protoOf(Companion).
|
|
143
|
+
protoOf(Companion).y1s = function (json) {
|
|
144
144
|
var tmp$ret$1;
|
|
145
145
|
// Inline function 'kotlin.let' call
|
|
146
|
-
var tmp0_let = Default_getInstance().
|
|
146
|
+
var tmp0_let = Default_getInstance().e1a(json);
|
|
147
147
|
// Inline function 'kotlin.contracts.contract' call
|
|
148
148
|
var tmp$ret$0;
|
|
149
149
|
// Inline function 'community.flock.wirespec.openapi.v2.Companion.parse.<anonymous>' call
|
|
150
|
-
tmp$ret$0 = (new OpenApiParser(tmp0_let)).
|
|
150
|
+
tmp$ret$0 = (new OpenApiParser(tmp0_let)).a1t();
|
|
151
151
|
tmp$ret$1 = tmp$ret$0;
|
|
152
152
|
return tmp$ret$1;
|
|
153
153
|
};
|
|
@@ -158,16 +158,312 @@
|
|
|
158
158
|
return Companion_instance;
|
|
159
159
|
}
|
|
160
160
|
function parseEndpoints($this) {
|
|
161
|
-
|
|
161
|
+
var tmp$ret$48;
|
|
162
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
163
|
+
var tmp1_flatMap = $this.z1s_1.o1a_1;
|
|
164
|
+
var tmp$ret$47;
|
|
165
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
166
|
+
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
167
|
+
var tmp$ret$0;
|
|
168
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
169
|
+
tmp$ret$0 = tmp1_flatMap.u().c();
|
|
170
|
+
var tmp0_iterator = tmp$ret$0;
|
|
171
|
+
while (tmp0_iterator.d()) {
|
|
172
|
+
var element = tmp0_iterator.e();
|
|
173
|
+
var tmp$ret$46;
|
|
174
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>' call
|
|
175
|
+
var tmp$ret$1;
|
|
176
|
+
// Inline function 'kotlin.collections.component1' call
|
|
177
|
+
tmp$ret$1 = element.v().z1a_1;
|
|
178
|
+
var path = tmp$ret$1;
|
|
179
|
+
var tmp$ret$2;
|
|
180
|
+
// Inline function 'kotlin.collections.component2' call
|
|
181
|
+
tmp$ret$2 = element.w();
|
|
182
|
+
var pathItem = tmp$ret$2;
|
|
183
|
+
var tmp$ret$45;
|
|
184
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
185
|
+
var tmp1_flatMap_0 = toOperationList(pathItem, $this);
|
|
186
|
+
var tmp$ret$44;
|
|
187
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
188
|
+
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
189
|
+
var tmp$ret$3;
|
|
190
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
191
|
+
tmp$ret$3 = tmp1_flatMap_0.u().c();
|
|
192
|
+
var tmp0_iterator_0 = tmp$ret$3;
|
|
193
|
+
while (tmp0_iterator_0.d()) {
|
|
194
|
+
var element_0 = tmp0_iterator_0.e();
|
|
195
|
+
var tmp$ret$43;
|
|
196
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>' call
|
|
197
|
+
var tmp$ret$4;
|
|
198
|
+
// Inline function 'kotlin.collections.component1' call
|
|
199
|
+
tmp$ret$4 = element_0.v();
|
|
200
|
+
var method = tmp$ret$4;
|
|
201
|
+
var tmp$ret$5;
|
|
202
|
+
// Inline function 'kotlin.collections.component2' call
|
|
203
|
+
tmp$ret$5 = element_0.w();
|
|
204
|
+
var operation = tmp$ret$5;
|
|
205
|
+
var parameters = plus(resolveParameters_0(pathItem, $this), resolveParameters(operation, $this));
|
|
206
|
+
var segments = toSegments(path, $this, parameters);
|
|
207
|
+
var name = toName(operation, $this, segments, method);
|
|
208
|
+
var tmp$ret$11;
|
|
209
|
+
// Inline function 'kotlin.collections.map' call
|
|
210
|
+
var tmp$ret$8;
|
|
211
|
+
// Inline function 'kotlin.collections.filter' call
|
|
212
|
+
var tmp$ret$7;
|
|
213
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
214
|
+
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
215
|
+
var tmp0_iterator_1 = parameters.c();
|
|
216
|
+
while (tmp0_iterator_1.d()) {
|
|
217
|
+
var element_1 = tmp0_iterator_1.e();
|
|
218
|
+
var tmp$ret$6;
|
|
219
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
220
|
+
tmp$ret$6 = element_1.j1c_1.equals(ParameterLocation_QUERY_getInstance());
|
|
221
|
+
if (tmp$ret$6) {
|
|
222
|
+
tmp0_filterTo.a(element_1);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
tmp$ret$7 = tmp0_filterTo;
|
|
226
|
+
tmp$ret$8 = tmp$ret$7;
|
|
227
|
+
var tmp2_map = tmp$ret$8;
|
|
228
|
+
var tmp$ret$10;
|
|
229
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
230
|
+
var tmp1_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp2_map, 10));
|
|
231
|
+
var tmp0_iterator_2 = tmp2_map.c();
|
|
232
|
+
while (tmp0_iterator_2.d()) {
|
|
233
|
+
var item = tmp0_iterator_2.e();
|
|
234
|
+
var tmp$ret$9;
|
|
235
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
236
|
+
tmp$ret$9 = toField(item, $this);
|
|
237
|
+
tmp1_mapTo.a(tmp$ret$9);
|
|
238
|
+
}
|
|
239
|
+
tmp$ret$10 = tmp1_mapTo;
|
|
240
|
+
tmp$ret$11 = tmp$ret$10;
|
|
241
|
+
var query = tmp$ret$11;
|
|
242
|
+
var tmp$ret$17;
|
|
243
|
+
// Inline function 'kotlin.collections.map' call
|
|
244
|
+
var tmp$ret$14;
|
|
245
|
+
// Inline function 'kotlin.collections.filter' call
|
|
246
|
+
var tmp$ret$13;
|
|
247
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
248
|
+
var tmp3_filterTo = ArrayList_init_$Create$();
|
|
249
|
+
var tmp0_iterator_3 = parameters.c();
|
|
250
|
+
while (tmp0_iterator_3.d()) {
|
|
251
|
+
var element_2 = tmp0_iterator_3.e();
|
|
252
|
+
var tmp$ret$12;
|
|
253
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
254
|
+
tmp$ret$12 = element_2.j1c_1.equals(ParameterLocation_HEADER_getInstance());
|
|
255
|
+
if (tmp$ret$12) {
|
|
256
|
+
tmp3_filterTo.a(element_2);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
tmp$ret$13 = tmp3_filterTo;
|
|
260
|
+
tmp$ret$14 = tmp$ret$13;
|
|
261
|
+
var tmp5_map = tmp$ret$14;
|
|
262
|
+
var tmp$ret$16;
|
|
263
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
264
|
+
var tmp4_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp5_map, 10));
|
|
265
|
+
var tmp0_iterator_4 = tmp5_map.c();
|
|
266
|
+
while (tmp0_iterator_4.d()) {
|
|
267
|
+
var item_0 = tmp0_iterator_4.e();
|
|
268
|
+
var tmp$ret$15;
|
|
269
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
270
|
+
tmp$ret$15 = toField(item_0, $this);
|
|
271
|
+
tmp4_mapTo.a(tmp$ret$15);
|
|
272
|
+
}
|
|
273
|
+
tmp$ret$16 = tmp4_mapTo;
|
|
274
|
+
tmp$ret$17 = tmp$ret$16;
|
|
275
|
+
var headers = tmp$ret$17;
|
|
276
|
+
var tmp$ret$29;
|
|
277
|
+
// Inline function 'kotlin.collections.ifEmpty' call
|
|
278
|
+
var tmp$ret$27;
|
|
279
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
280
|
+
var tmp$ret$20;
|
|
281
|
+
// Inline function 'kotlin.collections.filter' call
|
|
282
|
+
var tmp$ret$19;
|
|
283
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
284
|
+
var tmp6_filterTo = ArrayList_init_$Create$();
|
|
285
|
+
var tmp0_iterator_5 = parameters.c();
|
|
286
|
+
while (tmp0_iterator_5.d()) {
|
|
287
|
+
var element_3 = tmp0_iterator_5.e();
|
|
288
|
+
var tmp$ret$18;
|
|
289
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
290
|
+
tmp$ret$18 = element_3.j1c_1.equals(ParameterLocation_BODY_getInstance());
|
|
291
|
+
if (tmp$ret$18) {
|
|
292
|
+
tmp6_filterTo.a(element_3);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
tmp$ret$19 = tmp6_filterTo;
|
|
296
|
+
tmp$ret$20 = tmp$ret$19;
|
|
297
|
+
var tmp8_flatMap = tmp$ret$20;
|
|
298
|
+
var tmp$ret$26;
|
|
299
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
300
|
+
var tmp7_flatMapTo = ArrayList_init_$Create$();
|
|
301
|
+
var tmp0_iterator_6 = tmp8_flatMap.c();
|
|
302
|
+
while (tmp0_iterator_6.d()) {
|
|
303
|
+
var element_4 = tmp0_iterator_6.e();
|
|
304
|
+
var tmp$ret$25;
|
|
305
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
306
|
+
var tmp$ret$24;
|
|
307
|
+
// Inline function 'kotlin.collections.map' call
|
|
308
|
+
var tmp$ret$21;
|
|
309
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
310
|
+
var tmp0_elvis_lhs = $this.z1s_1.m1a_1;
|
|
311
|
+
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.x1b_1 : tmp0_elvis_lhs;
|
|
312
|
+
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
313
|
+
tmp$ret$21 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
314
|
+
var tmp2_map_0 = tmp$ret$21;
|
|
315
|
+
var tmp$ret$23;
|
|
316
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
317
|
+
var tmp1_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp2_map_0, 10));
|
|
318
|
+
var tmp0_iterator_7 = tmp2_map_0.c();
|
|
319
|
+
while (tmp0_iterator_7.d()) {
|
|
320
|
+
var item_1 = tmp0_iterator_7.e();
|
|
321
|
+
var tmp$ret$22;
|
|
322
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
323
|
+
var schema = element_4.m1c_1;
|
|
324
|
+
var tmp;
|
|
325
|
+
if (schema instanceof ReferenceObject) {
|
|
326
|
+
tmp = toReference(schema, $this);
|
|
327
|
+
} else {
|
|
328
|
+
if (schema instanceof SchemaObject) {
|
|
329
|
+
tmp = toReference_0(schema, $this, Common_getInstance().x1s([name, 'RequestBody']));
|
|
330
|
+
} else {
|
|
331
|
+
if (schema == null) {
|
|
332
|
+
throw new NotImplementedError();
|
|
333
|
+
} else {
|
|
334
|
+
noWhenBranchMatchedException();
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
var tmp_0 = tmp;
|
|
339
|
+
var tmp0_elvis_lhs_1 = element_4.l1c_1;
|
|
340
|
+
tmp$ret$22 = new Request(new Content(item_1, tmp_0, tmp0_elvis_lhs_1 == null ? false : tmp0_elvis_lhs_1));
|
|
341
|
+
tmp1_mapTo_0.a(tmp$ret$22);
|
|
342
|
+
}
|
|
343
|
+
tmp$ret$23 = tmp1_mapTo_0;
|
|
344
|
+
tmp$ret$24 = tmp$ret$23;
|
|
345
|
+
tmp$ret$25 = tmp$ret$24;
|
|
346
|
+
var list = tmp$ret$25;
|
|
347
|
+
addAll(tmp7_flatMapTo, list);
|
|
348
|
+
}
|
|
349
|
+
tmp$ret$26 = tmp7_flatMapTo;
|
|
350
|
+
tmp$ret$27 = tmp$ret$26;
|
|
351
|
+
var tmp9_ifEmpty = tmp$ret$27;
|
|
352
|
+
var tmp_1;
|
|
353
|
+
if (tmp9_ifEmpty.g()) {
|
|
354
|
+
var tmp$ret$28;
|
|
355
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
356
|
+
tmp$ret$28 = listOf(new Request(null));
|
|
357
|
+
tmp_1 = tmp$ret$28;
|
|
358
|
+
} else {
|
|
359
|
+
tmp_1 = tmp9_ifEmpty;
|
|
360
|
+
}
|
|
361
|
+
tmp$ret$29 = tmp_1;
|
|
362
|
+
var requests = tmp$ret$29;
|
|
363
|
+
var tmp$ret$42;
|
|
364
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
365
|
+
var tmp$ret$30;
|
|
366
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
367
|
+
var tmp10_orEmpty = operation.a1c_1;
|
|
368
|
+
var tmp0_elvis_lhs_2 = tmp10_orEmpty;
|
|
369
|
+
tmp$ret$30 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
370
|
+
var tmp12_flatMap = tmp$ret$30;
|
|
371
|
+
var tmp$ret$41;
|
|
372
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
373
|
+
var tmp11_flatMapTo = ArrayList_init_$Create$();
|
|
374
|
+
var tmp$ret$31;
|
|
375
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
376
|
+
tmp$ret$31 = tmp12_flatMap.u().c();
|
|
377
|
+
var tmp0_iterator_8 = tmp$ret$31;
|
|
378
|
+
while (tmp0_iterator_8.d()) {
|
|
379
|
+
var element_5 = tmp0_iterator_8.e();
|
|
380
|
+
var tmp$ret$40;
|
|
381
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
382
|
+
var tmp$ret$32;
|
|
383
|
+
// Inline function 'kotlin.collections.component1' call
|
|
384
|
+
tmp$ret$32 = element_5.v().s1e_1;
|
|
385
|
+
var status = tmp$ret$32;
|
|
386
|
+
var tmp$ret$33;
|
|
387
|
+
// Inline function 'kotlin.collections.component2' call
|
|
388
|
+
tmp$ret$33 = element_5.w();
|
|
389
|
+
var res = tmp$ret$33;
|
|
390
|
+
var tmp$ret$39;
|
|
391
|
+
// Inline function 'kotlin.collections.map' call
|
|
392
|
+
var tmp$ret$34;
|
|
393
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
394
|
+
var tmp0_elvis_lhs_3 = $this.z1s_1.n1a_1;
|
|
395
|
+
var tmp0_orEmpty_0 = tmp0_elvis_lhs_3 == null ? operation.y1b_1 : tmp0_elvis_lhs_3;
|
|
396
|
+
var tmp0_elvis_lhs_4 = tmp0_orEmpty_0;
|
|
397
|
+
tmp$ret$34 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
398
|
+
var tmp2_map_1 = tmp$ret$34;
|
|
399
|
+
var tmp$ret$38;
|
|
400
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
401
|
+
var tmp1_mapTo_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp2_map_1, 10));
|
|
402
|
+
var tmp0_iterator_9 = tmp2_map_1.c();
|
|
403
|
+
while (tmp0_iterator_9.d()) {
|
|
404
|
+
var item_2 = tmp0_iterator_9.e();
|
|
405
|
+
var tmp$ret$37;
|
|
406
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
407
|
+
var tmp_2 = _StatusCode___get_value__impl__we50mu(status);
|
|
408
|
+
var tmp0_safe_receiver = resolve_1(res, $this).w1e_1;
|
|
409
|
+
var tmp_3;
|
|
410
|
+
if (tmp0_safe_receiver == null) {
|
|
411
|
+
tmp_3 = null;
|
|
412
|
+
} else {
|
|
413
|
+
var tmp$ret$36;
|
|
414
|
+
// Inline function 'kotlin.let' call
|
|
415
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
416
|
+
var tmp$ret$35;
|
|
417
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
418
|
+
var tmp0_subject = tmp0_safe_receiver;
|
|
419
|
+
var tmp_4;
|
|
420
|
+
if (tmp0_subject instanceof ReferenceObject) {
|
|
421
|
+
tmp_4 = toReference(tmp0_safe_receiver, $this);
|
|
422
|
+
} else {
|
|
423
|
+
if (tmp0_subject instanceof SchemaObject) {
|
|
424
|
+
tmp_4 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().x1s([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']));
|
|
425
|
+
} else {
|
|
426
|
+
noWhenBranchMatchedException();
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
tmp$ret$35 = new Content(item_2, tmp_4, false);
|
|
430
|
+
tmp$ret$36 = tmp$ret$35;
|
|
431
|
+
tmp_3 = tmp$ret$36;
|
|
432
|
+
}
|
|
433
|
+
tmp$ret$37 = new Response(tmp_2, tmp_3);
|
|
434
|
+
tmp1_mapTo_1.a(tmp$ret$37);
|
|
435
|
+
}
|
|
436
|
+
tmp$ret$38 = tmp1_mapTo_1;
|
|
437
|
+
tmp$ret$39 = tmp$ret$38;
|
|
438
|
+
tmp$ret$40 = tmp$ret$39;
|
|
439
|
+
var list_0 = tmp$ret$40;
|
|
440
|
+
addAll(tmp11_flatMapTo, list_0);
|
|
441
|
+
}
|
|
442
|
+
tmp$ret$41 = tmp11_flatMapTo;
|
|
443
|
+
tmp$ret$42 = tmp$ret$41;
|
|
444
|
+
var responses = tmp$ret$42;
|
|
445
|
+
tmp$ret$43 = listOf(new Endpoint(name, method, segments, query, headers, emptyList(), requests, responses));
|
|
446
|
+
var list_1 = tmp$ret$43;
|
|
447
|
+
addAll(tmp0_flatMapTo_0, list_1);
|
|
448
|
+
}
|
|
449
|
+
tmp$ret$44 = tmp0_flatMapTo_0;
|
|
450
|
+
tmp$ret$45 = tmp$ret$44;
|
|
451
|
+
tmp$ret$46 = tmp$ret$45;
|
|
452
|
+
var list_2 = tmp$ret$46;
|
|
453
|
+
addAll(tmp0_flatMapTo, list_2);
|
|
454
|
+
}
|
|
455
|
+
tmp$ret$47 = tmp0_flatMapTo;
|
|
456
|
+
tmp$ret$48 = tmp$ret$47;
|
|
457
|
+
return tmp$ret$48;
|
|
162
458
|
}
|
|
163
459
|
function parseRequestBody($this) {
|
|
164
|
-
return flatMapRequests($this.
|
|
460
|
+
return flatMapRequests($this.z1s_1, $this, OpenApiParser$parseRequestBody$lambda($this));
|
|
165
461
|
}
|
|
166
462
|
function parseResponseBody($this) {
|
|
167
|
-
return flatMapResponses($this.
|
|
463
|
+
return flatMapResponses($this.z1s_1, $this, OpenApiParser$parseResponseBody$lambda($this));
|
|
168
464
|
}
|
|
169
465
|
function parseDefinitions($this) {
|
|
170
|
-
var tmp0_safe_receiver = $this.
|
|
466
|
+
var tmp0_safe_receiver = $this.z1s_1.p1a_1;
|
|
171
467
|
var tmp;
|
|
172
468
|
if (tmp0_safe_receiver == null) {
|
|
173
469
|
tmp = null;
|
|
@@ -185,7 +481,7 @@
|
|
|
185
481
|
var element = tmp0_iterator.e();
|
|
186
482
|
var tmp$ret$1;
|
|
187
483
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
188
|
-
tmp$ret$1 = flatten(element.w(), $this, Common_getInstance().
|
|
484
|
+
tmp$ret$1 = flatten(element.w(), $this, Common_getInstance().x1s([element.v()]));
|
|
189
485
|
var list = tmp$ret$1;
|
|
190
486
|
addAll(tmp0_flatMapTo, list);
|
|
191
487
|
}
|
|
@@ -208,7 +504,7 @@
|
|
|
208
504
|
var item = tmp0_iterator_0.e();
|
|
209
505
|
var tmp$ret$4;
|
|
210
506
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
211
|
-
tmp$ret$4 = new Type(item.
|
|
507
|
+
tmp$ret$4 = new Type(item.b1t_1, new Shape(item.c1t_1));
|
|
212
508
|
tmp1_mapTo.a(tmp$ret$4);
|
|
213
509
|
}
|
|
214
510
|
tmp$ret$5 = tmp1_mapTo;
|
|
@@ -223,7 +519,7 @@
|
|
|
223
519
|
// Inline function 'kotlin.collections.map' call
|
|
224
520
|
var tmp$ret$0;
|
|
225
521
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
226
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
522
|
+
var tmp0_orEmpty = _this__u8e3s4.z1b_1;
|
|
227
523
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
228
524
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
229
525
|
var tmp2_map = tmp$ret$0;
|
|
@@ -258,7 +554,7 @@
|
|
|
258
554
|
// Inline function 'kotlin.collections.map' call
|
|
259
555
|
var tmp$ret$0;
|
|
260
556
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
261
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
557
|
+
var tmp0_orEmpty = _this__u8e3s4.o1b_1;
|
|
262
558
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
263
559
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
264
560
|
var tmp2_map = tmp$ret$0;
|
|
@@ -289,11 +585,11 @@
|
|
|
289
585
|
return tmp$ret$3;
|
|
290
586
|
}
|
|
291
587
|
function resolveParameterObject(_this__u8e3s4, $this) {
|
|
292
|
-
var tmp0_safe_receiver = $this.
|
|
588
|
+
var tmp0_safe_receiver = $this.z1s_1.q1a_1;
|
|
293
589
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
|
|
294
590
|
var tmp;
|
|
295
591
|
if (tmp1_elvis_lhs == null) {
|
|
296
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
592
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.i1d_1);
|
|
297
593
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
298
594
|
} else {
|
|
299
595
|
tmp = tmp1_elvis_lhs;
|
|
@@ -301,11 +597,11 @@
|
|
|
301
597
|
return tmp;
|
|
302
598
|
}
|
|
303
599
|
function resolveResponseObject(_this__u8e3s4, $this) {
|
|
304
|
-
var tmp0_safe_receiver = $this.
|
|
600
|
+
var tmp0_safe_receiver = $this.z1s_1.r1a_1;
|
|
305
601
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
|
|
306
602
|
var tmp;
|
|
307
603
|
if (tmp1_elvis_lhs == null) {
|
|
308
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
604
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.i1d_1);
|
|
309
605
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
310
606
|
} else {
|
|
311
607
|
tmp = tmp1_elvis_lhs;
|
|
@@ -313,7 +609,7 @@
|
|
|
313
609
|
return tmp;
|
|
314
610
|
}
|
|
315
611
|
function resolveSchemaObject(_this__u8e3s4, $this) {
|
|
316
|
-
var tmp0_safe_receiver = $this.
|
|
612
|
+
var tmp0_safe_receiver = $this.z1s_1.p1a_1;
|
|
317
613
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
|
|
318
614
|
var tmp;
|
|
319
615
|
if (tmp1_safe_receiver == null) {
|
|
@@ -331,7 +627,7 @@
|
|
|
331
627
|
var tmp2_elvis_lhs = tmp;
|
|
332
628
|
var tmp_0;
|
|
333
629
|
if (tmp2_elvis_lhs == null) {
|
|
334
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
630
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.i1d_1);
|
|
335
631
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
336
632
|
} else {
|
|
337
633
|
tmp_0 = tmp2_elvis_lhs;
|
|
@@ -399,13 +695,13 @@
|
|
|
399
695
|
return tmp;
|
|
400
696
|
}
|
|
401
697
|
function flatten(_this__u8e3s4, $this, name) {
|
|
402
|
-
var tmp0_subject = _this__u8e3s4.
|
|
698
|
+
var tmp0_subject = _this__u8e3s4.k1e_1;
|
|
403
699
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
404
700
|
var tmp;
|
|
405
701
|
switch (tmp0) {
|
|
406
702
|
case -1:
|
|
407
703
|
case 5:
|
|
408
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
704
|
+
var tmp1_safe_receiver = _this__u8e3s4.n1e_1;
|
|
409
705
|
var tmp_0;
|
|
410
706
|
if (tmp1_safe_receiver == null) {
|
|
411
707
|
tmp_0 = null;
|
|
@@ -434,9 +730,9 @@
|
|
|
434
730
|
var tmp0_subject_0 = value;
|
|
435
731
|
var tmp_1;
|
|
436
732
|
if (tmp0_subject_0 instanceof SchemaObject) {
|
|
437
|
-
var tmp1_subject = value.
|
|
733
|
+
var tmp1_subject = value.k1e_1;
|
|
438
734
|
var tmp0_0 = tmp1_subject == null ? -1 : tmp1_subject.q4_1;
|
|
439
|
-
tmp_1 = tmp0_0 === 4 ? emptyList() : flatten(value, $this, Common_getInstance().
|
|
735
|
+
tmp_1 = tmp0_0 === 4 ? emptyList() : flatten(value, $this, Common_getInstance().x1s([name, key]));
|
|
440
736
|
} else {
|
|
441
737
|
if (tmp0_subject_0 instanceof ReferenceObject) {
|
|
442
738
|
tmp_1 = emptyList();
|
|
@@ -455,10 +751,10 @@
|
|
|
455
751
|
|
|
456
752
|
var tmp2_elvis_lhs = tmp_0;
|
|
457
753
|
var fields = tmp2_elvis_lhs == null ? emptyList() : tmp2_elvis_lhs;
|
|
458
|
-
var tmp3_subject = _this__u8e3s4.
|
|
754
|
+
var tmp3_subject = _this__u8e3s4.o1e_1;
|
|
459
755
|
var tmp_2;
|
|
460
756
|
if (tmp3_subject == null) {
|
|
461
|
-
var tmp4_safe_receiver = _this__u8e3s4.
|
|
757
|
+
var tmp4_safe_receiver = _this__u8e3s4.n1e_1;
|
|
462
758
|
var tmp_3;
|
|
463
759
|
if (tmp4_safe_receiver == null) {
|
|
464
760
|
tmp_3 = null;
|
|
@@ -488,15 +784,15 @@
|
|
|
488
784
|
var tmp_4;
|
|
489
785
|
if (tmp0_subject_1 instanceof SchemaObject) {
|
|
490
786
|
var tmp_5 = new Identifier(key_0);
|
|
491
|
-
var tmp_6 = toReference_0(value_0, $this, Common_getInstance().
|
|
492
|
-
var tmp1_safe_receiver_0 = _this__u8e3s4.
|
|
787
|
+
var tmp_6 = toReference_0(value_0, $this, Common_getInstance().x1s([name, key_0]));
|
|
788
|
+
var tmp1_safe_receiver_0 = _this__u8e3s4.i1e_1;
|
|
493
789
|
var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : contains(tmp1_safe_receiver_0, key_0);
|
|
494
790
|
tmp_4 = new Field(tmp_5, tmp_6, !(tmp2_elvis_lhs_0 == null ? false : tmp2_elvis_lhs_0));
|
|
495
791
|
} else {
|
|
496
792
|
if (tmp0_subject_1 instanceof ReferenceObject) {
|
|
497
793
|
var tmp_7 = new Identifier(key_0);
|
|
498
794
|
var tmp_8 = new Custom(getReference(value_0, $this), false);
|
|
499
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
795
|
+
var tmp3_safe_receiver = _this__u8e3s4.i1e_1;
|
|
500
796
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : contains(tmp3_safe_receiver, key_0);
|
|
501
797
|
tmp_4 = new Field(tmp_7, tmp_8, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
502
798
|
} else {
|
|
@@ -520,7 +816,7 @@
|
|
|
520
816
|
tmp = plus(schema, fields);
|
|
521
817
|
break;
|
|
522
818
|
case 4:
|
|
523
|
-
var tmp6_safe_receiver = _this__u8e3s4.
|
|
819
|
+
var tmp6_safe_receiver = _this__u8e3s4.l1e_1;
|
|
524
820
|
var tmp_9;
|
|
525
821
|
if (tmp6_safe_receiver == null) {
|
|
526
822
|
tmp_9 = null;
|
|
@@ -536,8 +832,8 @@
|
|
|
536
832
|
tmp_10 = emptyList();
|
|
537
833
|
} else {
|
|
538
834
|
if (tmp0_subject_2 instanceof SchemaObject) {
|
|
539
|
-
var tmp1_safe_receiver_1 = tmp6_safe_receiver.
|
|
540
|
-
tmp_10 = tmp1_safe_receiver_1 == null ? null : flatten_0(tmp1_safe_receiver_1, $this, Common_getInstance().
|
|
835
|
+
var tmp1_safe_receiver_1 = tmp6_safe_receiver.l1e_1;
|
|
836
|
+
tmp_10 = tmp1_safe_receiver_1 == null ? null : flatten_0(tmp1_safe_receiver_1, $this, Common_getInstance().x1s([name, 'array']));
|
|
541
837
|
} else {
|
|
542
838
|
noWhenBranchMatchedException();
|
|
543
839
|
}
|
|
@@ -571,15 +867,15 @@
|
|
|
571
867
|
return tmp;
|
|
572
868
|
}
|
|
573
869
|
function SimpleSchema(name, properties) {
|
|
574
|
-
this.
|
|
575
|
-
this.
|
|
870
|
+
this.b1t_1 = name;
|
|
871
|
+
this.c1t_1 = properties;
|
|
576
872
|
}
|
|
577
873
|
protoOf(SimpleSchema).toString = function () {
|
|
578
|
-
return 'SimpleSchema(name=' + this.
|
|
874
|
+
return 'SimpleSchema(name=' + this.b1t_1 + ', properties=' + this.c1t_1 + ')';
|
|
579
875
|
};
|
|
580
876
|
protoOf(SimpleSchema).hashCode = function () {
|
|
581
|
-
var result = getStringHashCode(this.
|
|
582
|
-
result = imul(result, 31) + hashCode(this.
|
|
877
|
+
var result = getStringHashCode(this.b1t_1);
|
|
878
|
+
result = imul(result, 31) + hashCode(this.c1t_1) | 0;
|
|
583
879
|
return result;
|
|
584
880
|
};
|
|
585
881
|
protoOf(SimpleSchema).equals = function (other) {
|
|
@@ -588,69 +884,70 @@
|
|
|
588
884
|
if (!(other instanceof SimpleSchema))
|
|
589
885
|
return false;
|
|
590
886
|
var tmp0_other_with_cast = other instanceof SimpleSchema ? other : THROW_CCE();
|
|
591
|
-
if (!(this.
|
|
887
|
+
if (!(this.b1t_1 === tmp0_other_with_cast.b1t_1))
|
|
592
888
|
return false;
|
|
593
|
-
if (!equals(this.
|
|
889
|
+
if (!equals(this.c1t_1, tmp0_other_with_cast.c1t_1))
|
|
594
890
|
return false;
|
|
595
891
|
return true;
|
|
596
892
|
};
|
|
597
893
|
function toReference(_this__u8e3s4, $this) {
|
|
598
|
-
var
|
|
894
|
+
var tmp$ret$1;
|
|
895
|
+
// Inline function 'kotlin.let' call
|
|
896
|
+
var tmp0_let = resolveSchemaObject(_this__u8e3s4, $this);
|
|
897
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
898
|
+
var tmp$ret$0;
|
|
899
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
|
|
900
|
+
var referencingObject = tmp0_let.i3();
|
|
901
|
+
var schema = tmp0_let.j3();
|
|
902
|
+
var additionalProperties = schema.o1e_1;
|
|
599
903
|
var tmp;
|
|
600
|
-
if (
|
|
601
|
-
|
|
602
|
-
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
904
|
+
if (additionalProperties instanceof BooleanObject) {
|
|
905
|
+
throw new NotImplementedError('An operation is not implemented: additionalProperties = true not implemented');
|
|
603
906
|
} else {
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
var tmp1_container = tmp;
|
|
607
|
-
var referencingObject = tmp1_container.i3();
|
|
608
|
-
var schema = tmp1_container.j3();
|
|
609
|
-
if (!(schema.m1e_1 == null)) {
|
|
610
|
-
var additionalProperties = schema.m1e_1;
|
|
611
|
-
var tmp_0;
|
|
612
|
-
if (additionalProperties instanceof BooleanObject) {
|
|
613
|
-
throw new NotImplementedError();
|
|
907
|
+
if (additionalProperties instanceof ReferenceObject) {
|
|
908
|
+
tmp = new Custom(Common_getInstance().x1s([getReference(additionalProperties, $this)]), false, true);
|
|
614
909
|
} else {
|
|
615
|
-
if (additionalProperties instanceof
|
|
616
|
-
|
|
910
|
+
if (additionalProperties instanceof SchemaObject) {
|
|
911
|
+
tmp = new Custom(Common_getInstance().x1s([getReference(referencingObject, $this)]), false, true);
|
|
617
912
|
} else {
|
|
618
|
-
if (additionalProperties
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
913
|
+
if (additionalProperties == null) {
|
|
914
|
+
var tmp0_subject = schema.k1e_1;
|
|
915
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
916
|
+
var tmp_0;
|
|
917
|
+
if (tmp0 === 4) {
|
|
918
|
+
var items = schema.l1e_1;
|
|
919
|
+
var tmp_1;
|
|
920
|
+
if (items instanceof ReferenceObject) {
|
|
921
|
+
tmp_1 = new Custom(Common_getInstance().x1s([getReference(items, $this)]), true);
|
|
922
|
+
} else {
|
|
923
|
+
if (items instanceof SchemaObject) {
|
|
924
|
+
tmp_1 = new Custom(Common_getInstance().x1s([getReference(referencingObject, $this), 'Array']), true);
|
|
925
|
+
} else {
|
|
926
|
+
if (items == null) {
|
|
927
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.i1d_1);
|
|
928
|
+
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
929
|
+
} else {
|
|
930
|
+
noWhenBranchMatchedException();
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
tmp_0 = tmp_1;
|
|
623
935
|
} else {
|
|
624
|
-
|
|
936
|
+
tmp_0 = new Custom(Common_getInstance().x1s([getReference(referencingObject, $this)]), false);
|
|
625
937
|
}
|
|
938
|
+
tmp = tmp_0;
|
|
939
|
+
} else {
|
|
940
|
+
noWhenBranchMatchedException();
|
|
626
941
|
}
|
|
627
942
|
}
|
|
628
943
|
}
|
|
629
|
-
return tmp_0;
|
|
630
|
-
}
|
|
631
|
-
var tmp2_subject = schema.i1e_1;
|
|
632
|
-
var tmp0 = tmp2_subject == null ? -1 : tmp2_subject.q4_1;
|
|
633
|
-
var tmp_1;
|
|
634
|
-
if (tmp0 === 4) {
|
|
635
|
-
var items = schema.j1e_1;
|
|
636
|
-
var tmp_2;
|
|
637
|
-
if (items instanceof ReferenceObject) {
|
|
638
|
-
tmp_2 = new Custom(Common_getInstance().v1s([getReference(items, $this)]), true);
|
|
639
|
-
} else {
|
|
640
|
-
if (items instanceof SchemaObject) {
|
|
641
|
-
tmp_2 = new Custom(Common_getInstance().v1s([getReference(referencingObject, $this), 'Array']), true);
|
|
642
|
-
} else {
|
|
643
|
-
throw new NotImplementedError();
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
tmp_1 = tmp_2;
|
|
647
|
-
} else {
|
|
648
|
-
tmp_1 = new Custom(Common_getInstance().v1s([getReference(referencingObject, $this)]), false);
|
|
649
944
|
}
|
|
650
|
-
|
|
945
|
+
tmp$ret$0 = tmp;
|
|
946
|
+
tmp$ret$1 = tmp$ret$0;
|
|
947
|
+
return tmp$ret$1;
|
|
651
948
|
}
|
|
652
949
|
function toReference_0(_this__u8e3s4, $this, name) {
|
|
653
|
-
var type = _this__u8e3s4.
|
|
950
|
+
var type = _this__u8e3s4.k1e_1;
|
|
654
951
|
var tmp0 = type == null ? -1 : type.q4_1;
|
|
655
952
|
var tmp;
|
|
656
953
|
switch (tmp0) {
|
|
@@ -662,27 +959,42 @@
|
|
|
662
959
|
break;
|
|
663
960
|
case -1:
|
|
664
961
|
case 5:
|
|
665
|
-
|
|
962
|
+
var tmp0_safe_receiver = _this__u8e3s4.o1e_1;
|
|
963
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_0(tmp0_safe_receiver, $this);
|
|
964
|
+
var t = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k1e_1;
|
|
965
|
+
var tmp0_0 = t == null ? -1 : t.q4_1;
|
|
966
|
+
switch (tmp0_0) {
|
|
967
|
+
case 0:
|
|
968
|
+
case 2:
|
|
969
|
+
case 1:
|
|
970
|
+
case 3:
|
|
971
|
+
tmp = new Primitive(toPrimitive(t, $this), false, !(_this__u8e3s4.o1e_1 == null));
|
|
972
|
+
break;
|
|
973
|
+
default:
|
|
974
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.o1e_1 == null));
|
|
975
|
+
break;
|
|
976
|
+
}
|
|
977
|
+
|
|
666
978
|
break;
|
|
667
979
|
case 4:
|
|
668
|
-
var
|
|
669
|
-
var
|
|
670
|
-
var
|
|
671
|
-
var
|
|
672
|
-
var
|
|
980
|
+
var tmp2_safe_receiver = _this__u8e3s4.l1e_1;
|
|
981
|
+
var resolve_1 = tmp2_safe_receiver == null ? null : resolve(tmp2_safe_receiver, $this);
|
|
982
|
+
var tmp3_safe_receiver = resolve_1;
|
|
983
|
+
var t_0 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.k1e_1;
|
|
984
|
+
var tmp0_1 = t_0 == null ? -1 : t_0.q4_1;
|
|
673
985
|
var tmp_0;
|
|
674
|
-
switch (
|
|
986
|
+
switch (tmp0_1) {
|
|
675
987
|
case 0:
|
|
676
988
|
case 1:
|
|
677
989
|
case 2:
|
|
678
990
|
case 3:
|
|
679
|
-
tmp_0 = new Primitive(toPrimitive(
|
|
991
|
+
tmp_0 = new Primitive(toPrimitive(t_0, $this), true);
|
|
680
992
|
break;
|
|
681
993
|
default:
|
|
682
|
-
var it = _this__u8e3s4.
|
|
994
|
+
var it = _this__u8e3s4.l1e_1;
|
|
683
995
|
var tmp_1;
|
|
684
996
|
if (it instanceof ReferenceObject) {
|
|
685
|
-
tmp_1 = toReference(it, $this).
|
|
997
|
+
tmp_1 = toReference(it, $this).dl(VOID, true);
|
|
686
998
|
} else {
|
|
687
999
|
if (it instanceof SchemaObject) {
|
|
688
1000
|
tmp_1 = toReference_0(it, $this, name);
|
|
@@ -703,7 +1015,7 @@
|
|
|
703
1015
|
tmp = tmp_0;
|
|
704
1016
|
break;
|
|
705
1017
|
case 6:
|
|
706
|
-
throw new NotImplementedError();
|
|
1018
|
+
throw new NotImplementedError('An operation is not implemented: Type file not implemented');
|
|
707
1019
|
default:
|
|
708
1020
|
noWhenBranchMatchedException();
|
|
709
1021
|
break;
|
|
@@ -730,28 +1042,28 @@
|
|
|
730
1042
|
var tmp;
|
|
731
1043
|
switch (tmp0) {
|
|
732
1044
|
case 0:
|
|
733
|
-
tmp = _this__u8e3s4.
|
|
1045
|
+
tmp = _this__u8e3s4.f1b_1;
|
|
734
1046
|
break;
|
|
735
1047
|
case 1:
|
|
736
|
-
tmp = _this__u8e3s4.
|
|
1048
|
+
tmp = _this__u8e3s4.h1b_1;
|
|
737
1049
|
break;
|
|
738
1050
|
case 2:
|
|
739
|
-
tmp = _this__u8e3s4.
|
|
1051
|
+
tmp = _this__u8e3s4.g1b_1;
|
|
740
1052
|
break;
|
|
741
1053
|
case 3:
|
|
742
|
-
tmp = _this__u8e3s4.
|
|
1054
|
+
tmp = _this__u8e3s4.i1b_1;
|
|
743
1055
|
break;
|
|
744
1056
|
case 4:
|
|
745
|
-
tmp = _this__u8e3s4.
|
|
1057
|
+
tmp = _this__u8e3s4.j1b_1;
|
|
746
1058
|
break;
|
|
747
1059
|
case 5:
|
|
748
|
-
tmp = _this__u8e3s4.
|
|
1060
|
+
tmp = _this__u8e3s4.k1b_1;
|
|
749
1061
|
break;
|
|
750
1062
|
case 6:
|
|
751
|
-
tmp = _this__u8e3s4.
|
|
1063
|
+
tmp = _this__u8e3s4.l1b_1;
|
|
752
1064
|
break;
|
|
753
1065
|
case 7:
|
|
754
|
-
tmp = _this__u8e3s4.
|
|
1066
|
+
tmp = _this__u8e3s4.m1b_1;
|
|
755
1067
|
break;
|
|
756
1068
|
default:
|
|
757
1069
|
noWhenBranchMatchedException();
|
|
@@ -765,7 +1077,7 @@
|
|
|
765
1077
|
return filterNotNullValues(tmp$ret$2);
|
|
766
1078
|
}
|
|
767
1079
|
function getReference(_this__u8e3s4, $this) {
|
|
768
|
-
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
1080
|
+
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.i1d_1), ['/']).h(2);
|
|
769
1081
|
}
|
|
770
1082
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
771
1083
|
var tmp0_subject = _this__u8e3s4;
|
|
@@ -798,7 +1110,7 @@
|
|
|
798
1110
|
// Inline function 'kotlin.contracts.contract' call
|
|
799
1111
|
var tmp$ret$4;
|
|
800
1112
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
801
|
-
var type = tmp0_let.
|
|
1113
|
+
var type = tmp0_let.n1c_1;
|
|
802
1114
|
var tmp0 = type == null ? -1 : type.q4_1;
|
|
803
1115
|
var tmp;
|
|
804
1116
|
switch (tmp0) {
|
|
@@ -818,9 +1130,9 @@
|
|
|
818
1130
|
tmp = tmp$ret$1;
|
|
819
1131
|
break;
|
|
820
1132
|
case 4:
|
|
821
|
-
var tmp0_safe_receiver = tmp0_let.
|
|
1133
|
+
var tmp0_safe_receiver = tmp0_let.o1c_1;
|
|
822
1134
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve(tmp0_safe_receiver, $this);
|
|
823
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1135
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k1e_1;
|
|
824
1136
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toPrimitive(tmp2_safe_receiver, $this);
|
|
825
1137
|
var tmp_0;
|
|
826
1138
|
if (tmp3_safe_receiver == null) {
|
|
@@ -862,8 +1174,8 @@
|
|
|
862
1174
|
// Inline function 'kotlin.contracts.contract' call
|
|
863
1175
|
var tmp$ret$6;
|
|
864
1176
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
865
|
-
var tmp_2 = new Identifier(_this__u8e3s4.
|
|
866
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1177
|
+
var tmp_2 = new Identifier(_this__u8e3s4.i1c_1);
|
|
1178
|
+
var tmp0_elvis_lhs = _this__u8e3s4.l1c_1;
|
|
867
1179
|
tmp$ret$6 = new Field(tmp_2, tmp1_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
868
1180
|
tmp$ret$7 = tmp$ret$6;
|
|
869
1181
|
return tmp$ret$7;
|
|
@@ -916,7 +1228,7 @@
|
|
|
916
1228
|
var element = tmp0_iterator_0.e();
|
|
917
1229
|
var tmp$ret$3;
|
|
918
1230
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
919
|
-
tmp$ret$3 = element.
|
|
1231
|
+
tmp$ret$3 = element.i1c_1 === param;
|
|
920
1232
|
if (tmp$ret$3) {
|
|
921
1233
|
tmp$ret$4 = element;
|
|
922
1234
|
break $l$block;
|
|
@@ -935,7 +1247,7 @@
|
|
|
935
1247
|
// Inline function 'kotlin.contracts.contract' call
|
|
936
1248
|
var tmp$ret$6;
|
|
937
1249
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
938
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver.
|
|
1250
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver.n1c_1;
|
|
939
1251
|
tmp$ret$6 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, $this);
|
|
940
1252
|
tmp$ret$7 = tmp$ret$6;
|
|
941
1253
|
tmp_2 = tmp$ret$7;
|
|
@@ -975,7 +1287,7 @@
|
|
|
975
1287
|
}
|
|
976
1288
|
function toName(_this__u8e3s4, $this, segments, method) {
|
|
977
1289
|
var tmp0_safe_receiver = _this__u8e3s4;
|
|
978
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1290
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w1b_1;
|
|
979
1291
|
var tmp;
|
|
980
1292
|
if (tmp1_safe_receiver == null) {
|
|
981
1293
|
tmp = null;
|
|
@@ -985,7 +1297,7 @@
|
|
|
985
1297
|
// Inline function 'kotlin.contracts.contract' call
|
|
986
1298
|
var tmp$ret$0;
|
|
987
1299
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
988
|
-
tmp$ret$0 = Common_getInstance().
|
|
1300
|
+
tmp$ret$0 = Common_getInstance().x1s([tmp1_safe_receiver]);
|
|
989
1301
|
tmp$ret$1 = tmp$ret$0;
|
|
990
1302
|
tmp = tmp$ret$1;
|
|
991
1303
|
}
|
|
@@ -1007,21 +1319,21 @@
|
|
|
1007
1319
|
return tmp_0;
|
|
1008
1320
|
}
|
|
1009
1321
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
1010
|
-
this.
|
|
1011
|
-
this.
|
|
1012
|
-
this.
|
|
1013
|
-
this.
|
|
1014
|
-
this.
|
|
1322
|
+
this.d1t_1 = path;
|
|
1323
|
+
this.e1t_1 = pathItem;
|
|
1324
|
+
this.f1t_1 = method;
|
|
1325
|
+
this.g1t_1 = operation;
|
|
1326
|
+
this.h1t_1 = type;
|
|
1015
1327
|
}
|
|
1016
1328
|
protoOf(FlattenRequest).toString = function () {
|
|
1017
|
-
return 'FlattenRequest(path=' + new Path(this.
|
|
1329
|
+
return 'FlattenRequest(path=' + new Path(this.d1t_1) + ', pathItem=' + this.e1t_1 + ', method=' + this.f1t_1 + ', operation=' + this.g1t_1 + ', type=' + this.h1t_1 + ')';
|
|
1018
1330
|
};
|
|
1019
1331
|
protoOf(FlattenRequest).hashCode = function () {
|
|
1020
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1021
|
-
result = imul(result, 31) + this.c1t_1.hashCode() | 0;
|
|
1022
|
-
result = imul(result, 31) + this.d1t_1.hashCode() | 0;
|
|
1332
|
+
var result = Path__hashCode_impl_go73kd(this.d1t_1);
|
|
1023
1333
|
result = imul(result, 31) + this.e1t_1.hashCode() | 0;
|
|
1024
|
-
result = imul(result, 31) +
|
|
1334
|
+
result = imul(result, 31) + this.f1t_1.hashCode() | 0;
|
|
1335
|
+
result = imul(result, 31) + this.g1t_1.hashCode() | 0;
|
|
1336
|
+
result = imul(result, 31) + getStringHashCode(this.h1t_1) | 0;
|
|
1025
1337
|
return result;
|
|
1026
1338
|
};
|
|
1027
1339
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -1030,15 +1342,15 @@
|
|
|
1030
1342
|
if (!(other instanceof FlattenRequest))
|
|
1031
1343
|
return false;
|
|
1032
1344
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
1033
|
-
if (!(this.
|
|
1345
|
+
if (!(this.d1t_1 === tmp0_other_with_cast.d1t_1))
|
|
1034
1346
|
return false;
|
|
1035
|
-
if (!this.
|
|
1347
|
+
if (!this.e1t_1.equals(tmp0_other_with_cast.e1t_1))
|
|
1036
1348
|
return false;
|
|
1037
|
-
if (!this.
|
|
1349
|
+
if (!this.f1t_1.equals(tmp0_other_with_cast.f1t_1))
|
|
1038
1350
|
return false;
|
|
1039
|
-
if (!this.
|
|
1351
|
+
if (!this.g1t_1.equals(tmp0_other_with_cast.g1t_1))
|
|
1040
1352
|
return false;
|
|
1041
|
-
if (!(this.
|
|
1353
|
+
if (!(this.h1t_1 === tmp0_other_with_cast.h1t_1))
|
|
1042
1354
|
return false;
|
|
1043
1355
|
return true;
|
|
1044
1356
|
};
|
|
@@ -1047,7 +1359,7 @@
|
|
|
1047
1359
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1048
1360
|
var tmp$ret$15;
|
|
1049
1361
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1050
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
1362
|
+
var tmp1_flatMap = _this__u8e3s4.o1a_1;
|
|
1051
1363
|
var tmp$ret$14;
|
|
1052
1364
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1053
1365
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -1061,7 +1373,7 @@
|
|
|
1061
1373
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
1062
1374
|
var tmp$ret$1;
|
|
1063
1375
|
// Inline function 'kotlin.collections.component1' call
|
|
1064
|
-
tmp$ret$1 = element.v().
|
|
1376
|
+
tmp$ret$1 = element.v().z1a_1;
|
|
1065
1377
|
var path = tmp$ret$1;
|
|
1066
1378
|
var tmp$ret$2;
|
|
1067
1379
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1093,9 +1405,10 @@
|
|
|
1093
1405
|
// Inline function 'kotlin.collections.map' call
|
|
1094
1406
|
var tmp$ret$6;
|
|
1095
1407
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1096
|
-
var
|
|
1097
|
-
var
|
|
1098
|
-
|
|
1408
|
+
var tmp0_elvis_lhs = _this__u8e3s4.m1a_1;
|
|
1409
|
+
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.x1b_1 : tmp0_elvis_lhs;
|
|
1410
|
+
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
1411
|
+
tmp$ret$6 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1099
1412
|
var tmp2_map = tmp$ret$6;
|
|
1100
1413
|
var tmp$ret$8;
|
|
1101
1414
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1140,25 +1453,25 @@
|
|
|
1140
1453
|
return tmp$ret$18;
|
|
1141
1454
|
}
|
|
1142
1455
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
1143
|
-
this.
|
|
1144
|
-
this.
|
|
1145
|
-
this.
|
|
1146
|
-
this.
|
|
1147
|
-
this.
|
|
1148
|
-
this.
|
|
1149
|
-
this.
|
|
1456
|
+
this.i1t_1 = path;
|
|
1457
|
+
this.j1t_1 = pathItem;
|
|
1458
|
+
this.k1t_1 = method;
|
|
1459
|
+
this.l1t_1 = operation;
|
|
1460
|
+
this.m1t_1 = statusCode;
|
|
1461
|
+
this.n1t_1 = response;
|
|
1462
|
+
this.o1t_1 = type;
|
|
1150
1463
|
}
|
|
1151
1464
|
protoOf(FlattenResponse).toString = function () {
|
|
1152
|
-
return 'FlattenResponse(path=' + new Path(this.
|
|
1465
|
+
return 'FlattenResponse(path=' + new Path(this.i1t_1) + ', pathItem=' + this.j1t_1 + ', method=' + this.k1t_1 + ', operation=' + this.l1t_1 + ', statusCode=' + new StatusCode(this.m1t_1) + ', response=' + this.n1t_1 + ', type=' + this.o1t_1 + ')';
|
|
1153
1466
|
};
|
|
1154
1467
|
protoOf(FlattenResponse).hashCode = function () {
|
|
1155
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1156
|
-
result = imul(result, 31) + this.h1t_1.hashCode() | 0;
|
|
1157
|
-
result = imul(result, 31) + this.i1t_1.hashCode() | 0;
|
|
1468
|
+
var result = Path__hashCode_impl_go73kd(this.i1t_1);
|
|
1158
1469
|
result = imul(result, 31) + this.j1t_1.hashCode() | 0;
|
|
1159
|
-
result = imul(result, 31) +
|
|
1160
|
-
result = imul(result, 31) +
|
|
1161
|
-
result = imul(result, 31) +
|
|
1470
|
+
result = imul(result, 31) + this.k1t_1.hashCode() | 0;
|
|
1471
|
+
result = imul(result, 31) + this.l1t_1.hashCode() | 0;
|
|
1472
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.m1t_1) | 0;
|
|
1473
|
+
result = imul(result, 31) + hashCode(this.n1t_1) | 0;
|
|
1474
|
+
result = imul(result, 31) + getStringHashCode(this.o1t_1) | 0;
|
|
1162
1475
|
return result;
|
|
1163
1476
|
};
|
|
1164
1477
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -1167,20 +1480,20 @@
|
|
|
1167
1480
|
if (!(other instanceof FlattenResponse))
|
|
1168
1481
|
return false;
|
|
1169
1482
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
1170
|
-
if (!(this.
|
|
1171
|
-
return false;
|
|
1172
|
-
if (!this.h1t_1.equals(tmp0_other_with_cast.h1t_1))
|
|
1173
|
-
return false;
|
|
1174
|
-
if (!this.i1t_1.equals(tmp0_other_with_cast.i1t_1))
|
|
1483
|
+
if (!(this.i1t_1 === tmp0_other_with_cast.i1t_1))
|
|
1175
1484
|
return false;
|
|
1176
1485
|
if (!this.j1t_1.equals(tmp0_other_with_cast.j1t_1))
|
|
1177
1486
|
return false;
|
|
1178
|
-
if (!
|
|
1487
|
+
if (!this.k1t_1.equals(tmp0_other_with_cast.k1t_1))
|
|
1179
1488
|
return false;
|
|
1180
|
-
if (!
|
|
1489
|
+
if (!this.l1t_1.equals(tmp0_other_with_cast.l1t_1))
|
|
1181
1490
|
return false;
|
|
1182
1491
|
if (!(this.m1t_1 === tmp0_other_with_cast.m1t_1))
|
|
1183
1492
|
return false;
|
|
1493
|
+
if (!equals(this.n1t_1, tmp0_other_with_cast.n1t_1))
|
|
1494
|
+
return false;
|
|
1495
|
+
if (!(this.o1t_1 === tmp0_other_with_cast.o1t_1))
|
|
1496
|
+
return false;
|
|
1184
1497
|
return true;
|
|
1185
1498
|
};
|
|
1186
1499
|
function flatMapResponses(_this__u8e3s4, $this, f) {
|
|
@@ -1188,7 +1501,7 @@
|
|
|
1188
1501
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1189
1502
|
var tmp$ret$22;
|
|
1190
1503
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1191
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
1504
|
+
var tmp1_flatMap = _this__u8e3s4.o1a_1;
|
|
1192
1505
|
var tmp$ret$21;
|
|
1193
1506
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1194
1507
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -1202,7 +1515,7 @@
|
|
|
1202
1515
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
1203
1516
|
var tmp$ret$1;
|
|
1204
1517
|
// Inline function 'kotlin.collections.component1' call
|
|
1205
|
-
tmp$ret$1 = element.v().
|
|
1518
|
+
tmp$ret$1 = element.v().z1a_1;
|
|
1206
1519
|
var path = tmp$ret$1;
|
|
1207
1520
|
var tmp$ret$2;
|
|
1208
1521
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1234,7 +1547,7 @@
|
|
|
1234
1547
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1235
1548
|
var tmp$ret$6;
|
|
1236
1549
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1237
|
-
var tmp0_orEmpty = operation.
|
|
1550
|
+
var tmp0_orEmpty = operation.a1c_1;
|
|
1238
1551
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1239
1552
|
tmp$ret$6 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1240
1553
|
var tmp2_flatMap = tmp$ret$6;
|
|
@@ -1251,7 +1564,7 @@
|
|
|
1251
1564
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
1252
1565
|
var tmp$ret$8;
|
|
1253
1566
|
// Inline function 'kotlin.collections.component1' call
|
|
1254
|
-
tmp$ret$8 = element_1.v().
|
|
1567
|
+
tmp$ret$8 = element_1.v().s1e_1;
|
|
1255
1568
|
var statusCode = tmp$ret$8;
|
|
1256
1569
|
var tmp$ret$9;
|
|
1257
1570
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1261,9 +1574,10 @@
|
|
|
1261
1574
|
// Inline function 'kotlin.collections.map' call
|
|
1262
1575
|
var tmp$ret$10;
|
|
1263
1576
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1264
|
-
var
|
|
1265
|
-
var
|
|
1266
|
-
|
|
1577
|
+
var tmp0_elvis_lhs_0 = _this__u8e3s4.n1a_1;
|
|
1578
|
+
var tmp0_orEmpty_0 = tmp0_elvis_lhs_0 == null ? operation.y1b_1 : tmp0_elvis_lhs_0;
|
|
1579
|
+
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
1580
|
+
tmp$ret$10 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
1267
1581
|
var tmp2_map = tmp$ret$10;
|
|
1268
1582
|
var tmp$ret$12;
|
|
1269
1583
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1313,252 +1627,9 @@
|
|
|
1313
1627
|
tmp$ret$25 = tmp$ret$24;
|
|
1314
1628
|
return tmp$ret$25;
|
|
1315
1629
|
}
|
|
1316
|
-
function OpenApiParser$parseEndpoints$lambda(this$0) {
|
|
1317
|
-
return function (req) {
|
|
1318
|
-
var parameters = plus(resolveParameters_0(req.c1t_1, this$0), resolveParameters(req.e1t_1, this$0));
|
|
1319
|
-
var segments = toSegments(req.b1t_1, this$0, parameters);
|
|
1320
|
-
var name = toName(req.e1t_1, this$0, segments, req.d1t_1);
|
|
1321
|
-
var tmp$ret$5;
|
|
1322
|
-
// Inline function 'kotlin.collections.map' call
|
|
1323
|
-
var tmp$ret$2;
|
|
1324
|
-
// Inline function 'kotlin.collections.filter' call
|
|
1325
|
-
var tmp$ret$1;
|
|
1326
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
1327
|
-
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
1328
|
-
var tmp0_iterator = parameters.c();
|
|
1329
|
-
while (tmp0_iterator.d()) {
|
|
1330
|
-
var element = tmp0_iterator.e();
|
|
1331
|
-
var tmp$ret$0;
|
|
1332
|
-
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>' call
|
|
1333
|
-
tmp$ret$0 = element.y1a_1.equals(ParameterLocation_QUERY_getInstance());
|
|
1334
|
-
if (tmp$ret$0) {
|
|
1335
|
-
tmp0_filterTo.a(element);
|
|
1336
|
-
}
|
|
1337
|
-
}
|
|
1338
|
-
tmp$ret$1 = tmp0_filterTo;
|
|
1339
|
-
tmp$ret$2 = tmp$ret$1;
|
|
1340
|
-
var tmp2_map = tmp$ret$2;
|
|
1341
|
-
var tmp$ret$4;
|
|
1342
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
1343
|
-
var tmp1_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp2_map, 10));
|
|
1344
|
-
var tmp0_iterator_0 = tmp2_map.c();
|
|
1345
|
-
while (tmp0_iterator_0.d()) {
|
|
1346
|
-
var item = tmp0_iterator_0.e();
|
|
1347
|
-
var tmp$ret$3;
|
|
1348
|
-
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>' call
|
|
1349
|
-
tmp$ret$3 = toField(item, this$0);
|
|
1350
|
-
tmp1_mapTo.a(tmp$ret$3);
|
|
1351
|
-
}
|
|
1352
|
-
tmp$ret$4 = tmp1_mapTo;
|
|
1353
|
-
tmp$ret$5 = tmp$ret$4;
|
|
1354
|
-
var query = tmp$ret$5;
|
|
1355
|
-
var tmp$ret$11;
|
|
1356
|
-
// Inline function 'kotlin.collections.map' call
|
|
1357
|
-
var tmp$ret$8;
|
|
1358
|
-
// Inline function 'kotlin.collections.filter' call
|
|
1359
|
-
var tmp$ret$7;
|
|
1360
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
1361
|
-
var tmp3_filterTo = ArrayList_init_$Create$();
|
|
1362
|
-
var tmp0_iterator_1 = parameters.c();
|
|
1363
|
-
while (tmp0_iterator_1.d()) {
|
|
1364
|
-
var element_0 = tmp0_iterator_1.e();
|
|
1365
|
-
var tmp$ret$6;
|
|
1366
|
-
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>' call
|
|
1367
|
-
tmp$ret$6 = element_0.y1a_1.equals(ParameterLocation_HEADER_getInstance());
|
|
1368
|
-
if (tmp$ret$6) {
|
|
1369
|
-
tmp3_filterTo.a(element_0);
|
|
1370
|
-
}
|
|
1371
|
-
}
|
|
1372
|
-
tmp$ret$7 = tmp3_filterTo;
|
|
1373
|
-
tmp$ret$8 = tmp$ret$7;
|
|
1374
|
-
var tmp5_map = tmp$ret$8;
|
|
1375
|
-
var tmp$ret$10;
|
|
1376
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
1377
|
-
var tmp4_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp5_map, 10));
|
|
1378
|
-
var tmp0_iterator_2 = tmp5_map.c();
|
|
1379
|
-
while (tmp0_iterator_2.d()) {
|
|
1380
|
-
var item_0 = tmp0_iterator_2.e();
|
|
1381
|
-
var tmp$ret$9;
|
|
1382
|
-
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>' call
|
|
1383
|
-
tmp$ret$9 = toField(item_0, this$0);
|
|
1384
|
-
tmp4_mapTo.a(tmp$ret$9);
|
|
1385
|
-
}
|
|
1386
|
-
tmp$ret$10 = tmp4_mapTo;
|
|
1387
|
-
tmp$ret$11 = tmp$ret$10;
|
|
1388
|
-
var headers = tmp$ret$11;
|
|
1389
|
-
var tmp$ret$23;
|
|
1390
|
-
// Inline function 'kotlin.collections.ifEmpty' call
|
|
1391
|
-
var tmp$ret$21;
|
|
1392
|
-
// Inline function 'kotlin.collections.flatMap' call
|
|
1393
|
-
var tmp$ret$14;
|
|
1394
|
-
// Inline function 'kotlin.collections.filter' call
|
|
1395
|
-
var tmp$ret$13;
|
|
1396
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
1397
|
-
var tmp6_filterTo = ArrayList_init_$Create$();
|
|
1398
|
-
var tmp0_iterator_3 = parameters.c();
|
|
1399
|
-
while (tmp0_iterator_3.d()) {
|
|
1400
|
-
var element_1 = tmp0_iterator_3.e();
|
|
1401
|
-
var tmp$ret$12;
|
|
1402
|
-
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>' call
|
|
1403
|
-
tmp$ret$12 = element_1.y1a_1.equals(ParameterLocation_BODY_getInstance());
|
|
1404
|
-
if (tmp$ret$12) {
|
|
1405
|
-
tmp6_filterTo.a(element_1);
|
|
1406
|
-
}
|
|
1407
|
-
}
|
|
1408
|
-
tmp$ret$13 = tmp6_filterTo;
|
|
1409
|
-
tmp$ret$14 = tmp$ret$13;
|
|
1410
|
-
var tmp8_flatMap = tmp$ret$14;
|
|
1411
|
-
var tmp$ret$20;
|
|
1412
|
-
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1413
|
-
var tmp7_flatMapTo = ArrayList_init_$Create$();
|
|
1414
|
-
var tmp0_iterator_4 = tmp8_flatMap.c();
|
|
1415
|
-
while (tmp0_iterator_4.d()) {
|
|
1416
|
-
var element_2 = tmp0_iterator_4.e();
|
|
1417
|
-
var tmp$ret$19;
|
|
1418
|
-
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>' call
|
|
1419
|
-
var tmp$ret$18;
|
|
1420
|
-
// Inline function 'kotlin.collections.map' call
|
|
1421
|
-
var tmp$ret$15;
|
|
1422
|
-
// Inline function 'kotlin.collections.orEmpty' call
|
|
1423
|
-
var tmp0_orEmpty = this$0.x1s_1.k1a_1;
|
|
1424
|
-
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1425
|
-
tmp$ret$15 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1426
|
-
var tmp2_map_0 = tmp$ret$15;
|
|
1427
|
-
var tmp$ret$17;
|
|
1428
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
1429
|
-
var tmp1_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp2_map_0, 10));
|
|
1430
|
-
var tmp0_iterator_5 = tmp2_map_0.c();
|
|
1431
|
-
while (tmp0_iterator_5.d()) {
|
|
1432
|
-
var item_1 = tmp0_iterator_5.e();
|
|
1433
|
-
var tmp$ret$16;
|
|
1434
|
-
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
1435
|
-
var schema = element_2.b1b_1;
|
|
1436
|
-
var tmp;
|
|
1437
|
-
if (schema instanceof ReferenceObject) {
|
|
1438
|
-
tmp = toReference(schema, this$0);
|
|
1439
|
-
} else {
|
|
1440
|
-
if (schema instanceof SchemaObject) {
|
|
1441
|
-
tmp = toReference_0(schema, this$0, Common_getInstance().v1s([name, 'RequestBody']));
|
|
1442
|
-
} else {
|
|
1443
|
-
if (schema == null) {
|
|
1444
|
-
throw new NotImplementedError();
|
|
1445
|
-
} else {
|
|
1446
|
-
noWhenBranchMatchedException();
|
|
1447
|
-
}
|
|
1448
|
-
}
|
|
1449
|
-
}
|
|
1450
|
-
var tmp_0 = tmp;
|
|
1451
|
-
var tmp0_elvis_lhs_0 = element_2.a1b_1;
|
|
1452
|
-
tmp$ret$16 = new Request(new Content(item_1, tmp_0, tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0));
|
|
1453
|
-
tmp1_mapTo_0.a(tmp$ret$16);
|
|
1454
|
-
}
|
|
1455
|
-
tmp$ret$17 = tmp1_mapTo_0;
|
|
1456
|
-
tmp$ret$18 = tmp$ret$17;
|
|
1457
|
-
tmp$ret$19 = tmp$ret$18;
|
|
1458
|
-
var list = tmp$ret$19;
|
|
1459
|
-
addAll(tmp7_flatMapTo, list);
|
|
1460
|
-
}
|
|
1461
|
-
tmp$ret$20 = tmp7_flatMapTo;
|
|
1462
|
-
tmp$ret$21 = tmp$ret$20;
|
|
1463
|
-
var tmp9_ifEmpty = tmp$ret$21;
|
|
1464
|
-
var tmp_1;
|
|
1465
|
-
if (tmp9_ifEmpty.g()) {
|
|
1466
|
-
var tmp$ret$22;
|
|
1467
|
-
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>' call
|
|
1468
|
-
tmp$ret$22 = listOf(new Request(null));
|
|
1469
|
-
tmp_1 = tmp$ret$22;
|
|
1470
|
-
} else {
|
|
1471
|
-
tmp_1 = tmp9_ifEmpty;
|
|
1472
|
-
}
|
|
1473
|
-
tmp$ret$23 = tmp_1;
|
|
1474
|
-
var requests = tmp$ret$23;
|
|
1475
|
-
var tmp$ret$36;
|
|
1476
|
-
// Inline function 'kotlin.collections.flatMap' call
|
|
1477
|
-
var tmp$ret$24;
|
|
1478
|
-
// Inline function 'kotlin.collections.orEmpty' call
|
|
1479
|
-
var tmp10_orEmpty = req.e1t_1.f1c_1;
|
|
1480
|
-
var tmp0_elvis_lhs_1 = tmp10_orEmpty;
|
|
1481
|
-
tmp$ret$24 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
1482
|
-
var tmp12_flatMap = tmp$ret$24;
|
|
1483
|
-
var tmp$ret$35;
|
|
1484
|
-
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1485
|
-
var tmp11_flatMapTo = ArrayList_init_$Create$();
|
|
1486
|
-
var tmp$ret$25;
|
|
1487
|
-
// Inline function 'kotlin.collections.iterator' call
|
|
1488
|
-
tmp$ret$25 = tmp12_flatMap.u().c();
|
|
1489
|
-
var tmp0_iterator_6 = tmp$ret$25;
|
|
1490
|
-
while (tmp0_iterator_6.d()) {
|
|
1491
|
-
var element_3 = tmp0_iterator_6.e();
|
|
1492
|
-
var tmp$ret$34;
|
|
1493
|
-
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>' call
|
|
1494
|
-
var tmp$ret$26;
|
|
1495
|
-
// Inline function 'kotlin.collections.component1' call
|
|
1496
|
-
tmp$ret$26 = element_3.v().q1e_1;
|
|
1497
|
-
var status = tmp$ret$26;
|
|
1498
|
-
var tmp$ret$27;
|
|
1499
|
-
// Inline function 'kotlin.collections.component2' call
|
|
1500
|
-
tmp$ret$27 = element_3.w();
|
|
1501
|
-
var res = tmp$ret$27;
|
|
1502
|
-
var tmp$ret$33;
|
|
1503
|
-
// Inline function 'kotlin.collections.map' call
|
|
1504
|
-
var tmp$ret$28;
|
|
1505
|
-
// Inline function 'kotlin.collections.orEmpty' call
|
|
1506
|
-
var tmp0_orEmpty_0 = this$0.x1s_1.l1a_1;
|
|
1507
|
-
var tmp0_elvis_lhs_2 = tmp0_orEmpty_0;
|
|
1508
|
-
tmp$ret$28 = tmp0_elvis_lhs_2 == null ? emptyList() : tmp0_elvis_lhs_2;
|
|
1509
|
-
var tmp2_map_1 = tmp$ret$28;
|
|
1510
|
-
var tmp$ret$32;
|
|
1511
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
1512
|
-
var tmp1_mapTo_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp2_map_1, 10));
|
|
1513
|
-
var tmp0_iterator_7 = tmp2_map_1.c();
|
|
1514
|
-
while (tmp0_iterator_7.d()) {
|
|
1515
|
-
var item_2 = tmp0_iterator_7.e();
|
|
1516
|
-
var tmp$ret$31;
|
|
1517
|
-
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
1518
|
-
var tmp_2 = _StatusCode___get_value__impl__we50mu(status);
|
|
1519
|
-
var tmp0_safe_receiver = resolve_1(res, this$0).u1e_1;
|
|
1520
|
-
var tmp_3;
|
|
1521
|
-
if (tmp0_safe_receiver == null) {
|
|
1522
|
-
tmp_3 = null;
|
|
1523
|
-
} else {
|
|
1524
|
-
var tmp$ret$30;
|
|
1525
|
-
// Inline function 'kotlin.let' call
|
|
1526
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1527
|
-
var tmp$ret$29;
|
|
1528
|
-
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1529
|
-
var tmp0_subject = tmp0_safe_receiver;
|
|
1530
|
-
var tmp_4;
|
|
1531
|
-
if (tmp0_subject instanceof ReferenceObject) {
|
|
1532
|
-
tmp_4 = toReference(tmp0_safe_receiver, this$0);
|
|
1533
|
-
} else {
|
|
1534
|
-
if (tmp0_subject instanceof SchemaObject) {
|
|
1535
|
-
tmp_4 = toReference_0(tmp0_safe_receiver, this$0, Common_getInstance().v1s([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']));
|
|
1536
|
-
} else {
|
|
1537
|
-
noWhenBranchMatchedException();
|
|
1538
|
-
}
|
|
1539
|
-
}
|
|
1540
|
-
tmp$ret$29 = new Content(item_2, tmp_4, false);
|
|
1541
|
-
tmp$ret$30 = tmp$ret$29;
|
|
1542
|
-
tmp_3 = tmp$ret$30;
|
|
1543
|
-
}
|
|
1544
|
-
tmp$ret$31 = new Response(tmp_2, tmp_3);
|
|
1545
|
-
tmp1_mapTo_1.a(tmp$ret$31);
|
|
1546
|
-
}
|
|
1547
|
-
tmp$ret$32 = tmp1_mapTo_1;
|
|
1548
|
-
tmp$ret$33 = tmp$ret$32;
|
|
1549
|
-
tmp$ret$34 = tmp$ret$33;
|
|
1550
|
-
var list_0 = tmp$ret$34;
|
|
1551
|
-
addAll(tmp11_flatMapTo, list_0);
|
|
1552
|
-
}
|
|
1553
|
-
tmp$ret$35 = tmp11_flatMapTo;
|
|
1554
|
-
tmp$ret$36 = tmp$ret$35;
|
|
1555
|
-
var responses = tmp$ret$36;
|
|
1556
|
-
return listOf(new Endpoint(name, req.d1t_1, segments, query, headers, emptyList(), requests, responses));
|
|
1557
|
-
};
|
|
1558
|
-
}
|
|
1559
1630
|
function OpenApiParser$parseRequestBody$lambda(this$0) {
|
|
1560
1631
|
return function (req) {
|
|
1561
|
-
var tmp0_safe_receiver = req.
|
|
1632
|
+
var tmp0_safe_receiver = req.g1t_1.z1b_1;
|
|
1562
1633
|
var tmp;
|
|
1563
1634
|
if (tmp0_safe_receiver == null) {
|
|
1564
1635
|
tmp = null;
|
|
@@ -1595,7 +1666,7 @@
|
|
|
1595
1666
|
var element = tmp0_iterator_0.e();
|
|
1596
1667
|
var tmp$ret$3;
|
|
1597
1668
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1598
|
-
tmp$ret$3 = element.
|
|
1669
|
+
tmp$ret$3 = element.j1c_1.equals(ParameterLocation_BODY_getInstance());
|
|
1599
1670
|
if (tmp$ret$3) {
|
|
1600
1671
|
tmp1_filterTo.a(element);
|
|
1601
1672
|
}
|
|
@@ -1619,13 +1690,13 @@
|
|
|
1619
1690
|
var element_0 = tmp0_iterator_1.e();
|
|
1620
1691
|
var tmp$ret$9;
|
|
1621
1692
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1622
|
-
var parameters = plus(resolveParameters_0(req.
|
|
1623
|
-
var segments = toSegments(req.
|
|
1624
|
-
var name = toName(req.
|
|
1625
|
-
var schema = element_0.
|
|
1693
|
+
var parameters = plus(resolveParameters_0(req.e1t_1, this$0), resolveParameters(req.g1t_1, this$0));
|
|
1694
|
+
var segments = toSegments(req.d1t_1, this$0, parameters);
|
|
1695
|
+
var name = toName(req.g1t_1, this$0, segments, req.f1t_1);
|
|
1696
|
+
var schema = element_0.m1c_1;
|
|
1626
1697
|
var tmp_2;
|
|
1627
1698
|
if (schema instanceof SchemaObject) {
|
|
1628
|
-
var tmp0_subject = schema.
|
|
1699
|
+
var tmp0_subject = schema.k1e_1;
|
|
1629
1700
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
1630
1701
|
var tmp_3;
|
|
1631
1702
|
switch (tmp0) {
|
|
@@ -1633,7 +1704,7 @@
|
|
|
1633
1704
|
case 5:
|
|
1634
1705
|
var tmp$ret$8;
|
|
1635
1706
|
// Inline function 'kotlin.collections.map' call
|
|
1636
|
-
var tmp1_map = flatten(schema, this$0, Common_getInstance().
|
|
1707
|
+
var tmp1_map = flatten(schema, this$0, Common_getInstance().x1s([name, 'RequestBody']));
|
|
1637
1708
|
var tmp$ret$7;
|
|
1638
1709
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1639
1710
|
var tmp0_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -1642,7 +1713,7 @@
|
|
|
1642
1713
|
var item_0 = tmp0_iterator_2.e();
|
|
1643
1714
|
var tmp$ret$6;
|
|
1644
1715
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
1645
|
-
tmp$ret$6 = new Type(item_0.
|
|
1716
|
+
tmp$ret$6 = new Type(item_0.b1t_1, new Shape(item_0.c1t_1));
|
|
1646
1717
|
tmp0_mapTo_0.a(tmp$ret$6);
|
|
1647
1718
|
}
|
|
1648
1719
|
tmp$ret$7 = tmp0_mapTo_0;
|
|
@@ -1680,14 +1751,14 @@
|
|
|
1680
1751
|
}
|
|
1681
1752
|
function OpenApiParser$parseResponseBody$lambda(this$0) {
|
|
1682
1753
|
return function (res) {
|
|
1683
|
-
var response = resolve_1(res.
|
|
1684
|
-
var parameters = plus(resolveParameters_0(res.
|
|
1685
|
-
var segments = toSegments(res.
|
|
1686
|
-
var name = toName(res.
|
|
1687
|
-
var schema = response.
|
|
1754
|
+
var response = resolve_1(res.n1t_1, this$0);
|
|
1755
|
+
var parameters = plus(resolveParameters_0(res.j1t_1, this$0), resolveParameters(res.l1t_1, this$0));
|
|
1756
|
+
var segments = toSegments(res.i1t_1, this$0, parameters);
|
|
1757
|
+
var name = toName(res.l1t_1, this$0, segments, res.k1t_1);
|
|
1758
|
+
var schema = response.w1e_1;
|
|
1688
1759
|
var tmp;
|
|
1689
1760
|
if (schema instanceof SchemaObject) {
|
|
1690
|
-
var tmp0_subject = schema.
|
|
1761
|
+
var tmp0_subject = schema.k1e_1;
|
|
1691
1762
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
1692
1763
|
var tmp_0;
|
|
1693
1764
|
switch (tmp0) {
|
|
@@ -1695,10 +1766,10 @@
|
|
|
1695
1766
|
case 5:
|
|
1696
1767
|
var tmp$ret$2;
|
|
1697
1768
|
// Inline function 'kotlin.collections.map' call
|
|
1698
|
-
var tmp1_safe_receiver = schema.
|
|
1769
|
+
var tmp1_safe_receiver = schema.o1e_1;
|
|
1699
1770
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_0(tmp1_safe_receiver, this$0);
|
|
1700
|
-
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : flatten(tmp2_safe_receiver, this$0, Common_getInstance().
|
|
1701
|
-
var tmp1_map = tmp3_elvis_lhs == null ? flatten(schema, this$0, Common_getInstance().
|
|
1771
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : flatten(tmp2_safe_receiver, this$0, Common_getInstance().x1s([name, _StatusCode___get_value__impl__we50mu(res.m1t_1), 'ResponseBody']));
|
|
1772
|
+
var tmp1_map = tmp3_elvis_lhs == null ? flatten(schema, this$0, Common_getInstance().x1s([name, _StatusCode___get_value__impl__we50mu(res.m1t_1), 'ResponseBody'])) : tmp3_elvis_lhs;
|
|
1702
1773
|
var tmp$ret$1;
|
|
1703
1774
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1704
1775
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -1707,7 +1778,7 @@
|
|
|
1707
1778
|
var item = tmp0_iterator.e();
|
|
1708
1779
|
var tmp$ret$0;
|
|
1709
1780
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
1710
|
-
tmp$ret$0 = new Type(item.
|
|
1781
|
+
tmp$ret$0 = new Type(item.b1t_1, new Shape(item.c1t_1));
|
|
1711
1782
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1712
1783
|
}
|
|
1713
1784
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -1738,10 +1809,10 @@
|
|
|
1738
1809
|
var tmp0_subject = it;
|
|
1739
1810
|
var tmp;
|
|
1740
1811
|
if (tmp0_subject instanceof Literal) {
|
|
1741
|
-
tmp = Common_getInstance().
|
|
1812
|
+
tmp = Common_getInstance().x1s([it.rj_1]);
|
|
1742
1813
|
} else {
|
|
1743
1814
|
if (tmp0_subject instanceof Param) {
|
|
1744
|
-
tmp = Common_getInstance().
|
|
1815
|
+
tmp = Common_getInstance().x1s([it.si_1.dj_1]);
|
|
1745
1816
|
} else {
|
|
1746
1817
|
noWhenBranchMatchedException();
|
|
1747
1818
|
}
|
|
@@ -1750,9 +1821,9 @@
|
|
|
1750
1821
|
}
|
|
1751
1822
|
function OpenApiParser(openApi) {
|
|
1752
1823
|
Companion_getInstance_0();
|
|
1753
|
-
this.
|
|
1824
|
+
this.z1s_1 = openApi;
|
|
1754
1825
|
}
|
|
1755
|
-
protoOf(OpenApiParser).
|
|
1826
|
+
protoOf(OpenApiParser).a1t = function () {
|
|
1756
1827
|
return plus(plus(plus(parseEndpoints(this), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
|
|
1757
1828
|
};
|
|
1758
1829
|
function filterNotNullValues(_this__u8e3s4) {
|
|
@@ -1812,10 +1883,10 @@
|
|
|
1812
1883
|
function Companion_0() {
|
|
1813
1884
|
Companion_instance_0 = this;
|
|
1814
1885
|
}
|
|
1815
|
-
protoOf(Companion_0).
|
|
1886
|
+
protoOf(Companion_0).y1s = function (json) {
|
|
1816
1887
|
var tmp$ret$1;
|
|
1817
1888
|
// Inline function 'kotlin.let' call
|
|
1818
|
-
var tmp0_let = Default_getInstance_0().
|
|
1889
|
+
var tmp0_let = Default_getInstance_0().e1a(json);
|
|
1819
1890
|
// Inline function 'kotlin.contracts.contract' call
|
|
1820
1891
|
var tmp$ret$0;
|
|
1821
1892
|
// Inline function 'community.flock.wirespec.openapi.v3.Companion.parse.<anonymous>' call
|
|
@@ -1835,7 +1906,7 @@
|
|
|
1835
1906
|
function parseEndpoint($this) {
|
|
1836
1907
|
var tmp$ret$51;
|
|
1837
1908
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1838
|
-
var tmp1_flatMap = $this.
|
|
1909
|
+
var tmp1_flatMap = $this.p1t_1.e1j_1;
|
|
1839
1910
|
var tmp$ret$50;
|
|
1840
1911
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1841
1912
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -1849,7 +1920,7 @@
|
|
|
1849
1920
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>' call
|
|
1850
1921
|
var tmp$ret$1;
|
|
1851
1922
|
// Inline function 'kotlin.collections.component1' call
|
|
1852
|
-
tmp$ret$1 = element.v().
|
|
1923
|
+
tmp$ret$1 = element.v().m1j_1;
|
|
1853
1924
|
var key = tmp$ret$1;
|
|
1854
1925
|
var tmp$ret$2;
|
|
1855
1926
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1898,7 +1969,7 @@
|
|
|
1898
1969
|
var element_0 = tmp0_iterator_1.e();
|
|
1899
1970
|
var tmp$ret$7;
|
|
1900
1971
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1901
|
-
tmp$ret$7 = element_0.
|
|
1972
|
+
tmp$ret$7 = element_0.g1l_1.equals(ParameterLocation_QUERY_getInstance_0());
|
|
1902
1973
|
if (tmp$ret$7) {
|
|
1903
1974
|
tmp1_filterTo.a(element_0);
|
|
1904
1975
|
}
|
|
@@ -1932,7 +2003,7 @@
|
|
|
1932
2003
|
var element_1 = tmp0_iterator_3.e();
|
|
1933
2004
|
var tmp$ret$13;
|
|
1934
2005
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1935
|
-
tmp$ret$13 = element_1.
|
|
2006
|
+
tmp$ret$13 = element_1.g1l_1.equals(ParameterLocation_HEADER_getInstance_0());
|
|
1936
2007
|
if (tmp$ret$13) {
|
|
1937
2008
|
tmp4_filterTo.a(element_1);
|
|
1938
2009
|
}
|
|
@@ -1966,7 +2037,7 @@
|
|
|
1966
2037
|
var element_2 = tmp0_iterator_5.e();
|
|
1967
2038
|
var tmp$ret$19;
|
|
1968
2039
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1969
|
-
tmp$ret$19 = element_2.
|
|
2040
|
+
tmp$ret$19 = element_2.g1l_1.equals(ParameterLocation_COOKIE_getInstance());
|
|
1970
2041
|
if (tmp$ret$19) {
|
|
1971
2042
|
tmp7_filterTo.a(element_2);
|
|
1972
2043
|
}
|
|
@@ -1988,7 +2059,7 @@
|
|
|
1988
2059
|
tmp$ret$23 = tmp8_mapTo;
|
|
1989
2060
|
tmp$ret$24 = tmp$ret$23;
|
|
1990
2061
|
var cookies = tmp$ret$24;
|
|
1991
|
-
var tmp0_safe_receiver = operation.
|
|
2062
|
+
var tmp0_safe_receiver = operation.l1k_1;
|
|
1992
2063
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, $this);
|
|
1993
2064
|
var tmp_0;
|
|
1994
2065
|
if (tmp1_safe_receiver == null) {
|
|
@@ -1999,7 +2070,7 @@
|
|
|
1999
2070
|
// Inline function 'kotlin.contracts.contract' call
|
|
2000
2071
|
var tmp$ret$31;
|
|
2001
2072
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2002
|
-
var tmp0_safe_receiver_0 = tmp1_safe_receiver.
|
|
2073
|
+
var tmp0_safe_receiver_0 = tmp1_safe_receiver.l1l_1;
|
|
2003
2074
|
var tmp_1;
|
|
2004
2075
|
if (tmp0_safe_receiver_0 == null) {
|
|
2005
2076
|
tmp_1 = null;
|
|
@@ -2019,20 +2090,20 @@
|
|
|
2019
2090
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2020
2091
|
var tmp$ret$26;
|
|
2021
2092
|
// Inline function 'kotlin.collections.component1' call
|
|
2022
|
-
tmp$ret$26 = item_3.v().
|
|
2093
|
+
tmp$ret$26 = item_3.v().p1l_1;
|
|
2023
2094
|
var mediaType = tmp$ret$26;
|
|
2024
2095
|
var tmp$ret$27;
|
|
2025
2096
|
// Inline function 'kotlin.collections.component2' call
|
|
2026
2097
|
tmp$ret$27 = item_3.w();
|
|
2027
2098
|
var mediaObject = tmp$ret$27;
|
|
2028
2099
|
var tmp_2 = _MediaType___get_value__impl__wy58mp(mediaType);
|
|
2029
|
-
var schema = mediaObject.
|
|
2100
|
+
var schema = mediaObject.s1l_1;
|
|
2030
2101
|
var tmp_3;
|
|
2031
2102
|
if (schema instanceof ReferenceObject_0) {
|
|
2032
2103
|
tmp_3 = toReference_1(schema, $this);
|
|
2033
2104
|
} else {
|
|
2034
2105
|
if (schema instanceof SchemaObject_0) {
|
|
2035
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
2106
|
+
tmp_3 = new Custom(Common_getInstance().x1s([name, 'RequestBody']), true);
|
|
2036
2107
|
} else {
|
|
2037
2108
|
if (schema == null) {
|
|
2038
2109
|
throw new NotImplementedError();
|
|
@@ -2042,7 +2113,7 @@
|
|
|
2042
2113
|
}
|
|
2043
2114
|
}
|
|
2044
2115
|
var tmp_4 = tmp_3;
|
|
2045
|
-
var tmp0_elvis_lhs_0 = tmp1_safe_receiver.
|
|
2116
|
+
var tmp0_elvis_lhs_0 = tmp1_safe_receiver.m1l_1;
|
|
2046
2117
|
tmp$ret$28 = new Request(new Content(tmp_2, tmp_4, tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0));
|
|
2047
2118
|
tmp0_mapTo_0.a(tmp$ret$28);
|
|
2048
2119
|
}
|
|
@@ -2060,7 +2131,7 @@
|
|
|
2060
2131
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2061
2132
|
var tmp$ret$33;
|
|
2062
2133
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2063
|
-
var tmp10_orEmpty = operation.
|
|
2134
|
+
var tmp10_orEmpty = operation.m1k_1;
|
|
2064
2135
|
var tmp0_elvis_lhs_1 = tmp10_orEmpty;
|
|
2065
2136
|
tmp$ret$33 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
2066
2137
|
var tmp12_flatMap = tmp$ret$33;
|
|
@@ -2077,13 +2148,13 @@
|
|
|
2077
2148
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2078
2149
|
var tmp$ret$35;
|
|
2079
2150
|
// Inline function 'kotlin.collections.component1' call
|
|
2080
|
-
tmp$ret$35 = element_3.v().
|
|
2151
|
+
tmp$ret$35 = element_3.v().o1n_1;
|
|
2081
2152
|
var status = tmp$ret$35;
|
|
2082
2153
|
var tmp$ret$36;
|
|
2083
2154
|
// Inline function 'kotlin.collections.component2' call
|
|
2084
2155
|
tmp$ret$36 = element_3.w();
|
|
2085
2156
|
var res = tmp$ret$36;
|
|
2086
|
-
var tmp0_safe_receiver_1 = resolve_6(res, $this).
|
|
2157
|
+
var tmp0_safe_receiver_1 = resolve_6(res, $this).t1n_1;
|
|
2087
2158
|
var tmp_5;
|
|
2088
2159
|
if (tmp0_safe_receiver_1 == null) {
|
|
2089
2160
|
tmp_5 = null;
|
|
@@ -2103,7 +2174,7 @@
|
|
|
2103
2174
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2104
2175
|
var tmp$ret$38;
|
|
2105
2176
|
// Inline function 'kotlin.collections.component1' call
|
|
2106
|
-
tmp$ret$38 = item_4.v().
|
|
2177
|
+
tmp$ret$38 = item_4.v().p1l_1;
|
|
2107
2178
|
var contentType = tmp$ret$38;
|
|
2108
2179
|
var tmp$ret$39;
|
|
2109
2180
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -2111,13 +2182,13 @@
|
|
|
2111
2182
|
var media = tmp$ret$39;
|
|
2112
2183
|
var tmp_6 = _StatusCode___get_value__impl__we50mu_0(status);
|
|
2113
2184
|
var tmp_7 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
2114
|
-
var schema_0 = media.
|
|
2185
|
+
var schema_0 = media.s1l_1;
|
|
2115
2186
|
var tmp_8;
|
|
2116
2187
|
if (schema_0 instanceof ReferenceObject_0) {
|
|
2117
2188
|
tmp_8 = toReference_1(schema_0, $this);
|
|
2118
2189
|
} else {
|
|
2119
2190
|
if (schema_0 instanceof SchemaObject_0) {
|
|
2120
|
-
tmp_8 = toReference_2(schema_0, $this, Common_getInstance().
|
|
2191
|
+
tmp_8 = toReference_2(schema_0, $this, Common_getInstance().x1s([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
2121
2192
|
} else {
|
|
2122
2193
|
if (schema_0 == null) {
|
|
2123
2194
|
throw new NotImplementedError();
|
|
@@ -2127,9 +2198,9 @@
|
|
|
2127
2198
|
}
|
|
2128
2199
|
}
|
|
2129
2200
|
var tmp_9 = tmp_8;
|
|
2130
|
-
var tmp0_safe_receiver_2 = media.
|
|
2201
|
+
var tmp0_safe_receiver_2 = media.s1l_1;
|
|
2131
2202
|
var tmp1_safe_receiver_0 = tmp0_safe_receiver_2 == null ? null : resolve_3(tmp0_safe_receiver_2, $this);
|
|
2132
|
-
var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
2203
|
+
var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.b1m_1;
|
|
2133
2204
|
tmp$ret$40 = new Response(tmp_6, new Content(tmp_7, tmp_9, tmp2_elvis_lhs_0 == null ? false : tmp2_elvis_lhs_0));
|
|
2134
2205
|
tmp0_mapTo_1.a(tmp$ret$40);
|
|
2135
2206
|
}
|
|
@@ -2159,14 +2230,14 @@
|
|
|
2159
2230
|
return tmp$ret$51;
|
|
2160
2231
|
}
|
|
2161
2232
|
function parseRequestBody_0($this) {
|
|
2162
|
-
return flatMapRequests_0($this.
|
|
2233
|
+
return flatMapRequests_0($this.p1t_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
|
|
2163
2234
|
}
|
|
2164
2235
|
function parseResponseBody_0($this) {
|
|
2165
|
-
return flatMapResponses_0($this.
|
|
2236
|
+
return flatMapResponses_0($this.p1t_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
|
|
2166
2237
|
}
|
|
2167
2238
|
function parseComponents($this) {
|
|
2168
|
-
var tmp0_safe_receiver = $this.
|
|
2169
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2239
|
+
var tmp0_safe_receiver = $this.p1t_1.f1j_1;
|
|
2240
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y1n_1;
|
|
2170
2241
|
var tmp;
|
|
2171
2242
|
if (tmp1_safe_receiver == null) {
|
|
2172
2243
|
tmp = null;
|
|
@@ -2184,7 +2255,7 @@
|
|
|
2184
2255
|
var element = tmp0_iterator.e();
|
|
2185
2256
|
var tmp$ret$1;
|
|
2186
2257
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2187
|
-
tmp$ret$1 = flatten_2(element.w(), $this, Common_getInstance().
|
|
2258
|
+
tmp$ret$1 = flatten_2(element.w(), $this, Common_getInstance().x1s([element.v()]));
|
|
2188
2259
|
var list = tmp$ret$1;
|
|
2189
2260
|
addAll(tmp0_flatMapTo, list);
|
|
2190
2261
|
}
|
|
@@ -2207,7 +2278,7 @@
|
|
|
2207
2278
|
var item = tmp0_iterator_0.e();
|
|
2208
2279
|
var tmp$ret$4;
|
|
2209
2280
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2210
|
-
tmp$ret$4 = new Type(item.
|
|
2281
|
+
tmp$ret$4 = new Type(item.q1t_1, new Shape(item.r1t_1));
|
|
2211
2282
|
tmp1_mapTo.a(tmp$ret$4);
|
|
2212
2283
|
}
|
|
2213
2284
|
tmp$ret$5 = tmp1_mapTo;
|
|
@@ -2250,7 +2321,7 @@
|
|
|
2250
2321
|
var element = tmp0_iterator_0.e();
|
|
2251
2322
|
var tmp$ret$2;
|
|
2252
2323
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2253
|
-
tmp$ret$2 = element.
|
|
2324
|
+
tmp$ret$2 = element.f1l_1 === param;
|
|
2254
2325
|
if (tmp$ret$2) {
|
|
2255
2326
|
tmp$ret$3 = element;
|
|
2256
2327
|
break $l$block;
|
|
@@ -2260,7 +2331,7 @@
|
|
|
2260
2331
|
}
|
|
2261
2332
|
tmp$ret$4 = tmp$ret$3;
|
|
2262
2333
|
var tmp0_safe_receiver = tmp$ret$4;
|
|
2263
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2334
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b1l_1;
|
|
2264
2335
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_3(tmp1_safe_receiver, $this);
|
|
2265
2336
|
var tmp_0;
|
|
2266
2337
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2271,7 +2342,7 @@
|
|
|
2271
2342
|
// Inline function 'kotlin.contracts.contract' call
|
|
2272
2343
|
var tmp$ret$5;
|
|
2273
2344
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2274
|
-
var tmp0_safe_receiver_0 = tmp2_safe_receiver.
|
|
2345
|
+
var tmp0_safe_receiver_0 = tmp2_safe_receiver.k1m_1;
|
|
2275
2346
|
tmp$ret$5 = tmp0_safe_receiver_0 == null ? null : toPrimitive_0(tmp0_safe_receiver_0, $this);
|
|
2276
2347
|
tmp$ret$6 = tmp$ret$5;
|
|
2277
2348
|
tmp_0 = tmp$ret$6;
|
|
@@ -2310,7 +2381,7 @@
|
|
|
2310
2381
|
return tmp$ret$11;
|
|
2311
2382
|
}
|
|
2312
2383
|
function toName_0(_this__u8e3s4, $this, segments, method) {
|
|
2313
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2384
|
+
var tmp0_safe_receiver = _this__u8e3s4.j1k_1;
|
|
2314
2385
|
var tmp;
|
|
2315
2386
|
if (tmp0_safe_receiver == null) {
|
|
2316
2387
|
tmp = null;
|
|
@@ -2320,7 +2391,7 @@
|
|
|
2320
2391
|
// Inline function 'kotlin.contracts.contract' call
|
|
2321
2392
|
var tmp$ret$0;
|
|
2322
2393
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
2323
|
-
tmp$ret$0 = Common_getInstance().
|
|
2394
|
+
tmp$ret$0 = Common_getInstance().x1s([tmp0_safe_receiver]);
|
|
2324
2395
|
tmp$ret$1 = tmp$ret$0;
|
|
2325
2396
|
tmp = tmp$ret$1;
|
|
2326
2397
|
}
|
|
@@ -2342,7 +2413,7 @@
|
|
|
2342
2413
|
return tmp_0;
|
|
2343
2414
|
}
|
|
2344
2415
|
function resolveParameters_1(_this__u8e3s4, $this) {
|
|
2345
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2416
|
+
var tmp0_safe_receiver = _this__u8e3s4.k1k_1;
|
|
2346
2417
|
var tmp;
|
|
2347
2418
|
if (tmp0_safe_receiver == null) {
|
|
2348
2419
|
tmp = null;
|
|
@@ -2390,7 +2461,7 @@
|
|
|
2390
2461
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2391
2462
|
}
|
|
2392
2463
|
function resolveParameters_2(_this__u8e3s4, $this) {
|
|
2393
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2464
|
+
var tmp0_safe_receiver = _this__u8e3s4.b1k_1;
|
|
2394
2465
|
var tmp;
|
|
2395
2466
|
if (tmp0_safe_receiver == null) {
|
|
2396
2467
|
tmp = null;
|
|
@@ -2438,8 +2509,8 @@
|
|
|
2438
2509
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2439
2510
|
}
|
|
2440
2511
|
function resolveParameterObject_0(_this__u8e3s4, $this) {
|
|
2441
|
-
var tmp0_safe_receiver = $this.
|
|
2442
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2512
|
+
var tmp0_safe_receiver = $this.p1t_1.f1j_1;
|
|
2513
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1o_1;
|
|
2443
2514
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2444
2515
|
var tmp;
|
|
2445
2516
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2468,8 +2539,8 @@
|
|
|
2468
2539
|
return tmp;
|
|
2469
2540
|
}
|
|
2470
2541
|
function resolveSchemaObject_0(_this__u8e3s4, $this) {
|
|
2471
|
-
var tmp0_safe_receiver = $this.
|
|
2472
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2542
|
+
var tmp0_safe_receiver = $this.p1t_1.f1j_1;
|
|
2543
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y1n_1;
|
|
2473
2544
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2474
2545
|
var tmp;
|
|
2475
2546
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2498,7 +2569,7 @@
|
|
|
2498
2569
|
var tmp3_elvis_lhs = tmp;
|
|
2499
2570
|
var tmp_1;
|
|
2500
2571
|
if (tmp3_elvis_lhs == null) {
|
|
2501
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2572
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.y1l_1);
|
|
2502
2573
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2503
2574
|
} else {
|
|
2504
2575
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2506,8 +2577,8 @@
|
|
|
2506
2577
|
return tmp_1;
|
|
2507
2578
|
}
|
|
2508
2579
|
function resolveRequestBodyObject(_this__u8e3s4, $this) {
|
|
2509
|
-
var tmp0_safe_receiver = $this.
|
|
2510
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2580
|
+
var tmp0_safe_receiver = $this.p1t_1.f1j_1;
|
|
2581
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c1o_1;
|
|
2511
2582
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2512
2583
|
var tmp;
|
|
2513
2584
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2536,7 +2607,7 @@
|
|
|
2536
2607
|
var tmp3_elvis_lhs = tmp;
|
|
2537
2608
|
var tmp_1;
|
|
2538
2609
|
if (tmp3_elvis_lhs == null) {
|
|
2539
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2610
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.y1l_1);
|
|
2540
2611
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2541
2612
|
} else {
|
|
2542
2613
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2544,8 +2615,8 @@
|
|
|
2544
2615
|
return tmp_1;
|
|
2545
2616
|
}
|
|
2546
2617
|
function resolveResponseObject_0(_this__u8e3s4, $this) {
|
|
2547
|
-
var tmp0_safe_receiver = $this.
|
|
2548
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2618
|
+
var tmp0_safe_receiver = $this.p1t_1.f1j_1;
|
|
2619
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z1n_1;
|
|
2549
2620
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2550
2621
|
var tmp;
|
|
2551
2622
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2574,7 +2645,7 @@
|
|
|
2574
2645
|
var tmp3_elvis_lhs = tmp;
|
|
2575
2646
|
var tmp_1;
|
|
2576
2647
|
if (tmp3_elvis_lhs == null) {
|
|
2577
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2648
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.y1l_1);
|
|
2578
2649
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2579
2650
|
} else {
|
|
2580
2651
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2642,7 +2713,7 @@
|
|
|
2642
2713
|
return tmp;
|
|
2643
2714
|
}
|
|
2644
2715
|
function flatten_1(_this__u8e3s4, $this, name) {
|
|
2645
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2716
|
+
var tmp0_subject = _this__u8e3s4.k1m_1;
|
|
2646
2717
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
2647
2718
|
var tmp;
|
|
2648
2719
|
switch (tmp0) {
|
|
@@ -2652,7 +2723,7 @@
|
|
|
2652
2723
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2653
2724
|
var tmp$ret$0;
|
|
2654
2725
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2655
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
2726
|
+
var tmp0_orEmpty = _this__u8e3s4.q1m_1;
|
|
2656
2727
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
2657
2728
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2658
2729
|
var tmp2_flatMap = tmp$ret$0;
|
|
@@ -2678,7 +2749,7 @@
|
|
|
2678
2749
|
var tmp0_subject_0 = value;
|
|
2679
2750
|
var tmp_0;
|
|
2680
2751
|
if (tmp0_subject_0 instanceof SchemaObject_0) {
|
|
2681
|
-
tmp_0 = flatten_1(value, $this, Common_getInstance().
|
|
2752
|
+
tmp_0 = flatten_1(value, $this, Common_getInstance().x1s([name, key]));
|
|
2682
2753
|
} else {
|
|
2683
2754
|
if (tmp0_subject_0 instanceof ReferenceObject_0) {
|
|
2684
2755
|
tmp_0 = emptyList();
|
|
@@ -2694,10 +2765,10 @@
|
|
|
2694
2765
|
tmp$ret$6 = tmp$ret$5;
|
|
2695
2766
|
|
|
2696
2767
|
var fields = tmp$ret$6;
|
|
2697
|
-
var tmp1_subject = _this__u8e3s4.
|
|
2768
|
+
var tmp1_subject = _this__u8e3s4.r1m_1;
|
|
2698
2769
|
var tmp_1;
|
|
2699
2770
|
if (tmp1_subject == null) {
|
|
2700
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
2771
|
+
var tmp2_safe_receiver = _this__u8e3s4.q1m_1;
|
|
2701
2772
|
var tmp_2;
|
|
2702
2773
|
if (tmp2_safe_receiver == null) {
|
|
2703
2774
|
tmp_2 = null;
|
|
@@ -2727,15 +2798,15 @@
|
|
|
2727
2798
|
var tmp_3;
|
|
2728
2799
|
if (tmp0_subject_1 instanceof SchemaObject_0) {
|
|
2729
2800
|
var tmp_4 = new Identifier(key_0);
|
|
2730
|
-
var tmp_5 = toReference_2(value_0, $this, Common_getInstance().
|
|
2731
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
2801
|
+
var tmp_5 = toReference_2(value_0, $this, Common_getInstance().x1s([name, key_0]));
|
|
2802
|
+
var tmp1_safe_receiver = _this__u8e3s4.j1n_1;
|
|
2732
2803
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : contains(tmp1_safe_receiver, key_0);
|
|
2733
2804
|
tmp_3 = new Field(tmp_4, tmp_5, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
2734
2805
|
} else {
|
|
2735
2806
|
if (tmp0_subject_1 instanceof ReferenceObject_0) {
|
|
2736
2807
|
var tmp_6 = new Identifier(key_0);
|
|
2737
2808
|
var tmp_7 = toReference_1(value_0, $this);
|
|
2738
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
2809
|
+
var tmp3_safe_receiver = _this__u8e3s4.j1n_1;
|
|
2739
2810
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : contains(tmp3_safe_receiver, key_0);
|
|
2740
2811
|
tmp_3 = new Field(tmp_6, tmp_7, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
2741
2812
|
} else {
|
|
@@ -2759,7 +2830,7 @@
|
|
|
2759
2830
|
tmp = plus(schema, fields);
|
|
2760
2831
|
break;
|
|
2761
2832
|
case 4:
|
|
2762
|
-
var tmp4_safe_receiver = _this__u8e3s4.
|
|
2833
|
+
var tmp4_safe_receiver = _this__u8e3s4.p1m_1;
|
|
2763
2834
|
var tmp_8;
|
|
2764
2835
|
if (tmp4_safe_receiver == null) {
|
|
2765
2836
|
tmp_8 = null;
|
|
@@ -2775,7 +2846,7 @@
|
|
|
2775
2846
|
tmp_9 = emptyList();
|
|
2776
2847
|
} else {
|
|
2777
2848
|
if (tmp0_subject_2 instanceof SchemaObject_0) {
|
|
2778
|
-
tmp_9 = flatten_1(tmp4_safe_receiver, $this, Common_getInstance().
|
|
2849
|
+
tmp_9 = flatten_1(tmp4_safe_receiver, $this, Common_getInstance().x1s([name, 'array']));
|
|
2779
2850
|
} else {
|
|
2780
2851
|
noWhenBranchMatchedException();
|
|
2781
2852
|
}
|
|
@@ -2809,15 +2880,15 @@
|
|
|
2809
2880
|
return tmp;
|
|
2810
2881
|
}
|
|
2811
2882
|
function SimpleSchema_0(name, properties) {
|
|
2812
|
-
this.
|
|
2813
|
-
this.
|
|
2883
|
+
this.q1t_1 = name;
|
|
2884
|
+
this.r1t_1 = properties;
|
|
2814
2885
|
}
|
|
2815
2886
|
protoOf(SimpleSchema_0).toString = function () {
|
|
2816
|
-
return 'SimpleSchema(name=' + this.
|
|
2887
|
+
return 'SimpleSchema(name=' + this.q1t_1 + ', properties=' + this.r1t_1 + ')';
|
|
2817
2888
|
};
|
|
2818
2889
|
protoOf(SimpleSchema_0).hashCode = function () {
|
|
2819
|
-
var result = getStringHashCode(this.
|
|
2820
|
-
result = imul(result, 31) + hashCode(this.
|
|
2890
|
+
var result = getStringHashCode(this.q1t_1);
|
|
2891
|
+
result = imul(result, 31) + hashCode(this.r1t_1) | 0;
|
|
2821
2892
|
return result;
|
|
2822
2893
|
};
|
|
2823
2894
|
protoOf(SimpleSchema_0).equals = function (other) {
|
|
@@ -2826,93 +2897,116 @@
|
|
|
2826
2897
|
if (!(other instanceof SimpleSchema_0))
|
|
2827
2898
|
return false;
|
|
2828
2899
|
var tmp0_other_with_cast = other instanceof SimpleSchema_0 ? other : THROW_CCE();
|
|
2829
|
-
if (!(this.
|
|
2900
|
+
if (!(this.q1t_1 === tmp0_other_with_cast.q1t_1))
|
|
2830
2901
|
return false;
|
|
2831
|
-
if (!equals(this.
|
|
2902
|
+
if (!equals(this.r1t_1, tmp0_other_with_cast.r1t_1))
|
|
2832
2903
|
return false;
|
|
2833
2904
|
return true;
|
|
2834
2905
|
};
|
|
2835
2906
|
function toReference_1(_this__u8e3s4, $this) {
|
|
2836
|
-
var
|
|
2837
|
-
|
|
2838
|
-
var
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2907
|
+
var tmp$ret$1;
|
|
2908
|
+
// Inline function 'kotlin.let' call
|
|
2909
|
+
var tmp0_let = resolveSchemaObject_0(_this__u8e3s4, $this);
|
|
2910
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2911
|
+
var tmp$ret$0;
|
|
2912
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toReference.<anonymous>' call
|
|
2913
|
+
var referencingObject = tmp0_let.i3();
|
|
2914
|
+
var schema = tmp0_let.j3();
|
|
2915
|
+
var additionalProperties = schema.r1m_1;
|
|
2916
|
+
var tmp;
|
|
2917
|
+
if (additionalProperties instanceof BooleanObject_0) {
|
|
2918
|
+
throw new NotImplementedError();
|
|
2919
|
+
} else {
|
|
2920
|
+
if (additionalProperties instanceof ReferenceObject_0) {
|
|
2921
|
+
tmp = new Custom(Common_getInstance().x1s([getReference_0(additionalProperties, $this)]), false, true);
|
|
2844
2922
|
} else {
|
|
2845
|
-
if (additionalProperties instanceof
|
|
2846
|
-
tmp = new Custom(Common_getInstance().
|
|
2923
|
+
if (additionalProperties instanceof SchemaObject_0) {
|
|
2924
|
+
tmp = new Custom(Common_getInstance().x1s([getReference_0(referencingObject, $this)]), false, true);
|
|
2847
2925
|
} else {
|
|
2848
|
-
if (additionalProperties
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2926
|
+
if (additionalProperties == null) {
|
|
2927
|
+
var tmp0_subject = schema.k1m_1;
|
|
2928
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
2929
|
+
var tmp_0;
|
|
2930
|
+
if (tmp0 === 4) {
|
|
2931
|
+
var items = schema.p1m_1;
|
|
2932
|
+
var tmp_1;
|
|
2933
|
+
if (items instanceof ReferenceObject_0) {
|
|
2934
|
+
tmp_1 = new Custom(Common_getInstance().x1s([getReference_0(items, $this)]), true);
|
|
2935
|
+
} else {
|
|
2936
|
+
if (items instanceof SchemaObject_0) {
|
|
2937
|
+
tmp_1 = new Custom(Common_getInstance().x1s([getReference_0(referencingObject, $this), 'Array']), true);
|
|
2938
|
+
} else {
|
|
2939
|
+
if (items == null) {
|
|
2940
|
+
var tmp0_error = 'When schema is of type array items cannot be null for name: ' + new Ref_0(_this__u8e3s4.y1l_1);
|
|
2941
|
+
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2942
|
+
} else {
|
|
2943
|
+
noWhenBranchMatchedException();
|
|
2944
|
+
}
|
|
2945
|
+
}
|
|
2946
|
+
}
|
|
2947
|
+
tmp_0 = tmp_1;
|
|
2853
2948
|
} else {
|
|
2854
|
-
|
|
2949
|
+
tmp_0 = new Custom(Common_getInstance().x1s([getReference_0(referencingObject, $this)]), false);
|
|
2855
2950
|
}
|
|
2951
|
+
tmp = tmp_0;
|
|
2952
|
+
} else {
|
|
2953
|
+
noWhenBranchMatchedException();
|
|
2856
2954
|
}
|
|
2857
2955
|
}
|
|
2858
2956
|
}
|
|
2859
|
-
return tmp;
|
|
2860
2957
|
}
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
if (tmp0 === 4) {
|
|
2865
|
-
var items = schema.n1m_1;
|
|
2866
|
-
var tmp_1;
|
|
2867
|
-
if (items instanceof ReferenceObject_0) {
|
|
2868
|
-
tmp_1 = new Custom(Common_getInstance().v1s([getReference_0(items, $this)]), true);
|
|
2869
|
-
} else {
|
|
2870
|
-
if (items instanceof SchemaObject_0) {
|
|
2871
|
-
tmp_1 = new Custom(Common_getInstance().v1s([getReference_0(referencingObject, $this), 'array']), true);
|
|
2872
|
-
} else {
|
|
2873
|
-
throw new NotImplementedError();
|
|
2874
|
-
}
|
|
2875
|
-
}
|
|
2876
|
-
tmp_0 = tmp_1;
|
|
2877
|
-
} else {
|
|
2878
|
-
tmp_0 = new Custom(Common_getInstance().v1s([getReference_0(referencingObject, $this)]), false);
|
|
2879
|
-
}
|
|
2880
|
-
return tmp_0;
|
|
2958
|
+
tmp$ret$0 = tmp;
|
|
2959
|
+
tmp$ret$1 = tmp$ret$0;
|
|
2960
|
+
return tmp$ret$1;
|
|
2881
2961
|
}
|
|
2882
2962
|
function toReference_2(_this__u8e3s4, $this, name) {
|
|
2883
|
-
var
|
|
2884
|
-
var tmp0 =
|
|
2963
|
+
var type = _this__u8e3s4.k1m_1;
|
|
2964
|
+
var tmp0 = type == null ? -1 : type.q4_1;
|
|
2885
2965
|
var tmp;
|
|
2886
2966
|
switch (tmp0) {
|
|
2887
2967
|
case 0:
|
|
2888
2968
|
case 1:
|
|
2889
2969
|
case 2:
|
|
2890
2970
|
case 3:
|
|
2891
|
-
tmp = new Primitive(toPrimitive_0(
|
|
2971
|
+
tmp = new Primitive(toPrimitive_0(type, $this), false);
|
|
2892
2972
|
break;
|
|
2893
2973
|
case -1:
|
|
2894
2974
|
case 5:
|
|
2895
|
-
|
|
2975
|
+
var tmp0_safe_receiver = _this__u8e3s4.r1m_1;
|
|
2976
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_4(tmp0_safe_receiver, $this);
|
|
2977
|
+
var additionalPropertiesType = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k1m_1;
|
|
2978
|
+
var tmp0_0 = additionalPropertiesType == null ? -1 : additionalPropertiesType.q4_1;
|
|
2979
|
+
switch (tmp0_0) {
|
|
2980
|
+
case 0:
|
|
2981
|
+
case 2:
|
|
2982
|
+
case 1:
|
|
2983
|
+
case 3:
|
|
2984
|
+
tmp = new Primitive(toPrimitive_0(additionalPropertiesType, $this), false, !(_this__u8e3s4.r1m_1 == null));
|
|
2985
|
+
break;
|
|
2986
|
+
default:
|
|
2987
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.r1m_1 == null));
|
|
2988
|
+
break;
|
|
2989
|
+
}
|
|
2990
|
+
|
|
2896
2991
|
break;
|
|
2897
2992
|
case 4:
|
|
2898
|
-
var
|
|
2899
|
-
var
|
|
2900
|
-
var
|
|
2901
|
-
var
|
|
2902
|
-
var tmp0_0 = type == null ? -1 : type.q4_1;
|
|
2993
|
+
var tmp2_safe_receiver = _this__u8e3s4.p1m_1;
|
|
2994
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : resolve_3(tmp2_safe_receiver, $this);
|
|
2995
|
+
var type_0 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.k1m_1;
|
|
2996
|
+
var tmp0_1 = type_0 == null ? -1 : type_0.q4_1;
|
|
2903
2997
|
var tmp_0;
|
|
2904
|
-
switch (
|
|
2998
|
+
switch (tmp0_1) {
|
|
2905
2999
|
case 0:
|
|
2906
3000
|
case 1:
|
|
2907
3001
|
case 2:
|
|
2908
3002
|
case 3:
|
|
2909
|
-
tmp_0 = new Primitive(toPrimitive_0(
|
|
3003
|
+
tmp_0 = new Primitive(toPrimitive_0(type_0, $this), true);
|
|
2910
3004
|
break;
|
|
2911
3005
|
default:
|
|
2912
|
-
var it = _this__u8e3s4.
|
|
3006
|
+
var it = _this__u8e3s4.p1m_1;
|
|
2913
3007
|
var tmp_1;
|
|
2914
3008
|
if (it instanceof ReferenceObject_0) {
|
|
2915
|
-
tmp_1 = toReference_1(it, $this).
|
|
3009
|
+
tmp_1 = toReference_1(it, $this).dl(VOID, true);
|
|
2916
3010
|
} else {
|
|
2917
3011
|
if (it instanceof SchemaObject_0) {
|
|
2918
3012
|
tmp_1 = toReference_2(it, $this, name);
|
|
@@ -2958,28 +3052,28 @@
|
|
|
2958
3052
|
var tmp;
|
|
2959
3053
|
switch (tmp0) {
|
|
2960
3054
|
case 0:
|
|
2961
|
-
tmp = _this__u8e3s4.
|
|
3055
|
+
tmp = _this__u8e3s4.s1j_1;
|
|
2962
3056
|
break;
|
|
2963
3057
|
case 1:
|
|
2964
|
-
tmp = _this__u8e3s4.
|
|
3058
|
+
tmp = _this__u8e3s4.u1j_1;
|
|
2965
3059
|
break;
|
|
2966
3060
|
case 2:
|
|
2967
|
-
tmp = _this__u8e3s4.
|
|
3061
|
+
tmp = _this__u8e3s4.t1j_1;
|
|
2968
3062
|
break;
|
|
2969
3063
|
case 3:
|
|
2970
|
-
tmp = _this__u8e3s4.
|
|
3064
|
+
tmp = _this__u8e3s4.v1j_1;
|
|
2971
3065
|
break;
|
|
2972
3066
|
case 4:
|
|
2973
|
-
tmp = _this__u8e3s4.
|
|
3067
|
+
tmp = _this__u8e3s4.w1j_1;
|
|
2974
3068
|
break;
|
|
2975
3069
|
case 5:
|
|
2976
|
-
tmp = _this__u8e3s4.
|
|
3070
|
+
tmp = _this__u8e3s4.x1j_1;
|
|
2977
3071
|
break;
|
|
2978
3072
|
case 6:
|
|
2979
|
-
tmp = _this__u8e3s4.
|
|
3073
|
+
tmp = _this__u8e3s4.y1j_1;
|
|
2980
3074
|
break;
|
|
2981
3075
|
case 7:
|
|
2982
|
-
tmp = _this__u8e3s4.
|
|
3076
|
+
tmp = _this__u8e3s4.z1j_1;
|
|
2983
3077
|
break;
|
|
2984
3078
|
default:
|
|
2985
3079
|
noWhenBranchMatchedException();
|
|
@@ -2993,7 +3087,7 @@
|
|
|
2993
3087
|
return filterNotNullValues_0(tmp$ret$2);
|
|
2994
3088
|
}
|
|
2995
3089
|
function getReference_0(_this__u8e3s4, $this) {
|
|
2996
|
-
return split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
3090
|
+
return split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.y1l_1), ['/']).h(3);
|
|
2997
3091
|
}
|
|
2998
3092
|
function toPrimitive_0(_this__u8e3s4, $this) {
|
|
2999
3093
|
var tmp0_subject = _this__u8e3s4;
|
|
@@ -3020,15 +3114,15 @@
|
|
|
3020
3114
|
function toField_0(_this__u8e3s4, $this) {
|
|
3021
3115
|
var tmp$ret$1;
|
|
3022
3116
|
// Inline function 'kotlin.let' call
|
|
3023
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3117
|
+
var tmp0_subject = _this__u8e3s4.b1l_1;
|
|
3024
3118
|
var tmp;
|
|
3025
3119
|
if (tmp0_subject instanceof ReferenceObject_0) {
|
|
3026
|
-
var tmp_0 = _this__u8e3s4.
|
|
3120
|
+
var tmp_0 = _this__u8e3s4.b1l_1;
|
|
3027
3121
|
tmp = new Custom(getReference_0(tmp_0 instanceof ReferenceObject_0 ? tmp_0 : THROW_CCE(), $this), false);
|
|
3028
3122
|
} else {
|
|
3029
3123
|
if (tmp0_subject instanceof SchemaObject_0) {
|
|
3030
|
-
var tmp_1 = _this__u8e3s4.
|
|
3031
|
-
var type = (tmp_1 instanceof SchemaObject_0 ? tmp_1 : THROW_CCE()).
|
|
3124
|
+
var tmp_1 = _this__u8e3s4.b1l_1;
|
|
3125
|
+
var type = (tmp_1 instanceof SchemaObject_0 ? tmp_1 : THROW_CCE()).k1m_1;
|
|
3032
3126
|
var tmp0 = type == null ? -1 : type.q4_1;
|
|
3033
3127
|
var tmp_2;
|
|
3034
3128
|
switch (tmp0) {
|
|
@@ -3061,26 +3155,26 @@
|
|
|
3061
3155
|
// Inline function 'kotlin.contracts.contract' call
|
|
3062
3156
|
var tmp$ret$0;
|
|
3063
3157
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3064
|
-
var tmp_3 = new Identifier(_this__u8e3s4.
|
|
3065
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
3158
|
+
var tmp_3 = new Identifier(_this__u8e3s4.f1l_1);
|
|
3159
|
+
var tmp0_elvis_lhs = _this__u8e3s4.v1k_1;
|
|
3066
3160
|
tmp$ret$0 = new Field(tmp_3, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
3067
3161
|
tmp$ret$1 = tmp$ret$0;
|
|
3068
3162
|
return tmp$ret$1;
|
|
3069
3163
|
}
|
|
3070
3164
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
3071
|
-
this.
|
|
3072
|
-
this.
|
|
3073
|
-
this.
|
|
3074
|
-
this.
|
|
3165
|
+
this.s1t_1 = path;
|
|
3166
|
+
this.t1t_1 = pathItem;
|
|
3167
|
+
this.u1t_1 = method;
|
|
3168
|
+
this.v1t_1 = operation;
|
|
3075
3169
|
}
|
|
3076
3170
|
protoOf(FlattenRequest_0).toString = function () {
|
|
3077
|
-
return 'FlattenRequest(path=' + new Path_0(this.
|
|
3171
|
+
return 'FlattenRequest(path=' + new Path_0(this.s1t_1) + ', pathItem=' + this.t1t_1 + ', method=' + this.u1t_1 + ', operation=' + this.v1t_1 + ')';
|
|
3078
3172
|
};
|
|
3079
3173
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
3080
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3081
|
-
result = imul(result, 31) + this.r1t_1.hashCode() | 0;
|
|
3082
|
-
result = imul(result, 31) + this.s1t_1.hashCode() | 0;
|
|
3174
|
+
var result = Path__hashCode_impl_go73kd_0(this.s1t_1);
|
|
3083
3175
|
result = imul(result, 31) + this.t1t_1.hashCode() | 0;
|
|
3176
|
+
result = imul(result, 31) + this.u1t_1.hashCode() | 0;
|
|
3177
|
+
result = imul(result, 31) + this.v1t_1.hashCode() | 0;
|
|
3084
3178
|
return result;
|
|
3085
3179
|
};
|
|
3086
3180
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -3089,13 +3183,13 @@
|
|
|
3089
3183
|
if (!(other instanceof FlattenRequest_0))
|
|
3090
3184
|
return false;
|
|
3091
3185
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
3092
|
-
if (!(this.
|
|
3186
|
+
if (!(this.s1t_1 === tmp0_other_with_cast.s1t_1))
|
|
3093
3187
|
return false;
|
|
3094
|
-
if (!this.
|
|
3188
|
+
if (!this.t1t_1.equals(tmp0_other_with_cast.t1t_1))
|
|
3095
3189
|
return false;
|
|
3096
|
-
if (!this.
|
|
3190
|
+
if (!this.u1t_1.equals(tmp0_other_with_cast.u1t_1))
|
|
3097
3191
|
return false;
|
|
3098
|
-
if (!this.
|
|
3192
|
+
if (!this.v1t_1.equals(tmp0_other_with_cast.v1t_1))
|
|
3099
3193
|
return false;
|
|
3100
3194
|
return true;
|
|
3101
3195
|
};
|
|
@@ -3104,7 +3198,7 @@
|
|
|
3104
3198
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3105
3199
|
var tmp$ret$11;
|
|
3106
3200
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3107
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
3201
|
+
var tmp1_flatMap = _this__u8e3s4.e1j_1;
|
|
3108
3202
|
var tmp$ret$10;
|
|
3109
3203
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3110
3204
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -3118,7 +3212,7 @@
|
|
|
3118
3212
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
3119
3213
|
var tmp$ret$1;
|
|
3120
3214
|
// Inline function 'kotlin.collections.component1' call
|
|
3121
|
-
tmp$ret$1 = element.v().
|
|
3215
|
+
tmp$ret$1 = element.v().m1j_1;
|
|
3122
3216
|
var path = tmp$ret$1;
|
|
3123
3217
|
var tmp$ret$2;
|
|
3124
3218
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3175,23 +3269,23 @@
|
|
|
3175
3269
|
return tmp$ret$14;
|
|
3176
3270
|
}
|
|
3177
3271
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
3178
|
-
this.
|
|
3179
|
-
this.
|
|
3180
|
-
this.
|
|
3181
|
-
this.
|
|
3182
|
-
this.
|
|
3183
|
-
this.
|
|
3272
|
+
this.w1t_1 = path;
|
|
3273
|
+
this.x1t_1 = pathItem;
|
|
3274
|
+
this.y1t_1 = method;
|
|
3275
|
+
this.z1t_1 = operation;
|
|
3276
|
+
this.a1u_1 = statusCode;
|
|
3277
|
+
this.b1u_1 = response;
|
|
3184
3278
|
}
|
|
3185
3279
|
protoOf(FlattenResponse_0).toString = function () {
|
|
3186
|
-
return 'FlattenResponse(path=' + new Path_0(this.
|
|
3280
|
+
return 'FlattenResponse(path=' + new Path_0(this.w1t_1) + ', pathItem=' + this.x1t_1 + ', method=' + this.y1t_1 + ', operation=' + this.z1t_1 + ', statusCode=' + new StatusCode_0(this.a1u_1) + ', response=' + this.b1u_1 + ')';
|
|
3187
3281
|
};
|
|
3188
3282
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
3189
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3190
|
-
result = imul(result, 31) + this.v1t_1.hashCode() | 0;
|
|
3191
|
-
result = imul(result, 31) + this.w1t_1.hashCode() | 0;
|
|
3283
|
+
var result = Path__hashCode_impl_go73kd_0(this.w1t_1);
|
|
3192
3284
|
result = imul(result, 31) + this.x1t_1.hashCode() | 0;
|
|
3193
|
-
result = imul(result, 31) +
|
|
3194
|
-
result = imul(result, 31) +
|
|
3285
|
+
result = imul(result, 31) + this.y1t_1.hashCode() | 0;
|
|
3286
|
+
result = imul(result, 31) + this.z1t_1.hashCode() | 0;
|
|
3287
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.a1u_1) | 0;
|
|
3288
|
+
result = imul(result, 31) + hashCode(this.b1u_1) | 0;
|
|
3195
3289
|
return result;
|
|
3196
3290
|
};
|
|
3197
3291
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -3200,17 +3294,17 @@
|
|
|
3200
3294
|
if (!(other instanceof FlattenResponse_0))
|
|
3201
3295
|
return false;
|
|
3202
3296
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
3203
|
-
if (!(this.
|
|
3297
|
+
if (!(this.w1t_1 === tmp0_other_with_cast.w1t_1))
|
|
3204
3298
|
return false;
|
|
3205
|
-
if (!this.
|
|
3299
|
+
if (!this.x1t_1.equals(tmp0_other_with_cast.x1t_1))
|
|
3206
3300
|
return false;
|
|
3207
|
-
if (!this.
|
|
3301
|
+
if (!this.y1t_1.equals(tmp0_other_with_cast.y1t_1))
|
|
3208
3302
|
return false;
|
|
3209
|
-
if (!this.
|
|
3303
|
+
if (!this.z1t_1.equals(tmp0_other_with_cast.z1t_1))
|
|
3210
3304
|
return false;
|
|
3211
|
-
if (!(this.
|
|
3305
|
+
if (!(this.a1u_1 === tmp0_other_with_cast.a1u_1))
|
|
3212
3306
|
return false;
|
|
3213
|
-
if (!equals(this.
|
|
3307
|
+
if (!equals(this.b1u_1, tmp0_other_with_cast.b1u_1))
|
|
3214
3308
|
return false;
|
|
3215
3309
|
return true;
|
|
3216
3310
|
};
|
|
@@ -3219,7 +3313,7 @@
|
|
|
3219
3313
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3220
3314
|
var tmp$ret$18;
|
|
3221
3315
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3222
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
3316
|
+
var tmp1_flatMap = _this__u8e3s4.e1j_1;
|
|
3223
3317
|
var tmp$ret$17;
|
|
3224
3318
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3225
3319
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -3233,7 +3327,7 @@
|
|
|
3233
3327
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
3234
3328
|
var tmp$ret$1;
|
|
3235
3329
|
// Inline function 'kotlin.collections.component1' call
|
|
3236
|
-
tmp$ret$1 = element.v().
|
|
3330
|
+
tmp$ret$1 = element.v().m1j_1;
|
|
3237
3331
|
var path = tmp$ret$1;
|
|
3238
3332
|
var tmp$ret$2;
|
|
3239
3333
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3263,7 +3357,7 @@
|
|
|
3263
3357
|
var operation = tmp$ret$5;
|
|
3264
3358
|
var tmp$ret$12;
|
|
3265
3359
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3266
|
-
var tmp0_safe_receiver = operation.
|
|
3360
|
+
var tmp0_safe_receiver = operation.m1k_1;
|
|
3267
3361
|
var tmp;
|
|
3268
3362
|
if (tmp0_safe_receiver == null) {
|
|
3269
3363
|
tmp = null;
|
|
@@ -3283,7 +3377,7 @@
|
|
|
3283
3377
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
3284
3378
|
var tmp$ret$7;
|
|
3285
3379
|
// Inline function 'kotlin.collections.component1' call
|
|
3286
|
-
tmp$ret$7 = item.v().
|
|
3380
|
+
tmp$ret$7 = item.v().o1n_1;
|
|
3287
3381
|
var statusCode = tmp$ret$7;
|
|
3288
3382
|
var tmp$ret$8;
|
|
3289
3383
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3330,16 +3424,16 @@
|
|
|
3330
3424
|
}
|
|
3331
3425
|
function OpenApiParser$parseRequestBody$lambda_0(this$0) {
|
|
3332
3426
|
return function (req) {
|
|
3333
|
-
var parameters = plus(resolveParameters_2(req.
|
|
3334
|
-
var segments = toSegments_0(req.
|
|
3335
|
-
var name = toName_0(req.
|
|
3427
|
+
var parameters = plus(resolveParameters_2(req.t1t_1, this$0), resolveParameters_1(req.v1t_1, this$0));
|
|
3428
|
+
var segments = toSegments_0(req.s1t_1, this$0, parameters);
|
|
3429
|
+
var name = toName_0(req.v1t_1, this$0, segments, req.u1t_1);
|
|
3336
3430
|
var tmp$ret$8;
|
|
3337
3431
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3338
3432
|
var tmp$ret$0;
|
|
3339
3433
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3340
|
-
var tmp0_safe_receiver = req.
|
|
3434
|
+
var tmp0_safe_receiver = req.v1t_1.l1k_1;
|
|
3341
3435
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, this$0);
|
|
3342
|
-
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
3436
|
+
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.l1l_1;
|
|
3343
3437
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3344
3438
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3345
3439
|
var tmp2_flatMap = tmp$ret$0;
|
|
@@ -3358,10 +3452,10 @@
|
|
|
3358
3452
|
// Inline function 'kotlin.collections.component2' call
|
|
3359
3453
|
tmp$ret$2 = element.w();
|
|
3360
3454
|
var mediaObject = tmp$ret$2;
|
|
3361
|
-
var schema = mediaObject.
|
|
3455
|
+
var schema = mediaObject.s1l_1;
|
|
3362
3456
|
var tmp;
|
|
3363
3457
|
if (schema instanceof SchemaObject_0) {
|
|
3364
|
-
var tmp0_subject = schema.
|
|
3458
|
+
var tmp0_subject = schema.k1m_1;
|
|
3365
3459
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
3366
3460
|
var tmp_0;
|
|
3367
3461
|
switch (tmp0) {
|
|
@@ -3369,7 +3463,7 @@
|
|
|
3369
3463
|
case 5:
|
|
3370
3464
|
var tmp$ret$5;
|
|
3371
3465
|
// Inline function 'kotlin.collections.map' call
|
|
3372
|
-
var tmp1_map = flatten_1(schema, this$0, Common_getInstance().
|
|
3466
|
+
var tmp1_map = flatten_1(schema, this$0, Common_getInstance().x1s([name, 'RequestBody']));
|
|
3373
3467
|
var tmp$ret$4;
|
|
3374
3468
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3375
3469
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -3378,7 +3472,7 @@
|
|
|
3378
3472
|
var item = tmp0_iterator_0.e();
|
|
3379
3473
|
var tmp$ret$3;
|
|
3380
3474
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
3381
|
-
tmp$ret$3 = new Type(item.
|
|
3475
|
+
tmp$ret$3 = new Type(item.q1t_1, new Shape(item.r1t_1));
|
|
3382
3476
|
tmp0_mapTo.a(tmp$ret$3);
|
|
3383
3477
|
}
|
|
3384
3478
|
tmp$ret$4 = tmp0_mapTo;
|
|
@@ -3413,10 +3507,10 @@
|
|
|
3413
3507
|
}
|
|
3414
3508
|
function OpenApiParser$parseResponseBody$lambda_0(this$0) {
|
|
3415
3509
|
return function (res) {
|
|
3416
|
-
var parameters = plus(resolveParameters_2(res.
|
|
3417
|
-
var segments = toSegments_0(res.
|
|
3418
|
-
var name = toName_0(res.
|
|
3419
|
-
var response = res.
|
|
3510
|
+
var parameters = plus(resolveParameters_2(res.x1t_1, this$0), resolveParameters_1(res.z1t_1, this$0));
|
|
3511
|
+
var segments = toSegments_0(res.w1t_1, this$0, parameters);
|
|
3512
|
+
var name = toName_0(res.z1t_1, this$0, segments, res.y1t_1);
|
|
3513
|
+
var response = res.b1u_1;
|
|
3420
3514
|
var tmp;
|
|
3421
3515
|
if (response instanceof ReferenceObject_0) {
|
|
3422
3516
|
tmp = emptyList();
|
|
@@ -3426,7 +3520,7 @@
|
|
|
3426
3520
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3427
3521
|
var tmp$ret$0;
|
|
3428
3522
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3429
|
-
var tmp0_orEmpty = response.
|
|
3523
|
+
var tmp0_orEmpty = response.t1n_1;
|
|
3430
3524
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3431
3525
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3432
3526
|
var tmp2_flatMap = tmp$ret$0;
|
|
@@ -3445,10 +3539,10 @@
|
|
|
3445
3539
|
// Inline function 'kotlin.collections.component2' call
|
|
3446
3540
|
tmp$ret$2 = element.w();
|
|
3447
3541
|
var mediaObject = tmp$ret$2;
|
|
3448
|
-
var schema = mediaObject.
|
|
3542
|
+
var schema = mediaObject.s1l_1;
|
|
3449
3543
|
var tmp_0;
|
|
3450
3544
|
if (schema instanceof SchemaObject_0) {
|
|
3451
|
-
var tmp0_subject = schema.
|
|
3545
|
+
var tmp0_subject = schema.k1m_1;
|
|
3452
3546
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
3453
3547
|
var tmp_1;
|
|
3454
3548
|
switch (tmp0) {
|
|
@@ -3456,10 +3550,10 @@
|
|
|
3456
3550
|
case 5:
|
|
3457
3551
|
var tmp$ret$5;
|
|
3458
3552
|
// Inline function 'kotlin.collections.map' call
|
|
3459
|
-
var tmp1_safe_receiver = schema.
|
|
3553
|
+
var tmp1_safe_receiver = schema.r1m_1;
|
|
3460
3554
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_4(tmp1_safe_receiver, this$0);
|
|
3461
|
-
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : flatten_1(tmp2_safe_receiver, this$0, Common_getInstance().
|
|
3462
|
-
var tmp1_map = tmp3_elvis_lhs == null ? flatten_1(schema, this$0, Common_getInstance().
|
|
3555
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : flatten_1(tmp2_safe_receiver, this$0, Common_getInstance().x1s([name, _StatusCode___get_value__impl__we50mu_0(res.a1u_1), 'ResponseBody']));
|
|
3556
|
+
var tmp1_map = tmp3_elvis_lhs == null ? flatten_1(schema, this$0, Common_getInstance().x1s([name, _StatusCode___get_value__impl__we50mu_0(res.a1u_1), 'ResponseBody'])) : tmp3_elvis_lhs;
|
|
3463
3557
|
var tmp$ret$4;
|
|
3464
3558
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3465
3559
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -3468,7 +3562,7 @@
|
|
|
3468
3562
|
var item = tmp0_iterator_0.e();
|
|
3469
3563
|
var tmp$ret$3;
|
|
3470
3564
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseResponseBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
3471
|
-
tmp$ret$3 = new Type(item.
|
|
3565
|
+
tmp$ret$3 = new Type(item.q1t_1, new Shape(item.r1t_1));
|
|
3472
3566
|
tmp0_mapTo.a(tmp$ret$3);
|
|
3473
3567
|
}
|
|
3474
3568
|
tmp$ret$4 = tmp0_mapTo;
|
|
@@ -3510,10 +3604,10 @@
|
|
|
3510
3604
|
var tmp0_subject = it;
|
|
3511
3605
|
var tmp;
|
|
3512
3606
|
if (tmp0_subject instanceof Literal) {
|
|
3513
|
-
tmp = Common_getInstance().
|
|
3607
|
+
tmp = Common_getInstance().x1s([it.rj_1]);
|
|
3514
3608
|
} else {
|
|
3515
3609
|
if (tmp0_subject instanceof Param) {
|
|
3516
|
-
tmp = Common_getInstance().
|
|
3610
|
+
tmp = Common_getInstance().x1s([it.si_1.dj_1]);
|
|
3517
3611
|
} else {
|
|
3518
3612
|
noWhenBranchMatchedException();
|
|
3519
3613
|
}
|
|
@@ -3522,7 +3616,7 @@
|
|
|
3522
3616
|
}
|
|
3523
3617
|
function OpenApiParser_0(openApi) {
|
|
3524
3618
|
Companion_getInstance_1();
|
|
3525
|
-
this.
|
|
3619
|
+
this.p1t_1 = openApi;
|
|
3526
3620
|
}
|
|
3527
3621
|
function filterNotNullValues_0(_this__u8e3s4) {
|
|
3528
3622
|
var tmp$ret$8;
|