@flock/wirespec 0.8.10 → 0.8.11
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/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js +294 -294
- package/kotlin-kotlin-stdlib-js-ir.js +6 -6
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin-openapi-bindings.js +3283 -3268
- package/kotlin-openapi-bindings.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1217 -1217
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +969 -969
- package/package.json +1 -1
- package/wirespec-src-compiler-cli.js +80 -80
- package/wirespec-src-compiler-core.js +346 -343
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +38 -38
- package/wirespec-src-openapi.js +432 -393
- package/wirespec-src-openapi.js.map +1 -1
package/wirespec-src-openapi.js
CHANGED
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
function Common() {
|
|
130
130
|
Common_instance = this;
|
|
131
131
|
}
|
|
132
|
-
protoOf(Common).
|
|
132
|
+
protoOf(Common).h1u = function (arg) {
|
|
133
133
|
// Inline function 'kotlin.collections.flatMap' call
|
|
134
134
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
135
135
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -154,12 +154,12 @@
|
|
|
154
154
|
function Companion() {
|
|
155
155
|
Companion_instance = this;
|
|
156
156
|
}
|
|
157
|
-
protoOf(Companion).
|
|
157
|
+
protoOf(Companion).i1u = function (json) {
|
|
158
158
|
// Inline function 'kotlin.let' call
|
|
159
|
-
var tmp0_let = Default_getInstance().
|
|
159
|
+
var tmp0_let = Default_getInstance().n1b(json);
|
|
160
160
|
// Inline function 'kotlin.contracts.contract' call
|
|
161
161
|
// Inline function 'community.flock.wirespec.openapi.v2.Companion.parse.<anonymous>' call
|
|
162
|
-
return (new OpenApiParser(tmp0_let)).
|
|
162
|
+
return (new OpenApiParser(tmp0_let)).k1u();
|
|
163
163
|
};
|
|
164
164
|
var Companion_instance;
|
|
165
165
|
function Companion_getInstance_0() {
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
}
|
|
170
170
|
function parseEndpoints($this) {
|
|
171
171
|
// Inline function 'kotlin.collections.flatMap' call
|
|
172
|
-
var tmp0_flatMap = $this.
|
|
172
|
+
var tmp0_flatMap = $this.j1u_1.x1b_1;
|
|
173
173
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
174
174
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
175
175
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
var element = tmp0_iterator.e();
|
|
179
179
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>' call
|
|
180
180
|
// Inline function 'kotlin.collections.component1' call
|
|
181
|
-
var path = element.v().
|
|
181
|
+
var path = element.v().i1c_1;
|
|
182
182
|
// Inline function 'kotlin.collections.component2' call
|
|
183
183
|
var pathItem = element.w();
|
|
184
184
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
while (tmp0_iterator_1.d()) {
|
|
206
206
|
var element_1 = tmp0_iterator_1.e();
|
|
207
207
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
208
|
-
if (element_1.
|
|
208
|
+
if (element_1.s1d_1.equals(ParameterLocation_QUERY_getInstance())) {
|
|
209
209
|
tmp0_filterTo.a(element_1);
|
|
210
210
|
}
|
|
211
211
|
}
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
while (tmp0_iterator_3.d()) {
|
|
229
229
|
var element_2 = tmp0_iterator_3.e();
|
|
230
230
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
231
|
-
if (element_2.
|
|
231
|
+
if (element_2.s1d_1.equals(ParameterLocation_HEADER_getInstance())) {
|
|
232
232
|
tmp0_filterTo_0.a(element_2);
|
|
233
233
|
}
|
|
234
234
|
}
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
while (tmp0_iterator_5.d()) {
|
|
253
253
|
var element_3 = tmp0_iterator_5.e();
|
|
254
254
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
255
|
-
if (element_3.
|
|
255
|
+
if (element_3.s1d_1.equals(ParameterLocation_BODY_getInstance())) {
|
|
256
256
|
tmp0_filterTo_1.a(element_3);
|
|
257
257
|
}
|
|
258
258
|
}
|
|
@@ -264,8 +264,8 @@
|
|
|
264
264
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
265
265
|
// Inline function 'kotlin.collections.map' call
|
|
266
266
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
267
|
-
var tmp0_elvis_lhs = $this.
|
|
268
|
-
var tmp0_elvis_lhs_0 = tmp0_elvis_lhs == null ? operation.
|
|
267
|
+
var tmp0_elvis_lhs = $this.j1u_1.v1b_1;
|
|
268
|
+
var tmp0_elvis_lhs_0 = tmp0_elvis_lhs == null ? operation.g1d_1 : tmp0_elvis_lhs;
|
|
269
269
|
var tmp1_map = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
270
270
|
// Inline function 'kotlin.collections.mapTo' call
|
|
271
271
|
var tmp0_mapTo_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -274,13 +274,13 @@
|
|
|
274
274
|
var item_1 = tmp0_iterator_7.e();
|
|
275
275
|
var tmp$ret$22;
|
|
276
276
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
277
|
-
var schema = element_4.
|
|
277
|
+
var schema = element_4.v1d_1;
|
|
278
278
|
var tmp;
|
|
279
279
|
if (schema instanceof ReferenceObject) {
|
|
280
280
|
tmp = toReference(schema, $this);
|
|
281
281
|
} else {
|
|
282
282
|
if (schema instanceof SchemaObject) {
|
|
283
|
-
tmp = toReference_0(schema, $this, Common_getInstance().
|
|
283
|
+
tmp = toReference_0(schema, $this, Common_getInstance().h1u([name, 'RequestBody']));
|
|
284
284
|
} else {
|
|
285
285
|
if (schema == null) {
|
|
286
286
|
throw new NotImplementedError();
|
|
@@ -290,7 +290,7 @@
|
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
var tmp_0 = tmp;
|
|
293
|
-
var tmp0_elvis_lhs_1 = element_4.
|
|
293
|
+
var tmp0_elvis_lhs_1 = element_4.u1d_1;
|
|
294
294
|
tmp$ret$22 = new Request(new Content(item_1, tmp_0, tmp0_elvis_lhs_1 == null ? false : tmp0_elvis_lhs_1));
|
|
295
295
|
tmp0_mapTo_1.a(tmp$ret$22);
|
|
296
296
|
}
|
|
@@ -307,7 +307,7 @@
|
|
|
307
307
|
var requests = tmp_1;
|
|
308
308
|
// Inline function 'kotlin.collections.flatMap' call
|
|
309
309
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
310
|
-
var tmp0_elvis_lhs_2 = operation.
|
|
310
|
+
var tmp0_elvis_lhs_2 = operation.j1d_1;
|
|
311
311
|
var tmp5_flatMap = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
312
312
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
313
313
|
var tmp0_flatMapTo_2 = ArrayList_init_$Create$();
|
|
@@ -317,13 +317,13 @@
|
|
|
317
317
|
var element_5 = tmp0_iterator_8.e();
|
|
318
318
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
319
319
|
// Inline function 'kotlin.collections.component1' call
|
|
320
|
-
var status = element_5.v().
|
|
320
|
+
var status = element_5.v().b1g_1;
|
|
321
321
|
// Inline function 'kotlin.collections.component2' call
|
|
322
322
|
var res = element_5.w();
|
|
323
323
|
// Inline function 'kotlin.collections.map' call
|
|
324
324
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
325
|
-
var tmp0_elvis_lhs_3 = $this.
|
|
326
|
-
var tmp0_elvis_lhs_4 = tmp0_elvis_lhs_3 == null ? operation.
|
|
325
|
+
var tmp0_elvis_lhs_3 = $this.j1u_1.w1b_1;
|
|
326
|
+
var tmp0_elvis_lhs_4 = tmp0_elvis_lhs_3 == null ? operation.h1d_1 : tmp0_elvis_lhs_3;
|
|
327
327
|
var tmp1_map_0 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
328
328
|
// Inline function 'kotlin.collections.mapTo' call
|
|
329
329
|
var tmp0_mapTo_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map_0, 10));
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
var tmp$ret$37;
|
|
334
334
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
335
335
|
var tmp_2 = _StatusCode___get_value__impl__we50mu(status);
|
|
336
|
-
var tmp0_safe_receiver = resolve_1(res, $this).
|
|
336
|
+
var tmp0_safe_receiver = resolve_1(res, $this).f1g_1;
|
|
337
337
|
var tmp_3;
|
|
338
338
|
if (tmp0_safe_receiver == null) {
|
|
339
339
|
tmp_3 = null;
|
|
@@ -346,7 +346,7 @@
|
|
|
346
346
|
tmp_4 = toReference(tmp0_safe_receiver, $this);
|
|
347
347
|
} else {
|
|
348
348
|
if (tmp0_safe_receiver instanceof SchemaObject) {
|
|
349
|
-
tmp_4 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().
|
|
349
|
+
tmp_4 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().h1u([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']));
|
|
350
350
|
} else {
|
|
351
351
|
noWhenBranchMatchedException();
|
|
352
352
|
}
|
|
@@ -369,16 +369,16 @@
|
|
|
369
369
|
return tmp0_flatMapTo;
|
|
370
370
|
}
|
|
371
371
|
function parseRequestBody($this) {
|
|
372
|
-
return flatMapRequests($this.
|
|
372
|
+
return flatMapRequests($this.j1u_1, $this, OpenApiParser$parseRequestBody$lambda($this));
|
|
373
373
|
}
|
|
374
374
|
function parseResponseBody($this) {
|
|
375
|
-
return flatMapResponses($this.
|
|
375
|
+
return flatMapResponses($this.j1u_1, $this, OpenApiParser$parseResponseBody$lambda($this));
|
|
376
376
|
}
|
|
377
377
|
function parseDefinitions($this) {
|
|
378
378
|
// Inline function 'kotlin.collections.flatMap' call
|
|
379
379
|
// Inline function 'kotlin.collections.filter' call
|
|
380
380
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
381
|
-
var tmp0_elvis_lhs = $this.
|
|
381
|
+
var tmp0_elvis_lhs = $this.j1u_1.y1b_1;
|
|
382
382
|
var tmp1_filter = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
383
383
|
// Inline function 'kotlin.collections.filterTo' call
|
|
384
384
|
var tmp0_filterTo = LinkedHashMap_init_$Create$();
|
|
@@ -387,7 +387,7 @@
|
|
|
387
387
|
while (tmp0_iterator.d()) {
|
|
388
388
|
var element = tmp0_iterator.e();
|
|
389
389
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
390
|
-
if (element.w().
|
|
390
|
+
if (element.w().x1f_1 == null) {
|
|
391
391
|
tmp0_filterTo.l3(element.v(), element.w());
|
|
392
392
|
}
|
|
393
393
|
}
|
|
@@ -398,7 +398,7 @@
|
|
|
398
398
|
while (tmp0_iterator_0.d()) {
|
|
399
399
|
var element_0 = tmp0_iterator_0.e();
|
|
400
400
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
401
|
-
var list = flatten(element_0.w(), $this, Common_getInstance().
|
|
401
|
+
var list = flatten(element_0.w(), $this, Common_getInstance().h1u([element_0.v()]));
|
|
402
402
|
addAll(tmp0_flatMapTo, list);
|
|
403
403
|
}
|
|
404
404
|
return tmp0_flatMapTo;
|
|
@@ -406,7 +406,7 @@
|
|
|
406
406
|
function resolveParameters(_this__u8e3s4, $this) {
|
|
407
407
|
// Inline function 'kotlin.collections.map' call
|
|
408
408
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
409
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
409
|
+
var tmp0_elvis_lhs = _this__u8e3s4.i1d_1;
|
|
410
410
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
411
411
|
// Inline function 'kotlin.collections.mapTo' call
|
|
412
412
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -433,7 +433,7 @@
|
|
|
433
433
|
function resolveParameters_0(_this__u8e3s4, $this) {
|
|
434
434
|
// Inline function 'kotlin.collections.map' call
|
|
435
435
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
436
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
436
|
+
var tmp0_elvis_lhs = _this__u8e3s4.x1c_1;
|
|
437
437
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
438
438
|
// Inline function 'kotlin.collections.mapTo' call
|
|
439
439
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -458,11 +458,11 @@
|
|
|
458
458
|
return tmp0_mapTo;
|
|
459
459
|
}
|
|
460
460
|
function resolveParameterObject(_this__u8e3s4, $this) {
|
|
461
|
-
var tmp0_safe_receiver = $this.
|
|
461
|
+
var tmp0_safe_receiver = $this.j1u_1.z1b_1;
|
|
462
462
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n2(getReference(_this__u8e3s4, $this));
|
|
463
463
|
var tmp;
|
|
464
464
|
if (tmp1_elvis_lhs == null) {
|
|
465
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
465
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.r1e_1);
|
|
466
466
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
467
467
|
} else {
|
|
468
468
|
tmp = tmp1_elvis_lhs;
|
|
@@ -470,11 +470,11 @@
|
|
|
470
470
|
return tmp;
|
|
471
471
|
}
|
|
472
472
|
function resolveResponseObject(_this__u8e3s4, $this) {
|
|
473
|
-
var tmp0_safe_receiver = $this.
|
|
473
|
+
var tmp0_safe_receiver = $this.j1u_1.a1c_1;
|
|
474
474
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n2(getReference(_this__u8e3s4, $this));
|
|
475
475
|
var tmp;
|
|
476
476
|
if (tmp1_elvis_lhs == null) {
|
|
477
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
477
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.r1e_1);
|
|
478
478
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
479
479
|
} else {
|
|
480
480
|
tmp = tmp1_elvis_lhs;
|
|
@@ -482,7 +482,7 @@
|
|
|
482
482
|
return tmp;
|
|
483
483
|
}
|
|
484
484
|
function resolveSchemaObject(_this__u8e3s4, $this) {
|
|
485
|
-
var tmp0_safe_receiver = $this.
|
|
485
|
+
var tmp0_safe_receiver = $this.j1u_1.y1b_1;
|
|
486
486
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n2(getReference(_this__u8e3s4, $this));
|
|
487
487
|
var tmp;
|
|
488
488
|
if (tmp1_safe_receiver == null) {
|
|
@@ -496,7 +496,7 @@
|
|
|
496
496
|
var tmp2_elvis_lhs = tmp;
|
|
497
497
|
var tmp_0;
|
|
498
498
|
if (tmp2_elvis_lhs == null) {
|
|
499
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
499
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.r1e_1);
|
|
500
500
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
501
501
|
} else {
|
|
502
502
|
tmp_0 = tmp2_elvis_lhs;
|
|
@@ -561,18 +561,18 @@
|
|
|
561
561
|
}
|
|
562
562
|
function flatten(_this__u8e3s4, $this, name) {
|
|
563
563
|
var tmp;
|
|
564
|
-
if (!(_this__u8e3s4.
|
|
564
|
+
if (!(_this__u8e3s4.x1f_1 == null)) {
|
|
565
565
|
var tmp_0;
|
|
566
|
-
if (_this__u8e3s4.
|
|
566
|
+
if (_this__u8e3s4.x1f_1 instanceof BooleanObject) {
|
|
567
567
|
tmp_0 = emptyList();
|
|
568
568
|
} else {
|
|
569
|
-
tmp_0 = flatten(resolve_0(ensureNotNull(_this__u8e3s4.
|
|
569
|
+
tmp_0 = flatten(resolve_0(ensureNotNull(_this__u8e3s4.x1f_1), $this), $this, name);
|
|
570
570
|
}
|
|
571
571
|
tmp = tmp_0;
|
|
572
|
-
} else if (!(_this__u8e3s4.
|
|
572
|
+
} else if (!(_this__u8e3s4.v1f_1 == null)) {
|
|
573
573
|
// Inline function 'kotlin.collections.flatMap' call
|
|
574
574
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
575
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
575
|
+
var tmp0_elvis_lhs = _this__u8e3s4.v1f_1;
|
|
576
576
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
577
577
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
578
578
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -585,7 +585,7 @@
|
|
|
585
585
|
}
|
|
586
586
|
var tmp_1 = listOf(new Type(name, new Shape(tmp0_flatMapTo)));
|
|
587
587
|
// Inline function 'kotlin.collections.flatMap' call
|
|
588
|
-
var tmp2_flatMap = ensureNotNull(_this__u8e3s4.
|
|
588
|
+
var tmp2_flatMap = ensureNotNull(_this__u8e3s4.v1f_1);
|
|
589
589
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
590
590
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
591
591
|
var tmp0_iterator_0 = tmp2_flatMap.c();
|
|
@@ -599,7 +599,7 @@
|
|
|
599
599
|
if (element_0 instanceof SchemaObject) {
|
|
600
600
|
// Inline function 'kotlin.collections.flatMap' call
|
|
601
601
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
602
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
602
|
+
var tmp0_elvis_lhs_0 = element_0.w1f_1;
|
|
603
603
|
var tmp1_flatMap_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
604
604
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
605
605
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
@@ -617,7 +617,7 @@
|
|
|
617
617
|
tmp_3 = emptyList();
|
|
618
618
|
} else {
|
|
619
619
|
if (value instanceof SchemaObject) {
|
|
620
|
-
tmp_3 = flatten(value, $this, Common_getInstance().
|
|
620
|
+
tmp_3 = flatten(value, $this, Common_getInstance().h1u([name, key]));
|
|
621
621
|
} else {
|
|
622
622
|
noWhenBranchMatchedException();
|
|
623
623
|
}
|
|
@@ -634,10 +634,10 @@
|
|
|
634
634
|
addAll(tmp0_flatMapTo_0, list_1);
|
|
635
635
|
}
|
|
636
636
|
tmp = plus(tmp_1, tmp0_flatMapTo_0);
|
|
637
|
-
} else if (!(_this__u8e3s4.
|
|
637
|
+
} else if (!(_this__u8e3s4.s1f_1 == null)) {
|
|
638
638
|
// Inline function 'kotlin.let' call
|
|
639
639
|
// Inline function 'kotlin.collections.map' call
|
|
640
|
-
var tmp3_map = ensureNotNull(_this__u8e3s4.
|
|
640
|
+
var tmp3_map = ensureNotNull(_this__u8e3s4.s1f_1);
|
|
641
641
|
// Inline function 'kotlin.collections.mapTo' call
|
|
642
642
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp3_map, 10));
|
|
643
643
|
var tmp0_iterator_2 = tmp3_map.c();
|
|
@@ -645,7 +645,7 @@
|
|
|
645
645
|
var item = tmp0_iterator_2.e();
|
|
646
646
|
var tmp$ret$14;
|
|
647
647
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
648
|
-
tmp$ret$14 = item.
|
|
648
|
+
tmp$ret$14 = item.r14();
|
|
649
649
|
tmp0_mapTo.a(tmp$ret$14);
|
|
650
650
|
}
|
|
651
651
|
var tmp4_let = toSet(tmp0_mapTo);
|
|
@@ -653,12 +653,12 @@
|
|
|
653
653
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
654
654
|
tmp = listOf(new Enum(name, tmp4_let));
|
|
655
655
|
} else {
|
|
656
|
-
var tmp1_subject = _this__u8e3s4.
|
|
656
|
+
var tmp1_subject = _this__u8e3s4.t1f_1;
|
|
657
657
|
var tmp_4;
|
|
658
658
|
switch (tmp1_subject == null ? -1 : tmp1_subject.r4_1) {
|
|
659
659
|
case -1:
|
|
660
660
|
case 5:
|
|
661
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
661
|
+
var tmp2_safe_receiver = _this__u8e3s4.w1f_1;
|
|
662
662
|
var tmp_5;
|
|
663
663
|
if (tmp2_safe_receiver == null) {
|
|
664
664
|
tmp_5 = null;
|
|
@@ -677,8 +677,8 @@
|
|
|
677
677
|
var value_0 = element_2.w();
|
|
678
678
|
var tmp_6;
|
|
679
679
|
if (value_0 instanceof SchemaObject) {
|
|
680
|
-
var tmp1_subject_0 = value_0.
|
|
681
|
-
tmp_6 = (tmp1_subject_0 == null ? -1 : tmp1_subject_0.r4_1) === 4 ? emptyList() : flatten(value_0, $this, Common_getInstance().
|
|
680
|
+
var tmp1_subject_0 = value_0.t1f_1;
|
|
681
|
+
tmp_6 = (tmp1_subject_0 == null ? -1 : tmp1_subject_0.r4_1) === 4 ? emptyList() : flatten(value_0, $this, Common_getInstance().h1u([name, key_0]));
|
|
682
682
|
} else {
|
|
683
683
|
if (value_0 instanceof ReferenceObject) {
|
|
684
684
|
tmp_6 = emptyList();
|
|
@@ -698,13 +698,13 @@
|
|
|
698
698
|
tmp_4 = plus(schema, fields);
|
|
699
699
|
break;
|
|
700
700
|
case 4:
|
|
701
|
-
var it = _this__u8e3s4.
|
|
701
|
+
var it = _this__u8e3s4.u1f_1;
|
|
702
702
|
var tmp_7;
|
|
703
703
|
if (it instanceof ReferenceObject) {
|
|
704
704
|
tmp_7 = emptyList();
|
|
705
705
|
} else {
|
|
706
706
|
if (it instanceof SchemaObject) {
|
|
707
|
-
tmp_7 = flatten(it, $this, Common_getInstance().
|
|
707
|
+
tmp_7 = flatten(it, $this, Common_getInstance().h1u([name, 'Array']));
|
|
708
708
|
} else {
|
|
709
709
|
if (it == null) {
|
|
710
710
|
tmp_7 = emptyList();
|
|
@@ -745,8 +745,8 @@
|
|
|
745
745
|
var referencingObject = tmp0_let.j3();
|
|
746
746
|
var schema = tmp0_let.k3();
|
|
747
747
|
var tmp;
|
|
748
|
-
if (!(schema.
|
|
749
|
-
var additionalProperties = ensureNotNull(schema.
|
|
748
|
+
if (!(schema.x1f_1 == null)) {
|
|
749
|
+
var additionalProperties = ensureNotNull(schema.x1f_1);
|
|
750
750
|
var tmp_0;
|
|
751
751
|
if (additionalProperties instanceof BooleanObject) {
|
|
752
752
|
tmp_0 = new Any(false, true);
|
|
@@ -762,24 +762,24 @@
|
|
|
762
762
|
}
|
|
763
763
|
}
|
|
764
764
|
tmp = tmp_0;
|
|
765
|
-
} else if (!(schema.
|
|
766
|
-
tmp = new Custom(Common_getInstance().
|
|
767
|
-
} else if (isPrimitive(schema.
|
|
768
|
-
tmp = new Primitive(toPrimitive(ensureNotNull(schema.
|
|
765
|
+
} else if (!(schema.s1f_1 == null)) {
|
|
766
|
+
tmp = new Custom(Common_getInstance().h1u([getReference(referencingObject, $this)]), false, false);
|
|
767
|
+
} else if (isPrimitive(schema.t1f_1)) {
|
|
768
|
+
tmp = new Primitive(toPrimitive(ensureNotNull(schema.t1f_1), $this), false, false);
|
|
769
769
|
} else {
|
|
770
|
-
var tmp0_subject = schema.
|
|
770
|
+
var tmp0_subject = schema.t1f_1;
|
|
771
771
|
var tmp_1;
|
|
772
772
|
if ((tmp0_subject == null ? -1 : tmp0_subject.r4_1) === 4) {
|
|
773
|
-
var items = schema.
|
|
773
|
+
var items = schema.u1f_1;
|
|
774
774
|
var tmp_2;
|
|
775
775
|
if (items instanceof ReferenceObject) {
|
|
776
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
776
|
+
tmp_2 = new Custom(Common_getInstance().h1u([getReference(items, $this)]), true);
|
|
777
777
|
} else {
|
|
778
778
|
if (items instanceof SchemaObject) {
|
|
779
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
779
|
+
tmp_2 = new Custom(Common_getInstance().h1u([getReference(referencingObject, $this), 'Array']), true);
|
|
780
780
|
} else {
|
|
781
781
|
if (items == null) {
|
|
782
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.
|
|
782
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.r1e_1);
|
|
783
783
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
784
784
|
} else {
|
|
785
785
|
noWhenBranchMatchedException();
|
|
@@ -788,7 +788,7 @@
|
|
|
788
788
|
}
|
|
789
789
|
tmp_1 = tmp_2;
|
|
790
790
|
} else {
|
|
791
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
791
|
+
tmp_1 = new Custom(Common_getInstance().h1u([getReference(referencingObject, $this)]), false);
|
|
792
792
|
}
|
|
793
793
|
tmp = tmp_1;
|
|
794
794
|
}
|
|
@@ -796,32 +796,32 @@
|
|
|
796
796
|
}
|
|
797
797
|
function toReference_0(_this__u8e3s4, $this, name) {
|
|
798
798
|
var tmp;
|
|
799
|
-
if (!(_this__u8e3s4.
|
|
800
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
799
|
+
if (!(_this__u8e3s4.s1f_1 == null)) {
|
|
800
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.x1f_1 == null));
|
|
801
801
|
} else {
|
|
802
|
-
var type = _this__u8e3s4.
|
|
802
|
+
var type = _this__u8e3s4.t1f_1;
|
|
803
803
|
var tmp_0;
|
|
804
804
|
switch (type == null ? -1 : type.r4_1) {
|
|
805
805
|
case 0:
|
|
806
806
|
case 2:
|
|
807
807
|
case 1:
|
|
808
808
|
case 3:
|
|
809
|
-
tmp_0 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.
|
|
809
|
+
tmp_0 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.x1f_1 == null));
|
|
810
810
|
break;
|
|
811
811
|
case -1:
|
|
812
812
|
case 5:
|
|
813
813
|
var tmp_1;
|
|
814
|
-
var tmp_2 = _this__u8e3s4.
|
|
814
|
+
var tmp_2 = _this__u8e3s4.x1f_1;
|
|
815
815
|
if (tmp_2 instanceof BooleanObject) {
|
|
816
|
-
tmp_1 = new Any(false, !(_this__u8e3s4.
|
|
816
|
+
tmp_1 = new Any(false, !(_this__u8e3s4.x1f_1 == null));
|
|
817
817
|
} else {
|
|
818
|
-
tmp_1 = new Custom(name, false, !(_this__u8e3s4.
|
|
818
|
+
tmp_1 = new Custom(name, false, !(_this__u8e3s4.x1f_1 == null));
|
|
819
819
|
}
|
|
820
820
|
|
|
821
821
|
tmp_0 = tmp_1;
|
|
822
822
|
break;
|
|
823
823
|
case 4:
|
|
824
|
-
var it = _this__u8e3s4.
|
|
824
|
+
var it = _this__u8e3s4.u1f_1;
|
|
825
825
|
var tmp_3;
|
|
826
826
|
if (it instanceof ReferenceObject) {
|
|
827
827
|
tmp_3 = toIterable(toReference(it, $this));
|
|
@@ -863,28 +863,28 @@
|
|
|
863
863
|
var tmp;
|
|
864
864
|
switch (element.r4_1) {
|
|
865
865
|
case 0:
|
|
866
|
-
tmp = _this__u8e3s4.
|
|
866
|
+
tmp = _this__u8e3s4.o1c_1;
|
|
867
867
|
break;
|
|
868
868
|
case 1:
|
|
869
|
-
tmp = _this__u8e3s4.
|
|
869
|
+
tmp = _this__u8e3s4.q1c_1;
|
|
870
870
|
break;
|
|
871
871
|
case 2:
|
|
872
|
-
tmp = _this__u8e3s4.
|
|
872
|
+
tmp = _this__u8e3s4.p1c_1;
|
|
873
873
|
break;
|
|
874
874
|
case 3:
|
|
875
|
-
tmp = _this__u8e3s4.
|
|
875
|
+
tmp = _this__u8e3s4.r1c_1;
|
|
876
876
|
break;
|
|
877
877
|
case 4:
|
|
878
|
-
tmp = _this__u8e3s4.
|
|
878
|
+
tmp = _this__u8e3s4.s1c_1;
|
|
879
879
|
break;
|
|
880
880
|
case 5:
|
|
881
|
-
tmp = _this__u8e3s4.
|
|
881
|
+
tmp = _this__u8e3s4.t1c_1;
|
|
882
882
|
break;
|
|
883
883
|
case 6:
|
|
884
|
-
tmp = _this__u8e3s4.
|
|
884
|
+
tmp = _this__u8e3s4.u1c_1;
|
|
885
885
|
break;
|
|
886
886
|
case 7:
|
|
887
|
-
tmp = _this__u8e3s4.
|
|
887
|
+
tmp = _this__u8e3s4.v1c_1;
|
|
888
888
|
break;
|
|
889
889
|
default:
|
|
890
890
|
noWhenBranchMatchedException();
|
|
@@ -896,7 +896,7 @@
|
|
|
896
896
|
return filterNotNullValues(result);
|
|
897
897
|
}
|
|
898
898
|
function getReference(_this__u8e3s4, $this) {
|
|
899
|
-
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
899
|
+
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.r1e_1), ['/']).h(2);
|
|
900
900
|
}
|
|
901
901
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
902
902
|
var tmp;
|
|
@@ -921,7 +921,7 @@
|
|
|
921
921
|
function toField(_this__u8e3s4, $this, name) {
|
|
922
922
|
// Inline function 'kotlin.collections.map' call
|
|
923
923
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
924
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
924
|
+
var tmp0_elvis_lhs = _this__u8e3s4.w1f_1;
|
|
925
925
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
926
926
|
// Inline function 'kotlin.collections.mapTo' call
|
|
927
927
|
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.f());
|
|
@@ -938,16 +938,16 @@
|
|
|
938
938
|
var tmp;
|
|
939
939
|
if (value instanceof SchemaObject) {
|
|
940
940
|
var tmp_0 = new Identifier(key);
|
|
941
|
-
var tmp1_subject = value.
|
|
942
|
-
var tmp_1 = (tmp1_subject == null ? -1 : tmp1_subject.r4_1) === 4 ? toReference_0(value, $this, Common_getInstance().
|
|
943
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
941
|
+
var tmp1_subject = value.t1f_1;
|
|
942
|
+
var tmp_1 = (tmp1_subject == null ? -1 : tmp1_subject.r4_1) === 4 ? toReference_0(value, $this, Common_getInstance().h1u([name, key, 'Array'])) : toReference_0(value, $this, Common_getInstance().h1u([name, key]));
|
|
943
|
+
var tmp2_safe_receiver = _this__u8e3s4.r1f_1;
|
|
944
944
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.j1(key);
|
|
945
945
|
tmp = new Field(tmp_0, tmp_1, !(tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs));
|
|
946
946
|
} else {
|
|
947
947
|
if (value instanceof ReferenceObject) {
|
|
948
948
|
var tmp_2 = new Identifier(key);
|
|
949
949
|
var tmp_3 = toReference(value, $this);
|
|
950
|
-
var tmp4_safe_receiver = _this__u8e3s4.
|
|
950
|
+
var tmp4_safe_receiver = _this__u8e3s4.r1f_1;
|
|
951
951
|
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.j1(key);
|
|
952
952
|
tmp = new Field(tmp_2, tmp_3, !(tmp5_elvis_lhs == null ? false : tmp5_elvis_lhs));
|
|
953
953
|
} else {
|
|
@@ -966,10 +966,10 @@
|
|
|
966
966
|
// Inline function 'kotlin.contracts.contract' call
|
|
967
967
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
968
968
|
var tmp;
|
|
969
|
-
if (!(_this__u8e3s4.
|
|
970
|
-
tmp = new Custom(Common_getInstance().
|
|
969
|
+
if (!(_this__u8e3s4.m1e_1 == null)) {
|
|
970
|
+
tmp = new Custom(Common_getInstance().h1u([name, 'Parameter', tmp0_let.r1d_1]), false);
|
|
971
971
|
} else {
|
|
972
|
-
var type = tmp0_let.
|
|
972
|
+
var type = tmp0_let.w1d_1;
|
|
973
973
|
var tmp_0;
|
|
974
974
|
switch (type == null ? -1 : type.r4_1) {
|
|
975
975
|
case 0:
|
|
@@ -986,9 +986,9 @@
|
|
|
986
986
|
tmp_0 = new Primitive(tmp0_let_0, false);
|
|
987
987
|
break;
|
|
988
988
|
case 4:
|
|
989
|
-
var tmp0_safe_receiver = tmp0_let.
|
|
989
|
+
var tmp0_safe_receiver = tmp0_let.x1d_1;
|
|
990
990
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve(tmp0_safe_receiver, $this);
|
|
991
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
991
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t1f_1;
|
|
992
992
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toPrimitive(tmp2_safe_receiver, $this);
|
|
993
993
|
var tmp_1;
|
|
994
994
|
if (tmp3_safe_receiver == null) {
|
|
@@ -1025,8 +1025,8 @@
|
|
|
1025
1025
|
var tmp1_let = tmp;
|
|
1026
1026
|
// Inline function 'kotlin.contracts.contract' call
|
|
1027
1027
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1028
|
-
var tmp_3 = new Identifier(_this__u8e3s4.
|
|
1029
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1028
|
+
var tmp_3 = new Identifier(_this__u8e3s4.r1d_1);
|
|
1029
|
+
var tmp0_elvis_lhs = _this__u8e3s4.u1d_1;
|
|
1030
1030
|
return new Field(tmp_3, tmp1_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
1031
1031
|
}
|
|
1032
1032
|
function toSegments(_this__u8e3s4, $this, parameters) {
|
|
@@ -1067,7 +1067,7 @@
|
|
|
1067
1067
|
while (tmp0_iterator_0.d()) {
|
|
1068
1068
|
var element = tmp0_iterator_0.e();
|
|
1069
1069
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1070
|
-
if (element.
|
|
1070
|
+
if (element.r1d_1 === param) {
|
|
1071
1071
|
tmp$ret$4 = element;
|
|
1072
1072
|
break $l$block;
|
|
1073
1073
|
}
|
|
@@ -1082,7 +1082,7 @@
|
|
|
1082
1082
|
// Inline function 'kotlin.let' call
|
|
1083
1083
|
// Inline function 'kotlin.contracts.contract' call
|
|
1084
1084
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1085
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver.
|
|
1085
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver.w1d_1;
|
|
1086
1086
|
tmp_2 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, $this);
|
|
1087
1087
|
}
|
|
1088
1088
|
var tmp1_safe_receiver = tmp_2;
|
|
@@ -1113,7 +1113,7 @@
|
|
|
1113
1113
|
return tmp0_mapTo;
|
|
1114
1114
|
}
|
|
1115
1115
|
function toName(_this__u8e3s4, $this, segments, method) {
|
|
1116
|
-
var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.
|
|
1116
|
+
var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.f1d_1;
|
|
1117
1117
|
var tmp;
|
|
1118
1118
|
if (tmp1_safe_receiver == null) {
|
|
1119
1119
|
tmp = null;
|
|
@@ -1121,7 +1121,7 @@
|
|
|
1121
1121
|
// Inline function 'kotlin.let' call
|
|
1122
1122
|
// Inline function 'kotlin.contracts.contract' call
|
|
1123
1123
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
1124
|
-
tmp = Common_getInstance().
|
|
1124
|
+
tmp = Common_getInstance().h1u([tmp1_safe_receiver]);
|
|
1125
1125
|
}
|
|
1126
1126
|
var tmp2_elvis_lhs = tmp;
|
|
1127
1127
|
var tmp_0;
|
|
@@ -1136,21 +1136,21 @@
|
|
|
1136
1136
|
return tmp_0;
|
|
1137
1137
|
}
|
|
1138
1138
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
1139
|
-
this.
|
|
1140
|
-
this.
|
|
1141
|
-
this.
|
|
1142
|
-
this.
|
|
1143
|
-
this.
|
|
1139
|
+
this.l1u_1 = path;
|
|
1140
|
+
this.m1u_1 = pathItem;
|
|
1141
|
+
this.n1u_1 = method;
|
|
1142
|
+
this.o1u_1 = operation;
|
|
1143
|
+
this.p1u_1 = type;
|
|
1144
1144
|
}
|
|
1145
1145
|
protoOf(FlattenRequest).toString = function () {
|
|
1146
|
-
return 'FlattenRequest(path=' + new Path(this.
|
|
1146
|
+
return 'FlattenRequest(path=' + new Path(this.l1u_1) + ', pathItem=' + this.m1u_1 + ', method=' + this.n1u_1 + ', operation=' + this.o1u_1 + ', type=' + this.p1u_1 + ')';
|
|
1147
1147
|
};
|
|
1148
1148
|
protoOf(FlattenRequest).hashCode = function () {
|
|
1149
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1150
|
-
result = imul(result, 31) + this.k1u_1.hashCode() | 0;
|
|
1151
|
-
result = imul(result, 31) + this.l1u_1.hashCode() | 0;
|
|
1149
|
+
var result = Path__hashCode_impl_go73kd(this.l1u_1);
|
|
1152
1150
|
result = imul(result, 31) + this.m1u_1.hashCode() | 0;
|
|
1153
|
-
result = imul(result, 31) +
|
|
1151
|
+
result = imul(result, 31) + this.n1u_1.hashCode() | 0;
|
|
1152
|
+
result = imul(result, 31) + this.o1u_1.hashCode() | 0;
|
|
1153
|
+
result = imul(result, 31) + getStringHashCode(this.p1u_1) | 0;
|
|
1154
1154
|
return result;
|
|
1155
1155
|
};
|
|
1156
1156
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -1159,22 +1159,22 @@
|
|
|
1159
1159
|
if (!(other instanceof FlattenRequest))
|
|
1160
1160
|
return false;
|
|
1161
1161
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
1162
|
-
if (!(this.
|
|
1162
|
+
if (!(this.l1u_1 === tmp0_other_with_cast.l1u_1))
|
|
1163
1163
|
return false;
|
|
1164
|
-
if (!this.
|
|
1164
|
+
if (!this.m1u_1.equals(tmp0_other_with_cast.m1u_1))
|
|
1165
1165
|
return false;
|
|
1166
|
-
if (!this.
|
|
1166
|
+
if (!this.n1u_1.equals(tmp0_other_with_cast.n1u_1))
|
|
1167
1167
|
return false;
|
|
1168
|
-
if (!this.
|
|
1168
|
+
if (!this.o1u_1.equals(tmp0_other_with_cast.o1u_1))
|
|
1169
1169
|
return false;
|
|
1170
|
-
if (!(this.
|
|
1170
|
+
if (!(this.p1u_1 === tmp0_other_with_cast.p1u_1))
|
|
1171
1171
|
return false;
|
|
1172
1172
|
return true;
|
|
1173
1173
|
};
|
|
1174
1174
|
function flatMapRequests(_this__u8e3s4, $this, f) {
|
|
1175
1175
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1176
1176
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1177
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
1177
|
+
var tmp0_flatMap = _this__u8e3s4.x1b_1;
|
|
1178
1178
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1179
1179
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1180
1180
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1183,7 +1183,7 @@
|
|
|
1183
1183
|
var element = tmp0_iterator.e();
|
|
1184
1184
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
1185
1185
|
// Inline function 'kotlin.collections.component1' call
|
|
1186
|
-
var path = element.v().
|
|
1186
|
+
var path = element.v().i1c_1;
|
|
1187
1187
|
// Inline function 'kotlin.collections.component2' call
|
|
1188
1188
|
var pathItem = element.w();
|
|
1189
1189
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -1201,8 +1201,8 @@
|
|
|
1201
1201
|
var operation = element_0.w();
|
|
1202
1202
|
// Inline function 'kotlin.collections.map' call
|
|
1203
1203
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1204
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1205
|
-
var tmp0_elvis_lhs_0 = tmp0_elvis_lhs == null ? operation.
|
|
1204
|
+
var tmp0_elvis_lhs = _this__u8e3s4.v1b_1;
|
|
1205
|
+
var tmp0_elvis_lhs_0 = tmp0_elvis_lhs == null ? operation.g1d_1 : tmp0_elvis_lhs;
|
|
1206
1206
|
var tmp1_map = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1207
1207
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1208
1208
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -1232,25 +1232,25 @@
|
|
|
1232
1232
|
return tmp0_flatMapTo_1;
|
|
1233
1233
|
}
|
|
1234
1234
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
1235
|
-
this.
|
|
1236
|
-
this.
|
|
1237
|
-
this.
|
|
1238
|
-
this.
|
|
1239
|
-
this.
|
|
1240
|
-
this.
|
|
1241
|
-
this.
|
|
1235
|
+
this.q1u_1 = path;
|
|
1236
|
+
this.r1u_1 = pathItem;
|
|
1237
|
+
this.s1u_1 = method;
|
|
1238
|
+
this.t1u_1 = operation;
|
|
1239
|
+
this.u1u_1 = statusCode;
|
|
1240
|
+
this.v1u_1 = response;
|
|
1241
|
+
this.w1u_1 = type;
|
|
1242
1242
|
}
|
|
1243
1243
|
protoOf(FlattenResponse).toString = function () {
|
|
1244
|
-
return 'FlattenResponse(path=' + new Path(this.
|
|
1244
|
+
return 'FlattenResponse(path=' + new Path(this.q1u_1) + ', pathItem=' + this.r1u_1 + ', method=' + this.s1u_1 + ', operation=' + this.t1u_1 + ', statusCode=' + new StatusCode(this.u1u_1) + ', response=' + this.v1u_1 + ', type=' + this.w1u_1 + ')';
|
|
1245
1245
|
};
|
|
1246
1246
|
protoOf(FlattenResponse).hashCode = function () {
|
|
1247
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1248
|
-
result = imul(result, 31) + this.p1u_1.hashCode() | 0;
|
|
1249
|
-
result = imul(result, 31) + this.q1u_1.hashCode() | 0;
|
|
1247
|
+
var result = Path__hashCode_impl_go73kd(this.q1u_1);
|
|
1250
1248
|
result = imul(result, 31) + this.r1u_1.hashCode() | 0;
|
|
1251
|
-
result = imul(result, 31) +
|
|
1252
|
-
result = imul(result, 31) +
|
|
1253
|
-
result = imul(result, 31) +
|
|
1249
|
+
result = imul(result, 31) + this.s1u_1.hashCode() | 0;
|
|
1250
|
+
result = imul(result, 31) + this.t1u_1.hashCode() | 0;
|
|
1251
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.u1u_1) | 0;
|
|
1252
|
+
result = imul(result, 31) + hashCode(this.v1u_1) | 0;
|
|
1253
|
+
result = imul(result, 31) + getStringHashCode(this.w1u_1) | 0;
|
|
1254
1254
|
return result;
|
|
1255
1255
|
};
|
|
1256
1256
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -1259,26 +1259,26 @@
|
|
|
1259
1259
|
if (!(other instanceof FlattenResponse))
|
|
1260
1260
|
return false;
|
|
1261
1261
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
1262
|
-
if (!(this.
|
|
1263
|
-
return false;
|
|
1264
|
-
if (!this.p1u_1.equals(tmp0_other_with_cast.p1u_1))
|
|
1265
|
-
return false;
|
|
1266
|
-
if (!this.q1u_1.equals(tmp0_other_with_cast.q1u_1))
|
|
1262
|
+
if (!(this.q1u_1 === tmp0_other_with_cast.q1u_1))
|
|
1267
1263
|
return false;
|
|
1268
1264
|
if (!this.r1u_1.equals(tmp0_other_with_cast.r1u_1))
|
|
1269
1265
|
return false;
|
|
1270
|
-
if (!
|
|
1266
|
+
if (!this.s1u_1.equals(tmp0_other_with_cast.s1u_1))
|
|
1271
1267
|
return false;
|
|
1272
|
-
if (!
|
|
1268
|
+
if (!this.t1u_1.equals(tmp0_other_with_cast.t1u_1))
|
|
1273
1269
|
return false;
|
|
1274
1270
|
if (!(this.u1u_1 === tmp0_other_with_cast.u1u_1))
|
|
1275
1271
|
return false;
|
|
1272
|
+
if (!equals(this.v1u_1, tmp0_other_with_cast.v1u_1))
|
|
1273
|
+
return false;
|
|
1274
|
+
if (!(this.w1u_1 === tmp0_other_with_cast.w1u_1))
|
|
1275
|
+
return false;
|
|
1276
1276
|
return true;
|
|
1277
1277
|
};
|
|
1278
1278
|
function flatMapResponses(_this__u8e3s4, $this, f) {
|
|
1279
1279
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1280
1280
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1281
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
1281
|
+
var tmp0_flatMap = _this__u8e3s4.x1b_1;
|
|
1282
1282
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1283
1283
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1284
1284
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1287,7 +1287,7 @@
|
|
|
1287
1287
|
var element = tmp0_iterator.e();
|
|
1288
1288
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
1289
1289
|
// Inline function 'kotlin.collections.component1' call
|
|
1290
|
-
var path = element.v().
|
|
1290
|
+
var path = element.v().i1c_1;
|
|
1291
1291
|
// Inline function 'kotlin.collections.component2' call
|
|
1292
1292
|
var pathItem = element.w();
|
|
1293
1293
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -1305,7 +1305,7 @@
|
|
|
1305
1305
|
var operation = element_0.w();
|
|
1306
1306
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1307
1307
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1308
|
-
var tmp0_elvis_lhs = operation.
|
|
1308
|
+
var tmp0_elvis_lhs = operation.j1d_1;
|
|
1309
1309
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1310
1310
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1311
1311
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
@@ -1315,13 +1315,13 @@
|
|
|
1315
1315
|
var element_1 = tmp0_iterator_1.e();
|
|
1316
1316
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
1317
1317
|
// Inline function 'kotlin.collections.component1' call
|
|
1318
|
-
var statusCode = element_1.v().
|
|
1318
|
+
var statusCode = element_1.v().b1g_1;
|
|
1319
1319
|
// Inline function 'kotlin.collections.component2' call
|
|
1320
1320
|
var response = element_1.w();
|
|
1321
1321
|
// Inline function 'kotlin.collections.map' call
|
|
1322
1322
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1323
|
-
var tmp0_elvis_lhs_0 = _this__u8e3s4.
|
|
1324
|
-
var tmp0_elvis_lhs_1 = tmp0_elvis_lhs_0 == null ? operation.
|
|
1323
|
+
var tmp0_elvis_lhs_0 = _this__u8e3s4.w1b_1;
|
|
1324
|
+
var tmp0_elvis_lhs_1 = tmp0_elvis_lhs_0 == null ? operation.h1d_1 : tmp0_elvis_lhs_0;
|
|
1325
1325
|
var tmp1_map = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
1326
1326
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1327
1327
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -1355,9 +1355,9 @@
|
|
|
1355
1355
|
}
|
|
1356
1356
|
function OpenApiParser$parseRequestBody$lambda(this$0) {
|
|
1357
1357
|
return function (req) {
|
|
1358
|
-
var parameters = plus(resolveParameters_0(req.
|
|
1359
|
-
var segments = toSegments(req.
|
|
1360
|
-
var name = toName(req.
|
|
1358
|
+
var parameters = plus(resolveParameters_0(req.m1u_1, this$0), resolveParameters(req.o1u_1, this$0));
|
|
1359
|
+
var segments = toSegments(req.l1u_1, this$0, parameters);
|
|
1360
|
+
var name = toName(req.o1u_1, this$0, segments, req.n1u_1);
|
|
1361
1361
|
var tmp$ret$5;
|
|
1362
1362
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1363
1363
|
var tmp$ret$4;
|
|
@@ -1369,11 +1369,11 @@
|
|
|
1369
1369
|
var tmp$ret$3;
|
|
1370
1370
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1371
1371
|
var tmp;
|
|
1372
|
-
if (!(element.
|
|
1373
|
-
var tmp_0 = Common_getInstance().
|
|
1372
|
+
if (!(element.m1e_1 == null)) {
|
|
1373
|
+
var tmp_0 = Common_getInstance().h1u([name, 'Parameter', element.r1d_1]);
|
|
1374
1374
|
var tmp$ret$2;
|
|
1375
1375
|
// Inline function 'kotlin.collections.map' call
|
|
1376
|
-
var tmp0_map = ensureNotNull(element.
|
|
1376
|
+
var tmp0_map = ensureNotNull(element.m1e_1);
|
|
1377
1377
|
var tmp$ret$1;
|
|
1378
1378
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1379
1379
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
@@ -1382,7 +1382,7 @@
|
|
|
1382
1382
|
var item = tmp0_iterator_0.e();
|
|
1383
1383
|
var tmp$ret$0;
|
|
1384
1384
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
1385
|
-
tmp$ret$0 = item.
|
|
1385
|
+
tmp$ret$0 = item.r14();
|
|
1386
1386
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1387
1387
|
}
|
|
1388
1388
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -1398,7 +1398,7 @@
|
|
|
1398
1398
|
tmp$ret$4 = tmp0_flatMapTo;
|
|
1399
1399
|
tmp$ret$5 = tmp$ret$4;
|
|
1400
1400
|
var enums = tmp$ret$5;
|
|
1401
|
-
var tmp0_safe_receiver = req.
|
|
1401
|
+
var tmp0_safe_receiver = req.o1u_1.i1d_1;
|
|
1402
1402
|
var tmp_1;
|
|
1403
1403
|
if (tmp0_safe_receiver == null) {
|
|
1404
1404
|
tmp_1 = null;
|
|
@@ -1435,7 +1435,7 @@
|
|
|
1435
1435
|
var element_0 = tmp0_iterator_2.e();
|
|
1436
1436
|
var tmp$ret$9;
|
|
1437
1437
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1438
|
-
tmp$ret$9 = element_0.
|
|
1438
|
+
tmp$ret$9 = element_0.s1d_1.equals(ParameterLocation_BODY_getInstance());
|
|
1439
1439
|
if (tmp$ret$9) {
|
|
1440
1440
|
tmp0_filterTo.a(element_0);
|
|
1441
1441
|
}
|
|
@@ -1459,22 +1459,22 @@
|
|
|
1459
1459
|
var element_1 = tmp0_iterator_3.e();
|
|
1460
1460
|
var tmp$ret$13;
|
|
1461
1461
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1462
|
-
var schema = element_1.
|
|
1462
|
+
var schema = element_1.v1d_1;
|
|
1463
1463
|
var tmp_4;
|
|
1464
1464
|
if (schema instanceof SchemaObject) {
|
|
1465
|
-
var tmp0_subject = schema.
|
|
1465
|
+
var tmp0_subject = schema.t1f_1;
|
|
1466
1466
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.r4_1;
|
|
1467
1467
|
var tmp_5;
|
|
1468
1468
|
switch (tmp0) {
|
|
1469
1469
|
case -1:
|
|
1470
1470
|
case 5:
|
|
1471
|
-
tmp_5 = flatten(schema, this$0, Common_getInstance().
|
|
1471
|
+
tmp_5 = flatten(schema, this$0, Common_getInstance().h1u([name, 'RequestBody']));
|
|
1472
1472
|
break;
|
|
1473
1473
|
case 4:
|
|
1474
1474
|
var tmp$ret$12;
|
|
1475
1475
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1476
|
-
var tmp1_safe_receiver_0 = schema.
|
|
1477
|
-
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
1476
|
+
var tmp1_safe_receiver_0 = schema.u1f_1;
|
|
1477
|
+
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().h1u([name, 'RequestBody']));
|
|
1478
1478
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1479
1479
|
tmp$ret$12 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1480
1480
|
|
|
@@ -1503,26 +1503,26 @@
|
|
|
1503
1503
|
}
|
|
1504
1504
|
function OpenApiParser$parseResponseBody$lambda(this$0) {
|
|
1505
1505
|
return function (res) {
|
|
1506
|
-
var response = resolve_1(res.
|
|
1507
|
-
var parameters = plus(resolveParameters_0(res.
|
|
1508
|
-
var segments = toSegments(res.
|
|
1509
|
-
var name = toName(res.
|
|
1510
|
-
var schema = response.
|
|
1506
|
+
var response = resolve_1(res.v1u_1, this$0);
|
|
1507
|
+
var parameters = plus(resolveParameters_0(res.r1u_1, this$0), resolveParameters(res.t1u_1, this$0));
|
|
1508
|
+
var segments = toSegments(res.q1u_1, this$0, parameters);
|
|
1509
|
+
var name = toName(res.t1u_1, this$0, segments, res.s1u_1);
|
|
1510
|
+
var schema = response.f1g_1;
|
|
1511
1511
|
var tmp;
|
|
1512
1512
|
if (schema instanceof SchemaObject) {
|
|
1513
|
-
var tmp0_subject = schema.
|
|
1513
|
+
var tmp0_subject = schema.t1f_1;
|
|
1514
1514
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.r4_1;
|
|
1515
1515
|
var tmp_0;
|
|
1516
1516
|
switch (tmp0) {
|
|
1517
1517
|
case -1:
|
|
1518
1518
|
case 5:
|
|
1519
|
-
tmp_0 = flatten(schema, this$0, Common_getInstance().
|
|
1519
|
+
tmp_0 = flatten(schema, this$0, Common_getInstance().h1u([name, _StatusCode___get_value__impl__we50mu(res.u1u_1), 'ResponseBody']));
|
|
1520
1520
|
break;
|
|
1521
1521
|
case 4:
|
|
1522
1522
|
var tmp$ret$0;
|
|
1523
1523
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1524
|
-
var tmp1_safe_receiver = schema.
|
|
1525
|
-
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : flatten_0(tmp1_safe_receiver, this$0, Common_getInstance().
|
|
1524
|
+
var tmp1_safe_receiver = schema.u1f_1;
|
|
1525
|
+
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : flatten_0(tmp1_safe_receiver, this$0, Common_getInstance().h1u([name, _StatusCode___get_value__impl__we50mu(res.u1u_1), 'ResponseBody']));
|
|
1526
1526
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1527
1527
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1528
1528
|
|
|
@@ -1542,10 +1542,10 @@
|
|
|
1542
1542
|
function OpenApiParser$toName$lambda(it) {
|
|
1543
1543
|
var tmp;
|
|
1544
1544
|
if (it instanceof Literal) {
|
|
1545
|
-
tmp = Common_getInstance().
|
|
1545
|
+
tmp = Common_getInstance().h1u([it.dk_1]);
|
|
1546
1546
|
} else {
|
|
1547
1547
|
if (it instanceof Param) {
|
|
1548
|
-
tmp = Common_getInstance().
|
|
1548
|
+
tmp = Common_getInstance().h1u([it.ej_1.pj_1]);
|
|
1549
1549
|
} else {
|
|
1550
1550
|
noWhenBranchMatchedException();
|
|
1551
1551
|
}
|
|
@@ -1554,21 +1554,21 @@
|
|
|
1554
1554
|
}
|
|
1555
1555
|
function OpenApiParser(openApi) {
|
|
1556
1556
|
Companion_getInstance_0();
|
|
1557
|
-
this.
|
|
1557
|
+
this.j1u_1 = openApi;
|
|
1558
1558
|
}
|
|
1559
|
-
protoOf(OpenApiParser).
|
|
1559
|
+
protoOf(OpenApiParser).k1u = function () {
|
|
1560
1560
|
return plus(plus(plus(parseEndpoints(this), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
|
|
1561
1561
|
};
|
|
1562
1562
|
function toMap_0(_this__u8e3s4) {
|
|
1563
1563
|
var tmp;
|
|
1564
1564
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1565
|
-
tmp = _this__u8e3s4.
|
|
1565
|
+
tmp = _this__u8e3s4.rm(VOID, VOID, true);
|
|
1566
1566
|
} else {
|
|
1567
1567
|
if (_this__u8e3s4 instanceof Any) {
|
|
1568
|
-
tmp = _this__u8e3s4.
|
|
1568
|
+
tmp = _this__u8e3s4.pm(VOID, true);
|
|
1569
1569
|
} else {
|
|
1570
1570
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1571
|
-
tmp = _this__u8e3s4.
|
|
1571
|
+
tmp = _this__u8e3s4.tm(VOID, VOID, true);
|
|
1572
1572
|
} else {
|
|
1573
1573
|
noWhenBranchMatchedException();
|
|
1574
1574
|
}
|
|
@@ -1612,13 +1612,13 @@
|
|
|
1612
1612
|
function toIterable(_this__u8e3s4) {
|
|
1613
1613
|
var tmp;
|
|
1614
1614
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1615
|
-
tmp = _this__u8e3s4.
|
|
1615
|
+
tmp = _this__u8e3s4.rm(VOID, true);
|
|
1616
1616
|
} else {
|
|
1617
1617
|
if (_this__u8e3s4 instanceof Any) {
|
|
1618
|
-
tmp = _this__u8e3s4.
|
|
1618
|
+
tmp = _this__u8e3s4.pm(true);
|
|
1619
1619
|
} else {
|
|
1620
1620
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1621
|
-
tmp = _this__u8e3s4.
|
|
1621
|
+
tmp = _this__u8e3s4.tm(VOID, true);
|
|
1622
1622
|
} else {
|
|
1623
1623
|
noWhenBranchMatchedException();
|
|
1624
1624
|
}
|
|
@@ -1664,9 +1664,9 @@
|
|
|
1664
1664
|
function Companion_0() {
|
|
1665
1665
|
Companion_instance_0 = this;
|
|
1666
1666
|
}
|
|
1667
|
-
protoOf(Companion_0).
|
|
1667
|
+
protoOf(Companion_0).i1u = function (json) {
|
|
1668
1668
|
// Inline function 'kotlin.let' call
|
|
1669
|
-
var tmp0_let = Default_getInstance_0().
|
|
1669
|
+
var tmp0_let = Default_getInstance_0().n1b(json);
|
|
1670
1670
|
// Inline function 'kotlin.contracts.contract' call
|
|
1671
1671
|
// Inline function 'community.flock.wirespec.openapi.v3.Companion.parse.<anonymous>' call
|
|
1672
1672
|
return parse(new OpenApiParser_0(tmp0_let));
|
|
@@ -1682,7 +1682,7 @@
|
|
|
1682
1682
|
}
|
|
1683
1683
|
function parseEndpoint($this) {
|
|
1684
1684
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1685
|
-
var tmp0_flatMap = $this.
|
|
1685
|
+
var tmp0_flatMap = $this.x1u_1.n1k_1;
|
|
1686
1686
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1687
1687
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1688
1688
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1691,7 +1691,7 @@
|
|
|
1691
1691
|
var element = tmp0_iterator.e();
|
|
1692
1692
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>' call
|
|
1693
1693
|
// Inline function 'kotlin.collections.component1' call
|
|
1694
|
-
var key = element.v().
|
|
1694
|
+
var key = element.v().v1k_1;
|
|
1695
1695
|
// Inline function 'kotlin.collections.component2' call
|
|
1696
1696
|
var path = element.w();
|
|
1697
1697
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1719,7 +1719,7 @@
|
|
|
1719
1719
|
while (tmp0_iterator_1.d()) {
|
|
1720
1720
|
var element_0 = tmp0_iterator_1.e();
|
|
1721
1721
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1722
|
-
if (element_0.
|
|
1722
|
+
if (element_0.p1m_1.equals(ParameterLocation_QUERY_getInstance_0())) {
|
|
1723
1723
|
tmp0_filterTo.a(element_0);
|
|
1724
1724
|
}
|
|
1725
1725
|
}
|
|
@@ -1730,7 +1730,7 @@
|
|
|
1730
1730
|
var item_0 = tmp0_iterator_2.e();
|
|
1731
1731
|
var tmp$ret$9;
|
|
1732
1732
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1733
|
-
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().
|
|
1733
|
+
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().h1u([name, 'Parameter', item_0.o1m_1]));
|
|
1734
1734
|
tmp0_mapTo_0.a(tmp$ret$9);
|
|
1735
1735
|
}
|
|
1736
1736
|
var query = tmp0_mapTo_0;
|
|
@@ -1742,7 +1742,7 @@
|
|
|
1742
1742
|
while (tmp0_iterator_3.d()) {
|
|
1743
1743
|
var element_1 = tmp0_iterator_3.e();
|
|
1744
1744
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1745
|
-
if (element_1.
|
|
1745
|
+
if (element_1.p1m_1.equals(ParameterLocation_HEADER_getInstance_0())) {
|
|
1746
1746
|
tmp0_filterTo_0.a(element_1);
|
|
1747
1747
|
}
|
|
1748
1748
|
}
|
|
@@ -1753,7 +1753,7 @@
|
|
|
1753
1753
|
var item_1 = tmp0_iterator_4.e();
|
|
1754
1754
|
var tmp$ret$15;
|
|
1755
1755
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1756
|
-
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().
|
|
1756
|
+
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().h1u([name, 'Parameter', item_1.o1m_1]));
|
|
1757
1757
|
tmp0_mapTo_1.a(tmp$ret$15);
|
|
1758
1758
|
}
|
|
1759
1759
|
var headers = tmp0_mapTo_1;
|
|
@@ -1765,7 +1765,7 @@
|
|
|
1765
1765
|
while (tmp0_iterator_5.d()) {
|
|
1766
1766
|
var element_2 = tmp0_iterator_5.e();
|
|
1767
1767
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1768
|
-
if (element_2.
|
|
1768
|
+
if (element_2.p1m_1.equals(ParameterLocation_COOKIE_getInstance())) {
|
|
1769
1769
|
tmp0_filterTo_1.a(element_2);
|
|
1770
1770
|
}
|
|
1771
1771
|
}
|
|
@@ -1776,11 +1776,11 @@
|
|
|
1776
1776
|
var item_2 = tmp0_iterator_6.e();
|
|
1777
1777
|
var tmp$ret$21;
|
|
1778
1778
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1779
|
-
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().
|
|
1779
|
+
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().h1u([name, 'Parameter', item_2.o1m_1]));
|
|
1780
1780
|
tmp0_mapTo_2.a(tmp$ret$21);
|
|
1781
1781
|
}
|
|
1782
1782
|
var cookies = tmp0_mapTo_2;
|
|
1783
|
-
var tmp0_safe_receiver = operation.
|
|
1783
|
+
var tmp0_safe_receiver = operation.u1l_1;
|
|
1784
1784
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, $this);
|
|
1785
1785
|
var tmp;
|
|
1786
1786
|
if (tmp1_safe_receiver == null) {
|
|
@@ -1789,7 +1789,7 @@
|
|
|
1789
1789
|
// Inline function 'kotlin.let' call
|
|
1790
1790
|
// Inline function 'kotlin.contracts.contract' call
|
|
1791
1791
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1792
|
-
var tmp0_safe_receiver_0 = tmp1_safe_receiver.
|
|
1792
|
+
var tmp0_safe_receiver_0 = tmp1_safe_receiver.u1m_1;
|
|
1793
1793
|
var tmp_0;
|
|
1794
1794
|
if (tmp0_safe_receiver_0 == null) {
|
|
1795
1795
|
tmp_0 = null;
|
|
@@ -1804,17 +1804,17 @@
|
|
|
1804
1804
|
var tmp$ret$27;
|
|
1805
1805
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1806
1806
|
// Inline function 'kotlin.collections.component1' call
|
|
1807
|
-
var mediaType = item_3.v().
|
|
1807
|
+
var mediaType = item_3.v().z1m_1;
|
|
1808
1808
|
// Inline function 'kotlin.collections.component2' call
|
|
1809
1809
|
var mediaObject = item_3.w();
|
|
1810
1810
|
var tmp_1 = _MediaType___get_value__impl__wy58mp(mediaType);
|
|
1811
|
-
var schema = mediaObject.
|
|
1811
|
+
var schema = mediaObject.c1n_1;
|
|
1812
1812
|
var tmp_2;
|
|
1813
1813
|
if (schema instanceof ReferenceObject_0) {
|
|
1814
1814
|
tmp_2 = toReference_1(schema, $this);
|
|
1815
1815
|
} else {
|
|
1816
1816
|
if (schema instanceof SchemaObject_0) {
|
|
1817
|
-
tmp_2 = toReference_2(schema, $this, Common_getInstance().
|
|
1817
|
+
tmp_2 = toReference_2(schema, $this, Common_getInstance().h1u([name, 'RequestBody']));
|
|
1818
1818
|
} else {
|
|
1819
1819
|
if (schema == null) {
|
|
1820
1820
|
throw new NotImplementedError();
|
|
@@ -1824,7 +1824,7 @@
|
|
|
1824
1824
|
}
|
|
1825
1825
|
}
|
|
1826
1826
|
var tmp_3 = tmp_2;
|
|
1827
|
-
var tmp0_elvis_lhs = tmp1_safe_receiver.
|
|
1827
|
+
var tmp0_elvis_lhs = tmp1_safe_receiver.v1m_1;
|
|
1828
1828
|
tmp$ret$27 = new Request(new Content(tmp_1, tmp_3, tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
1829
1829
|
tmp0_mapTo_3.a(tmp$ret$27);
|
|
1830
1830
|
}
|
|
@@ -1836,7 +1836,7 @@
|
|
|
1836
1836
|
var requests = tmp2_elvis_lhs == null ? listOf(new Request(null)) : tmp2_elvis_lhs;
|
|
1837
1837
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1838
1838
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1839
|
-
var tmp0_elvis_lhs_0 = operation.
|
|
1839
|
+
var tmp0_elvis_lhs_0 = operation.v1l_1;
|
|
1840
1840
|
var tmp4_flatMap = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
1841
1841
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1842
1842
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
@@ -1846,10 +1846,10 @@
|
|
|
1846
1846
|
var element_3 = tmp0_iterator_8.e();
|
|
1847
1847
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1848
1848
|
// Inline function 'kotlin.collections.component1' call
|
|
1849
|
-
var status = element_3.v().
|
|
1849
|
+
var status = element_3.v().y1o_1;
|
|
1850
1850
|
// Inline function 'kotlin.collections.component2' call
|
|
1851
1851
|
var res = element_3.w();
|
|
1852
|
-
var tmp0_safe_receiver_1 = resolve_6(res, $this).
|
|
1852
|
+
var tmp0_safe_receiver_1 = resolve_6(res, $this).d1p_1;
|
|
1853
1853
|
var tmp_4;
|
|
1854
1854
|
if (tmp0_safe_receiver_1 == null) {
|
|
1855
1855
|
tmp_4 = null;
|
|
@@ -1864,18 +1864,18 @@
|
|
|
1864
1864
|
var tmp$ret$39;
|
|
1865
1865
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1866
1866
|
// Inline function 'kotlin.collections.component1' call
|
|
1867
|
-
var contentType = item_4.v().
|
|
1867
|
+
var contentType = item_4.v().z1m_1;
|
|
1868
1868
|
// Inline function 'kotlin.collections.component2' call
|
|
1869
1869
|
var media = item_4.w();
|
|
1870
1870
|
var tmp_5 = _StatusCode___get_value__impl__we50mu_0(status);
|
|
1871
1871
|
var tmp_6 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
1872
|
-
var schema_0 = media.
|
|
1872
|
+
var schema_0 = media.c1n_1;
|
|
1873
1873
|
var tmp_7;
|
|
1874
1874
|
if (schema_0 instanceof ReferenceObject_0) {
|
|
1875
1875
|
tmp_7 = toReference_1(schema_0, $this);
|
|
1876
1876
|
} else {
|
|
1877
1877
|
if (schema_0 instanceof SchemaObject_0) {
|
|
1878
|
-
tmp_7 = toReference_2(schema_0, $this, Common_getInstance().
|
|
1878
|
+
tmp_7 = toReference_2(schema_0, $this, Common_getInstance().h1u([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
1879
1879
|
} else {
|
|
1880
1880
|
if (schema_0 == null) {
|
|
1881
1881
|
throw new NotImplementedError();
|
|
@@ -1885,9 +1885,9 @@
|
|
|
1885
1885
|
}
|
|
1886
1886
|
}
|
|
1887
1887
|
var tmp_8 = tmp_7;
|
|
1888
|
-
var tmp0_safe_receiver_2 = media.
|
|
1888
|
+
var tmp0_safe_receiver_2 = media.c1n_1;
|
|
1889
1889
|
var tmp1_safe_receiver_0 = tmp0_safe_receiver_2 == null ? null : resolve_3(tmp0_safe_receiver_2, $this);
|
|
1890
|
-
var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
1890
|
+
var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.l1n_1;
|
|
1891
1891
|
tmp$ret$39 = new Response(tmp_5, new Content(tmp_6, tmp_8, tmp2_elvis_lhs_0 == null ? false : tmp2_elvis_lhs_0));
|
|
1892
1892
|
tmp0_mapTo_4.a(tmp$ret$39);
|
|
1893
1893
|
}
|
|
@@ -1907,20 +1907,20 @@
|
|
|
1907
1907
|
return tmp0_flatMapTo;
|
|
1908
1908
|
}
|
|
1909
1909
|
function parseParameters($this) {
|
|
1910
|
-
return flatMapRequests_0($this.
|
|
1910
|
+
return flatMapRequests_0($this.x1u_1, $this, OpenApiParser$parseParameters$lambda($this));
|
|
1911
1911
|
}
|
|
1912
1912
|
function parseRequestBody_0($this) {
|
|
1913
|
-
return flatMapRequests_0($this.
|
|
1913
|
+
return flatMapRequests_0($this.x1u_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
|
|
1914
1914
|
}
|
|
1915
1915
|
function parseResponseBody_0($this) {
|
|
1916
|
-
return flatMapResponses_0($this.
|
|
1916
|
+
return flatMapResponses_0($this.x1u_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
|
|
1917
1917
|
}
|
|
1918
1918
|
function parseComponents($this) {
|
|
1919
1919
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1920
1920
|
// Inline function 'kotlin.collections.filter' call
|
|
1921
1921
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1922
|
-
var tmp0_safe_receiver = $this.
|
|
1923
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1922
|
+
var tmp0_safe_receiver = $this.x1u_1.o1k_1;
|
|
1923
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i1p_1;
|
|
1924
1924
|
var tmp1_filter = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1925
1925
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1926
1926
|
var tmp0_filterTo = LinkedHashMap_init_$Create$();
|
|
@@ -1932,7 +1932,7 @@
|
|
|
1932
1932
|
var s = element.w();
|
|
1933
1933
|
var tmp;
|
|
1934
1934
|
if (s instanceof SchemaObject_0) {
|
|
1935
|
-
tmp = s.
|
|
1935
|
+
tmp = s.b1o_1 == null;
|
|
1936
1936
|
} else {
|
|
1937
1937
|
tmp = false;
|
|
1938
1938
|
}
|
|
@@ -1947,7 +1947,7 @@
|
|
|
1947
1947
|
while (tmp0_iterator_0.d()) {
|
|
1948
1948
|
var element_0 = tmp0_iterator_0.e();
|
|
1949
1949
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
1950
|
-
var list = flatten_2(element_0.w(), $this, Common_getInstance().
|
|
1950
|
+
var list = flatten_2(element_0.w(), $this, Common_getInstance().h1u([element_0.v()]));
|
|
1951
1951
|
addAll(tmp0_flatMapTo, list);
|
|
1952
1952
|
}
|
|
1953
1953
|
return tmp0_flatMapTo;
|
|
@@ -1977,7 +1977,7 @@
|
|
|
1977
1977
|
while (tmp0_iterator_0.d()) {
|
|
1978
1978
|
var element = tmp0_iterator_0.e();
|
|
1979
1979
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1980
|
-
if (element.
|
|
1980
|
+
if (element.o1m_1 === param) {
|
|
1981
1981
|
tmp$ret$3 = element;
|
|
1982
1982
|
break $l$block;
|
|
1983
1983
|
}
|
|
@@ -1985,7 +1985,7 @@
|
|
|
1985
1985
|
tmp$ret$3 = null;
|
|
1986
1986
|
}
|
|
1987
1987
|
var tmp0_safe_receiver = tmp$ret$3;
|
|
1988
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1988
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k1m_1;
|
|
1989
1989
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_3(tmp1_safe_receiver, $this);
|
|
1990
1990
|
var tmp_0;
|
|
1991
1991
|
if (tmp2_safe_receiver == null) {
|
|
@@ -1994,7 +1994,7 @@
|
|
|
1994
1994
|
// Inline function 'kotlin.let' call
|
|
1995
1995
|
// Inline function 'kotlin.contracts.contract' call
|
|
1996
1996
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1997
|
-
var tmp0_safe_receiver_0 = tmp2_safe_receiver.
|
|
1997
|
+
var tmp0_safe_receiver_0 = tmp2_safe_receiver.u1n_1;
|
|
1998
1998
|
tmp_0 = tmp0_safe_receiver_0 == null ? null : toPrimitive_0(tmp0_safe_receiver_0, $this);
|
|
1999
1999
|
}
|
|
2000
2000
|
var tmp3_safe_receiver = tmp_0;
|
|
@@ -2025,7 +2025,7 @@
|
|
|
2025
2025
|
return tmp0_mapTo;
|
|
2026
2026
|
}
|
|
2027
2027
|
function toName_0(_this__u8e3s4, $this, segments, method) {
|
|
2028
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2028
|
+
var tmp0_safe_receiver = _this__u8e3s4.s1l_1;
|
|
2029
2029
|
var tmp;
|
|
2030
2030
|
if (tmp0_safe_receiver == null) {
|
|
2031
2031
|
tmp = null;
|
|
@@ -2033,7 +2033,7 @@
|
|
|
2033
2033
|
// Inline function 'kotlin.let' call
|
|
2034
2034
|
// Inline function 'kotlin.contracts.contract' call
|
|
2035
2035
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
2036
|
-
tmp = Common_getInstance().
|
|
2036
|
+
tmp = Common_getInstance().h1u([tmp0_safe_receiver]);
|
|
2037
2037
|
}
|
|
2038
2038
|
var tmp1_elvis_lhs = tmp;
|
|
2039
2039
|
var tmp_0;
|
|
@@ -2048,7 +2048,7 @@
|
|
|
2048
2048
|
return tmp_0;
|
|
2049
2049
|
}
|
|
2050
2050
|
function resolveParameters_1(_this__u8e3s4, $this) {
|
|
2051
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2051
|
+
var tmp0_safe_receiver = _this__u8e3s4.t1l_1;
|
|
2052
2052
|
var tmp;
|
|
2053
2053
|
if (tmp0_safe_receiver == null) {
|
|
2054
2054
|
tmp = null;
|
|
@@ -2087,7 +2087,7 @@
|
|
|
2087
2087
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2088
2088
|
}
|
|
2089
2089
|
function resolveParameters_2(_this__u8e3s4, $this) {
|
|
2090
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2090
|
+
var tmp0_safe_receiver = _this__u8e3s4.k1l_1;
|
|
2091
2091
|
var tmp;
|
|
2092
2092
|
if (tmp0_safe_receiver == null) {
|
|
2093
2093
|
tmp = null;
|
|
@@ -2126,8 +2126,8 @@
|
|
|
2126
2126
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2127
2127
|
}
|
|
2128
2128
|
function resolveParameterObject_0(_this__u8e3s4, $this) {
|
|
2129
|
-
var tmp0_safe_receiver = $this.
|
|
2130
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2129
|
+
var tmp0_safe_receiver = $this.x1u_1.o1k_1;
|
|
2130
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k1p_1;
|
|
2131
2131
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n2(getReference_0(_this__u8e3s4, $this));
|
|
2132
2132
|
var tmp;
|
|
2133
2133
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2151,8 +2151,8 @@
|
|
|
2151
2151
|
return tmp;
|
|
2152
2152
|
}
|
|
2153
2153
|
function resolveSchemaObject_0(_this__u8e3s4, $this) {
|
|
2154
|
-
var tmp0_safe_receiver = $this.
|
|
2155
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2154
|
+
var tmp0_safe_receiver = $this.x1u_1.o1k_1;
|
|
2155
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i1p_1;
|
|
2156
2156
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n2(getReference_0(_this__u8e3s4, $this));
|
|
2157
2157
|
var tmp;
|
|
2158
2158
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2176,7 +2176,7 @@
|
|
|
2176
2176
|
var tmp3_elvis_lhs = tmp;
|
|
2177
2177
|
var tmp_1;
|
|
2178
2178
|
if (tmp3_elvis_lhs == null) {
|
|
2179
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2179
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.i1n_1);
|
|
2180
2180
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2181
2181
|
} else {
|
|
2182
2182
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2184,8 +2184,8 @@
|
|
|
2184
2184
|
return tmp_1;
|
|
2185
2185
|
}
|
|
2186
2186
|
function resolveRequestBodyObject(_this__u8e3s4, $this) {
|
|
2187
|
-
var tmp0_safe_receiver = $this.
|
|
2188
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2187
|
+
var tmp0_safe_receiver = $this.x1u_1.o1k_1;
|
|
2188
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m1p_1;
|
|
2189
2189
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n2(getReference_0(_this__u8e3s4, $this));
|
|
2190
2190
|
var tmp;
|
|
2191
2191
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2209,7 +2209,7 @@
|
|
|
2209
2209
|
var tmp3_elvis_lhs = tmp;
|
|
2210
2210
|
var tmp_1;
|
|
2211
2211
|
if (tmp3_elvis_lhs == null) {
|
|
2212
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2212
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.i1n_1);
|
|
2213
2213
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2214
2214
|
} else {
|
|
2215
2215
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2217,8 +2217,8 @@
|
|
|
2217
2217
|
return tmp_1;
|
|
2218
2218
|
}
|
|
2219
2219
|
function resolveResponseObject_0(_this__u8e3s4, $this) {
|
|
2220
|
-
var tmp0_safe_receiver = $this.
|
|
2221
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2220
|
+
var tmp0_safe_receiver = $this.x1u_1.o1k_1;
|
|
2221
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j1p_1;
|
|
2222
2222
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n2(getReference_0(_this__u8e3s4, $this));
|
|
2223
2223
|
var tmp;
|
|
2224
2224
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2242,7 +2242,7 @@
|
|
|
2242
2242
|
var tmp3_elvis_lhs = tmp;
|
|
2243
2243
|
var tmp_1;
|
|
2244
2244
|
if (tmp3_elvis_lhs == null) {
|
|
2245
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2245
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.i1n_1);
|
|
2246
2246
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2247
2247
|
} else {
|
|
2248
2248
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2307,22 +2307,41 @@
|
|
|
2307
2307
|
}
|
|
2308
2308
|
function flatten_1(_this__u8e3s4, $this, name) {
|
|
2309
2309
|
var tmp;
|
|
2310
|
-
if (!(_this__u8e3s4.
|
|
2310
|
+
if (!(_this__u8e3s4.b1o_1 == null)) {
|
|
2311
2311
|
var tmp_0;
|
|
2312
|
-
if (_this__u8e3s4.
|
|
2312
|
+
if (_this__u8e3s4.b1o_1 instanceof BooleanObject_0) {
|
|
2313
2313
|
tmp_0 = emptyList();
|
|
2314
2314
|
} else {
|
|
2315
|
-
|
|
2315
|
+
var tmp1_safe_receiver = _this__u8e3s4.b1o_1;
|
|
2316
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_4(tmp1_safe_receiver, $this);
|
|
2317
|
+
var tmp_1;
|
|
2318
|
+
if (tmp2_safe_receiver == null) {
|
|
2319
|
+
tmp_1 = null;
|
|
2320
|
+
} else {
|
|
2321
|
+
// Inline function 'kotlin.takeIf' call
|
|
2322
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2323
|
+
var tmp_2;
|
|
2324
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2325
|
+
if (!(tmp2_safe_receiver.a1o_1 == null)) {
|
|
2326
|
+
tmp_2 = tmp2_safe_receiver;
|
|
2327
|
+
} else {
|
|
2328
|
+
tmp_2 = null;
|
|
2329
|
+
}
|
|
2330
|
+
tmp_1 = tmp_2;
|
|
2331
|
+
}
|
|
2332
|
+
var tmp3_safe_receiver = tmp_1;
|
|
2333
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : flatten_1(tmp3_safe_receiver, $this, name);
|
|
2334
|
+
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
2316
2335
|
}
|
|
2317
2336
|
tmp = tmp_0;
|
|
2318
|
-
} else if (!(_this__u8e3s4.
|
|
2337
|
+
} else if (!(_this__u8e3s4.w1n_1 == null)) {
|
|
2319
2338
|
throw new NotImplementedError('An operation is not implemented: oneOf is not implemented');
|
|
2320
|
-
} else if (!(_this__u8e3s4.
|
|
2339
|
+
} else if (!(_this__u8e3s4.x1n_1 == null)) {
|
|
2321
2340
|
throw new NotImplementedError('An operation is not implemented: anyOf is not implemented');
|
|
2322
|
-
} else if (!(_this__u8e3s4.
|
|
2341
|
+
} else if (!(_this__u8e3s4.v1n_1 == null)) {
|
|
2323
2342
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2324
2343
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2325
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2344
|
+
var tmp0_elvis_lhs = _this__u8e3s4.v1n_1;
|
|
2326
2345
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2327
2346
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2328
2347
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -2333,23 +2352,23 @@
|
|
|
2333
2352
|
var list = toField_1(resolve_3(element, $this), $this, name);
|
|
2334
2353
|
addAll(tmp0_flatMapTo, list);
|
|
2335
2354
|
}
|
|
2336
|
-
var
|
|
2355
|
+
var tmp_3 = listOf(new Type(name, new Shape(tmp0_flatMapTo)));
|
|
2337
2356
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2338
|
-
var tmp2_flatMap = ensureNotNull(_this__u8e3s4.
|
|
2357
|
+
var tmp2_flatMap = ensureNotNull(_this__u8e3s4.v1n_1);
|
|
2339
2358
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2340
2359
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
2341
2360
|
var tmp0_iterator_0 = tmp2_flatMap.c();
|
|
2342
2361
|
while (tmp0_iterator_0.d()) {
|
|
2343
2362
|
var element_0 = tmp0_iterator_0.e();
|
|
2344
2363
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2345
|
-
var
|
|
2364
|
+
var tmp_4;
|
|
2346
2365
|
if (element_0 instanceof ReferenceObject_0) {
|
|
2347
|
-
|
|
2366
|
+
tmp_4 = emptyList();
|
|
2348
2367
|
} else {
|
|
2349
2368
|
if (element_0 instanceof SchemaObject_0) {
|
|
2350
2369
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2351
2370
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2352
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
2371
|
+
var tmp0_elvis_lhs_0 = element_0.a1o_1;
|
|
2353
2372
|
var tmp1_flatMap_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2354
2373
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2355
2374
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
@@ -2362,57 +2381,57 @@
|
|
|
2362
2381
|
var key = element_1.v();
|
|
2363
2382
|
// Inline function 'kotlin.collections.component2' call
|
|
2364
2383
|
var value = element_1.w();
|
|
2365
|
-
var
|
|
2384
|
+
var tmp_5;
|
|
2366
2385
|
if (value instanceof ReferenceObject_0) {
|
|
2367
|
-
|
|
2386
|
+
tmp_5 = emptyList();
|
|
2368
2387
|
} else {
|
|
2369
2388
|
if (value instanceof SchemaObject_0) {
|
|
2370
|
-
|
|
2389
|
+
tmp_5 = flatten_1(value, $this, Common_getInstance().h1u([name, key]));
|
|
2371
2390
|
} else {
|
|
2372
2391
|
noWhenBranchMatchedException();
|
|
2373
2392
|
}
|
|
2374
2393
|
}
|
|
2375
|
-
var list_0 =
|
|
2394
|
+
var list_0 = tmp_5;
|
|
2376
2395
|
addAll(tmp0_flatMapTo_1, list_0);
|
|
2377
2396
|
}
|
|
2378
|
-
|
|
2397
|
+
tmp_4 = tmp0_flatMapTo_1;
|
|
2379
2398
|
} else {
|
|
2380
2399
|
noWhenBranchMatchedException();
|
|
2381
2400
|
}
|
|
2382
2401
|
}
|
|
2383
|
-
var list_1 =
|
|
2402
|
+
var list_1 = tmp_4;
|
|
2384
2403
|
addAll(tmp0_flatMapTo_0, list_1);
|
|
2385
2404
|
}
|
|
2386
|
-
tmp = plus(
|
|
2387
|
-
} else if (!(_this__u8e3s4.
|
|
2405
|
+
tmp = plus(tmp_3, tmp0_flatMapTo_0);
|
|
2406
|
+
} else if (!(_this__u8e3s4.u1o_1 == null)) {
|
|
2388
2407
|
// Inline function 'kotlin.let' call
|
|
2389
2408
|
// Inline function 'kotlin.collections.map' call
|
|
2390
|
-
var tmp3_map = ensureNotNull(_this__u8e3s4.
|
|
2409
|
+
var tmp3_map = ensureNotNull(_this__u8e3s4.u1o_1);
|
|
2391
2410
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2392
2411
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp3_map, 10));
|
|
2393
2412
|
var tmp0_iterator_2 = tmp3_map.c();
|
|
2394
2413
|
while (tmp0_iterator_2.d()) {
|
|
2395
2414
|
var item = tmp0_iterator_2.e();
|
|
2396
|
-
var tmp$ret$
|
|
2415
|
+
var tmp$ret$16;
|
|
2397
2416
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2398
|
-
tmp$ret$
|
|
2399
|
-
tmp0_mapTo.a(tmp$ret$
|
|
2417
|
+
tmp$ret$16 = item.r14();
|
|
2418
|
+
tmp0_mapTo.a(tmp$ret$16);
|
|
2400
2419
|
}
|
|
2401
2420
|
var tmp4_let = toSet(tmp0_mapTo);
|
|
2402
2421
|
// Inline function 'kotlin.contracts.contract' call
|
|
2403
2422
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2404
2423
|
tmp = listOf(new Enum(name, tmp4_let));
|
|
2405
2424
|
} else {
|
|
2406
|
-
var
|
|
2407
|
-
var
|
|
2408
|
-
switch (
|
|
2425
|
+
var tmp5_subject = _this__u8e3s4.u1n_1;
|
|
2426
|
+
var tmp_6;
|
|
2427
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.r4_1) {
|
|
2409
2428
|
case -1:
|
|
2410
2429
|
case 5:
|
|
2411
2430
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2412
2431
|
|
|
2413
2432
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2414
2433
|
|
|
2415
|
-
var tmp0_elvis_lhs_1 = _this__u8e3s4.
|
|
2434
|
+
var tmp0_elvis_lhs_1 = _this__u8e3s4.a1o_1;
|
|
2416
2435
|
var tmp6_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
2417
2436
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2418
2437
|
|
|
@@ -2427,54 +2446,54 @@
|
|
|
2427
2446
|
var key_0 = element_2.v();
|
|
2428
2447
|
// Inline function 'kotlin.collections.component2' call
|
|
2429
2448
|
var value_0 = element_2.w();
|
|
2430
|
-
var
|
|
2449
|
+
var tmp_7;
|
|
2431
2450
|
if (value_0 instanceof SchemaObject_0) {
|
|
2432
|
-
|
|
2451
|
+
tmp_7 = flatten_1(value_0, $this, Common_getInstance().h1u([name, key_0]));
|
|
2433
2452
|
} else {
|
|
2434
2453
|
if (value_0 instanceof ReferenceObject_0) {
|
|
2435
|
-
|
|
2454
|
+
tmp_7 = emptyList();
|
|
2436
2455
|
} else {
|
|
2437
2456
|
noWhenBranchMatchedException();
|
|
2438
2457
|
}
|
|
2439
2458
|
}
|
|
2440
|
-
var list_2 =
|
|
2459
|
+
var list_2 = tmp_7;
|
|
2441
2460
|
addAll(tmp0_flatMapTo_2, list_2);
|
|
2442
2461
|
}
|
|
2443
2462
|
|
|
2444
2463
|
var fields = tmp0_flatMapTo_2;
|
|
2445
2464
|
var schema = listOf(new Type(name, new Shape(toField_1(_this__u8e3s4, $this, name))));
|
|
2446
|
-
|
|
2465
|
+
tmp_6 = plus(schema, fields);
|
|
2447
2466
|
break;
|
|
2448
2467
|
case 4:
|
|
2449
|
-
var
|
|
2450
|
-
var
|
|
2451
|
-
if (
|
|
2452
|
-
|
|
2468
|
+
var tmp6_safe_receiver = _this__u8e3s4.z1n_1;
|
|
2469
|
+
var tmp_8;
|
|
2470
|
+
if (tmp6_safe_receiver == null) {
|
|
2471
|
+
tmp_8 = null;
|
|
2453
2472
|
} else {
|
|
2454
2473
|
// Inline function 'kotlin.let' call
|
|
2455
2474
|
// Inline function 'kotlin.contracts.contract' call
|
|
2456
2475
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2457
|
-
var
|
|
2458
|
-
if (
|
|
2459
|
-
|
|
2476
|
+
var tmp_9;
|
|
2477
|
+
if (tmp6_safe_receiver instanceof ReferenceObject_0) {
|
|
2478
|
+
tmp_9 = emptyList();
|
|
2460
2479
|
} else {
|
|
2461
|
-
if (
|
|
2462
|
-
|
|
2480
|
+
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
2481
|
+
tmp_9 = flatten_1(tmp6_safe_receiver, $this, Common_getInstance().h1u([name, 'array']));
|
|
2463
2482
|
} else {
|
|
2464
2483
|
noWhenBranchMatchedException();
|
|
2465
2484
|
}
|
|
2466
2485
|
}
|
|
2467
|
-
|
|
2486
|
+
tmp_8 = tmp_9;
|
|
2468
2487
|
}
|
|
2469
2488
|
|
|
2470
|
-
var
|
|
2471
|
-
|
|
2489
|
+
var tmp7_elvis_lhs = tmp_8;
|
|
2490
|
+
tmp_6 = tmp7_elvis_lhs == null ? emptyList() : tmp7_elvis_lhs;
|
|
2472
2491
|
break;
|
|
2473
2492
|
default:
|
|
2474
|
-
|
|
2493
|
+
tmp_6 = emptyList();
|
|
2475
2494
|
break;
|
|
2476
2495
|
}
|
|
2477
|
-
tmp =
|
|
2496
|
+
tmp = tmp_6;
|
|
2478
2497
|
}
|
|
2479
2498
|
return tmp;
|
|
2480
2499
|
}
|
|
@@ -2499,8 +2518,8 @@
|
|
|
2499
2518
|
var referencingObject = tmp0_let.j3();
|
|
2500
2519
|
var schema = tmp0_let.k3();
|
|
2501
2520
|
var tmp;
|
|
2502
|
-
if (!(schema.
|
|
2503
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2521
|
+
if (!(schema.b1o_1 == null)) {
|
|
2522
|
+
var additionalProperties = ensureNotNull(schema.b1o_1);
|
|
2504
2523
|
var tmp_0;
|
|
2505
2524
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
2506
2525
|
tmp_0 = new Any(false, true);
|
|
@@ -2516,24 +2535,24 @@
|
|
|
2516
2535
|
}
|
|
2517
2536
|
}
|
|
2518
2537
|
tmp = tmp_0;
|
|
2519
|
-
} else if (!(schema.
|
|
2520
|
-
tmp = new Custom(Common_getInstance().
|
|
2521
|
-
} else if (isPrimitive_0(schema.
|
|
2522
|
-
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.
|
|
2538
|
+
} else if (!(schema.u1o_1 == null)) {
|
|
2539
|
+
tmp = new Custom(Common_getInstance().h1u([getReference_0(referencingObject, $this)]), false, false);
|
|
2540
|
+
} else if (isPrimitive_0(schema.u1n_1)) {
|
|
2541
|
+
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.u1n_1), $this), false, false);
|
|
2523
2542
|
} else {
|
|
2524
|
-
var tmp0_subject = schema.
|
|
2543
|
+
var tmp0_subject = schema.u1n_1;
|
|
2525
2544
|
var tmp_1;
|
|
2526
2545
|
if ((tmp0_subject == null ? -1 : tmp0_subject.r4_1) === 4) {
|
|
2527
|
-
var items = schema.
|
|
2546
|
+
var items = schema.z1n_1;
|
|
2528
2547
|
var tmp_2;
|
|
2529
2548
|
if (items instanceof ReferenceObject_0) {
|
|
2530
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2549
|
+
tmp_2 = new Custom(Common_getInstance().h1u([getReference_0(items, $this)]), true);
|
|
2531
2550
|
} else {
|
|
2532
2551
|
if (items instanceof SchemaObject_0) {
|
|
2533
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2552
|
+
tmp_2 = new Custom(Common_getInstance().h1u([getReference_0(referencingObject, $this), 'Array']), true);
|
|
2534
2553
|
} else {
|
|
2535
2554
|
if (items == null) {
|
|
2536
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.
|
|
2555
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.i1n_1);
|
|
2537
2556
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2538
2557
|
} else {
|
|
2539
2558
|
noWhenBranchMatchedException();
|
|
@@ -2542,7 +2561,7 @@
|
|
|
2542
2561
|
}
|
|
2543
2562
|
tmp_1 = tmp_2;
|
|
2544
2563
|
} else {
|
|
2545
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
2564
|
+
tmp_1 = new Custom(Common_getInstance().h1u([getReference_0(referencingObject, $this)]), false);
|
|
2546
2565
|
}
|
|
2547
2566
|
tmp = tmp_1;
|
|
2548
2567
|
}
|
|
@@ -2550,8 +2569,8 @@
|
|
|
2550
2569
|
}
|
|
2551
2570
|
function toReference_2(_this__u8e3s4, $this, name) {
|
|
2552
2571
|
var tmp;
|
|
2553
|
-
if (!(_this__u8e3s4.
|
|
2554
|
-
var additionalProperties = ensureNotNull(_this__u8e3s4.
|
|
2572
|
+
if (!(_this__u8e3s4.b1o_1 == null)) {
|
|
2573
|
+
var additionalProperties = ensureNotNull(_this__u8e3s4.b1o_1);
|
|
2555
2574
|
var tmp_0;
|
|
2556
2575
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
2557
2576
|
tmp_0 = new Any(false, true);
|
|
@@ -2560,62 +2579,82 @@
|
|
|
2560
2579
|
tmp_0 = toMap_1(toReference_1(additionalProperties, $this));
|
|
2561
2580
|
} else {
|
|
2562
2581
|
if (additionalProperties instanceof SchemaObject_0) {
|
|
2563
|
-
|
|
2582
|
+
// Inline function 'kotlin.takeIf' call
|
|
2583
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2584
|
+
var tmp_1;
|
|
2585
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toReference.<anonymous>' call
|
|
2586
|
+
if (!(additionalProperties.u1n_1 == null)) {
|
|
2587
|
+
tmp_1 = additionalProperties;
|
|
2588
|
+
} else {
|
|
2589
|
+
tmp_1 = null;
|
|
2590
|
+
}
|
|
2591
|
+
var tmp0_safe_receiver = tmp_1;
|
|
2592
|
+
var tmp_2;
|
|
2593
|
+
if (tmp0_safe_receiver == null) {
|
|
2594
|
+
tmp_2 = null;
|
|
2595
|
+
} else {
|
|
2596
|
+
// Inline function 'kotlin.run' call
|
|
2597
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2598
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toReference.<anonymous>' call
|
|
2599
|
+
tmp_2 = toMap_1(toReference_2(tmp0_safe_receiver, $this, name));
|
|
2600
|
+
}
|
|
2601
|
+
var tmp1_elvis_lhs = tmp_2;
|
|
2602
|
+
tmp_0 = tmp1_elvis_lhs == null ? new Any(false, true) : tmp1_elvis_lhs;
|
|
2564
2603
|
} else {
|
|
2565
2604
|
noWhenBranchMatchedException();
|
|
2566
2605
|
}
|
|
2567
2606
|
}
|
|
2568
2607
|
}
|
|
2569
2608
|
tmp = tmp_0;
|
|
2570
|
-
} else if (!(_this__u8e3s4.
|
|
2571
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
2609
|
+
} else if (!(_this__u8e3s4.u1o_1 == null)) {
|
|
2610
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.b1o_1 == null));
|
|
2572
2611
|
} else {
|
|
2573
|
-
var type = _this__u8e3s4.
|
|
2574
|
-
var
|
|
2612
|
+
var type = _this__u8e3s4.u1n_1;
|
|
2613
|
+
var tmp_3;
|
|
2575
2614
|
switch (type == null ? -1 : type.r4_1) {
|
|
2576
2615
|
case 0:
|
|
2577
2616
|
case 1:
|
|
2578
2617
|
case 2:
|
|
2579
2618
|
case 3:
|
|
2580
|
-
|
|
2619
|
+
tmp_3 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.b1o_1 == null));
|
|
2581
2620
|
break;
|
|
2582
2621
|
case -1:
|
|
2583
2622
|
case 5:
|
|
2584
|
-
var
|
|
2585
|
-
var
|
|
2586
|
-
if (
|
|
2587
|
-
|
|
2623
|
+
var tmp_4;
|
|
2624
|
+
var tmp_5 = _this__u8e3s4.b1o_1;
|
|
2625
|
+
if (tmp_5 instanceof BooleanObject_0) {
|
|
2626
|
+
tmp_4 = new Any(false, !(_this__u8e3s4.b1o_1 == null));
|
|
2588
2627
|
} else {
|
|
2589
|
-
|
|
2628
|
+
tmp_4 = new Custom(name, false, !(_this__u8e3s4.b1o_1 == null));
|
|
2590
2629
|
}
|
|
2591
2630
|
|
|
2592
|
-
|
|
2631
|
+
tmp_3 = tmp_4;
|
|
2593
2632
|
break;
|
|
2594
2633
|
case 4:
|
|
2595
|
-
var it = _this__u8e3s4.
|
|
2596
|
-
var
|
|
2634
|
+
var it = _this__u8e3s4.z1n_1;
|
|
2635
|
+
var tmp_6;
|
|
2597
2636
|
if (it instanceof ReferenceObject_0) {
|
|
2598
|
-
|
|
2637
|
+
tmp_6 = toIterable_0(toReference_1(it, $this));
|
|
2599
2638
|
} else {
|
|
2600
2639
|
if (it instanceof SchemaObject_0) {
|
|
2601
|
-
|
|
2640
|
+
tmp_6 = toIterable_0(toReference_2(it, $this, name));
|
|
2602
2641
|
} else {
|
|
2603
2642
|
if (it == null) {
|
|
2604
|
-
var
|
|
2605
|
-
throw IllegalStateException_init_$Create$(toString(
|
|
2643
|
+
var tmp1_error = 'When schema is of type array items cannot be null for name: ' + name;
|
|
2644
|
+
throw IllegalStateException_init_$Create$(toString(tmp1_error));
|
|
2606
2645
|
} else {
|
|
2607
2646
|
noWhenBranchMatchedException();
|
|
2608
2647
|
}
|
|
2609
2648
|
}
|
|
2610
2649
|
}
|
|
2611
2650
|
|
|
2612
|
-
|
|
2651
|
+
tmp_3 = tmp_6;
|
|
2613
2652
|
break;
|
|
2614
2653
|
default:
|
|
2615
2654
|
noWhenBranchMatchedException();
|
|
2616
2655
|
break;
|
|
2617
2656
|
}
|
|
2618
|
-
tmp =
|
|
2657
|
+
tmp = tmp_3;
|
|
2619
2658
|
}
|
|
2620
2659
|
return tmp;
|
|
2621
2660
|
}
|
|
@@ -2632,28 +2671,28 @@
|
|
|
2632
2671
|
var tmp;
|
|
2633
2672
|
switch (element.r4_1) {
|
|
2634
2673
|
case 0:
|
|
2635
|
-
tmp = _this__u8e3s4.
|
|
2674
|
+
tmp = _this__u8e3s4.b1l_1;
|
|
2636
2675
|
break;
|
|
2637
2676
|
case 1:
|
|
2638
|
-
tmp = _this__u8e3s4.
|
|
2677
|
+
tmp = _this__u8e3s4.d1l_1;
|
|
2639
2678
|
break;
|
|
2640
2679
|
case 2:
|
|
2641
|
-
tmp = _this__u8e3s4.
|
|
2680
|
+
tmp = _this__u8e3s4.c1l_1;
|
|
2642
2681
|
break;
|
|
2643
2682
|
case 3:
|
|
2644
|
-
tmp = _this__u8e3s4.
|
|
2683
|
+
tmp = _this__u8e3s4.e1l_1;
|
|
2645
2684
|
break;
|
|
2646
2685
|
case 4:
|
|
2647
|
-
tmp = _this__u8e3s4.
|
|
2686
|
+
tmp = _this__u8e3s4.f1l_1;
|
|
2648
2687
|
break;
|
|
2649
2688
|
case 5:
|
|
2650
|
-
tmp = _this__u8e3s4.
|
|
2689
|
+
tmp = _this__u8e3s4.g1l_1;
|
|
2651
2690
|
break;
|
|
2652
2691
|
case 6:
|
|
2653
|
-
tmp = _this__u8e3s4.
|
|
2692
|
+
tmp = _this__u8e3s4.h1l_1;
|
|
2654
2693
|
break;
|
|
2655
2694
|
case 7:
|
|
2656
|
-
tmp = _this__u8e3s4.
|
|
2695
|
+
tmp = _this__u8e3s4.i1l_1;
|
|
2657
2696
|
break;
|
|
2658
2697
|
default:
|
|
2659
2698
|
noWhenBranchMatchedException();
|
|
@@ -2665,10 +2704,10 @@
|
|
|
2665
2704
|
return filterNotNullValues_0(result);
|
|
2666
2705
|
}
|
|
2667
2706
|
function getReference_0(_this__u8e3s4, $this) {
|
|
2668
|
-
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
2707
|
+
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.i1n_1), ['/']), 3);
|
|
2669
2708
|
var tmp;
|
|
2670
2709
|
if (tmp0_elvis_lhs == null) {
|
|
2671
|
-
var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
2710
|
+
var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.i1n_1);
|
|
2672
2711
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2673
2712
|
} else {
|
|
2674
2713
|
tmp = tmp0_elvis_lhs;
|
|
@@ -2698,7 +2737,7 @@
|
|
|
2698
2737
|
function toField_1(_this__u8e3s4, $this, name) {
|
|
2699
2738
|
// Inline function 'kotlin.collections.map' call
|
|
2700
2739
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2701
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2740
|
+
var tmp0_elvis_lhs = _this__u8e3s4.a1o_1;
|
|
2702
2741
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2703
2742
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2704
2743
|
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.f());
|
|
@@ -2715,16 +2754,16 @@
|
|
|
2715
2754
|
var tmp;
|
|
2716
2755
|
if (value instanceof SchemaObject_0) {
|
|
2717
2756
|
var tmp_0 = new Identifier(key);
|
|
2718
|
-
var tmp1_subject = value.
|
|
2719
|
-
var tmp_1 = (tmp1_subject == null ? -1 : tmp1_subject.r4_1) === 4 ? toReference_2(value, $this, Common_getInstance().
|
|
2720
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
2757
|
+
var tmp1_subject = value.u1n_1;
|
|
2758
|
+
var tmp_1 = (tmp1_subject == null ? -1 : tmp1_subject.r4_1) === 4 ? toReference_2(value, $this, Common_getInstance().h1u([name, key, 'Array'])) : toReference_2(value, $this, Common_getInstance().h1u([name, key]));
|
|
2759
|
+
var tmp2_safe_receiver = _this__u8e3s4.t1o_1;
|
|
2721
2760
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.j1(key);
|
|
2722
2761
|
tmp = new Field(tmp_0, tmp_1, !(tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs));
|
|
2723
2762
|
} else {
|
|
2724
2763
|
if (value instanceof ReferenceObject_0) {
|
|
2725
2764
|
var tmp_2 = new Identifier(key);
|
|
2726
|
-
var tmp_3 = new Custom(getReference_0(value, $this), false);
|
|
2727
|
-
var tmp4_safe_receiver = _this__u8e3s4.
|
|
2765
|
+
var tmp_3 = new Custom(Common_getInstance().h1u([getReference_0(value, $this)]), false);
|
|
2766
|
+
var tmp4_safe_receiver = _this__u8e3s4.t1o_1;
|
|
2728
2767
|
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.j1(key);
|
|
2729
2768
|
tmp = new Field(tmp_2, tmp_3, !(tmp5_elvis_lhs == null ? false : tmp5_elvis_lhs));
|
|
2730
2769
|
} else {
|
|
@@ -2738,7 +2777,7 @@
|
|
|
2738
2777
|
}
|
|
2739
2778
|
function toField_2(_this__u8e3s4, $this, name) {
|
|
2740
2779
|
// Inline function 'kotlin.let' call
|
|
2741
|
-
var s = _this__u8e3s4.
|
|
2780
|
+
var s = _this__u8e3s4.k1m_1;
|
|
2742
2781
|
var tmp;
|
|
2743
2782
|
if (s instanceof ReferenceObject_0) {
|
|
2744
2783
|
tmp = toReference_1(s, $this);
|
|
@@ -2756,24 +2795,24 @@
|
|
|
2756
2795
|
var tmp0_let = tmp;
|
|
2757
2796
|
// Inline function 'kotlin.contracts.contract' call
|
|
2758
2797
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
2759
|
-
var tmp_0 = new Identifier(_this__u8e3s4.
|
|
2760
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2798
|
+
var tmp_0 = new Identifier(_this__u8e3s4.o1m_1);
|
|
2799
|
+
var tmp0_elvis_lhs = _this__u8e3s4.e1m_1;
|
|
2761
2800
|
return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
2762
2801
|
}
|
|
2763
2802
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
2764
|
-
this.
|
|
2765
|
-
this.
|
|
2766
|
-
this.
|
|
2767
|
-
this.
|
|
2803
|
+
this.y1u_1 = path;
|
|
2804
|
+
this.z1u_1 = pathItem;
|
|
2805
|
+
this.a1v_1 = method;
|
|
2806
|
+
this.b1v_1 = operation;
|
|
2768
2807
|
}
|
|
2769
2808
|
protoOf(FlattenRequest_0).toString = function () {
|
|
2770
|
-
return 'FlattenRequest(path=' + new Path_0(this.
|
|
2809
|
+
return 'FlattenRequest(path=' + new Path_0(this.y1u_1) + ', pathItem=' + this.z1u_1 + ', method=' + this.a1v_1 + ', operation=' + this.b1v_1 + ')';
|
|
2771
2810
|
};
|
|
2772
2811
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
2773
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
2774
|
-
result = imul(result, 31) + this.x1u_1.hashCode() | 0;
|
|
2775
|
-
result = imul(result, 31) + this.y1u_1.hashCode() | 0;
|
|
2812
|
+
var result = Path__hashCode_impl_go73kd_0(this.y1u_1);
|
|
2776
2813
|
result = imul(result, 31) + this.z1u_1.hashCode() | 0;
|
|
2814
|
+
result = imul(result, 31) + this.a1v_1.hashCode() | 0;
|
|
2815
|
+
result = imul(result, 31) + this.b1v_1.hashCode() | 0;
|
|
2777
2816
|
return result;
|
|
2778
2817
|
};
|
|
2779
2818
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -2782,20 +2821,20 @@
|
|
|
2782
2821
|
if (!(other instanceof FlattenRequest_0))
|
|
2783
2822
|
return false;
|
|
2784
2823
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
2785
|
-
if (!(this.
|
|
2824
|
+
if (!(this.y1u_1 === tmp0_other_with_cast.y1u_1))
|
|
2786
2825
|
return false;
|
|
2787
|
-
if (!this.
|
|
2826
|
+
if (!this.z1u_1.equals(tmp0_other_with_cast.z1u_1))
|
|
2788
2827
|
return false;
|
|
2789
|
-
if (!this.
|
|
2828
|
+
if (!this.a1v_1.equals(tmp0_other_with_cast.a1v_1))
|
|
2790
2829
|
return false;
|
|
2791
|
-
if (!this.
|
|
2830
|
+
if (!this.b1v_1.equals(tmp0_other_with_cast.b1v_1))
|
|
2792
2831
|
return false;
|
|
2793
2832
|
return true;
|
|
2794
2833
|
};
|
|
2795
2834
|
function flatMapRequests_0(_this__u8e3s4, $this, f) {
|
|
2796
2835
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2797
2836
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2798
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
2837
|
+
var tmp0_flatMap = _this__u8e3s4.n1k_1;
|
|
2799
2838
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2800
2839
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
2801
2840
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -2804,7 +2843,7 @@
|
|
|
2804
2843
|
var element = tmp0_iterator.e();
|
|
2805
2844
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
2806
2845
|
// Inline function 'kotlin.collections.component1' call
|
|
2807
|
-
var path = element.v().
|
|
2846
|
+
var path = element.v().v1k_1;
|
|
2808
2847
|
// Inline function 'kotlin.collections.component2' call
|
|
2809
2848
|
var pathItem = element.w();
|
|
2810
2849
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2839,23 +2878,23 @@
|
|
|
2839
2878
|
return tmp0_flatMapTo_0;
|
|
2840
2879
|
}
|
|
2841
2880
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
2842
|
-
this.
|
|
2843
|
-
this.
|
|
2844
|
-
this.
|
|
2845
|
-
this.
|
|
2846
|
-
this.
|
|
2847
|
-
this.
|
|
2881
|
+
this.c1v_1 = path;
|
|
2882
|
+
this.d1v_1 = pathItem;
|
|
2883
|
+
this.e1v_1 = method;
|
|
2884
|
+
this.f1v_1 = operation;
|
|
2885
|
+
this.g1v_1 = statusCode;
|
|
2886
|
+
this.h1v_1 = response;
|
|
2848
2887
|
}
|
|
2849
2888
|
protoOf(FlattenResponse_0).toString = function () {
|
|
2850
|
-
return 'FlattenResponse(path=' + new Path_0(this.
|
|
2889
|
+
return 'FlattenResponse(path=' + new Path_0(this.c1v_1) + ', pathItem=' + this.d1v_1 + ', method=' + this.e1v_1 + ', operation=' + this.f1v_1 + ', statusCode=' + new StatusCode_0(this.g1v_1) + ', response=' + this.h1v_1 + ')';
|
|
2851
2890
|
};
|
|
2852
2891
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
2853
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
2854
|
-
result = imul(result, 31) + this.b1v_1.hashCode() | 0;
|
|
2855
|
-
result = imul(result, 31) + this.c1v_1.hashCode() | 0;
|
|
2892
|
+
var result = Path__hashCode_impl_go73kd_0(this.c1v_1);
|
|
2856
2893
|
result = imul(result, 31) + this.d1v_1.hashCode() | 0;
|
|
2857
|
-
result = imul(result, 31) +
|
|
2858
|
-
result = imul(result, 31) +
|
|
2894
|
+
result = imul(result, 31) + this.e1v_1.hashCode() | 0;
|
|
2895
|
+
result = imul(result, 31) + this.f1v_1.hashCode() | 0;
|
|
2896
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.g1v_1) | 0;
|
|
2897
|
+
result = imul(result, 31) + hashCode(this.h1v_1) | 0;
|
|
2859
2898
|
return result;
|
|
2860
2899
|
};
|
|
2861
2900
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -2864,24 +2903,24 @@
|
|
|
2864
2903
|
if (!(other instanceof FlattenResponse_0))
|
|
2865
2904
|
return false;
|
|
2866
2905
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
2867
|
-
if (!(this.
|
|
2906
|
+
if (!(this.c1v_1 === tmp0_other_with_cast.c1v_1))
|
|
2868
2907
|
return false;
|
|
2869
|
-
if (!this.
|
|
2908
|
+
if (!this.d1v_1.equals(tmp0_other_with_cast.d1v_1))
|
|
2870
2909
|
return false;
|
|
2871
|
-
if (!this.
|
|
2910
|
+
if (!this.e1v_1.equals(tmp0_other_with_cast.e1v_1))
|
|
2872
2911
|
return false;
|
|
2873
|
-
if (!this.
|
|
2912
|
+
if (!this.f1v_1.equals(tmp0_other_with_cast.f1v_1))
|
|
2874
2913
|
return false;
|
|
2875
|
-
if (!(this.
|
|
2914
|
+
if (!(this.g1v_1 === tmp0_other_with_cast.g1v_1))
|
|
2876
2915
|
return false;
|
|
2877
|
-
if (!equals(this.
|
|
2916
|
+
if (!equals(this.h1v_1, tmp0_other_with_cast.h1v_1))
|
|
2878
2917
|
return false;
|
|
2879
2918
|
return true;
|
|
2880
2919
|
};
|
|
2881
2920
|
function flatMapResponses_0(_this__u8e3s4, $this, f) {
|
|
2882
2921
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2883
2922
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2884
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
2923
|
+
var tmp0_flatMap = _this__u8e3s4.n1k_1;
|
|
2885
2924
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2886
2925
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
2887
2926
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -2890,7 +2929,7 @@
|
|
|
2890
2929
|
var element = tmp0_iterator.e();
|
|
2891
2930
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
2892
2931
|
// Inline function 'kotlin.collections.component1' call
|
|
2893
|
-
var path = element.v().
|
|
2932
|
+
var path = element.v().v1k_1;
|
|
2894
2933
|
// Inline function 'kotlin.collections.component2' call
|
|
2895
2934
|
var pathItem = element.w();
|
|
2896
2935
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -2907,7 +2946,7 @@
|
|
|
2907
2946
|
// Inline function 'kotlin.collections.component2' call
|
|
2908
2947
|
var operation = element_0.w();
|
|
2909
2948
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2910
|
-
var tmp0_safe_receiver = operation.
|
|
2949
|
+
var tmp0_safe_receiver = operation.v1l_1;
|
|
2911
2950
|
var tmp;
|
|
2912
2951
|
if (tmp0_safe_receiver == null) {
|
|
2913
2952
|
tmp = null;
|
|
@@ -2922,7 +2961,7 @@
|
|
|
2922
2961
|
var tmp$ret$9;
|
|
2923
2962
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
2924
2963
|
// Inline function 'kotlin.collections.component1' call
|
|
2925
|
-
var statusCode = item.v().
|
|
2964
|
+
var statusCode = item.v().y1o_1;
|
|
2926
2965
|
// Inline function 'kotlin.collections.component2' call
|
|
2927
2966
|
var response = item.w();
|
|
2928
2967
|
tmp$ret$9 = new FlattenResponse_0(path, pathItem, method, operation, statusCode, response);
|
|
@@ -2950,9 +2989,9 @@
|
|
|
2950
2989
|
}
|
|
2951
2990
|
function OpenApiParser$parseParameters$lambda(this$0) {
|
|
2952
2991
|
return function (req) {
|
|
2953
|
-
var parameters = plus(resolveParameters_2(req.
|
|
2954
|
-
var segments = toSegments_0(req.
|
|
2955
|
-
var name = toName_0(req.
|
|
2992
|
+
var parameters = plus(resolveParameters_2(req.z1u_1, this$0), resolveParameters_1(req.b1v_1, this$0));
|
|
2993
|
+
var segments = toSegments_0(req.y1u_1, this$0, parameters);
|
|
2994
|
+
var name = toName_0(req.b1v_1, this$0, segments, req.a1v_1);
|
|
2956
2995
|
var tmp$ret$2;
|
|
2957
2996
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2958
2997
|
var tmp$ret$1;
|
|
@@ -2963,8 +3002,8 @@
|
|
|
2963
3002
|
var element = tmp0_iterator.e();
|
|
2964
3003
|
var tmp$ret$0;
|
|
2965
3004
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
2966
|
-
var tmp0_safe_receiver = element.
|
|
2967
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().
|
|
3005
|
+
var tmp0_safe_receiver = element.k1m_1;
|
|
3006
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().h1u([name, 'Parameter', element.o1m_1]));
|
|
2968
3007
|
tmp$ret$0 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2969
3008
|
var list = tmp$ret$0;
|
|
2970
3009
|
addAll(tmp0_flatMapTo, list);
|
|
@@ -2976,16 +3015,16 @@
|
|
|
2976
3015
|
}
|
|
2977
3016
|
function OpenApiParser$parseRequestBody$lambda_0(this$0) {
|
|
2978
3017
|
return function (req) {
|
|
2979
|
-
var parameters = plus(resolveParameters_2(req.
|
|
2980
|
-
var segments = toSegments_0(req.
|
|
2981
|
-
var name = toName_0(req.
|
|
3018
|
+
var parameters = plus(resolveParameters_2(req.z1u_1, this$0), resolveParameters_1(req.b1v_1, this$0));
|
|
3019
|
+
var segments = toSegments_0(req.y1u_1, this$0, parameters);
|
|
3020
|
+
var name = toName_0(req.b1v_1, this$0, segments, req.a1v_1);
|
|
2982
3021
|
var tmp$ret$6;
|
|
2983
3022
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2984
3023
|
var tmp$ret$0;
|
|
2985
3024
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2986
|
-
var tmp0_safe_receiver = req.
|
|
3025
|
+
var tmp0_safe_receiver = req.b1v_1.u1l_1;
|
|
2987
3026
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, this$0);
|
|
2988
|
-
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
3027
|
+
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u1m_1;
|
|
2989
3028
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
2990
3029
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2991
3030
|
var tmp1_flatMap = tmp$ret$0;
|
|
@@ -3004,22 +3043,22 @@
|
|
|
3004
3043
|
// Inline function 'kotlin.collections.component2' call
|
|
3005
3044
|
tmp$ret$2 = element.w();
|
|
3006
3045
|
var mediaObject = tmp$ret$2;
|
|
3007
|
-
var schema = mediaObject.
|
|
3046
|
+
var schema = mediaObject.c1n_1;
|
|
3008
3047
|
var tmp;
|
|
3009
3048
|
if (schema instanceof SchemaObject_0) {
|
|
3010
|
-
var tmp0_subject = schema.
|
|
3049
|
+
var tmp0_subject = schema.u1n_1;
|
|
3011
3050
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.r4_1;
|
|
3012
3051
|
var tmp_0;
|
|
3013
3052
|
switch (tmp0) {
|
|
3014
3053
|
case -1:
|
|
3015
3054
|
case 5:
|
|
3016
|
-
tmp_0 = flatten_1(schema, this$0, Common_getInstance().
|
|
3055
|
+
tmp_0 = flatten_1(schema, this$0, Common_getInstance().h1u([name, 'RequestBody']));
|
|
3017
3056
|
break;
|
|
3018
3057
|
case 4:
|
|
3019
3058
|
var tmp$ret$3;
|
|
3020
3059
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3021
|
-
var tmp1_safe_receiver_0 = schema.
|
|
3022
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
3060
|
+
var tmp1_safe_receiver_0 = schema.z1n_1;
|
|
3061
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().h1u([name, 'RequestBody']));
|
|
3023
3062
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
3024
3063
|
tmp$ret$3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
3025
3064
|
|
|
@@ -3052,17 +3091,17 @@
|
|
|
3052
3091
|
}
|
|
3053
3092
|
function OpenApiParser$parseResponseBody$lambda_0(this$0) {
|
|
3054
3093
|
return function (res) {
|
|
3055
|
-
var parameters = plus(resolveParameters_2(res.
|
|
3056
|
-
var segments = toSegments_0(res.
|
|
3057
|
-
var name = toName_0(res.
|
|
3058
|
-
var response = res.
|
|
3094
|
+
var parameters = plus(resolveParameters_2(res.d1v_1, this$0), resolveParameters_1(res.f1v_1, this$0));
|
|
3095
|
+
var segments = toSegments_0(res.c1v_1, this$0, parameters);
|
|
3096
|
+
var name = toName_0(res.f1v_1, this$0, segments, res.e1v_1);
|
|
3097
|
+
var response = res.h1v_1;
|
|
3059
3098
|
var tmp;
|
|
3060
3099
|
if (response instanceof ResponseObject_0) {
|
|
3061
3100
|
var tmp$ret$6;
|
|
3062
3101
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3063
3102
|
var tmp$ret$0;
|
|
3064
3103
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3065
|
-
var tmp0_orEmpty = response.
|
|
3104
|
+
var tmp0_orEmpty = response.d1p_1;
|
|
3066
3105
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3067
3106
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3068
3107
|
var tmp1_flatMap = tmp$ret$0;
|
|
@@ -3081,22 +3120,22 @@
|
|
|
3081
3120
|
// Inline function 'kotlin.collections.component2' call
|
|
3082
3121
|
tmp$ret$2 = element.w();
|
|
3083
3122
|
var mediaObject = tmp$ret$2;
|
|
3084
|
-
var schema = mediaObject.
|
|
3123
|
+
var schema = mediaObject.c1n_1;
|
|
3085
3124
|
var tmp_0;
|
|
3086
3125
|
if (schema instanceof SchemaObject_0) {
|
|
3087
|
-
var tmp0_subject = schema.
|
|
3126
|
+
var tmp0_subject = schema.u1n_1;
|
|
3088
3127
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.r4_1;
|
|
3089
3128
|
var tmp_1;
|
|
3090
3129
|
switch (tmp0) {
|
|
3091
3130
|
case -1:
|
|
3092
3131
|
case 5:
|
|
3093
|
-
tmp_1 = flatten_1(schema, this$0, Common_getInstance().
|
|
3132
|
+
tmp_1 = flatten_1(schema, this$0, Common_getInstance().h1u([name, _StatusCode___get_value__impl__we50mu_0(res.g1v_1), 'ResponseBody']));
|
|
3094
3133
|
break;
|
|
3095
3134
|
case 4:
|
|
3096
3135
|
var tmp$ret$3;
|
|
3097
3136
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3098
|
-
var tmp1_safe_receiver = schema.
|
|
3099
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().
|
|
3137
|
+
var tmp1_safe_receiver = schema.z1n_1;
|
|
3138
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().h1u([name, _StatusCode___get_value__impl__we50mu_0(res.g1v_1), 'ResponseBody']));
|
|
3100
3139
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
3101
3140
|
tmp$ret$3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
3102
3141
|
|
|
@@ -3130,10 +3169,10 @@
|
|
|
3130
3169
|
function OpenApiParser$toName$lambda_0(it) {
|
|
3131
3170
|
var tmp;
|
|
3132
3171
|
if (it instanceof Literal) {
|
|
3133
|
-
tmp = Common_getInstance().
|
|
3172
|
+
tmp = Common_getInstance().h1u([it.dk_1]);
|
|
3134
3173
|
} else {
|
|
3135
3174
|
if (it instanceof Param) {
|
|
3136
|
-
tmp = Common_getInstance().
|
|
3175
|
+
tmp = Common_getInstance().h1u([it.ej_1.pj_1]);
|
|
3137
3176
|
} else {
|
|
3138
3177
|
noWhenBranchMatchedException();
|
|
3139
3178
|
}
|
|
@@ -3142,18 +3181,18 @@
|
|
|
3142
3181
|
}
|
|
3143
3182
|
function OpenApiParser_0(openApi) {
|
|
3144
3183
|
Companion_getInstance_1();
|
|
3145
|
-
this.
|
|
3184
|
+
this.x1u_1 = openApi;
|
|
3146
3185
|
}
|
|
3147
3186
|
function toMap_1(_this__u8e3s4) {
|
|
3148
3187
|
var tmp;
|
|
3149
3188
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3150
|
-
tmp = _this__u8e3s4.
|
|
3189
|
+
tmp = _this__u8e3s4.rm(VOID, VOID, true);
|
|
3151
3190
|
} else {
|
|
3152
3191
|
if (_this__u8e3s4 instanceof Any) {
|
|
3153
|
-
tmp = _this__u8e3s4.
|
|
3192
|
+
tmp = _this__u8e3s4.pm(VOID, true);
|
|
3154
3193
|
} else {
|
|
3155
3194
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3156
|
-
tmp = _this__u8e3s4.
|
|
3195
|
+
tmp = _this__u8e3s4.tm(VOID, VOID, true);
|
|
3157
3196
|
} else {
|
|
3158
3197
|
noWhenBranchMatchedException();
|
|
3159
3198
|
}
|
|
@@ -3194,13 +3233,13 @@
|
|
|
3194
3233
|
function toIterable_0(_this__u8e3s4) {
|
|
3195
3234
|
var tmp;
|
|
3196
3235
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3197
|
-
tmp = _this__u8e3s4.
|
|
3236
|
+
tmp = _this__u8e3s4.rm(VOID, true);
|
|
3198
3237
|
} else {
|
|
3199
3238
|
if (_this__u8e3s4 instanceof Any) {
|
|
3200
|
-
tmp = _this__u8e3s4.
|
|
3239
|
+
tmp = _this__u8e3s4.pm(true);
|
|
3201
3240
|
} else {
|
|
3202
3241
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3203
|
-
tmp = _this__u8e3s4.
|
|
3242
|
+
tmp = _this__u8e3s4.tm(VOID, true);
|
|
3204
3243
|
} else {
|
|
3205
3244
|
noWhenBranchMatchedException();
|
|
3206
3245
|
}
|