@flock/wirespec 0.7.2 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js +294 -294
- package/kotlin/kotlin-openapi-bindings.js +3290 -3290
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1239 -1239
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +981 -981
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/kotlin/wirespec-cli.js +80 -80
- package/kotlin/wirespec-core.js +510 -493
- package/kotlin/wirespec-core.js.map +1 -1
- package/kotlin/wirespec-lib.js +38 -38
- package/kotlin/wirespec-openapi.js +361 -357
- package/kotlin/wirespec-openapi.js.map +1 -1
- package/package.json +1 -1
- package/sync-hashes/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.hash +1 -1
- package/sync-hashes/kotlin-openapi-bindings.js.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map.hash +1 -1
- package/sync-hashes/wirespec-cli.js.hash +1 -1
- package/sync-hashes/wirespec-core.js.hash +1 -1
- package/sync-hashes/wirespec-core.js.map.hash +1 -1
- package/sync-hashes/wirespec-lib.js.hash +1 -1
- package/sync-hashes/wirespec-openapi.js.hash +1 -1
- package/sync-hashes/wirespec-openapi.js.map.hash +1 -1
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
function Common() {
|
|
131
131
|
Common_instance = this;
|
|
132
132
|
}
|
|
133
|
-
protoOf(Common).
|
|
133
|
+
protoOf(Common).i1t = function (arg) {
|
|
134
134
|
var tmp$ret$2;
|
|
135
135
|
// Inline function 'kotlin.collections.flatMap' call
|
|
136
136
|
var tmp$ret$1;
|
|
@@ -162,14 +162,14 @@
|
|
|
162
162
|
function Companion() {
|
|
163
163
|
Companion_instance = this;
|
|
164
164
|
}
|
|
165
|
-
protoOf(Companion).
|
|
165
|
+
protoOf(Companion).j1t = function (json) {
|
|
166
166
|
var tmp$ret$1;
|
|
167
167
|
// Inline function 'kotlin.let' call
|
|
168
|
-
var tmp0_let = Default_getInstance().
|
|
168
|
+
var tmp0_let = Default_getInstance().p1a(json);
|
|
169
169
|
// Inline function 'kotlin.contracts.contract' call
|
|
170
170
|
var tmp$ret$0;
|
|
171
171
|
// Inline function 'community.flock.wirespec.openapi.v2.Companion.parse.<anonymous>' call
|
|
172
|
-
tmp$ret$0 = (new OpenApiParser(tmp0_let)).
|
|
172
|
+
tmp$ret$0 = (new OpenApiParser(tmp0_let)).l1t();
|
|
173
173
|
tmp$ret$1 = tmp$ret$0;
|
|
174
174
|
return tmp$ret$1;
|
|
175
175
|
};
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
function parseEndpoints($this) {
|
|
183
183
|
var tmp$ret$48;
|
|
184
184
|
// Inline function 'kotlin.collections.flatMap' call
|
|
185
|
-
var tmp1_flatMap = $this.
|
|
185
|
+
var tmp1_flatMap = $this.k1t_1.z1a_1;
|
|
186
186
|
var tmp$ret$47;
|
|
187
187
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
188
188
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>' call
|
|
197
197
|
var tmp$ret$1;
|
|
198
198
|
// Inline function 'kotlin.collections.component1' call
|
|
199
|
-
tmp$ret$1 = element.v().
|
|
199
|
+
tmp$ret$1 = element.v().k1b_1;
|
|
200
200
|
var path = tmp$ret$1;
|
|
201
201
|
var tmp$ret$2;
|
|
202
202
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
var element_1 = tmp0_iterator_1.e();
|
|
240
240
|
var tmp$ret$6;
|
|
241
241
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
242
|
-
tmp$ret$6 = element_1.
|
|
242
|
+
tmp$ret$6 = element_1.u1c_1.equals(ParameterLocation_QUERY_getInstance());
|
|
243
243
|
if (tmp$ret$6) {
|
|
244
244
|
tmp0_filterTo.a(element_1);
|
|
245
245
|
}
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
var element_2 = tmp0_iterator_3.e();
|
|
274
274
|
var tmp$ret$12;
|
|
275
275
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
276
|
-
tmp$ret$12 = element_2.
|
|
276
|
+
tmp$ret$12 = element_2.u1c_1.equals(ParameterLocation_HEADER_getInstance());
|
|
277
277
|
if (tmp$ret$12) {
|
|
278
278
|
tmp3_filterTo.a(element_2);
|
|
279
279
|
}
|
|
@@ -309,7 +309,7 @@
|
|
|
309
309
|
var element_3 = tmp0_iterator_5.e();
|
|
310
310
|
var tmp$ret$18;
|
|
311
311
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
312
|
-
tmp$ret$18 = element_3.
|
|
312
|
+
tmp$ret$18 = element_3.u1c_1.equals(ParameterLocation_BODY_getInstance());
|
|
313
313
|
if (tmp$ret$18) {
|
|
314
314
|
tmp6_filterTo.a(element_3);
|
|
315
315
|
}
|
|
@@ -329,8 +329,8 @@
|
|
|
329
329
|
// Inline function 'kotlin.collections.map' call
|
|
330
330
|
var tmp$ret$21;
|
|
331
331
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
332
|
-
var tmp0_elvis_lhs = $this.
|
|
333
|
-
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.
|
|
332
|
+
var tmp0_elvis_lhs = $this.k1t_1.x1a_1;
|
|
333
|
+
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.i1c_1 : tmp0_elvis_lhs;
|
|
334
334
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
335
335
|
tmp$ret$21 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
336
336
|
var tmp2_map_0 = tmp$ret$21;
|
|
@@ -342,13 +342,13 @@
|
|
|
342
342
|
var item_1 = tmp0_iterator_7.e();
|
|
343
343
|
var tmp$ret$22;
|
|
344
344
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
345
|
-
var schema = element_4.
|
|
345
|
+
var schema = element_4.x1c_1;
|
|
346
346
|
var tmp;
|
|
347
347
|
if (schema instanceof ReferenceObject) {
|
|
348
348
|
tmp = toReference(schema, $this);
|
|
349
349
|
} else {
|
|
350
350
|
if (schema instanceof SchemaObject) {
|
|
351
|
-
tmp = toReference_0(schema, $this, Common_getInstance().
|
|
351
|
+
tmp = toReference_0(schema, $this, Common_getInstance().i1t([name, 'RequestBody']));
|
|
352
352
|
} else {
|
|
353
353
|
if (schema == null) {
|
|
354
354
|
throw new NotImplementedError();
|
|
@@ -358,7 +358,7 @@
|
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
var tmp_0 = tmp;
|
|
361
|
-
var tmp0_elvis_lhs_1 = element_4.
|
|
361
|
+
var tmp0_elvis_lhs_1 = element_4.w1c_1;
|
|
362
362
|
tmp$ret$22 = new Request(new Content(item_1, tmp_0, tmp0_elvis_lhs_1 == null ? false : tmp0_elvis_lhs_1));
|
|
363
363
|
tmp1_mapTo_0.a(tmp$ret$22);
|
|
364
364
|
}
|
|
@@ -386,7 +386,7 @@
|
|
|
386
386
|
// Inline function 'kotlin.collections.flatMap' call
|
|
387
387
|
var tmp$ret$30;
|
|
388
388
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
389
|
-
var tmp10_orEmpty = operation.
|
|
389
|
+
var tmp10_orEmpty = operation.l1c_1;
|
|
390
390
|
var tmp0_elvis_lhs_2 = tmp10_orEmpty;
|
|
391
391
|
tmp$ret$30 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
392
392
|
var tmp12_flatMap = tmp$ret$30;
|
|
@@ -403,7 +403,7 @@
|
|
|
403
403
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
404
404
|
var tmp$ret$32;
|
|
405
405
|
// Inline function 'kotlin.collections.component1' call
|
|
406
|
-
tmp$ret$32 = element_5.v().
|
|
406
|
+
tmp$ret$32 = element_5.v().d1f_1;
|
|
407
407
|
var status = tmp$ret$32;
|
|
408
408
|
var tmp$ret$33;
|
|
409
409
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -413,8 +413,8 @@
|
|
|
413
413
|
// Inline function 'kotlin.collections.map' call
|
|
414
414
|
var tmp$ret$34;
|
|
415
415
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
416
|
-
var tmp0_elvis_lhs_3 = $this.
|
|
417
|
-
var tmp0_orEmpty_0 = tmp0_elvis_lhs_3 == null ? operation.
|
|
416
|
+
var tmp0_elvis_lhs_3 = $this.k1t_1.y1a_1;
|
|
417
|
+
var tmp0_orEmpty_0 = tmp0_elvis_lhs_3 == null ? operation.j1c_1 : tmp0_elvis_lhs_3;
|
|
418
418
|
var tmp0_elvis_lhs_4 = tmp0_orEmpty_0;
|
|
419
419
|
tmp$ret$34 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
420
420
|
var tmp2_map_1 = tmp$ret$34;
|
|
@@ -427,7 +427,7 @@
|
|
|
427
427
|
var tmp$ret$37;
|
|
428
428
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
429
429
|
var tmp_2 = _StatusCode___get_value__impl__we50mu(status);
|
|
430
|
-
var tmp0_safe_receiver = resolve_1(res, $this).
|
|
430
|
+
var tmp0_safe_receiver = resolve_1(res, $this).h1f_1;
|
|
431
431
|
var tmp_3;
|
|
432
432
|
if (tmp0_safe_receiver == null) {
|
|
433
433
|
tmp_3 = null;
|
|
@@ -443,7 +443,7 @@
|
|
|
443
443
|
tmp_4 = toReference(tmp0_safe_receiver, $this);
|
|
444
444
|
} else {
|
|
445
445
|
if (tmp0_subject instanceof SchemaObject) {
|
|
446
|
-
tmp_4 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().
|
|
446
|
+
tmp_4 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().i1t([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']));
|
|
447
447
|
} else {
|
|
448
448
|
noWhenBranchMatchedException();
|
|
449
449
|
}
|
|
@@ -479,10 +479,10 @@
|
|
|
479
479
|
return tmp$ret$48;
|
|
480
480
|
}
|
|
481
481
|
function parseRequestBody($this) {
|
|
482
|
-
return flatMapRequests($this.
|
|
482
|
+
return flatMapRequests($this.k1t_1, $this, OpenApiParser$parseRequestBody$lambda($this));
|
|
483
483
|
}
|
|
484
484
|
function parseResponseBody($this) {
|
|
485
|
-
return flatMapResponses($this.
|
|
485
|
+
return flatMapResponses($this.k1t_1, $this, OpenApiParser$parseResponseBody$lambda($this));
|
|
486
486
|
}
|
|
487
487
|
function parseDefinitions($this) {
|
|
488
488
|
var tmp$ret$8;
|
|
@@ -491,7 +491,7 @@
|
|
|
491
491
|
// Inline function 'kotlin.collections.filter' call
|
|
492
492
|
var tmp$ret$0;
|
|
493
493
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
494
|
-
var tmp0_orEmpty = $this.
|
|
494
|
+
var tmp0_orEmpty = $this.k1t_1.a1b_1;
|
|
495
495
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
496
496
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
497
497
|
var tmp2_filter = tmp$ret$0;
|
|
@@ -506,7 +506,7 @@
|
|
|
506
506
|
var element = tmp0_iterator.e();
|
|
507
507
|
var tmp$ret$2;
|
|
508
508
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
509
|
-
tmp$ret$2 = element.w().
|
|
509
|
+
tmp$ret$2 = element.w().z1e_1 == null;
|
|
510
510
|
if (tmp$ret$2) {
|
|
511
511
|
tmp1_filterTo.k3(element.v(), element.w());
|
|
512
512
|
}
|
|
@@ -525,7 +525,7 @@
|
|
|
525
525
|
var element_0 = tmp0_iterator_0.e();
|
|
526
526
|
var tmp$ret$6;
|
|
527
527
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
528
|
-
tmp$ret$6 = flatten(element_0.w(), $this, Common_getInstance().
|
|
528
|
+
tmp$ret$6 = flatten(element_0.w(), $this, Common_getInstance().i1t([element_0.v()]));
|
|
529
529
|
var list = tmp$ret$6;
|
|
530
530
|
addAll(tmp3_flatMapTo, list);
|
|
531
531
|
}
|
|
@@ -538,7 +538,7 @@
|
|
|
538
538
|
// Inline function 'kotlin.collections.map' call
|
|
539
539
|
var tmp$ret$0;
|
|
540
540
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
541
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
541
|
+
var tmp0_orEmpty = _this__u8e3s4.k1c_1;
|
|
542
542
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
543
543
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
544
544
|
var tmp2_map = tmp$ret$0;
|
|
@@ -573,7 +573,7 @@
|
|
|
573
573
|
// Inline function 'kotlin.collections.map' call
|
|
574
574
|
var tmp$ret$0;
|
|
575
575
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
576
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
576
|
+
var tmp0_orEmpty = _this__u8e3s4.z1b_1;
|
|
577
577
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
578
578
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
579
579
|
var tmp2_map = tmp$ret$0;
|
|
@@ -604,11 +604,11 @@
|
|
|
604
604
|
return tmp$ret$3;
|
|
605
605
|
}
|
|
606
606
|
function resolveParameterObject(_this__u8e3s4, $this) {
|
|
607
|
-
var tmp0_safe_receiver = $this.
|
|
607
|
+
var tmp0_safe_receiver = $this.k1t_1.b1b_1;
|
|
608
608
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
|
|
609
609
|
var tmp;
|
|
610
610
|
if (tmp1_elvis_lhs == null) {
|
|
611
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
611
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.t1d_1);
|
|
612
612
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
613
613
|
} else {
|
|
614
614
|
tmp = tmp1_elvis_lhs;
|
|
@@ -616,11 +616,11 @@
|
|
|
616
616
|
return tmp;
|
|
617
617
|
}
|
|
618
618
|
function resolveResponseObject(_this__u8e3s4, $this) {
|
|
619
|
-
var tmp0_safe_receiver = $this.
|
|
619
|
+
var tmp0_safe_receiver = $this.k1t_1.c1b_1;
|
|
620
620
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
|
|
621
621
|
var tmp;
|
|
622
622
|
if (tmp1_elvis_lhs == null) {
|
|
623
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
623
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.t1d_1);
|
|
624
624
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
625
625
|
} else {
|
|
626
626
|
tmp = tmp1_elvis_lhs;
|
|
@@ -628,7 +628,7 @@
|
|
|
628
628
|
return tmp;
|
|
629
629
|
}
|
|
630
630
|
function resolveSchemaObject(_this__u8e3s4, $this) {
|
|
631
|
-
var tmp0_safe_receiver = $this.
|
|
631
|
+
var tmp0_safe_receiver = $this.k1t_1.a1b_1;
|
|
632
632
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
|
|
633
633
|
var tmp;
|
|
634
634
|
if (tmp1_safe_receiver == null) {
|
|
@@ -646,7 +646,7 @@
|
|
|
646
646
|
var tmp2_elvis_lhs = tmp;
|
|
647
647
|
var tmp_0;
|
|
648
648
|
if (tmp2_elvis_lhs == null) {
|
|
649
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
649
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.t1d_1);
|
|
650
650
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
651
651
|
} else {
|
|
652
652
|
tmp_0 = tmp2_elvis_lhs;
|
|
@@ -715,21 +715,21 @@
|
|
|
715
715
|
}
|
|
716
716
|
function flatten(_this__u8e3s4, $this, name) {
|
|
717
717
|
var tmp;
|
|
718
|
-
if (!(_this__u8e3s4.
|
|
719
|
-
var tmp0_subject = _this__u8e3s4.
|
|
718
|
+
if (!(_this__u8e3s4.z1e_1 == null)) {
|
|
719
|
+
var tmp0_subject = _this__u8e3s4.z1e_1;
|
|
720
720
|
var tmp_0;
|
|
721
721
|
if (tmp0_subject instanceof BooleanObject) {
|
|
722
722
|
tmp_0 = emptyList();
|
|
723
723
|
} else {
|
|
724
|
-
tmp_0 = flatten(resolve_0(ensureNotNull(_this__u8e3s4.
|
|
724
|
+
tmp_0 = flatten(resolve_0(ensureNotNull(_this__u8e3s4.z1e_1), $this), $this, name);
|
|
725
725
|
}
|
|
726
726
|
tmp = tmp_0;
|
|
727
|
-
} else if (!(_this__u8e3s4.
|
|
727
|
+
} else if (!(_this__u8e3s4.x1e_1 == null)) {
|
|
728
728
|
var tmp$ret$3;
|
|
729
729
|
// Inline function 'kotlin.collections.flatMap' call
|
|
730
730
|
var tmp$ret$0;
|
|
731
731
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
732
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
732
|
+
var tmp0_orEmpty = _this__u8e3s4.x1e_1;
|
|
733
733
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
734
734
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
735
735
|
var tmp2_flatMap = tmp$ret$0;
|
|
@@ -750,7 +750,7 @@
|
|
|
750
750
|
var tmp_1 = listOf(new Type(name, new Shape(tmp$ret$3)));
|
|
751
751
|
var tmp$ret$13;
|
|
752
752
|
// Inline function 'kotlin.collections.flatMap' call
|
|
753
|
-
var tmp4_flatMap = ensureNotNull(_this__u8e3s4.
|
|
753
|
+
var tmp4_flatMap = ensureNotNull(_this__u8e3s4.x1e_1);
|
|
754
754
|
var tmp$ret$12;
|
|
755
755
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
756
756
|
var tmp3_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -769,7 +769,7 @@
|
|
|
769
769
|
// Inline function 'kotlin.collections.flatMap' call
|
|
770
770
|
var tmp$ret$4;
|
|
771
771
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
772
|
-
var tmp0_orEmpty_0 = element_0.
|
|
772
|
+
var tmp0_orEmpty_0 = element_0.y1e_1;
|
|
773
773
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
774
774
|
tmp$ret$4 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
775
775
|
var tmp2_flatMap_0 = tmp$ret$4;
|
|
@@ -798,7 +798,7 @@
|
|
|
798
798
|
tmp_3 = emptyList();
|
|
799
799
|
} else {
|
|
800
800
|
if (tmp0_subject_1 instanceof SchemaObject) {
|
|
801
|
-
tmp_3 = flatten(value, $this, Common_getInstance().
|
|
801
|
+
tmp_3 = flatten(value, $this, Common_getInstance().i1t([name, key]));
|
|
802
802
|
} else {
|
|
803
803
|
noWhenBranchMatchedException();
|
|
804
804
|
}
|
|
@@ -821,12 +821,12 @@
|
|
|
821
821
|
tmp$ret$12 = tmp3_flatMapTo;
|
|
822
822
|
tmp$ret$13 = tmp$ret$12;
|
|
823
823
|
tmp = plus(tmp_1, tmp$ret$13);
|
|
824
|
-
} else if (!(_this__u8e3s4.
|
|
824
|
+
} else if (!(_this__u8e3s4.u1e_1 == null)) {
|
|
825
825
|
var tmp$ret$18;
|
|
826
826
|
// Inline function 'kotlin.let' call
|
|
827
827
|
var tmp$ret$16;
|
|
828
828
|
// Inline function 'kotlin.collections.map' call
|
|
829
|
-
var tmp6_map = ensureNotNull(_this__u8e3s4.
|
|
829
|
+
var tmp6_map = ensureNotNull(_this__u8e3s4.u1e_1);
|
|
830
830
|
var tmp$ret$15;
|
|
831
831
|
// Inline function 'kotlin.collections.mapTo' call
|
|
832
832
|
var tmp5_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp6_map, 10));
|
|
@@ -835,7 +835,7 @@
|
|
|
835
835
|
var item = tmp0_iterator_2.e();
|
|
836
836
|
var tmp$ret$14;
|
|
837
837
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
838
|
-
tmp$ret$14 = item.
|
|
838
|
+
tmp$ret$14 = item.t13();
|
|
839
839
|
tmp5_mapTo.a(tmp$ret$14);
|
|
840
840
|
}
|
|
841
841
|
tmp$ret$15 = tmp5_mapTo;
|
|
@@ -848,13 +848,13 @@
|
|
|
848
848
|
tmp$ret$18 = tmp$ret$17;
|
|
849
849
|
tmp = tmp$ret$18;
|
|
850
850
|
} else {
|
|
851
|
-
var tmp1_subject = _this__u8e3s4.
|
|
851
|
+
var tmp1_subject = _this__u8e3s4.v1e_1;
|
|
852
852
|
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.q4_1;
|
|
853
853
|
var tmp_4;
|
|
854
854
|
switch (tmp0) {
|
|
855
855
|
case -1:
|
|
856
856
|
case 5:
|
|
857
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
857
|
+
var tmp2_safe_receiver = _this__u8e3s4.y1e_1;
|
|
858
858
|
var tmp_5;
|
|
859
859
|
if (tmp2_safe_receiver == null) {
|
|
860
860
|
tmp_5 = null;
|
|
@@ -883,9 +883,9 @@
|
|
|
883
883
|
var tmp0_subject_2 = value_0;
|
|
884
884
|
var tmp_6;
|
|
885
885
|
if (tmp0_subject_2 instanceof SchemaObject) {
|
|
886
|
-
var tmp1_subject_0 = value_0.
|
|
886
|
+
var tmp1_subject_0 = value_0.v1e_1;
|
|
887
887
|
var tmp0_0 = tmp1_subject_0 == null ? -1 : tmp1_subject_0.q4_1;
|
|
888
|
-
tmp_6 = tmp0_0 === 4 ? emptyList() : flatten(value_0, $this, Common_getInstance().
|
|
888
|
+
tmp_6 = tmp0_0 === 4 ? emptyList() : flatten(value_0, $this, Common_getInstance().i1t([name, key_0]));
|
|
889
889
|
} else {
|
|
890
890
|
if (tmp0_subject_2 instanceof ReferenceObject) {
|
|
891
891
|
tmp_6 = emptyList();
|
|
@@ -908,13 +908,13 @@
|
|
|
908
908
|
tmp_4 = plus(schema, fields);
|
|
909
909
|
break;
|
|
910
910
|
case 4:
|
|
911
|
-
var it = _this__u8e3s4.
|
|
911
|
+
var it = _this__u8e3s4.w1e_1;
|
|
912
912
|
var tmp_7;
|
|
913
913
|
if (it instanceof ReferenceObject) {
|
|
914
914
|
tmp_7 = emptyList();
|
|
915
915
|
} else {
|
|
916
916
|
if (it instanceof SchemaObject) {
|
|
917
|
-
tmp_7 = flatten(it, $this, Common_getInstance().
|
|
917
|
+
tmp_7 = flatten(it, $this, Common_getInstance().i1t([name, 'Array']));
|
|
918
918
|
} else {
|
|
919
919
|
if (it == null) {
|
|
920
920
|
tmp_7 = emptyList();
|
|
@@ -958,8 +958,8 @@
|
|
|
958
958
|
var referencingObject = tmp0_let.i3();
|
|
959
959
|
var schema = tmp0_let.j3();
|
|
960
960
|
var tmp;
|
|
961
|
-
if (!(schema.
|
|
962
|
-
var additionalProperties = ensureNotNull(schema.
|
|
961
|
+
if (!(schema.z1e_1 == null)) {
|
|
962
|
+
var additionalProperties = ensureNotNull(schema.z1e_1);
|
|
963
963
|
var tmp_0;
|
|
964
964
|
if (additionalProperties instanceof BooleanObject) {
|
|
965
965
|
tmp_0 = new Any(false, true);
|
|
@@ -975,25 +975,25 @@
|
|
|
975
975
|
}
|
|
976
976
|
}
|
|
977
977
|
tmp = tmp_0;
|
|
978
|
-
} else if (!(schema.
|
|
979
|
-
tmp = new Custom(Common_getInstance().
|
|
980
|
-
} else if (isPrimitive(schema.
|
|
981
|
-
tmp = new Primitive(toPrimitive(ensureNotNull(schema.
|
|
978
|
+
} else if (!(schema.u1e_1 == null)) {
|
|
979
|
+
tmp = new Custom(Common_getInstance().i1t([getReference(referencingObject, $this)]), false, false);
|
|
980
|
+
} else if (isPrimitive(schema.v1e_1)) {
|
|
981
|
+
tmp = new Primitive(toPrimitive(ensureNotNull(schema.v1e_1), $this), false, false);
|
|
982
982
|
} else {
|
|
983
|
-
var tmp0_subject = schema.
|
|
983
|
+
var tmp0_subject = schema.v1e_1;
|
|
984
984
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
985
985
|
var tmp_1;
|
|
986
986
|
if (tmp0 === 4) {
|
|
987
|
-
var items = schema.
|
|
987
|
+
var items = schema.w1e_1;
|
|
988
988
|
var tmp_2;
|
|
989
989
|
if (items instanceof ReferenceObject) {
|
|
990
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
990
|
+
tmp_2 = new Custom(Common_getInstance().i1t([getReference(items, $this)]), true);
|
|
991
991
|
} else {
|
|
992
992
|
if (items instanceof SchemaObject) {
|
|
993
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
993
|
+
tmp_2 = new Custom(Common_getInstance().i1t([getReference(referencingObject, $this), 'Array']), true);
|
|
994
994
|
} else {
|
|
995
995
|
if (items == null) {
|
|
996
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.
|
|
996
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.t1d_1);
|
|
997
997
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
998
998
|
} else {
|
|
999
999
|
noWhenBranchMatchedException();
|
|
@@ -1002,7 +1002,7 @@
|
|
|
1002
1002
|
}
|
|
1003
1003
|
tmp_1 = tmp_2;
|
|
1004
1004
|
} else {
|
|
1005
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
1005
|
+
tmp_1 = new Custom(Common_getInstance().i1t([getReference(referencingObject, $this)]), false);
|
|
1006
1006
|
}
|
|
1007
1007
|
tmp = tmp_1;
|
|
1008
1008
|
}
|
|
@@ -1012,10 +1012,10 @@
|
|
|
1012
1012
|
}
|
|
1013
1013
|
function toReference_0(_this__u8e3s4, $this, name) {
|
|
1014
1014
|
var tmp;
|
|
1015
|
-
if (!(_this__u8e3s4.
|
|
1016
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
1015
|
+
if (!(_this__u8e3s4.u1e_1 == null)) {
|
|
1016
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.z1e_1 == null));
|
|
1017
1017
|
} else {
|
|
1018
|
-
var type = _this__u8e3s4.
|
|
1018
|
+
var type = _this__u8e3s4.v1e_1;
|
|
1019
1019
|
var tmp0 = type == null ? -1 : type.q4_1;
|
|
1020
1020
|
var tmp_0;
|
|
1021
1021
|
switch (tmp0) {
|
|
@@ -1023,22 +1023,22 @@
|
|
|
1023
1023
|
case 2:
|
|
1024
1024
|
case 1:
|
|
1025
1025
|
case 3:
|
|
1026
|
-
tmp_0 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.
|
|
1026
|
+
tmp_0 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.z1e_1 == null));
|
|
1027
1027
|
break;
|
|
1028
1028
|
case -1:
|
|
1029
1029
|
case 5:
|
|
1030
1030
|
var tmp_1;
|
|
1031
|
-
var tmp_2 = _this__u8e3s4.
|
|
1031
|
+
var tmp_2 = _this__u8e3s4.z1e_1;
|
|
1032
1032
|
if (tmp_2 instanceof BooleanObject) {
|
|
1033
|
-
tmp_1 = new Any(false, !(_this__u8e3s4.
|
|
1033
|
+
tmp_1 = new Any(false, !(_this__u8e3s4.z1e_1 == null));
|
|
1034
1034
|
} else {
|
|
1035
|
-
tmp_1 = new Custom(name, false, !(_this__u8e3s4.
|
|
1035
|
+
tmp_1 = new Custom(name, false, !(_this__u8e3s4.z1e_1 == null));
|
|
1036
1036
|
}
|
|
1037
1037
|
|
|
1038
1038
|
tmp_0 = tmp_1;
|
|
1039
1039
|
break;
|
|
1040
1040
|
case 4:
|
|
1041
|
-
var it = _this__u8e3s4.
|
|
1041
|
+
var it = _this__u8e3s4.w1e_1;
|
|
1042
1042
|
var tmp_3;
|
|
1043
1043
|
if (it instanceof ReferenceObject) {
|
|
1044
1044
|
tmp_3 = toIterable(toReference(it, $this));
|
|
@@ -1087,28 +1087,28 @@
|
|
|
1087
1087
|
var tmp;
|
|
1088
1088
|
switch (tmp0) {
|
|
1089
1089
|
case 0:
|
|
1090
|
-
tmp = _this__u8e3s4.
|
|
1090
|
+
tmp = _this__u8e3s4.q1b_1;
|
|
1091
1091
|
break;
|
|
1092
1092
|
case 1:
|
|
1093
|
-
tmp = _this__u8e3s4.
|
|
1093
|
+
tmp = _this__u8e3s4.s1b_1;
|
|
1094
1094
|
break;
|
|
1095
1095
|
case 2:
|
|
1096
|
-
tmp = _this__u8e3s4.
|
|
1096
|
+
tmp = _this__u8e3s4.r1b_1;
|
|
1097
1097
|
break;
|
|
1098
1098
|
case 3:
|
|
1099
|
-
tmp = _this__u8e3s4.
|
|
1099
|
+
tmp = _this__u8e3s4.t1b_1;
|
|
1100
1100
|
break;
|
|
1101
1101
|
case 4:
|
|
1102
|
-
tmp = _this__u8e3s4.
|
|
1102
|
+
tmp = _this__u8e3s4.u1b_1;
|
|
1103
1103
|
break;
|
|
1104
1104
|
case 5:
|
|
1105
|
-
tmp = _this__u8e3s4.
|
|
1105
|
+
tmp = _this__u8e3s4.v1b_1;
|
|
1106
1106
|
break;
|
|
1107
1107
|
case 6:
|
|
1108
|
-
tmp = _this__u8e3s4.
|
|
1108
|
+
tmp = _this__u8e3s4.w1b_1;
|
|
1109
1109
|
break;
|
|
1110
1110
|
case 7:
|
|
1111
|
-
tmp = _this__u8e3s4.
|
|
1111
|
+
tmp = _this__u8e3s4.x1b_1;
|
|
1112
1112
|
break;
|
|
1113
1113
|
default:
|
|
1114
1114
|
noWhenBranchMatchedException();
|
|
@@ -1122,7 +1122,7 @@
|
|
|
1122
1122
|
return filterNotNullValues(tmp$ret$2);
|
|
1123
1123
|
}
|
|
1124
1124
|
function getReference(_this__u8e3s4, $this) {
|
|
1125
|
-
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
1125
|
+
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.t1d_1), ['/']).h(2);
|
|
1126
1126
|
}
|
|
1127
1127
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
1128
1128
|
var tmp0_subject = _this__u8e3s4;
|
|
@@ -1151,7 +1151,7 @@
|
|
|
1151
1151
|
// Inline function 'kotlin.collections.map' call
|
|
1152
1152
|
var tmp$ret$0;
|
|
1153
1153
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1154
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
1154
|
+
var tmp0_orEmpty = _this__u8e3s4.y1e_1;
|
|
1155
1155
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1156
1156
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1157
1157
|
var tmp2_map = tmp$ret$0;
|
|
@@ -1178,17 +1178,19 @@
|
|
|
1178
1178
|
var tmp;
|
|
1179
1179
|
if (tmp0_subject instanceof SchemaObject) {
|
|
1180
1180
|
var tmp_0 = new Identifier(key);
|
|
1181
|
-
var
|
|
1182
|
-
var
|
|
1183
|
-
var
|
|
1184
|
-
|
|
1181
|
+
var tmp1_subject = value.v1e_1;
|
|
1182
|
+
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.q4_1;
|
|
1183
|
+
var tmp_1 = tmp0 === 4 ? toReference_0(value, $this, Common_getInstance().i1t([name, key, 'Array'])) : toReference_0(value, $this, Common_getInstance().i1t([name, key]));
|
|
1184
|
+
var tmp2_safe_receiver = _this__u8e3s4.t1e_1;
|
|
1185
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.i1(key);
|
|
1186
|
+
tmp = new Field(tmp_0, tmp_1, !(tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs));
|
|
1185
1187
|
} else {
|
|
1186
1188
|
if (tmp0_subject instanceof ReferenceObject) {
|
|
1187
1189
|
var tmp_2 = new Identifier(key);
|
|
1188
1190
|
var tmp_3 = toReference(value, $this);
|
|
1189
|
-
var
|
|
1190
|
-
var
|
|
1191
|
-
tmp = new Field(tmp_2, tmp_3, !(
|
|
1191
|
+
var tmp4_safe_receiver = _this__u8e3s4.t1e_1;
|
|
1192
|
+
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.i1(key);
|
|
1193
|
+
tmp = new Field(tmp_2, tmp_3, !(tmp5_elvis_lhs == null ? false : tmp5_elvis_lhs));
|
|
1192
1194
|
} else {
|
|
1193
1195
|
noWhenBranchMatchedException();
|
|
1194
1196
|
}
|
|
@@ -1210,10 +1212,10 @@
|
|
|
1210
1212
|
var tmp$ret$4;
|
|
1211
1213
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1212
1214
|
var tmp;
|
|
1213
|
-
if (!(_this__u8e3s4.
|
|
1214
|
-
tmp = new Custom(name
|
|
1215
|
+
if (!(_this__u8e3s4.o1d_1 == null)) {
|
|
1216
|
+
tmp = new Custom(Common_getInstance().i1t([name, 'Parameter', tmp0_let.t1c_1]), false);
|
|
1215
1217
|
} else {
|
|
1216
|
-
var type = tmp0_let.
|
|
1218
|
+
var type = tmp0_let.y1c_1;
|
|
1217
1219
|
var tmp0 = type == null ? -1 : type.q4_1;
|
|
1218
1220
|
var tmp_0;
|
|
1219
1221
|
switch (tmp0) {
|
|
@@ -1233,9 +1235,9 @@
|
|
|
1233
1235
|
tmp_0 = tmp$ret$1;
|
|
1234
1236
|
break;
|
|
1235
1237
|
case 4:
|
|
1236
|
-
var tmp0_safe_receiver = tmp0_let.
|
|
1238
|
+
var tmp0_safe_receiver = tmp0_let.z1c_1;
|
|
1237
1239
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve(tmp0_safe_receiver, $this);
|
|
1238
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1240
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.v1e_1;
|
|
1239
1241
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toPrimitive(tmp2_safe_receiver, $this);
|
|
1240
1242
|
var tmp_1;
|
|
1241
1243
|
if (tmp3_safe_receiver == null) {
|
|
@@ -1279,8 +1281,8 @@
|
|
|
1279
1281
|
// Inline function 'kotlin.contracts.contract' call
|
|
1280
1282
|
var tmp$ret$6;
|
|
1281
1283
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1282
|
-
var tmp_3 = new Identifier(_this__u8e3s4.
|
|
1283
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1284
|
+
var tmp_3 = new Identifier(_this__u8e3s4.t1c_1);
|
|
1285
|
+
var tmp0_elvis_lhs = _this__u8e3s4.w1c_1;
|
|
1284
1286
|
tmp$ret$6 = new Field(tmp_3, tmp1_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
1285
1287
|
tmp$ret$7 = tmp$ret$6;
|
|
1286
1288
|
return tmp$ret$7;
|
|
@@ -1333,7 +1335,7 @@
|
|
|
1333
1335
|
var element = tmp0_iterator_0.e();
|
|
1334
1336
|
var tmp$ret$3;
|
|
1335
1337
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1336
|
-
tmp$ret$3 = element.
|
|
1338
|
+
tmp$ret$3 = element.t1c_1 === param;
|
|
1337
1339
|
if (tmp$ret$3) {
|
|
1338
1340
|
tmp$ret$4 = element;
|
|
1339
1341
|
break $l$block;
|
|
@@ -1352,7 +1354,7 @@
|
|
|
1352
1354
|
// Inline function 'kotlin.contracts.contract' call
|
|
1353
1355
|
var tmp$ret$6;
|
|
1354
1356
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1355
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver.
|
|
1357
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver.y1c_1;
|
|
1356
1358
|
tmp$ret$6 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, $this);
|
|
1357
1359
|
tmp$ret$7 = tmp$ret$6;
|
|
1358
1360
|
tmp_2 = tmp$ret$7;
|
|
@@ -1392,7 +1394,7 @@
|
|
|
1392
1394
|
}
|
|
1393
1395
|
function toName(_this__u8e3s4, $this, segments, method) {
|
|
1394
1396
|
var tmp0_safe_receiver = _this__u8e3s4;
|
|
1395
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1397
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h1c_1;
|
|
1396
1398
|
var tmp;
|
|
1397
1399
|
if (tmp1_safe_receiver == null) {
|
|
1398
1400
|
tmp = null;
|
|
@@ -1402,7 +1404,7 @@
|
|
|
1402
1404
|
// Inline function 'kotlin.contracts.contract' call
|
|
1403
1405
|
var tmp$ret$0;
|
|
1404
1406
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
1405
|
-
tmp$ret$0 = Common_getInstance().
|
|
1407
|
+
tmp$ret$0 = Common_getInstance().i1t([tmp1_safe_receiver]);
|
|
1406
1408
|
tmp$ret$1 = tmp$ret$0;
|
|
1407
1409
|
tmp = tmp$ret$1;
|
|
1408
1410
|
}
|
|
@@ -1424,21 +1426,21 @@
|
|
|
1424
1426
|
return tmp_0;
|
|
1425
1427
|
}
|
|
1426
1428
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
1427
|
-
this.
|
|
1428
|
-
this.
|
|
1429
|
-
this.
|
|
1430
|
-
this.
|
|
1431
|
-
this.
|
|
1429
|
+
this.m1t_1 = path;
|
|
1430
|
+
this.n1t_1 = pathItem;
|
|
1431
|
+
this.o1t_1 = method;
|
|
1432
|
+
this.p1t_1 = operation;
|
|
1433
|
+
this.q1t_1 = type;
|
|
1432
1434
|
}
|
|
1433
1435
|
protoOf(FlattenRequest).toString = function () {
|
|
1434
|
-
return 'FlattenRequest(path=' + new Path(this.
|
|
1436
|
+
return 'FlattenRequest(path=' + new Path(this.m1t_1) + ', pathItem=' + this.n1t_1 + ', method=' + this.o1t_1 + ', operation=' + this.p1t_1 + ', type=' + this.q1t_1 + ')';
|
|
1435
1437
|
};
|
|
1436
1438
|
protoOf(FlattenRequest).hashCode = function () {
|
|
1437
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1438
|
-
result = imul(result, 31) + this.l1t_1.hashCode() | 0;
|
|
1439
|
-
result = imul(result, 31) + this.m1t_1.hashCode() | 0;
|
|
1439
|
+
var result = Path__hashCode_impl_go73kd(this.m1t_1);
|
|
1440
1440
|
result = imul(result, 31) + this.n1t_1.hashCode() | 0;
|
|
1441
|
-
result = imul(result, 31) +
|
|
1441
|
+
result = imul(result, 31) + this.o1t_1.hashCode() | 0;
|
|
1442
|
+
result = imul(result, 31) + this.p1t_1.hashCode() | 0;
|
|
1443
|
+
result = imul(result, 31) + getStringHashCode(this.q1t_1) | 0;
|
|
1442
1444
|
return result;
|
|
1443
1445
|
};
|
|
1444
1446
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -1447,15 +1449,15 @@
|
|
|
1447
1449
|
if (!(other instanceof FlattenRequest))
|
|
1448
1450
|
return false;
|
|
1449
1451
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
1450
|
-
if (!(this.
|
|
1452
|
+
if (!(this.m1t_1 === tmp0_other_with_cast.m1t_1))
|
|
1451
1453
|
return false;
|
|
1452
|
-
if (!this.
|
|
1454
|
+
if (!this.n1t_1.equals(tmp0_other_with_cast.n1t_1))
|
|
1453
1455
|
return false;
|
|
1454
|
-
if (!this.
|
|
1456
|
+
if (!this.o1t_1.equals(tmp0_other_with_cast.o1t_1))
|
|
1455
1457
|
return false;
|
|
1456
|
-
if (!this.
|
|
1458
|
+
if (!this.p1t_1.equals(tmp0_other_with_cast.p1t_1))
|
|
1457
1459
|
return false;
|
|
1458
|
-
if (!(this.
|
|
1460
|
+
if (!(this.q1t_1 === tmp0_other_with_cast.q1t_1))
|
|
1459
1461
|
return false;
|
|
1460
1462
|
return true;
|
|
1461
1463
|
};
|
|
@@ -1464,7 +1466,7 @@
|
|
|
1464
1466
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1465
1467
|
var tmp$ret$15;
|
|
1466
1468
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1467
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
1469
|
+
var tmp1_flatMap = _this__u8e3s4.z1a_1;
|
|
1468
1470
|
var tmp$ret$14;
|
|
1469
1471
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1470
1472
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -1478,7 +1480,7 @@
|
|
|
1478
1480
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
1479
1481
|
var tmp$ret$1;
|
|
1480
1482
|
// Inline function 'kotlin.collections.component1' call
|
|
1481
|
-
tmp$ret$1 = element.v().
|
|
1483
|
+
tmp$ret$1 = element.v().k1b_1;
|
|
1482
1484
|
var path = tmp$ret$1;
|
|
1483
1485
|
var tmp$ret$2;
|
|
1484
1486
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1510,8 +1512,8 @@
|
|
|
1510
1512
|
// Inline function 'kotlin.collections.map' call
|
|
1511
1513
|
var tmp$ret$6;
|
|
1512
1514
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1513
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1514
|
-
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.
|
|
1515
|
+
var tmp0_elvis_lhs = _this__u8e3s4.x1a_1;
|
|
1516
|
+
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.i1c_1 : tmp0_elvis_lhs;
|
|
1515
1517
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
1516
1518
|
tmp$ret$6 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1517
1519
|
var tmp2_map = tmp$ret$6;
|
|
@@ -1558,25 +1560,25 @@
|
|
|
1558
1560
|
return tmp$ret$18;
|
|
1559
1561
|
}
|
|
1560
1562
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
1561
|
-
this.
|
|
1562
|
-
this.
|
|
1563
|
-
this.
|
|
1564
|
-
this.
|
|
1565
|
-
this.
|
|
1566
|
-
this.
|
|
1567
|
-
this.
|
|
1563
|
+
this.r1t_1 = path;
|
|
1564
|
+
this.s1t_1 = pathItem;
|
|
1565
|
+
this.t1t_1 = method;
|
|
1566
|
+
this.u1t_1 = operation;
|
|
1567
|
+
this.v1t_1 = statusCode;
|
|
1568
|
+
this.w1t_1 = response;
|
|
1569
|
+
this.x1t_1 = type;
|
|
1568
1570
|
}
|
|
1569
1571
|
protoOf(FlattenResponse).toString = function () {
|
|
1570
|
-
return 'FlattenResponse(path=' + new Path(this.
|
|
1572
|
+
return 'FlattenResponse(path=' + new Path(this.r1t_1) + ', pathItem=' + this.s1t_1 + ', method=' + this.t1t_1 + ', operation=' + this.u1t_1 + ', statusCode=' + new StatusCode(this.v1t_1) + ', response=' + this.w1t_1 + ', type=' + this.x1t_1 + ')';
|
|
1571
1573
|
};
|
|
1572
1574
|
protoOf(FlattenResponse).hashCode = function () {
|
|
1573
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1574
|
-
result = imul(result, 31) + this.q1t_1.hashCode() | 0;
|
|
1575
|
-
result = imul(result, 31) + this.r1t_1.hashCode() | 0;
|
|
1575
|
+
var result = Path__hashCode_impl_go73kd(this.r1t_1);
|
|
1576
1576
|
result = imul(result, 31) + this.s1t_1.hashCode() | 0;
|
|
1577
|
-
result = imul(result, 31) +
|
|
1578
|
-
result = imul(result, 31) +
|
|
1579
|
-
result = imul(result, 31) +
|
|
1577
|
+
result = imul(result, 31) + this.t1t_1.hashCode() | 0;
|
|
1578
|
+
result = imul(result, 31) + this.u1t_1.hashCode() | 0;
|
|
1579
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.v1t_1) | 0;
|
|
1580
|
+
result = imul(result, 31) + hashCode(this.w1t_1) | 0;
|
|
1581
|
+
result = imul(result, 31) + getStringHashCode(this.x1t_1) | 0;
|
|
1580
1582
|
return result;
|
|
1581
1583
|
};
|
|
1582
1584
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -1585,20 +1587,20 @@
|
|
|
1585
1587
|
if (!(other instanceof FlattenResponse))
|
|
1586
1588
|
return false;
|
|
1587
1589
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
1588
|
-
if (!(this.
|
|
1589
|
-
return false;
|
|
1590
|
-
if (!this.q1t_1.equals(tmp0_other_with_cast.q1t_1))
|
|
1591
|
-
return false;
|
|
1592
|
-
if (!this.r1t_1.equals(tmp0_other_with_cast.r1t_1))
|
|
1590
|
+
if (!(this.r1t_1 === tmp0_other_with_cast.r1t_1))
|
|
1593
1591
|
return false;
|
|
1594
1592
|
if (!this.s1t_1.equals(tmp0_other_with_cast.s1t_1))
|
|
1595
1593
|
return false;
|
|
1596
|
-
if (!
|
|
1594
|
+
if (!this.t1t_1.equals(tmp0_other_with_cast.t1t_1))
|
|
1597
1595
|
return false;
|
|
1598
|
-
if (!
|
|
1596
|
+
if (!this.u1t_1.equals(tmp0_other_with_cast.u1t_1))
|
|
1599
1597
|
return false;
|
|
1600
1598
|
if (!(this.v1t_1 === tmp0_other_with_cast.v1t_1))
|
|
1601
1599
|
return false;
|
|
1600
|
+
if (!equals(this.w1t_1, tmp0_other_with_cast.w1t_1))
|
|
1601
|
+
return false;
|
|
1602
|
+
if (!(this.x1t_1 === tmp0_other_with_cast.x1t_1))
|
|
1603
|
+
return false;
|
|
1602
1604
|
return true;
|
|
1603
1605
|
};
|
|
1604
1606
|
function flatMapResponses(_this__u8e3s4, $this, f) {
|
|
@@ -1606,7 +1608,7 @@
|
|
|
1606
1608
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1607
1609
|
var tmp$ret$22;
|
|
1608
1610
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1609
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
1611
|
+
var tmp1_flatMap = _this__u8e3s4.z1a_1;
|
|
1610
1612
|
var tmp$ret$21;
|
|
1611
1613
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1612
1614
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -1620,7 +1622,7 @@
|
|
|
1620
1622
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
1621
1623
|
var tmp$ret$1;
|
|
1622
1624
|
// Inline function 'kotlin.collections.component1' call
|
|
1623
|
-
tmp$ret$1 = element.v().
|
|
1625
|
+
tmp$ret$1 = element.v().k1b_1;
|
|
1624
1626
|
var path = tmp$ret$1;
|
|
1625
1627
|
var tmp$ret$2;
|
|
1626
1628
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1652,7 +1654,7 @@
|
|
|
1652
1654
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1653
1655
|
var tmp$ret$6;
|
|
1654
1656
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1655
|
-
var tmp0_orEmpty = operation.
|
|
1657
|
+
var tmp0_orEmpty = operation.l1c_1;
|
|
1656
1658
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1657
1659
|
tmp$ret$6 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1658
1660
|
var tmp2_flatMap = tmp$ret$6;
|
|
@@ -1669,7 +1671,7 @@
|
|
|
1669
1671
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
1670
1672
|
var tmp$ret$8;
|
|
1671
1673
|
// Inline function 'kotlin.collections.component1' call
|
|
1672
|
-
tmp$ret$8 = element_1.v().
|
|
1674
|
+
tmp$ret$8 = element_1.v().d1f_1;
|
|
1673
1675
|
var statusCode = tmp$ret$8;
|
|
1674
1676
|
var tmp$ret$9;
|
|
1675
1677
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1679,8 +1681,8 @@
|
|
|
1679
1681
|
// Inline function 'kotlin.collections.map' call
|
|
1680
1682
|
var tmp$ret$10;
|
|
1681
1683
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1682
|
-
var tmp0_elvis_lhs_0 = _this__u8e3s4.
|
|
1683
|
-
var tmp0_orEmpty_0 = tmp0_elvis_lhs_0 == null ? operation.
|
|
1684
|
+
var tmp0_elvis_lhs_0 = _this__u8e3s4.y1a_1;
|
|
1685
|
+
var tmp0_orEmpty_0 = tmp0_elvis_lhs_0 == null ? operation.j1c_1 : tmp0_elvis_lhs_0;
|
|
1684
1686
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
1685
1687
|
tmp$ret$10 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
1686
1688
|
var tmp2_map = tmp$ret$10;
|
|
@@ -1734,9 +1736,9 @@
|
|
|
1734
1736
|
}
|
|
1735
1737
|
function OpenApiParser$parseRequestBody$lambda(this$0) {
|
|
1736
1738
|
return function (req) {
|
|
1737
|
-
var parameters = plus(resolveParameters_0(req.
|
|
1738
|
-
var segments = toSegments(req.
|
|
1739
|
-
var name = toName(req.
|
|
1739
|
+
var parameters = plus(resolveParameters_0(req.n1t_1, this$0), resolveParameters(req.p1t_1, this$0));
|
|
1740
|
+
var segments = toSegments(req.m1t_1, this$0, parameters);
|
|
1741
|
+
var name = toName(req.p1t_1, this$0, segments, req.o1t_1);
|
|
1740
1742
|
var tmp$ret$5;
|
|
1741
1743
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1742
1744
|
var tmp$ret$4;
|
|
@@ -1748,11 +1750,11 @@
|
|
|
1748
1750
|
var tmp$ret$3;
|
|
1749
1751
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1750
1752
|
var tmp;
|
|
1751
|
-
if (!(element.
|
|
1752
|
-
var tmp_0 = name
|
|
1753
|
+
if (!(element.o1d_1 == null)) {
|
|
1754
|
+
var tmp_0 = Common_getInstance().i1t([name, 'Parameter', element.t1c_1]);
|
|
1753
1755
|
var tmp$ret$2;
|
|
1754
1756
|
// Inline function 'kotlin.collections.map' call
|
|
1755
|
-
var tmp1_map = ensureNotNull(element.
|
|
1757
|
+
var tmp1_map = ensureNotNull(element.o1d_1);
|
|
1756
1758
|
var tmp$ret$1;
|
|
1757
1759
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1758
1760
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -1761,7 +1763,7 @@
|
|
|
1761
1763
|
var item = tmp0_iterator_0.e();
|
|
1762
1764
|
var tmp$ret$0;
|
|
1763
1765
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
1764
|
-
tmp$ret$0 = item.
|
|
1766
|
+
tmp$ret$0 = item.t13();
|
|
1765
1767
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1766
1768
|
}
|
|
1767
1769
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -1777,7 +1779,7 @@
|
|
|
1777
1779
|
tmp$ret$4 = tmp0_flatMapTo;
|
|
1778
1780
|
tmp$ret$5 = tmp$ret$4;
|
|
1779
1781
|
var enums = tmp$ret$5;
|
|
1780
|
-
var tmp0_safe_receiver = req.
|
|
1782
|
+
var tmp0_safe_receiver = req.p1t_1.k1c_1;
|
|
1781
1783
|
var tmp_1;
|
|
1782
1784
|
if (tmp0_safe_receiver == null) {
|
|
1783
1785
|
tmp_1 = null;
|
|
@@ -1814,7 +1816,7 @@
|
|
|
1814
1816
|
var element_0 = tmp0_iterator_2.e();
|
|
1815
1817
|
var tmp$ret$9;
|
|
1816
1818
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1817
|
-
tmp$ret$9 = element_0.
|
|
1819
|
+
tmp$ret$9 = element_0.u1c_1.equals(ParameterLocation_BODY_getInstance());
|
|
1818
1820
|
if (tmp$ret$9) {
|
|
1819
1821
|
tmp2_filterTo.a(element_0);
|
|
1820
1822
|
}
|
|
@@ -1838,22 +1840,22 @@
|
|
|
1838
1840
|
var element_1 = tmp0_iterator_3.e();
|
|
1839
1841
|
var tmp$ret$13;
|
|
1840
1842
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1841
|
-
var schema = element_1.
|
|
1843
|
+
var schema = element_1.x1c_1;
|
|
1842
1844
|
var tmp_4;
|
|
1843
1845
|
if (schema instanceof SchemaObject) {
|
|
1844
|
-
var tmp0_subject = schema.
|
|
1846
|
+
var tmp0_subject = schema.v1e_1;
|
|
1845
1847
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
1846
1848
|
var tmp_5;
|
|
1847
1849
|
switch (tmp0) {
|
|
1848
1850
|
case -1:
|
|
1849
1851
|
case 5:
|
|
1850
|
-
tmp_5 = flatten(schema, this$0, Common_getInstance().
|
|
1852
|
+
tmp_5 = flatten(schema, this$0, Common_getInstance().i1t([name, 'RequestBody']));
|
|
1851
1853
|
break;
|
|
1852
1854
|
case 4:
|
|
1853
1855
|
var tmp$ret$12;
|
|
1854
1856
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1855
|
-
var tmp1_safe_receiver_0 = schema.
|
|
1856
|
-
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
1857
|
+
var tmp1_safe_receiver_0 = schema.w1e_1;
|
|
1858
|
+
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().i1t([name, 'RequestBody']));
|
|
1857
1859
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1858
1860
|
tmp$ret$12 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1859
1861
|
|
|
@@ -1882,26 +1884,26 @@
|
|
|
1882
1884
|
}
|
|
1883
1885
|
function OpenApiParser$parseResponseBody$lambda(this$0) {
|
|
1884
1886
|
return function (res) {
|
|
1885
|
-
var response = resolve_1(res.
|
|
1886
|
-
var parameters = plus(resolveParameters_0(res.
|
|
1887
|
-
var segments = toSegments(res.
|
|
1888
|
-
var name = toName(res.
|
|
1889
|
-
var schema = response.
|
|
1887
|
+
var response = resolve_1(res.w1t_1, this$0);
|
|
1888
|
+
var parameters = plus(resolveParameters_0(res.s1t_1, this$0), resolveParameters(res.u1t_1, this$0));
|
|
1889
|
+
var segments = toSegments(res.r1t_1, this$0, parameters);
|
|
1890
|
+
var name = toName(res.u1t_1, this$0, segments, res.t1t_1);
|
|
1891
|
+
var schema = response.h1f_1;
|
|
1890
1892
|
var tmp;
|
|
1891
1893
|
if (schema instanceof SchemaObject) {
|
|
1892
|
-
var tmp0_subject = schema.
|
|
1894
|
+
var tmp0_subject = schema.v1e_1;
|
|
1893
1895
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
1894
1896
|
var tmp_0;
|
|
1895
1897
|
switch (tmp0) {
|
|
1896
1898
|
case -1:
|
|
1897
1899
|
case 5:
|
|
1898
|
-
tmp_0 = flatten(schema, this$0, Common_getInstance().
|
|
1900
|
+
tmp_0 = flatten(schema, this$0, Common_getInstance().i1t([name, _StatusCode___get_value__impl__we50mu(res.v1t_1), 'ResponseBody']));
|
|
1899
1901
|
break;
|
|
1900
1902
|
case 4:
|
|
1901
1903
|
var tmp$ret$0;
|
|
1902
1904
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1903
|
-
var tmp1_safe_receiver = schema.
|
|
1904
|
-
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : flatten_0(tmp1_safe_receiver, this$0, Common_getInstance().
|
|
1905
|
+
var tmp1_safe_receiver = schema.w1e_1;
|
|
1906
|
+
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : flatten_0(tmp1_safe_receiver, this$0, Common_getInstance().i1t([name, _StatusCode___get_value__impl__we50mu(res.v1t_1), 'ResponseBody']));
|
|
1905
1907
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1906
1908
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1907
1909
|
|
|
@@ -1922,10 +1924,10 @@
|
|
|
1922
1924
|
var tmp0_subject = it;
|
|
1923
1925
|
var tmp;
|
|
1924
1926
|
if (tmp0_subject instanceof Literal) {
|
|
1925
|
-
tmp = Common_getInstance().
|
|
1927
|
+
tmp = Common_getInstance().i1t([it.sj_1]);
|
|
1926
1928
|
} else {
|
|
1927
1929
|
if (tmp0_subject instanceof Param) {
|
|
1928
|
-
tmp = Common_getInstance().
|
|
1930
|
+
tmp = Common_getInstance().i1t([it.ti_1.ej_1]);
|
|
1929
1931
|
} else {
|
|
1930
1932
|
noWhenBranchMatchedException();
|
|
1931
1933
|
}
|
|
@@ -1934,22 +1936,22 @@
|
|
|
1934
1936
|
}
|
|
1935
1937
|
function OpenApiParser(openApi) {
|
|
1936
1938
|
Companion_getInstance_0();
|
|
1937
|
-
this.
|
|
1939
|
+
this.k1t_1 = openApi;
|
|
1938
1940
|
}
|
|
1939
|
-
protoOf(OpenApiParser).
|
|
1941
|
+
protoOf(OpenApiParser).l1t = function () {
|
|
1940
1942
|
return plus(plus(plus(parseEndpoints(this), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
|
|
1941
1943
|
};
|
|
1942
1944
|
function toMap_0(_this__u8e3s4) {
|
|
1943
1945
|
var tmp0_subject = _this__u8e3s4;
|
|
1944
1946
|
var tmp;
|
|
1945
1947
|
if (tmp0_subject instanceof Custom) {
|
|
1946
|
-
tmp = _this__u8e3s4.
|
|
1948
|
+
tmp = _this__u8e3s4.ml(VOID, VOID, true);
|
|
1947
1949
|
} else {
|
|
1948
1950
|
if (tmp0_subject instanceof Any) {
|
|
1949
|
-
tmp = _this__u8e3s4.
|
|
1951
|
+
tmp = _this__u8e3s4.kl(VOID, true);
|
|
1950
1952
|
} else {
|
|
1951
1953
|
if (tmp0_subject instanceof Primitive) {
|
|
1952
|
-
tmp = _this__u8e3s4.
|
|
1954
|
+
tmp = _this__u8e3s4.ol(VOID, VOID, true);
|
|
1953
1955
|
} else {
|
|
1954
1956
|
noWhenBranchMatchedException();
|
|
1955
1957
|
}
|
|
@@ -1996,13 +1998,13 @@
|
|
|
1996
1998
|
var tmp0_subject = _this__u8e3s4;
|
|
1997
1999
|
var tmp;
|
|
1998
2000
|
if (tmp0_subject instanceof Custom) {
|
|
1999
|
-
tmp = _this__u8e3s4.
|
|
2001
|
+
tmp = _this__u8e3s4.ml(VOID, true);
|
|
2000
2002
|
} else {
|
|
2001
2003
|
if (tmp0_subject instanceof Any) {
|
|
2002
|
-
tmp = _this__u8e3s4.
|
|
2004
|
+
tmp = _this__u8e3s4.kl(true);
|
|
2003
2005
|
} else {
|
|
2004
2006
|
if (tmp0_subject instanceof Primitive) {
|
|
2005
|
-
tmp = _this__u8e3s4.
|
|
2007
|
+
tmp = _this__u8e3s4.ol(VOID, true);
|
|
2006
2008
|
} else {
|
|
2007
2009
|
noWhenBranchMatchedException();
|
|
2008
2010
|
}
|
|
@@ -2067,10 +2069,10 @@
|
|
|
2067
2069
|
function Companion_0() {
|
|
2068
2070
|
Companion_instance_0 = this;
|
|
2069
2071
|
}
|
|
2070
|
-
protoOf(Companion_0).
|
|
2072
|
+
protoOf(Companion_0).j1t = function (json) {
|
|
2071
2073
|
var tmp$ret$1;
|
|
2072
2074
|
// Inline function 'kotlin.let' call
|
|
2073
|
-
var tmp0_let = Default_getInstance_0().
|
|
2075
|
+
var tmp0_let = Default_getInstance_0().p1a(json);
|
|
2074
2076
|
// Inline function 'kotlin.contracts.contract' call
|
|
2075
2077
|
var tmp$ret$0;
|
|
2076
2078
|
// Inline function 'community.flock.wirespec.openapi.v3.Companion.parse.<anonymous>' call
|
|
@@ -2090,7 +2092,7 @@
|
|
|
2090
2092
|
function parseEndpoint($this) {
|
|
2091
2093
|
var tmp$ret$50;
|
|
2092
2094
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2093
|
-
var tmp1_flatMap = $this.
|
|
2095
|
+
var tmp1_flatMap = $this.y1t_1.p1j_1;
|
|
2094
2096
|
var tmp$ret$49;
|
|
2095
2097
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2096
2098
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -2104,7 +2106,7 @@
|
|
|
2104
2106
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>' call
|
|
2105
2107
|
var tmp$ret$1;
|
|
2106
2108
|
// Inline function 'kotlin.collections.component1' call
|
|
2107
|
-
tmp$ret$1 = element.v().
|
|
2109
|
+
tmp$ret$1 = element.v().x1j_1;
|
|
2108
2110
|
var key = tmp$ret$1;
|
|
2109
2111
|
var tmp$ret$2;
|
|
2110
2112
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -2147,7 +2149,7 @@
|
|
|
2147
2149
|
var element_0 = tmp0_iterator_1.e();
|
|
2148
2150
|
var tmp$ret$6;
|
|
2149
2151
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2150
|
-
tmp$ret$6 = element_0.
|
|
2152
|
+
tmp$ret$6 = element_0.r1l_1.equals(ParameterLocation_QUERY_getInstance_0());
|
|
2151
2153
|
if (tmp$ret$6) {
|
|
2152
2154
|
tmp0_filterTo.a(element_0);
|
|
2153
2155
|
}
|
|
@@ -2163,7 +2165,7 @@
|
|
|
2163
2165
|
var item_0 = tmp0_iterator_2.e();
|
|
2164
2166
|
var tmp$ret$9;
|
|
2165
2167
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2166
|
-
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().
|
|
2168
|
+
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().i1t([name, 'Parameter', item_0.q1l_1]));
|
|
2167
2169
|
tmp1_mapTo.a(tmp$ret$9);
|
|
2168
2170
|
}
|
|
2169
2171
|
tmp$ret$10 = tmp1_mapTo;
|
|
@@ -2181,7 +2183,7 @@
|
|
|
2181
2183
|
var element_1 = tmp0_iterator_3.e();
|
|
2182
2184
|
var tmp$ret$12;
|
|
2183
2185
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2184
|
-
tmp$ret$12 = element_1.
|
|
2186
|
+
tmp$ret$12 = element_1.r1l_1.equals(ParameterLocation_HEADER_getInstance_0());
|
|
2185
2187
|
if (tmp$ret$12) {
|
|
2186
2188
|
tmp3_filterTo.a(element_1);
|
|
2187
2189
|
}
|
|
@@ -2197,7 +2199,7 @@
|
|
|
2197
2199
|
var item_1 = tmp0_iterator_4.e();
|
|
2198
2200
|
var tmp$ret$15;
|
|
2199
2201
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2200
|
-
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().
|
|
2202
|
+
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().i1t([name, 'Parameter', item_1.q1l_1]));
|
|
2201
2203
|
tmp4_mapTo.a(tmp$ret$15);
|
|
2202
2204
|
}
|
|
2203
2205
|
tmp$ret$16 = tmp4_mapTo;
|
|
@@ -2215,7 +2217,7 @@
|
|
|
2215
2217
|
var element_2 = tmp0_iterator_5.e();
|
|
2216
2218
|
var tmp$ret$18;
|
|
2217
2219
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2218
|
-
tmp$ret$18 = element_2.
|
|
2220
|
+
tmp$ret$18 = element_2.r1l_1.equals(ParameterLocation_COOKIE_getInstance());
|
|
2219
2221
|
if (tmp$ret$18) {
|
|
2220
2222
|
tmp6_filterTo.a(element_2);
|
|
2221
2223
|
}
|
|
@@ -2231,13 +2233,13 @@
|
|
|
2231
2233
|
var item_2 = tmp0_iterator_6.e();
|
|
2232
2234
|
var tmp$ret$21;
|
|
2233
2235
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2234
|
-
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().
|
|
2236
|
+
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().i1t([name, 'Parameter', item_2.q1l_1]));
|
|
2235
2237
|
tmp7_mapTo.a(tmp$ret$21);
|
|
2236
2238
|
}
|
|
2237
2239
|
tmp$ret$22 = tmp7_mapTo;
|
|
2238
2240
|
tmp$ret$23 = tmp$ret$22;
|
|
2239
2241
|
var cookies = tmp$ret$23;
|
|
2240
|
-
var tmp0_safe_receiver = operation.
|
|
2242
|
+
var tmp0_safe_receiver = operation.w1k_1;
|
|
2241
2243
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, $this);
|
|
2242
2244
|
var tmp;
|
|
2243
2245
|
if (tmp1_safe_receiver == null) {
|
|
@@ -2248,7 +2250,7 @@
|
|
|
2248
2250
|
// Inline function 'kotlin.contracts.contract' call
|
|
2249
2251
|
var tmp$ret$30;
|
|
2250
2252
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2251
|
-
var tmp0_safe_receiver_0 = tmp1_safe_receiver.
|
|
2253
|
+
var tmp0_safe_receiver_0 = tmp1_safe_receiver.w1l_1;
|
|
2252
2254
|
var tmp_0;
|
|
2253
2255
|
if (tmp0_safe_receiver_0 == null) {
|
|
2254
2256
|
tmp_0 = null;
|
|
@@ -2268,20 +2270,20 @@
|
|
|
2268
2270
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2269
2271
|
var tmp$ret$25;
|
|
2270
2272
|
// Inline function 'kotlin.collections.component1' call
|
|
2271
|
-
tmp$ret$25 = item_3.v().
|
|
2273
|
+
tmp$ret$25 = item_3.v().a1m_1;
|
|
2272
2274
|
var mediaType = tmp$ret$25;
|
|
2273
2275
|
var tmp$ret$26;
|
|
2274
2276
|
// Inline function 'kotlin.collections.component2' call
|
|
2275
2277
|
tmp$ret$26 = item_3.w();
|
|
2276
2278
|
var mediaObject = tmp$ret$26;
|
|
2277
2279
|
var tmp_1 = _MediaType___get_value__impl__wy58mp(mediaType);
|
|
2278
|
-
var schema = mediaObject.
|
|
2280
|
+
var schema = mediaObject.d1m_1;
|
|
2279
2281
|
var tmp_2;
|
|
2280
2282
|
if (schema instanceof ReferenceObject_0) {
|
|
2281
2283
|
tmp_2 = toReference_1(schema, $this);
|
|
2282
2284
|
} else {
|
|
2283
2285
|
if (schema instanceof SchemaObject_0) {
|
|
2284
|
-
tmp_2 = toReference_2(schema, $this, Common_getInstance().
|
|
2286
|
+
tmp_2 = toReference_2(schema, $this, Common_getInstance().i1t([name, 'RequestBody']));
|
|
2285
2287
|
} else {
|
|
2286
2288
|
if (schema == null) {
|
|
2287
2289
|
throw new NotImplementedError();
|
|
@@ -2291,7 +2293,7 @@
|
|
|
2291
2293
|
}
|
|
2292
2294
|
}
|
|
2293
2295
|
var tmp_3 = tmp_2;
|
|
2294
|
-
var tmp0_elvis_lhs = tmp1_safe_receiver.
|
|
2296
|
+
var tmp0_elvis_lhs = tmp1_safe_receiver.x1l_1;
|
|
2295
2297
|
tmp$ret$27 = new Request(new Content(tmp_1, tmp_3, tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
2296
2298
|
tmp0_mapTo_0.a(tmp$ret$27);
|
|
2297
2299
|
}
|
|
@@ -2309,7 +2311,7 @@
|
|
|
2309
2311
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2310
2312
|
var tmp$ret$32;
|
|
2311
2313
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2312
|
-
var tmp9_orEmpty = operation.
|
|
2314
|
+
var tmp9_orEmpty = operation.x1k_1;
|
|
2313
2315
|
var tmp0_elvis_lhs_0 = tmp9_orEmpty;
|
|
2314
2316
|
tmp$ret$32 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2315
2317
|
var tmp11_flatMap = tmp$ret$32;
|
|
@@ -2326,13 +2328,13 @@
|
|
|
2326
2328
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2327
2329
|
var tmp$ret$34;
|
|
2328
2330
|
// Inline function 'kotlin.collections.component1' call
|
|
2329
|
-
tmp$ret$34 = element_3.v().
|
|
2331
|
+
tmp$ret$34 = element_3.v().z1n_1;
|
|
2330
2332
|
var status = tmp$ret$34;
|
|
2331
2333
|
var tmp$ret$35;
|
|
2332
2334
|
// Inline function 'kotlin.collections.component2' call
|
|
2333
2335
|
tmp$ret$35 = element_3.w();
|
|
2334
2336
|
var res = tmp$ret$35;
|
|
2335
|
-
var tmp0_safe_receiver_1 = resolve_6(res, $this).
|
|
2337
|
+
var tmp0_safe_receiver_1 = resolve_6(res, $this).e1o_1;
|
|
2336
2338
|
var tmp_4;
|
|
2337
2339
|
if (tmp0_safe_receiver_1 == null) {
|
|
2338
2340
|
tmp_4 = null;
|
|
@@ -2352,7 +2354,7 @@
|
|
|
2352
2354
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2353
2355
|
var tmp$ret$37;
|
|
2354
2356
|
// Inline function 'kotlin.collections.component1' call
|
|
2355
|
-
tmp$ret$37 = item_4.v().
|
|
2357
|
+
tmp$ret$37 = item_4.v().a1m_1;
|
|
2356
2358
|
var contentType = tmp$ret$37;
|
|
2357
2359
|
var tmp$ret$38;
|
|
2358
2360
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -2360,13 +2362,13 @@
|
|
|
2360
2362
|
var media = tmp$ret$38;
|
|
2361
2363
|
var tmp_5 = _StatusCode___get_value__impl__we50mu_0(status);
|
|
2362
2364
|
var tmp_6 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
2363
|
-
var schema_0 = media.
|
|
2365
|
+
var schema_0 = media.d1m_1;
|
|
2364
2366
|
var tmp_7;
|
|
2365
2367
|
if (schema_0 instanceof ReferenceObject_0) {
|
|
2366
2368
|
tmp_7 = toReference_1(schema_0, $this);
|
|
2367
2369
|
} else {
|
|
2368
2370
|
if (schema_0 instanceof SchemaObject_0) {
|
|
2369
|
-
tmp_7 = toReference_2(schema_0, $this, Common_getInstance().
|
|
2371
|
+
tmp_7 = toReference_2(schema_0, $this, Common_getInstance().i1t([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
2370
2372
|
} else {
|
|
2371
2373
|
if (schema_0 == null) {
|
|
2372
2374
|
throw new NotImplementedError();
|
|
@@ -2376,9 +2378,9 @@
|
|
|
2376
2378
|
}
|
|
2377
2379
|
}
|
|
2378
2380
|
var tmp_8 = tmp_7;
|
|
2379
|
-
var tmp0_safe_receiver_2 = media.
|
|
2381
|
+
var tmp0_safe_receiver_2 = media.d1m_1;
|
|
2380
2382
|
var tmp1_safe_receiver_0 = tmp0_safe_receiver_2 == null ? null : resolve_3(tmp0_safe_receiver_2, $this);
|
|
2381
|
-
var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
2383
|
+
var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.m1m_1;
|
|
2382
2384
|
tmp$ret$39 = new Response(tmp_5, new Content(tmp_6, tmp_8, tmp2_elvis_lhs_0 == null ? false : tmp2_elvis_lhs_0));
|
|
2383
2385
|
tmp0_mapTo_1.a(tmp$ret$39);
|
|
2384
2386
|
}
|
|
@@ -2408,13 +2410,13 @@
|
|
|
2408
2410
|
return tmp$ret$50;
|
|
2409
2411
|
}
|
|
2410
2412
|
function parseParameters($this) {
|
|
2411
|
-
return flatMapRequests_0($this.
|
|
2413
|
+
return flatMapRequests_0($this.y1t_1, $this, OpenApiParser$parseParameters$lambda($this));
|
|
2412
2414
|
}
|
|
2413
2415
|
function parseRequestBody_0($this) {
|
|
2414
|
-
return flatMapRequests_0($this.
|
|
2416
|
+
return flatMapRequests_0($this.y1t_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
|
|
2415
2417
|
}
|
|
2416
2418
|
function parseResponseBody_0($this) {
|
|
2417
|
-
return flatMapResponses_0($this.
|
|
2419
|
+
return flatMapResponses_0($this.y1t_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
|
|
2418
2420
|
}
|
|
2419
2421
|
function parseComponents($this) {
|
|
2420
2422
|
var tmp$ret$8;
|
|
@@ -2423,8 +2425,8 @@
|
|
|
2423
2425
|
// Inline function 'kotlin.collections.filter' call
|
|
2424
2426
|
var tmp$ret$0;
|
|
2425
2427
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2426
|
-
var tmp0_safe_receiver = $this.
|
|
2427
|
-
var tmp0_orEmpty = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2428
|
+
var tmp0_safe_receiver = $this.y1t_1.q1j_1;
|
|
2429
|
+
var tmp0_orEmpty = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j1o_1;
|
|
2428
2430
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
2429
2431
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2430
2432
|
var tmp2_filter = tmp$ret$0;
|
|
@@ -2442,7 +2444,7 @@
|
|
|
2442
2444
|
var s = element.w();
|
|
2443
2445
|
var tmp;
|
|
2444
2446
|
if (s instanceof SchemaObject_0) {
|
|
2445
|
-
tmp = s.
|
|
2447
|
+
tmp = s.c1n_1 == null;
|
|
2446
2448
|
} else {
|
|
2447
2449
|
tmp = false;
|
|
2448
2450
|
}
|
|
@@ -2465,7 +2467,7 @@
|
|
|
2465
2467
|
var element_0 = tmp0_iterator_0.e();
|
|
2466
2468
|
var tmp$ret$6;
|
|
2467
2469
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2468
|
-
tmp$ret$6 = flatten_2(element_0.w(), $this, Common_getInstance().
|
|
2470
|
+
tmp$ret$6 = flatten_2(element_0.w(), $this, Common_getInstance().i1t([element_0.v()]));
|
|
2469
2471
|
var list = tmp$ret$6;
|
|
2470
2472
|
addAll(tmp3_flatMapTo, list);
|
|
2471
2473
|
}
|
|
@@ -2506,7 +2508,7 @@
|
|
|
2506
2508
|
var element = tmp0_iterator_0.e();
|
|
2507
2509
|
var tmp$ret$2;
|
|
2508
2510
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2509
|
-
tmp$ret$2 = element.
|
|
2511
|
+
tmp$ret$2 = element.q1l_1 === param;
|
|
2510
2512
|
if (tmp$ret$2) {
|
|
2511
2513
|
tmp$ret$3 = element;
|
|
2512
2514
|
break $l$block;
|
|
@@ -2516,7 +2518,7 @@
|
|
|
2516
2518
|
}
|
|
2517
2519
|
tmp$ret$4 = tmp$ret$3;
|
|
2518
2520
|
var tmp0_safe_receiver = tmp$ret$4;
|
|
2519
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2521
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m1l_1;
|
|
2520
2522
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_3(tmp1_safe_receiver, $this);
|
|
2521
2523
|
var tmp_0;
|
|
2522
2524
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2527,7 +2529,7 @@
|
|
|
2527
2529
|
// Inline function 'kotlin.contracts.contract' call
|
|
2528
2530
|
var tmp$ret$5;
|
|
2529
2531
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2530
|
-
var tmp0_safe_receiver_0 = tmp2_safe_receiver.
|
|
2532
|
+
var tmp0_safe_receiver_0 = tmp2_safe_receiver.v1m_1;
|
|
2531
2533
|
tmp$ret$5 = tmp0_safe_receiver_0 == null ? null : toPrimitive_0(tmp0_safe_receiver_0, $this);
|
|
2532
2534
|
tmp$ret$6 = tmp$ret$5;
|
|
2533
2535
|
tmp_0 = tmp$ret$6;
|
|
@@ -2566,7 +2568,7 @@
|
|
|
2566
2568
|
return tmp$ret$11;
|
|
2567
2569
|
}
|
|
2568
2570
|
function toName_0(_this__u8e3s4, $this, segments, method) {
|
|
2569
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2571
|
+
var tmp0_safe_receiver = _this__u8e3s4.u1k_1;
|
|
2570
2572
|
var tmp;
|
|
2571
2573
|
if (tmp0_safe_receiver == null) {
|
|
2572
2574
|
tmp = null;
|
|
@@ -2576,7 +2578,7 @@
|
|
|
2576
2578
|
// Inline function 'kotlin.contracts.contract' call
|
|
2577
2579
|
var tmp$ret$0;
|
|
2578
2580
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
2579
|
-
tmp$ret$0 = Common_getInstance().
|
|
2581
|
+
tmp$ret$0 = Common_getInstance().i1t([tmp0_safe_receiver]);
|
|
2580
2582
|
tmp$ret$1 = tmp$ret$0;
|
|
2581
2583
|
tmp = tmp$ret$1;
|
|
2582
2584
|
}
|
|
@@ -2598,7 +2600,7 @@
|
|
|
2598
2600
|
return tmp_0;
|
|
2599
2601
|
}
|
|
2600
2602
|
function resolveParameters_1(_this__u8e3s4, $this) {
|
|
2601
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2603
|
+
var tmp0_safe_receiver = _this__u8e3s4.v1k_1;
|
|
2602
2604
|
var tmp;
|
|
2603
2605
|
if (tmp0_safe_receiver == null) {
|
|
2604
2606
|
tmp = null;
|
|
@@ -2646,7 +2648,7 @@
|
|
|
2646
2648
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2647
2649
|
}
|
|
2648
2650
|
function resolveParameters_2(_this__u8e3s4, $this) {
|
|
2649
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2651
|
+
var tmp0_safe_receiver = _this__u8e3s4.m1k_1;
|
|
2650
2652
|
var tmp;
|
|
2651
2653
|
if (tmp0_safe_receiver == null) {
|
|
2652
2654
|
tmp = null;
|
|
@@ -2694,8 +2696,8 @@
|
|
|
2694
2696
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2695
2697
|
}
|
|
2696
2698
|
function resolveParameterObject_0(_this__u8e3s4, $this) {
|
|
2697
|
-
var tmp0_safe_receiver = $this.
|
|
2698
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2699
|
+
var tmp0_safe_receiver = $this.y1t_1.q1j_1;
|
|
2700
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l1o_1;
|
|
2699
2701
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2700
2702
|
var tmp;
|
|
2701
2703
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2724,8 +2726,8 @@
|
|
|
2724
2726
|
return tmp;
|
|
2725
2727
|
}
|
|
2726
2728
|
function resolveSchemaObject_0(_this__u8e3s4, $this) {
|
|
2727
|
-
var tmp0_safe_receiver = $this.
|
|
2728
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2729
|
+
var tmp0_safe_receiver = $this.y1t_1.q1j_1;
|
|
2730
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j1o_1;
|
|
2729
2731
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2730
2732
|
var tmp;
|
|
2731
2733
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2754,7 +2756,7 @@
|
|
|
2754
2756
|
var tmp3_elvis_lhs = tmp;
|
|
2755
2757
|
var tmp_1;
|
|
2756
2758
|
if (tmp3_elvis_lhs == null) {
|
|
2757
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2759
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.j1m_1);
|
|
2758
2760
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2759
2761
|
} else {
|
|
2760
2762
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2762,8 +2764,8 @@
|
|
|
2762
2764
|
return tmp_1;
|
|
2763
2765
|
}
|
|
2764
2766
|
function resolveRequestBodyObject(_this__u8e3s4, $this) {
|
|
2765
|
-
var tmp0_safe_receiver = $this.
|
|
2766
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2767
|
+
var tmp0_safe_receiver = $this.y1t_1.q1j_1;
|
|
2768
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n1o_1;
|
|
2767
2769
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2768
2770
|
var tmp;
|
|
2769
2771
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2792,7 +2794,7 @@
|
|
|
2792
2794
|
var tmp3_elvis_lhs = tmp;
|
|
2793
2795
|
var tmp_1;
|
|
2794
2796
|
if (tmp3_elvis_lhs == null) {
|
|
2795
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2797
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.j1m_1);
|
|
2796
2798
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2797
2799
|
} else {
|
|
2798
2800
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2800,8 +2802,8 @@
|
|
|
2800
2802
|
return tmp_1;
|
|
2801
2803
|
}
|
|
2802
2804
|
function resolveResponseObject_0(_this__u8e3s4, $this) {
|
|
2803
|
-
var tmp0_safe_receiver = $this.
|
|
2804
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2805
|
+
var tmp0_safe_receiver = $this.y1t_1.q1j_1;
|
|
2806
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k1o_1;
|
|
2805
2807
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2806
2808
|
var tmp;
|
|
2807
2809
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2830,7 +2832,7 @@
|
|
|
2830
2832
|
var tmp3_elvis_lhs = tmp;
|
|
2831
2833
|
var tmp_1;
|
|
2832
2834
|
if (tmp3_elvis_lhs == null) {
|
|
2833
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2835
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.j1m_1);
|
|
2834
2836
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2835
2837
|
} else {
|
|
2836
2838
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2899,25 +2901,25 @@
|
|
|
2899
2901
|
}
|
|
2900
2902
|
function flatten_1(_this__u8e3s4, $this, name) {
|
|
2901
2903
|
var tmp;
|
|
2902
|
-
if (!(_this__u8e3s4.
|
|
2903
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2904
|
+
if (!(_this__u8e3s4.c1n_1 == null)) {
|
|
2905
|
+
var tmp0_subject = _this__u8e3s4.c1n_1;
|
|
2904
2906
|
var tmp_0;
|
|
2905
2907
|
if (tmp0_subject instanceof BooleanObject_0) {
|
|
2906
2908
|
tmp_0 = emptyList();
|
|
2907
2909
|
} else {
|
|
2908
|
-
tmp_0 = flatten_1(resolve_4(ensureNotNull(_this__u8e3s4.
|
|
2910
|
+
tmp_0 = flatten_1(resolve_4(ensureNotNull(_this__u8e3s4.c1n_1), $this), $this, name);
|
|
2909
2911
|
}
|
|
2910
2912
|
tmp = tmp_0;
|
|
2911
|
-
} else if (!(_this__u8e3s4.
|
|
2913
|
+
} else if (!(_this__u8e3s4.x1m_1 == null)) {
|
|
2912
2914
|
throw new NotImplementedError('An operation is not implemented: oneOf is not implemented');
|
|
2913
|
-
} else if (!(_this__u8e3s4.
|
|
2915
|
+
} else if (!(_this__u8e3s4.y1m_1 == null)) {
|
|
2914
2916
|
throw new NotImplementedError('An operation is not implemented: anyOf is not implemented');
|
|
2915
|
-
} else if (!(_this__u8e3s4.
|
|
2917
|
+
} else if (!(_this__u8e3s4.w1m_1 == null)) {
|
|
2916
2918
|
var tmp$ret$3;
|
|
2917
2919
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2918
2920
|
var tmp$ret$0;
|
|
2919
2921
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2920
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
2922
|
+
var tmp0_orEmpty = _this__u8e3s4.w1m_1;
|
|
2921
2923
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
2922
2924
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2923
2925
|
var tmp2_flatMap = tmp$ret$0;
|
|
@@ -2938,7 +2940,7 @@
|
|
|
2938
2940
|
var tmp_1 = listOf(new Type(name, new Shape(tmp$ret$3)));
|
|
2939
2941
|
var tmp$ret$13;
|
|
2940
2942
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2941
|
-
var tmp4_flatMap = ensureNotNull(_this__u8e3s4.
|
|
2943
|
+
var tmp4_flatMap = ensureNotNull(_this__u8e3s4.w1m_1);
|
|
2942
2944
|
var tmp$ret$12;
|
|
2943
2945
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2944
2946
|
var tmp3_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -2957,7 +2959,7 @@
|
|
|
2957
2959
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2958
2960
|
var tmp$ret$4;
|
|
2959
2961
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2960
|
-
var tmp0_orEmpty_0 = element_0.
|
|
2962
|
+
var tmp0_orEmpty_0 = element_0.b1n_1;
|
|
2961
2963
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
2962
2964
|
tmp$ret$4 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2963
2965
|
var tmp2_flatMap_0 = tmp$ret$4;
|
|
@@ -2986,7 +2988,7 @@
|
|
|
2986
2988
|
tmp_3 = emptyList();
|
|
2987
2989
|
} else {
|
|
2988
2990
|
if (tmp0_subject_1 instanceof SchemaObject_0) {
|
|
2989
|
-
tmp_3 = flatten_1(value, $this, Common_getInstance().
|
|
2991
|
+
tmp_3 = flatten_1(value, $this, Common_getInstance().i1t([name, key]));
|
|
2990
2992
|
} else {
|
|
2991
2993
|
noWhenBranchMatchedException();
|
|
2992
2994
|
}
|
|
@@ -3009,12 +3011,12 @@
|
|
|
3009
3011
|
tmp$ret$12 = tmp3_flatMapTo;
|
|
3010
3012
|
tmp$ret$13 = tmp$ret$12;
|
|
3011
3013
|
tmp = plus(tmp_1, tmp$ret$13);
|
|
3012
|
-
} else if (!(_this__u8e3s4.
|
|
3014
|
+
} else if (!(_this__u8e3s4.v1n_1 == null)) {
|
|
3013
3015
|
var tmp$ret$18;
|
|
3014
3016
|
// Inline function 'kotlin.let' call
|
|
3015
3017
|
var tmp$ret$16;
|
|
3016
3018
|
// Inline function 'kotlin.collections.map' call
|
|
3017
|
-
var tmp6_map = ensureNotNull(_this__u8e3s4.
|
|
3019
|
+
var tmp6_map = ensureNotNull(_this__u8e3s4.v1n_1);
|
|
3018
3020
|
var tmp$ret$15;
|
|
3019
3021
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3020
3022
|
var tmp5_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp6_map, 10));
|
|
@@ -3023,7 +3025,7 @@
|
|
|
3023
3025
|
var item = tmp0_iterator_2.e();
|
|
3024
3026
|
var tmp$ret$14;
|
|
3025
3027
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
3026
|
-
tmp$ret$14 = item.
|
|
3028
|
+
tmp$ret$14 = item.t13();
|
|
3027
3029
|
tmp5_mapTo.a(tmp$ret$14);
|
|
3028
3030
|
}
|
|
3029
3031
|
tmp$ret$15 = tmp5_mapTo;
|
|
@@ -3036,7 +3038,7 @@
|
|
|
3036
3038
|
tmp$ret$18 = tmp$ret$17;
|
|
3037
3039
|
tmp = tmp$ret$18;
|
|
3038
3040
|
} else {
|
|
3039
|
-
var tmp1_subject = _this__u8e3s4.
|
|
3041
|
+
var tmp1_subject = _this__u8e3s4.v1m_1;
|
|
3040
3042
|
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.q4_1;
|
|
3041
3043
|
var tmp_4;
|
|
3042
3044
|
switch (tmp0) {
|
|
@@ -3046,7 +3048,7 @@
|
|
|
3046
3048
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3047
3049
|
var tmp$ret$19;
|
|
3048
3050
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3049
|
-
var tmp8_orEmpty = _this__u8e3s4.
|
|
3051
|
+
var tmp8_orEmpty = _this__u8e3s4.b1n_1;
|
|
3050
3052
|
var tmp0_elvis_lhs_1 = tmp8_orEmpty;
|
|
3051
3053
|
tmp$ret$19 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
3052
3054
|
var tmp10_flatMap = tmp$ret$19;
|
|
@@ -3072,7 +3074,7 @@
|
|
|
3072
3074
|
var tmp0_subject_2 = value_0;
|
|
3073
3075
|
var tmp_5;
|
|
3074
3076
|
if (tmp0_subject_2 instanceof SchemaObject_0) {
|
|
3075
|
-
tmp_5 = flatten_1(value_0, $this, Common_getInstance().
|
|
3077
|
+
tmp_5 = flatten_1(value_0, $this, Common_getInstance().i1t([name, key_0]));
|
|
3076
3078
|
} else {
|
|
3077
3079
|
if (tmp0_subject_2 instanceof ReferenceObject_0) {
|
|
3078
3080
|
tmp_5 = emptyList();
|
|
@@ -3092,7 +3094,7 @@
|
|
|
3092
3094
|
tmp_4 = plus(schema, fields);
|
|
3093
3095
|
break;
|
|
3094
3096
|
case 4:
|
|
3095
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
3097
|
+
var tmp2_safe_receiver = _this__u8e3s4.a1n_1;
|
|
3096
3098
|
var tmp_6;
|
|
3097
3099
|
if (tmp2_safe_receiver == null) {
|
|
3098
3100
|
tmp_6 = null;
|
|
@@ -3108,7 +3110,7 @@
|
|
|
3108
3110
|
tmp_7 = emptyList();
|
|
3109
3111
|
} else {
|
|
3110
3112
|
if (tmp0_subject_3 instanceof SchemaObject_0) {
|
|
3111
|
-
tmp_7 = flatten_1(tmp2_safe_receiver, $this, Common_getInstance().
|
|
3113
|
+
tmp_7 = flatten_1(tmp2_safe_receiver, $this, Common_getInstance().i1t([name, 'array']));
|
|
3112
3114
|
} else {
|
|
3113
3115
|
noWhenBranchMatchedException();
|
|
3114
3116
|
}
|
|
@@ -3153,8 +3155,8 @@
|
|
|
3153
3155
|
var referencingObject = tmp0_let.i3();
|
|
3154
3156
|
var schema = tmp0_let.j3();
|
|
3155
3157
|
var tmp;
|
|
3156
|
-
if (!(schema.
|
|
3157
|
-
var additionalProperties = ensureNotNull(schema.
|
|
3158
|
+
if (!(schema.c1n_1 == null)) {
|
|
3159
|
+
var additionalProperties = ensureNotNull(schema.c1n_1);
|
|
3158
3160
|
var tmp_0;
|
|
3159
3161
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
3160
3162
|
tmp_0 = new Any(false, true);
|
|
@@ -3170,25 +3172,25 @@
|
|
|
3170
3172
|
}
|
|
3171
3173
|
}
|
|
3172
3174
|
tmp = tmp_0;
|
|
3173
|
-
} else if (!(schema.
|
|
3174
|
-
tmp = new Custom(Common_getInstance().
|
|
3175
|
-
} else if (isPrimitive_0(schema.
|
|
3176
|
-
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.
|
|
3175
|
+
} else if (!(schema.v1n_1 == null)) {
|
|
3176
|
+
tmp = new Custom(Common_getInstance().i1t([getReference_0(referencingObject, $this)]), false, false);
|
|
3177
|
+
} else if (isPrimitive_0(schema.v1m_1)) {
|
|
3178
|
+
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.v1m_1), $this), false, false);
|
|
3177
3179
|
} else {
|
|
3178
|
-
var tmp0_subject = schema.
|
|
3180
|
+
var tmp0_subject = schema.v1m_1;
|
|
3179
3181
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
3180
3182
|
var tmp_1;
|
|
3181
3183
|
if (tmp0 === 4) {
|
|
3182
|
-
var items = schema.
|
|
3184
|
+
var items = schema.a1n_1;
|
|
3183
3185
|
var tmp_2;
|
|
3184
3186
|
if (items instanceof ReferenceObject_0) {
|
|
3185
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
3187
|
+
tmp_2 = new Custom(Common_getInstance().i1t([getReference_0(items, $this)]), true);
|
|
3186
3188
|
} else {
|
|
3187
3189
|
if (items instanceof SchemaObject_0) {
|
|
3188
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
3190
|
+
tmp_2 = new Custom(Common_getInstance().i1t([getReference_0(referencingObject, $this), 'Array']), true);
|
|
3189
3191
|
} else {
|
|
3190
3192
|
if (items == null) {
|
|
3191
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.
|
|
3193
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.j1m_1);
|
|
3192
3194
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
3193
3195
|
} else {
|
|
3194
3196
|
noWhenBranchMatchedException();
|
|
@@ -3197,7 +3199,7 @@
|
|
|
3197
3199
|
}
|
|
3198
3200
|
tmp_1 = tmp_2;
|
|
3199
3201
|
} else {
|
|
3200
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
3202
|
+
tmp_1 = new Custom(Common_getInstance().i1t([getReference_0(referencingObject, $this)]), false);
|
|
3201
3203
|
}
|
|
3202
3204
|
tmp = tmp_1;
|
|
3203
3205
|
}
|
|
@@ -3207,8 +3209,8 @@
|
|
|
3207
3209
|
}
|
|
3208
3210
|
function toReference_2(_this__u8e3s4, $this, name) {
|
|
3209
3211
|
var tmp;
|
|
3210
|
-
if (!(_this__u8e3s4.
|
|
3211
|
-
var additionalProperties = ensureNotNull(_this__u8e3s4.
|
|
3212
|
+
if (!(_this__u8e3s4.c1n_1 == null)) {
|
|
3213
|
+
var additionalProperties = ensureNotNull(_this__u8e3s4.c1n_1);
|
|
3212
3214
|
var tmp_0;
|
|
3213
3215
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
3214
3216
|
tmp_0 = new Any(false, true);
|
|
@@ -3224,10 +3226,10 @@
|
|
|
3224
3226
|
}
|
|
3225
3227
|
}
|
|
3226
3228
|
tmp = tmp_0;
|
|
3227
|
-
} else if (!(_this__u8e3s4.
|
|
3228
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
3229
|
+
} else if (!(_this__u8e3s4.v1n_1 == null)) {
|
|
3230
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.c1n_1 == null));
|
|
3229
3231
|
} else {
|
|
3230
|
-
var type = _this__u8e3s4.
|
|
3232
|
+
var type = _this__u8e3s4.v1m_1;
|
|
3231
3233
|
var tmp0 = type == null ? -1 : type.q4_1;
|
|
3232
3234
|
var tmp_1;
|
|
3233
3235
|
switch (tmp0) {
|
|
@@ -3235,22 +3237,22 @@
|
|
|
3235
3237
|
case 1:
|
|
3236
3238
|
case 2:
|
|
3237
3239
|
case 3:
|
|
3238
|
-
tmp_1 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.
|
|
3240
|
+
tmp_1 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.c1n_1 == null));
|
|
3239
3241
|
break;
|
|
3240
3242
|
case -1:
|
|
3241
3243
|
case 5:
|
|
3242
3244
|
var tmp_2;
|
|
3243
|
-
var tmp_3 = _this__u8e3s4.
|
|
3245
|
+
var tmp_3 = _this__u8e3s4.c1n_1;
|
|
3244
3246
|
if (tmp_3 instanceof BooleanObject_0) {
|
|
3245
|
-
tmp_2 = new Any(false, !(_this__u8e3s4.
|
|
3247
|
+
tmp_2 = new Any(false, !(_this__u8e3s4.c1n_1 == null));
|
|
3246
3248
|
} else {
|
|
3247
|
-
tmp_2 = new Custom(name, false, !(_this__u8e3s4.
|
|
3249
|
+
tmp_2 = new Custom(name, false, !(_this__u8e3s4.c1n_1 == null));
|
|
3248
3250
|
}
|
|
3249
3251
|
|
|
3250
3252
|
tmp_1 = tmp_2;
|
|
3251
3253
|
break;
|
|
3252
3254
|
case 4:
|
|
3253
|
-
var it = _this__u8e3s4.
|
|
3255
|
+
var it = _this__u8e3s4.a1n_1;
|
|
3254
3256
|
var tmp_4;
|
|
3255
3257
|
if (it instanceof ReferenceObject_0) {
|
|
3256
3258
|
tmp_4 = toIterable_0(toReference_1(it, $this));
|
|
@@ -3297,28 +3299,28 @@
|
|
|
3297
3299
|
var tmp;
|
|
3298
3300
|
switch (tmp0) {
|
|
3299
3301
|
case 0:
|
|
3300
|
-
tmp = _this__u8e3s4.
|
|
3302
|
+
tmp = _this__u8e3s4.d1k_1;
|
|
3301
3303
|
break;
|
|
3302
3304
|
case 1:
|
|
3303
|
-
tmp = _this__u8e3s4.
|
|
3305
|
+
tmp = _this__u8e3s4.f1k_1;
|
|
3304
3306
|
break;
|
|
3305
3307
|
case 2:
|
|
3306
|
-
tmp = _this__u8e3s4.
|
|
3308
|
+
tmp = _this__u8e3s4.e1k_1;
|
|
3307
3309
|
break;
|
|
3308
3310
|
case 3:
|
|
3309
|
-
tmp = _this__u8e3s4.
|
|
3311
|
+
tmp = _this__u8e3s4.g1k_1;
|
|
3310
3312
|
break;
|
|
3311
3313
|
case 4:
|
|
3312
|
-
tmp = _this__u8e3s4.
|
|
3314
|
+
tmp = _this__u8e3s4.h1k_1;
|
|
3313
3315
|
break;
|
|
3314
3316
|
case 5:
|
|
3315
|
-
tmp = _this__u8e3s4.
|
|
3317
|
+
tmp = _this__u8e3s4.i1k_1;
|
|
3316
3318
|
break;
|
|
3317
3319
|
case 6:
|
|
3318
|
-
tmp = _this__u8e3s4.
|
|
3320
|
+
tmp = _this__u8e3s4.j1k_1;
|
|
3319
3321
|
break;
|
|
3320
3322
|
case 7:
|
|
3321
|
-
tmp = _this__u8e3s4.
|
|
3323
|
+
tmp = _this__u8e3s4.k1k_1;
|
|
3322
3324
|
break;
|
|
3323
3325
|
default:
|
|
3324
3326
|
noWhenBranchMatchedException();
|
|
@@ -3332,10 +3334,10 @@
|
|
|
3332
3334
|
return filterNotNullValues_0(tmp$ret$2);
|
|
3333
3335
|
}
|
|
3334
3336
|
function getReference_0(_this__u8e3s4, $this) {
|
|
3335
|
-
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
3337
|
+
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.j1m_1), ['/']), 3);
|
|
3336
3338
|
var tmp;
|
|
3337
3339
|
if (tmp0_elvis_lhs == null) {
|
|
3338
|
-
var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
3340
|
+
var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.j1m_1);
|
|
3339
3341
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
3340
3342
|
} else {
|
|
3341
3343
|
tmp = tmp0_elvis_lhs;
|
|
@@ -3369,7 +3371,7 @@
|
|
|
3369
3371
|
// Inline function 'kotlin.collections.map' call
|
|
3370
3372
|
var tmp$ret$0;
|
|
3371
3373
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3372
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
3374
|
+
var tmp0_orEmpty = _this__u8e3s4.b1n_1;
|
|
3373
3375
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3374
3376
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3375
3377
|
var tmp2_map = tmp$ret$0;
|
|
@@ -3396,17 +3398,19 @@
|
|
|
3396
3398
|
var tmp;
|
|
3397
3399
|
if (tmp0_subject instanceof SchemaObject_0) {
|
|
3398
3400
|
var tmp_0 = new Identifier(key);
|
|
3399
|
-
var
|
|
3400
|
-
var
|
|
3401
|
-
var
|
|
3402
|
-
|
|
3401
|
+
var tmp1_subject = value.v1m_1;
|
|
3402
|
+
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.q4_1;
|
|
3403
|
+
var tmp_1 = tmp0 === 4 ? toReference_2(value, $this, Common_getInstance().i1t([name, key, 'Array'])) : toReference_2(value, $this, Common_getInstance().i1t([name, key]));
|
|
3404
|
+
var tmp2_safe_receiver = _this__u8e3s4.u1n_1;
|
|
3405
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.i1(key);
|
|
3406
|
+
tmp = new Field(tmp_0, tmp_1, !(tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs));
|
|
3403
3407
|
} else {
|
|
3404
3408
|
if (tmp0_subject instanceof ReferenceObject_0) {
|
|
3405
3409
|
var tmp_2 = new Identifier(key);
|
|
3406
3410
|
var tmp_3 = new Custom(getReference_0(value, $this), false);
|
|
3407
|
-
var
|
|
3408
|
-
var
|
|
3409
|
-
tmp = new Field(tmp_2, tmp_3, !(
|
|
3411
|
+
var tmp4_safe_receiver = _this__u8e3s4.u1n_1;
|
|
3412
|
+
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.i1(key);
|
|
3413
|
+
tmp = new Field(tmp_2, tmp_3, !(tmp5_elvis_lhs == null ? false : tmp5_elvis_lhs));
|
|
3410
3414
|
} else {
|
|
3411
3415
|
noWhenBranchMatchedException();
|
|
3412
3416
|
}
|
|
@@ -3421,7 +3425,7 @@
|
|
|
3421
3425
|
function toField_2(_this__u8e3s4, $this, name) {
|
|
3422
3426
|
var tmp$ret$1;
|
|
3423
3427
|
// Inline function 'kotlin.let' call
|
|
3424
|
-
var s = _this__u8e3s4.
|
|
3428
|
+
var s = _this__u8e3s4.m1l_1;
|
|
3425
3429
|
var tmp;
|
|
3426
3430
|
if (s instanceof ReferenceObject_0) {
|
|
3427
3431
|
tmp = toReference_1(s, $this);
|
|
@@ -3440,26 +3444,26 @@
|
|
|
3440
3444
|
// Inline function 'kotlin.contracts.contract' call
|
|
3441
3445
|
var tmp$ret$0;
|
|
3442
3446
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3443
|
-
var tmp_0 = new Identifier(_this__u8e3s4.
|
|
3444
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
3447
|
+
var tmp_0 = new Identifier(_this__u8e3s4.q1l_1);
|
|
3448
|
+
var tmp0_elvis_lhs = _this__u8e3s4.g1l_1;
|
|
3445
3449
|
tmp$ret$0 = new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
3446
3450
|
tmp$ret$1 = tmp$ret$0;
|
|
3447
3451
|
return tmp$ret$1;
|
|
3448
3452
|
}
|
|
3449
3453
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
3450
|
-
this.
|
|
3451
|
-
this.
|
|
3452
|
-
this.
|
|
3453
|
-
this.
|
|
3454
|
+
this.z1t_1 = path;
|
|
3455
|
+
this.a1u_1 = pathItem;
|
|
3456
|
+
this.b1u_1 = method;
|
|
3457
|
+
this.c1u_1 = operation;
|
|
3454
3458
|
}
|
|
3455
3459
|
protoOf(FlattenRequest_0).toString = function () {
|
|
3456
|
-
return 'FlattenRequest(path=' + new Path_0(this.
|
|
3460
|
+
return 'FlattenRequest(path=' + new Path_0(this.z1t_1) + ', pathItem=' + this.a1u_1 + ', method=' + this.b1u_1 + ', operation=' + this.c1u_1 + ')';
|
|
3457
3461
|
};
|
|
3458
3462
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
3459
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3460
|
-
result = imul(result, 31) + this.y1t_1.hashCode() | 0;
|
|
3461
|
-
result = imul(result, 31) + this.z1t_1.hashCode() | 0;
|
|
3463
|
+
var result = Path__hashCode_impl_go73kd_0(this.z1t_1);
|
|
3462
3464
|
result = imul(result, 31) + this.a1u_1.hashCode() | 0;
|
|
3465
|
+
result = imul(result, 31) + this.b1u_1.hashCode() | 0;
|
|
3466
|
+
result = imul(result, 31) + this.c1u_1.hashCode() | 0;
|
|
3463
3467
|
return result;
|
|
3464
3468
|
};
|
|
3465
3469
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -3468,13 +3472,13 @@
|
|
|
3468
3472
|
if (!(other instanceof FlattenRequest_0))
|
|
3469
3473
|
return false;
|
|
3470
3474
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
3471
|
-
if (!(this.
|
|
3475
|
+
if (!(this.z1t_1 === tmp0_other_with_cast.z1t_1))
|
|
3472
3476
|
return false;
|
|
3473
|
-
if (!this.
|
|
3477
|
+
if (!this.a1u_1.equals(tmp0_other_with_cast.a1u_1))
|
|
3474
3478
|
return false;
|
|
3475
|
-
if (!this.
|
|
3479
|
+
if (!this.b1u_1.equals(tmp0_other_with_cast.b1u_1))
|
|
3476
3480
|
return false;
|
|
3477
|
-
if (!this.
|
|
3481
|
+
if (!this.c1u_1.equals(tmp0_other_with_cast.c1u_1))
|
|
3478
3482
|
return false;
|
|
3479
3483
|
return true;
|
|
3480
3484
|
};
|
|
@@ -3483,7 +3487,7 @@
|
|
|
3483
3487
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3484
3488
|
var tmp$ret$11;
|
|
3485
3489
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3486
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
3490
|
+
var tmp1_flatMap = _this__u8e3s4.p1j_1;
|
|
3487
3491
|
var tmp$ret$10;
|
|
3488
3492
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3489
3493
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -3497,7 +3501,7 @@
|
|
|
3497
3501
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
3498
3502
|
var tmp$ret$1;
|
|
3499
3503
|
// Inline function 'kotlin.collections.component1' call
|
|
3500
|
-
tmp$ret$1 = element.v().
|
|
3504
|
+
tmp$ret$1 = element.v().x1j_1;
|
|
3501
3505
|
var path = tmp$ret$1;
|
|
3502
3506
|
var tmp$ret$2;
|
|
3503
3507
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3554,23 +3558,23 @@
|
|
|
3554
3558
|
return tmp$ret$14;
|
|
3555
3559
|
}
|
|
3556
3560
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
3557
|
-
this.
|
|
3558
|
-
this.
|
|
3559
|
-
this.
|
|
3560
|
-
this.
|
|
3561
|
-
this.
|
|
3562
|
-
this.
|
|
3561
|
+
this.d1u_1 = path;
|
|
3562
|
+
this.e1u_1 = pathItem;
|
|
3563
|
+
this.f1u_1 = method;
|
|
3564
|
+
this.g1u_1 = operation;
|
|
3565
|
+
this.h1u_1 = statusCode;
|
|
3566
|
+
this.i1u_1 = response;
|
|
3563
3567
|
}
|
|
3564
3568
|
protoOf(FlattenResponse_0).toString = function () {
|
|
3565
|
-
return 'FlattenResponse(path=' + new Path_0(this.
|
|
3569
|
+
return 'FlattenResponse(path=' + new Path_0(this.d1u_1) + ', pathItem=' + this.e1u_1 + ', method=' + this.f1u_1 + ', operation=' + this.g1u_1 + ', statusCode=' + new StatusCode_0(this.h1u_1) + ', response=' + this.i1u_1 + ')';
|
|
3566
3570
|
};
|
|
3567
3571
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
3568
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3569
|
-
result = imul(result, 31) + this.c1u_1.hashCode() | 0;
|
|
3570
|
-
result = imul(result, 31) + this.d1u_1.hashCode() | 0;
|
|
3572
|
+
var result = Path__hashCode_impl_go73kd_0(this.d1u_1);
|
|
3571
3573
|
result = imul(result, 31) + this.e1u_1.hashCode() | 0;
|
|
3572
|
-
result = imul(result, 31) +
|
|
3573
|
-
result = imul(result, 31) +
|
|
3574
|
+
result = imul(result, 31) + this.f1u_1.hashCode() | 0;
|
|
3575
|
+
result = imul(result, 31) + this.g1u_1.hashCode() | 0;
|
|
3576
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.h1u_1) | 0;
|
|
3577
|
+
result = imul(result, 31) + hashCode(this.i1u_1) | 0;
|
|
3574
3578
|
return result;
|
|
3575
3579
|
};
|
|
3576
3580
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -3579,17 +3583,17 @@
|
|
|
3579
3583
|
if (!(other instanceof FlattenResponse_0))
|
|
3580
3584
|
return false;
|
|
3581
3585
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
3582
|
-
if (!(this.
|
|
3586
|
+
if (!(this.d1u_1 === tmp0_other_with_cast.d1u_1))
|
|
3583
3587
|
return false;
|
|
3584
|
-
if (!this.
|
|
3588
|
+
if (!this.e1u_1.equals(tmp0_other_with_cast.e1u_1))
|
|
3585
3589
|
return false;
|
|
3586
|
-
if (!this.
|
|
3590
|
+
if (!this.f1u_1.equals(tmp0_other_with_cast.f1u_1))
|
|
3587
3591
|
return false;
|
|
3588
|
-
if (!this.
|
|
3592
|
+
if (!this.g1u_1.equals(tmp0_other_with_cast.g1u_1))
|
|
3589
3593
|
return false;
|
|
3590
|
-
if (!(this.
|
|
3594
|
+
if (!(this.h1u_1 === tmp0_other_with_cast.h1u_1))
|
|
3591
3595
|
return false;
|
|
3592
|
-
if (!equals(this.
|
|
3596
|
+
if (!equals(this.i1u_1, tmp0_other_with_cast.i1u_1))
|
|
3593
3597
|
return false;
|
|
3594
3598
|
return true;
|
|
3595
3599
|
};
|
|
@@ -3598,7 +3602,7 @@
|
|
|
3598
3602
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3599
3603
|
var tmp$ret$18;
|
|
3600
3604
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3601
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
3605
|
+
var tmp1_flatMap = _this__u8e3s4.p1j_1;
|
|
3602
3606
|
var tmp$ret$17;
|
|
3603
3607
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3604
3608
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -3612,7 +3616,7 @@
|
|
|
3612
3616
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
3613
3617
|
var tmp$ret$1;
|
|
3614
3618
|
// Inline function 'kotlin.collections.component1' call
|
|
3615
|
-
tmp$ret$1 = element.v().
|
|
3619
|
+
tmp$ret$1 = element.v().x1j_1;
|
|
3616
3620
|
var path = tmp$ret$1;
|
|
3617
3621
|
var tmp$ret$2;
|
|
3618
3622
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3642,7 +3646,7 @@
|
|
|
3642
3646
|
var operation = tmp$ret$5;
|
|
3643
3647
|
var tmp$ret$12;
|
|
3644
3648
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3645
|
-
var tmp0_safe_receiver = operation.
|
|
3649
|
+
var tmp0_safe_receiver = operation.x1k_1;
|
|
3646
3650
|
var tmp;
|
|
3647
3651
|
if (tmp0_safe_receiver == null) {
|
|
3648
3652
|
tmp = null;
|
|
@@ -3662,7 +3666,7 @@
|
|
|
3662
3666
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
3663
3667
|
var tmp$ret$7;
|
|
3664
3668
|
// Inline function 'kotlin.collections.component1' call
|
|
3665
|
-
tmp$ret$7 = item.v().
|
|
3669
|
+
tmp$ret$7 = item.v().z1n_1;
|
|
3666
3670
|
var statusCode = tmp$ret$7;
|
|
3667
3671
|
var tmp$ret$8;
|
|
3668
3672
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3709,9 +3713,9 @@
|
|
|
3709
3713
|
}
|
|
3710
3714
|
function OpenApiParser$parseParameters$lambda(this$0) {
|
|
3711
3715
|
return function (req) {
|
|
3712
|
-
var parameters = plus(resolveParameters_2(req.
|
|
3713
|
-
var segments = toSegments_0(req.
|
|
3714
|
-
var name = toName_0(req.
|
|
3716
|
+
var parameters = plus(resolveParameters_2(req.a1u_1, this$0), resolveParameters_1(req.c1u_1, this$0));
|
|
3717
|
+
var segments = toSegments_0(req.z1t_1, this$0, parameters);
|
|
3718
|
+
var name = toName_0(req.c1u_1, this$0, segments, req.b1u_1);
|
|
3715
3719
|
var tmp$ret$2;
|
|
3716
3720
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3717
3721
|
var tmp$ret$1;
|
|
@@ -3722,8 +3726,8 @@
|
|
|
3722
3726
|
var element = tmp0_iterator.e();
|
|
3723
3727
|
var tmp$ret$0;
|
|
3724
3728
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
3725
|
-
var tmp0_safe_receiver = element.
|
|
3726
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().
|
|
3729
|
+
var tmp0_safe_receiver = element.m1l_1;
|
|
3730
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().i1t([name, 'Parameter', element.q1l_1]));
|
|
3727
3731
|
tmp$ret$0 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
3728
3732
|
var list = tmp$ret$0;
|
|
3729
3733
|
addAll(tmp0_flatMapTo, list);
|
|
@@ -3735,16 +3739,16 @@
|
|
|
3735
3739
|
}
|
|
3736
3740
|
function OpenApiParser$parseRequestBody$lambda_0(this$0) {
|
|
3737
3741
|
return function (req) {
|
|
3738
|
-
var parameters = plus(resolveParameters_2(req.
|
|
3739
|
-
var segments = toSegments_0(req.
|
|
3740
|
-
var name = toName_0(req.
|
|
3742
|
+
var parameters = plus(resolveParameters_2(req.a1u_1, this$0), resolveParameters_1(req.c1u_1, this$0));
|
|
3743
|
+
var segments = toSegments_0(req.z1t_1, this$0, parameters);
|
|
3744
|
+
var name = toName_0(req.c1u_1, this$0, segments, req.b1u_1);
|
|
3741
3745
|
var tmp$ret$6;
|
|
3742
3746
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3743
3747
|
var tmp$ret$0;
|
|
3744
3748
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3745
|
-
var tmp0_safe_receiver = req.
|
|
3749
|
+
var tmp0_safe_receiver = req.c1u_1.w1k_1;
|
|
3746
3750
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, this$0);
|
|
3747
|
-
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
3751
|
+
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.w1l_1;
|
|
3748
3752
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3749
3753
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3750
3754
|
var tmp2_flatMap = tmp$ret$0;
|
|
@@ -3763,22 +3767,22 @@
|
|
|
3763
3767
|
// Inline function 'kotlin.collections.component2' call
|
|
3764
3768
|
tmp$ret$2 = element.w();
|
|
3765
3769
|
var mediaObject = tmp$ret$2;
|
|
3766
|
-
var schema = mediaObject.
|
|
3770
|
+
var schema = mediaObject.d1m_1;
|
|
3767
3771
|
var tmp;
|
|
3768
3772
|
if (schema instanceof SchemaObject_0) {
|
|
3769
|
-
var tmp0_subject = schema.
|
|
3773
|
+
var tmp0_subject = schema.v1m_1;
|
|
3770
3774
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
3771
3775
|
var tmp_0;
|
|
3772
3776
|
switch (tmp0) {
|
|
3773
3777
|
case -1:
|
|
3774
3778
|
case 5:
|
|
3775
|
-
tmp_0 = flatten_1(schema, this$0, Common_getInstance().
|
|
3779
|
+
tmp_0 = flatten_1(schema, this$0, Common_getInstance().i1t([name, 'RequestBody']));
|
|
3776
3780
|
break;
|
|
3777
3781
|
case 4:
|
|
3778
3782
|
var tmp$ret$3;
|
|
3779
3783
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3780
|
-
var tmp1_safe_receiver_0 = schema.
|
|
3781
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
3784
|
+
var tmp1_safe_receiver_0 = schema.a1n_1;
|
|
3785
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().i1t([name, 'RequestBody']));
|
|
3782
3786
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
3783
3787
|
tmp$ret$3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
3784
3788
|
|
|
@@ -3811,17 +3815,17 @@
|
|
|
3811
3815
|
}
|
|
3812
3816
|
function OpenApiParser$parseResponseBody$lambda_0(this$0) {
|
|
3813
3817
|
return function (res) {
|
|
3814
|
-
var parameters = plus(resolveParameters_2(res.
|
|
3815
|
-
var segments = toSegments_0(res.
|
|
3816
|
-
var name = toName_0(res.
|
|
3817
|
-
var response = res.
|
|
3818
|
+
var parameters = plus(resolveParameters_2(res.e1u_1, this$0), resolveParameters_1(res.g1u_1, this$0));
|
|
3819
|
+
var segments = toSegments_0(res.d1u_1, this$0, parameters);
|
|
3820
|
+
var name = toName_0(res.g1u_1, this$0, segments, res.f1u_1);
|
|
3821
|
+
var response = res.i1u_1;
|
|
3818
3822
|
var tmp;
|
|
3819
3823
|
if (response instanceof ResponseObject_0) {
|
|
3820
3824
|
var tmp$ret$6;
|
|
3821
3825
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3822
3826
|
var tmp$ret$0;
|
|
3823
3827
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3824
|
-
var tmp0_orEmpty = response.
|
|
3828
|
+
var tmp0_orEmpty = response.e1o_1;
|
|
3825
3829
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3826
3830
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3827
3831
|
var tmp2_flatMap = tmp$ret$0;
|
|
@@ -3840,22 +3844,22 @@
|
|
|
3840
3844
|
// Inline function 'kotlin.collections.component2' call
|
|
3841
3845
|
tmp$ret$2 = element.w();
|
|
3842
3846
|
var mediaObject = tmp$ret$2;
|
|
3843
|
-
var schema = mediaObject.
|
|
3847
|
+
var schema = mediaObject.d1m_1;
|
|
3844
3848
|
var tmp_0;
|
|
3845
3849
|
if (schema instanceof SchemaObject_0) {
|
|
3846
|
-
var tmp0_subject = schema.
|
|
3850
|
+
var tmp0_subject = schema.v1m_1;
|
|
3847
3851
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
3848
3852
|
var tmp_1;
|
|
3849
3853
|
switch (tmp0) {
|
|
3850
3854
|
case -1:
|
|
3851
3855
|
case 5:
|
|
3852
|
-
tmp_1 = flatten_1(schema, this$0, Common_getInstance().
|
|
3856
|
+
tmp_1 = flatten_1(schema, this$0, Common_getInstance().i1t([name, _StatusCode___get_value__impl__we50mu_0(res.h1u_1), 'ResponseBody']));
|
|
3853
3857
|
break;
|
|
3854
3858
|
case 4:
|
|
3855
3859
|
var tmp$ret$3;
|
|
3856
3860
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3857
|
-
var tmp1_safe_receiver = schema.
|
|
3858
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().
|
|
3861
|
+
var tmp1_safe_receiver = schema.a1n_1;
|
|
3862
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().i1t([name, _StatusCode___get_value__impl__we50mu_0(res.h1u_1), 'ResponseBody']));
|
|
3859
3863
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
3860
3864
|
tmp$ret$3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
3861
3865
|
|
|
@@ -3890,10 +3894,10 @@
|
|
|
3890
3894
|
var tmp0_subject = it;
|
|
3891
3895
|
var tmp;
|
|
3892
3896
|
if (tmp0_subject instanceof Literal) {
|
|
3893
|
-
tmp = Common_getInstance().
|
|
3897
|
+
tmp = Common_getInstance().i1t([it.sj_1]);
|
|
3894
3898
|
} else {
|
|
3895
3899
|
if (tmp0_subject instanceof Param) {
|
|
3896
|
-
tmp = Common_getInstance().
|
|
3900
|
+
tmp = Common_getInstance().i1t([it.ti_1.ej_1]);
|
|
3897
3901
|
} else {
|
|
3898
3902
|
noWhenBranchMatchedException();
|
|
3899
3903
|
}
|
|
@@ -3902,19 +3906,19 @@
|
|
|
3902
3906
|
}
|
|
3903
3907
|
function OpenApiParser_0(openApi) {
|
|
3904
3908
|
Companion_getInstance_1();
|
|
3905
|
-
this.
|
|
3909
|
+
this.y1t_1 = openApi;
|
|
3906
3910
|
}
|
|
3907
3911
|
function toMap_1(_this__u8e3s4) {
|
|
3908
3912
|
var tmp0_subject = _this__u8e3s4;
|
|
3909
3913
|
var tmp;
|
|
3910
3914
|
if (tmp0_subject instanceof Custom) {
|
|
3911
|
-
tmp = _this__u8e3s4.
|
|
3915
|
+
tmp = _this__u8e3s4.ml(VOID, VOID, true);
|
|
3912
3916
|
} else {
|
|
3913
3917
|
if (tmp0_subject instanceof Any) {
|
|
3914
|
-
tmp = _this__u8e3s4.
|
|
3918
|
+
tmp = _this__u8e3s4.kl(VOID, true);
|
|
3915
3919
|
} else {
|
|
3916
3920
|
if (tmp0_subject instanceof Primitive) {
|
|
3917
|
-
tmp = _this__u8e3s4.
|
|
3921
|
+
tmp = _this__u8e3s4.ol(VOID, VOID, true);
|
|
3918
3922
|
} else {
|
|
3919
3923
|
noWhenBranchMatchedException();
|
|
3920
3924
|
}
|
|
@@ -3958,13 +3962,13 @@
|
|
|
3958
3962
|
var tmp0_subject = _this__u8e3s4;
|
|
3959
3963
|
var tmp;
|
|
3960
3964
|
if (tmp0_subject instanceof Custom) {
|
|
3961
|
-
tmp = _this__u8e3s4.
|
|
3965
|
+
tmp = _this__u8e3s4.ml(VOID, true);
|
|
3962
3966
|
} else {
|
|
3963
3967
|
if (tmp0_subject instanceof Any) {
|
|
3964
|
-
tmp = _this__u8e3s4.
|
|
3968
|
+
tmp = _this__u8e3s4.kl(true);
|
|
3965
3969
|
} else {
|
|
3966
3970
|
if (tmp0_subject instanceof Primitive) {
|
|
3967
|
-
tmp = _this__u8e3s4.
|
|
3971
|
+
tmp = _this__u8e3s4.ol(VOID, true);
|
|
3968
3972
|
} else {
|
|
3969
3973
|
noWhenBranchMatchedException();
|
|
3970
3974
|
}
|