@flock/wirespec 0.7.3 → 0.7.5
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 +292 -292
- package/kotlin/arrow-arrow-core.js +32 -19
- package/kotlin/arrow-arrow-core.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib-js-ir.js +3 -3
- package/kotlin/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin/kotlin-openapi-bindings.js +3214 -3214
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1221 -1221
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +975 -975
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/kotlin/wirespec-cli.js +83 -83
- package/kotlin/wirespec-core.js +946 -911
- package/kotlin/wirespec-core.js.map +1 -1
- package/kotlin/wirespec-lib.js +39 -39
- package/kotlin/wirespec-openapi.js +344 -344
- package/package.json +1 -1
- package/sync-hashes/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.hash +1 -1
- package/sync-hashes/arrow-arrow-core.js.hash +1 -1
- package/sync-hashes/arrow-arrow-core.js.map.hash +1 -1
- package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.hash +1 -1
- package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.map.hash +1 -1
- package/sync-hashes/kotlin-openapi-bindings.js.hash +1 -1
- package/sync-hashes/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
|
@@ -125,12 +125,12 @@
|
|
|
125
125
|
setMetadataFor(OpenApiParser_0, 'OpenApiParser', classMeta);
|
|
126
126
|
//endregion
|
|
127
127
|
function Common$className$lambda(it) {
|
|
128
|
-
return Companion_getInstance().
|
|
128
|
+
return Companion_getInstance().ri(it);
|
|
129
129
|
}
|
|
130
130
|
function Common() {
|
|
131
131
|
Common_instance = this;
|
|
132
132
|
}
|
|
133
|
-
protoOf(Common).
|
|
133
|
+
protoOf(Common).j1t = 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).k1t = 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().q1a(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)).m1t();
|
|
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.l1t_1.a1b_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().l1b_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.v1c_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.v1c_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.v1c_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.l1t_1.y1a_1;
|
|
333
|
+
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.j1c_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.y1c_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().j1t([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.x1c_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.m1c_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().e1f_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.l1t_1.z1a_1;
|
|
417
|
+
var tmp0_orEmpty_0 = tmp0_elvis_lhs_3 == null ? operation.k1c_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).i1f_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().j1t([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.l1t_1, $this, OpenApiParser$parseRequestBody$lambda($this));
|
|
483
483
|
}
|
|
484
484
|
function parseResponseBody($this) {
|
|
485
|
-
return flatMapResponses($this.
|
|
485
|
+
return flatMapResponses($this.l1t_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.l1t_1.b1b_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().a1f_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().j1t([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.l1c_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.a1c_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.l1t_1.c1b_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.u1d_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.l1t_1.d1b_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.u1d_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.l1t_1.b1b_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.u1d_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.a1f_1 == null)) {
|
|
719
|
+
var tmp0_subject = _this__u8e3s4.a1f_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.a1f_1), $this), $this, name);
|
|
725
725
|
}
|
|
726
726
|
tmp = tmp_0;
|
|
727
|
-
} else if (!(_this__u8e3s4.
|
|
727
|
+
} else if (!(_this__u8e3s4.y1e_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.y1e_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.y1e_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.z1e_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().j1t([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.v1e_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.v1e_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.u13();
|
|
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.w1e_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.z1e_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.w1e_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().j1t([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.x1e_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().j1t([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.a1f_1 == null)) {
|
|
962
|
+
var additionalProperties = ensureNotNull(schema.a1f_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.v1e_1 == null)) {
|
|
979
|
+
tmp = new Custom(Common_getInstance().j1t([getReference(referencingObject, $this)]), false, false);
|
|
980
|
+
} else if (isPrimitive(schema.w1e_1)) {
|
|
981
|
+
tmp = new Primitive(toPrimitive(ensureNotNull(schema.w1e_1), $this), false, false);
|
|
982
982
|
} else {
|
|
983
|
-
var tmp0_subject = schema.
|
|
983
|
+
var tmp0_subject = schema.w1e_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.x1e_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().j1t([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().j1t([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.u1d_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().j1t([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.v1e_1 == null)) {
|
|
1016
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.a1f_1 == null));
|
|
1017
1017
|
} else {
|
|
1018
|
-
var type = _this__u8e3s4.
|
|
1018
|
+
var type = _this__u8e3s4.w1e_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.a1f_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.a1f_1;
|
|
1032
1032
|
if (tmp_2 instanceof BooleanObject) {
|
|
1033
|
-
tmp_1 = new Any(false, !(_this__u8e3s4.
|
|
1033
|
+
tmp_1 = new Any(false, !(_this__u8e3s4.a1f_1 == null));
|
|
1034
1034
|
} else {
|
|
1035
|
-
tmp_1 = new Custom(name, false, !(_this__u8e3s4.
|
|
1035
|
+
tmp_1 = new Custom(name, false, !(_this__u8e3s4.a1f_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.x1e_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.r1b_1;
|
|
1091
1091
|
break;
|
|
1092
1092
|
case 1:
|
|
1093
|
-
tmp = _this__u8e3s4.
|
|
1093
|
+
tmp = _this__u8e3s4.t1b_1;
|
|
1094
1094
|
break;
|
|
1095
1095
|
case 2:
|
|
1096
|
-
tmp = _this__u8e3s4.
|
|
1096
|
+
tmp = _this__u8e3s4.s1b_1;
|
|
1097
1097
|
break;
|
|
1098
1098
|
case 3:
|
|
1099
|
-
tmp = _this__u8e3s4.
|
|
1099
|
+
tmp = _this__u8e3s4.u1b_1;
|
|
1100
1100
|
break;
|
|
1101
1101
|
case 4:
|
|
1102
|
-
tmp = _this__u8e3s4.
|
|
1102
|
+
tmp = _this__u8e3s4.v1b_1;
|
|
1103
1103
|
break;
|
|
1104
1104
|
case 5:
|
|
1105
|
-
tmp = _this__u8e3s4.
|
|
1105
|
+
tmp = _this__u8e3s4.w1b_1;
|
|
1106
1106
|
break;
|
|
1107
1107
|
case 6:
|
|
1108
|
-
tmp = _this__u8e3s4.
|
|
1108
|
+
tmp = _this__u8e3s4.x1b_1;
|
|
1109
1109
|
break;
|
|
1110
1110
|
case 7:
|
|
1111
|
-
tmp = _this__u8e3s4.
|
|
1111
|
+
tmp = _this__u8e3s4.y1b_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.u1d_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.z1e_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,17 @@
|
|
|
1178
1178
|
var tmp;
|
|
1179
1179
|
if (tmp0_subject instanceof SchemaObject) {
|
|
1180
1180
|
var tmp_0 = new Identifier(key);
|
|
1181
|
-
var tmp1_subject = value.
|
|
1181
|
+
var tmp1_subject = value.w1e_1;
|
|
1182
1182
|
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.q4_1;
|
|
1183
|
-
var tmp_1 = tmp0 === 4 ? toReference_0(value, $this, Common_getInstance().
|
|
1184
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
1183
|
+
var tmp_1 = tmp0 === 4 ? toReference_0(value, $this, Common_getInstance().j1t([name, key, 'Array'])) : toReference_0(value, $this, Common_getInstance().j1t([name, key]));
|
|
1184
|
+
var tmp2_safe_receiver = _this__u8e3s4.u1e_1;
|
|
1185
1185
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.i1(key);
|
|
1186
1186
|
tmp = new Field(tmp_0, tmp_1, !(tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs));
|
|
1187
1187
|
} else {
|
|
1188
1188
|
if (tmp0_subject instanceof ReferenceObject) {
|
|
1189
1189
|
var tmp_2 = new Identifier(key);
|
|
1190
1190
|
var tmp_3 = toReference(value, $this);
|
|
1191
|
-
var tmp4_safe_receiver = _this__u8e3s4.
|
|
1191
|
+
var tmp4_safe_receiver = _this__u8e3s4.u1e_1;
|
|
1192
1192
|
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.i1(key);
|
|
1193
1193
|
tmp = new Field(tmp_2, tmp_3, !(tmp5_elvis_lhs == null ? false : tmp5_elvis_lhs));
|
|
1194
1194
|
} else {
|
|
@@ -1212,10 +1212,10 @@
|
|
|
1212
1212
|
var tmp$ret$4;
|
|
1213
1213
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1214
1214
|
var tmp;
|
|
1215
|
-
if (!(_this__u8e3s4.
|
|
1216
|
-
tmp = new Custom(Common_getInstance().
|
|
1215
|
+
if (!(_this__u8e3s4.p1d_1 == null)) {
|
|
1216
|
+
tmp = new Custom(Common_getInstance().j1t([name, 'Parameter', tmp0_let.u1c_1]), false);
|
|
1217
1217
|
} else {
|
|
1218
|
-
var type = tmp0_let.
|
|
1218
|
+
var type = tmp0_let.z1c_1;
|
|
1219
1219
|
var tmp0 = type == null ? -1 : type.q4_1;
|
|
1220
1220
|
var tmp_0;
|
|
1221
1221
|
switch (tmp0) {
|
|
@@ -1235,9 +1235,9 @@
|
|
|
1235
1235
|
tmp_0 = tmp$ret$1;
|
|
1236
1236
|
break;
|
|
1237
1237
|
case 4:
|
|
1238
|
-
var tmp0_safe_receiver = tmp0_let.
|
|
1238
|
+
var tmp0_safe_receiver = tmp0_let.a1d_1;
|
|
1239
1239
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve(tmp0_safe_receiver, $this);
|
|
1240
|
-
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.w1e_1;
|
|
1241
1241
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toPrimitive(tmp2_safe_receiver, $this);
|
|
1242
1242
|
var tmp_1;
|
|
1243
1243
|
if (tmp3_safe_receiver == null) {
|
|
@@ -1281,8 +1281,8 @@
|
|
|
1281
1281
|
// Inline function 'kotlin.contracts.contract' call
|
|
1282
1282
|
var tmp$ret$6;
|
|
1283
1283
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1284
|
-
var tmp_3 = new Identifier(_this__u8e3s4.
|
|
1285
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1284
|
+
var tmp_3 = new Identifier(_this__u8e3s4.u1c_1);
|
|
1285
|
+
var tmp0_elvis_lhs = _this__u8e3s4.x1c_1;
|
|
1286
1286
|
tmp$ret$6 = new Field(tmp_3, tmp1_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
1287
1287
|
tmp$ret$7 = tmp$ret$6;
|
|
1288
1288
|
return tmp$ret$7;
|
|
@@ -1335,7 +1335,7 @@
|
|
|
1335
1335
|
var element = tmp0_iterator_0.e();
|
|
1336
1336
|
var tmp$ret$3;
|
|
1337
1337
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1338
|
-
tmp$ret$3 = element.
|
|
1338
|
+
tmp$ret$3 = element.u1c_1 === param;
|
|
1339
1339
|
if (tmp$ret$3) {
|
|
1340
1340
|
tmp$ret$4 = element;
|
|
1341
1341
|
break $l$block;
|
|
@@ -1354,7 +1354,7 @@
|
|
|
1354
1354
|
// Inline function 'kotlin.contracts.contract' call
|
|
1355
1355
|
var tmp$ret$6;
|
|
1356
1356
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1357
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver.
|
|
1357
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver.z1c_1;
|
|
1358
1358
|
tmp$ret$6 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, $this);
|
|
1359
1359
|
tmp$ret$7 = tmp$ret$6;
|
|
1360
1360
|
tmp_2 = tmp$ret$7;
|
|
@@ -1394,7 +1394,7 @@
|
|
|
1394
1394
|
}
|
|
1395
1395
|
function toName(_this__u8e3s4, $this, segments, method) {
|
|
1396
1396
|
var tmp0_safe_receiver = _this__u8e3s4;
|
|
1397
|
-
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.i1c_1;
|
|
1398
1398
|
var tmp;
|
|
1399
1399
|
if (tmp1_safe_receiver == null) {
|
|
1400
1400
|
tmp = null;
|
|
@@ -1404,7 +1404,7 @@
|
|
|
1404
1404
|
// Inline function 'kotlin.contracts.contract' call
|
|
1405
1405
|
var tmp$ret$0;
|
|
1406
1406
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
1407
|
-
tmp$ret$0 = Common_getInstance().
|
|
1407
|
+
tmp$ret$0 = Common_getInstance().j1t([tmp1_safe_receiver]);
|
|
1408
1408
|
tmp$ret$1 = tmp$ret$0;
|
|
1409
1409
|
tmp = tmp$ret$1;
|
|
1410
1410
|
}
|
|
@@ -1426,21 +1426,21 @@
|
|
|
1426
1426
|
return tmp_0;
|
|
1427
1427
|
}
|
|
1428
1428
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
1429
|
-
this.
|
|
1430
|
-
this.
|
|
1431
|
-
this.
|
|
1432
|
-
this.
|
|
1433
|
-
this.
|
|
1429
|
+
this.n1t_1 = path;
|
|
1430
|
+
this.o1t_1 = pathItem;
|
|
1431
|
+
this.p1t_1 = method;
|
|
1432
|
+
this.q1t_1 = operation;
|
|
1433
|
+
this.r1t_1 = type;
|
|
1434
1434
|
}
|
|
1435
1435
|
protoOf(FlattenRequest).toString = function () {
|
|
1436
|
-
return 'FlattenRequest(path=' + new Path(this.
|
|
1436
|
+
return 'FlattenRequest(path=' + new Path(this.n1t_1) + ', pathItem=' + this.o1t_1 + ', method=' + this.p1t_1 + ', operation=' + this.q1t_1 + ', type=' + this.r1t_1 + ')';
|
|
1437
1437
|
};
|
|
1438
1438
|
protoOf(FlattenRequest).hashCode = function () {
|
|
1439
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1440
|
-
result = imul(result, 31) + this.n1t_1.hashCode() | 0;
|
|
1439
|
+
var result = Path__hashCode_impl_go73kd(this.n1t_1);
|
|
1441
1440
|
result = imul(result, 31) + this.o1t_1.hashCode() | 0;
|
|
1442
1441
|
result = imul(result, 31) + this.p1t_1.hashCode() | 0;
|
|
1443
|
-
result = imul(result, 31) +
|
|
1442
|
+
result = imul(result, 31) + this.q1t_1.hashCode() | 0;
|
|
1443
|
+
result = imul(result, 31) + getStringHashCode(this.r1t_1) | 0;
|
|
1444
1444
|
return result;
|
|
1445
1445
|
};
|
|
1446
1446
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -1449,15 +1449,15 @@
|
|
|
1449
1449
|
if (!(other instanceof FlattenRequest))
|
|
1450
1450
|
return false;
|
|
1451
1451
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
1452
|
-
if (!(this.
|
|
1453
|
-
return false;
|
|
1454
|
-
if (!this.n1t_1.equals(tmp0_other_with_cast.n1t_1))
|
|
1452
|
+
if (!(this.n1t_1 === tmp0_other_with_cast.n1t_1))
|
|
1455
1453
|
return false;
|
|
1456
1454
|
if (!this.o1t_1.equals(tmp0_other_with_cast.o1t_1))
|
|
1457
1455
|
return false;
|
|
1458
1456
|
if (!this.p1t_1.equals(tmp0_other_with_cast.p1t_1))
|
|
1459
1457
|
return false;
|
|
1460
|
-
if (!
|
|
1458
|
+
if (!this.q1t_1.equals(tmp0_other_with_cast.q1t_1))
|
|
1459
|
+
return false;
|
|
1460
|
+
if (!(this.r1t_1 === tmp0_other_with_cast.r1t_1))
|
|
1461
1461
|
return false;
|
|
1462
1462
|
return true;
|
|
1463
1463
|
};
|
|
@@ -1466,7 +1466,7 @@
|
|
|
1466
1466
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1467
1467
|
var tmp$ret$15;
|
|
1468
1468
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1469
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
1469
|
+
var tmp1_flatMap = _this__u8e3s4.a1b_1;
|
|
1470
1470
|
var tmp$ret$14;
|
|
1471
1471
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1472
1472
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -1480,7 +1480,7 @@
|
|
|
1480
1480
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
1481
1481
|
var tmp$ret$1;
|
|
1482
1482
|
// Inline function 'kotlin.collections.component1' call
|
|
1483
|
-
tmp$ret$1 = element.v().
|
|
1483
|
+
tmp$ret$1 = element.v().l1b_1;
|
|
1484
1484
|
var path = tmp$ret$1;
|
|
1485
1485
|
var tmp$ret$2;
|
|
1486
1486
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1512,8 +1512,8 @@
|
|
|
1512
1512
|
// Inline function 'kotlin.collections.map' call
|
|
1513
1513
|
var tmp$ret$6;
|
|
1514
1514
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1515
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1516
|
-
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.
|
|
1515
|
+
var tmp0_elvis_lhs = _this__u8e3s4.y1a_1;
|
|
1516
|
+
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.j1c_1 : tmp0_elvis_lhs;
|
|
1517
1517
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
1518
1518
|
tmp$ret$6 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1519
1519
|
var tmp2_map = tmp$ret$6;
|
|
@@ -1560,25 +1560,25 @@
|
|
|
1560
1560
|
return tmp$ret$18;
|
|
1561
1561
|
}
|
|
1562
1562
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
1563
|
-
this.
|
|
1564
|
-
this.
|
|
1565
|
-
this.
|
|
1566
|
-
this.
|
|
1567
|
-
this.
|
|
1568
|
-
this.
|
|
1569
|
-
this.
|
|
1563
|
+
this.s1t_1 = path;
|
|
1564
|
+
this.t1t_1 = pathItem;
|
|
1565
|
+
this.u1t_1 = method;
|
|
1566
|
+
this.v1t_1 = operation;
|
|
1567
|
+
this.w1t_1 = statusCode;
|
|
1568
|
+
this.x1t_1 = response;
|
|
1569
|
+
this.y1t_1 = type;
|
|
1570
1570
|
}
|
|
1571
1571
|
protoOf(FlattenResponse).toString = function () {
|
|
1572
|
-
return 'FlattenResponse(path=' + new Path(this.
|
|
1572
|
+
return 'FlattenResponse(path=' + new Path(this.s1t_1) + ', pathItem=' + this.t1t_1 + ', method=' + this.u1t_1 + ', operation=' + this.v1t_1 + ', statusCode=' + new StatusCode(this.w1t_1) + ', response=' + this.x1t_1 + ', type=' + this.y1t_1 + ')';
|
|
1573
1573
|
};
|
|
1574
1574
|
protoOf(FlattenResponse).hashCode = function () {
|
|
1575
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1576
|
-
result = imul(result, 31) + this.s1t_1.hashCode() | 0;
|
|
1575
|
+
var result = Path__hashCode_impl_go73kd(this.s1t_1);
|
|
1577
1576
|
result = imul(result, 31) + this.t1t_1.hashCode() | 0;
|
|
1578
1577
|
result = imul(result, 31) + this.u1t_1.hashCode() | 0;
|
|
1579
|
-
result = imul(result, 31) +
|
|
1580
|
-
result = imul(result, 31) +
|
|
1581
|
-
result = imul(result, 31) +
|
|
1578
|
+
result = imul(result, 31) + this.v1t_1.hashCode() | 0;
|
|
1579
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.w1t_1) | 0;
|
|
1580
|
+
result = imul(result, 31) + hashCode(this.x1t_1) | 0;
|
|
1581
|
+
result = imul(result, 31) + getStringHashCode(this.y1t_1) | 0;
|
|
1582
1582
|
return result;
|
|
1583
1583
|
};
|
|
1584
1584
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -1587,19 +1587,19 @@
|
|
|
1587
1587
|
if (!(other instanceof FlattenResponse))
|
|
1588
1588
|
return false;
|
|
1589
1589
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
1590
|
-
if (!(this.
|
|
1591
|
-
return false;
|
|
1592
|
-
if (!this.s1t_1.equals(tmp0_other_with_cast.s1t_1))
|
|
1590
|
+
if (!(this.s1t_1 === tmp0_other_with_cast.s1t_1))
|
|
1593
1591
|
return false;
|
|
1594
1592
|
if (!this.t1t_1.equals(tmp0_other_with_cast.t1t_1))
|
|
1595
1593
|
return false;
|
|
1596
1594
|
if (!this.u1t_1.equals(tmp0_other_with_cast.u1t_1))
|
|
1597
1595
|
return false;
|
|
1598
|
-
if (!
|
|
1596
|
+
if (!this.v1t_1.equals(tmp0_other_with_cast.v1t_1))
|
|
1599
1597
|
return false;
|
|
1600
|
-
if (!
|
|
1598
|
+
if (!(this.w1t_1 === tmp0_other_with_cast.w1t_1))
|
|
1601
1599
|
return false;
|
|
1602
|
-
if (!(this.x1t_1
|
|
1600
|
+
if (!equals(this.x1t_1, tmp0_other_with_cast.x1t_1))
|
|
1601
|
+
return false;
|
|
1602
|
+
if (!(this.y1t_1 === tmp0_other_with_cast.y1t_1))
|
|
1603
1603
|
return false;
|
|
1604
1604
|
return true;
|
|
1605
1605
|
};
|
|
@@ -1608,7 +1608,7 @@
|
|
|
1608
1608
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1609
1609
|
var tmp$ret$22;
|
|
1610
1610
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1611
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
1611
|
+
var tmp1_flatMap = _this__u8e3s4.a1b_1;
|
|
1612
1612
|
var tmp$ret$21;
|
|
1613
1613
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1614
1614
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -1622,7 +1622,7 @@
|
|
|
1622
1622
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
1623
1623
|
var tmp$ret$1;
|
|
1624
1624
|
// Inline function 'kotlin.collections.component1' call
|
|
1625
|
-
tmp$ret$1 = element.v().
|
|
1625
|
+
tmp$ret$1 = element.v().l1b_1;
|
|
1626
1626
|
var path = tmp$ret$1;
|
|
1627
1627
|
var tmp$ret$2;
|
|
1628
1628
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1654,7 +1654,7 @@
|
|
|
1654
1654
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1655
1655
|
var tmp$ret$6;
|
|
1656
1656
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1657
|
-
var tmp0_orEmpty = operation.
|
|
1657
|
+
var tmp0_orEmpty = operation.m1c_1;
|
|
1658
1658
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1659
1659
|
tmp$ret$6 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1660
1660
|
var tmp2_flatMap = tmp$ret$6;
|
|
@@ -1671,7 +1671,7 @@
|
|
|
1671
1671
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
1672
1672
|
var tmp$ret$8;
|
|
1673
1673
|
// Inline function 'kotlin.collections.component1' call
|
|
1674
|
-
tmp$ret$8 = element_1.v().
|
|
1674
|
+
tmp$ret$8 = element_1.v().e1f_1;
|
|
1675
1675
|
var statusCode = tmp$ret$8;
|
|
1676
1676
|
var tmp$ret$9;
|
|
1677
1677
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1681,8 +1681,8 @@
|
|
|
1681
1681
|
// Inline function 'kotlin.collections.map' call
|
|
1682
1682
|
var tmp$ret$10;
|
|
1683
1683
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1684
|
-
var tmp0_elvis_lhs_0 = _this__u8e3s4.
|
|
1685
|
-
var tmp0_orEmpty_0 = tmp0_elvis_lhs_0 == null ? operation.
|
|
1684
|
+
var tmp0_elvis_lhs_0 = _this__u8e3s4.z1a_1;
|
|
1685
|
+
var tmp0_orEmpty_0 = tmp0_elvis_lhs_0 == null ? operation.k1c_1 : tmp0_elvis_lhs_0;
|
|
1686
1686
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
1687
1687
|
tmp$ret$10 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
1688
1688
|
var tmp2_map = tmp$ret$10;
|
|
@@ -1736,9 +1736,9 @@
|
|
|
1736
1736
|
}
|
|
1737
1737
|
function OpenApiParser$parseRequestBody$lambda(this$0) {
|
|
1738
1738
|
return function (req) {
|
|
1739
|
-
var parameters = plus(resolveParameters_0(req.
|
|
1740
|
-
var segments = toSegments(req.
|
|
1741
|
-
var name = toName(req.
|
|
1739
|
+
var parameters = plus(resolveParameters_0(req.o1t_1, this$0), resolveParameters(req.q1t_1, this$0));
|
|
1740
|
+
var segments = toSegments(req.n1t_1, this$0, parameters);
|
|
1741
|
+
var name = toName(req.q1t_1, this$0, segments, req.p1t_1);
|
|
1742
1742
|
var tmp$ret$5;
|
|
1743
1743
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1744
1744
|
var tmp$ret$4;
|
|
@@ -1750,11 +1750,11 @@
|
|
|
1750
1750
|
var tmp$ret$3;
|
|
1751
1751
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1752
1752
|
var tmp;
|
|
1753
|
-
if (!(element.
|
|
1754
|
-
var tmp_0 = Common_getInstance().
|
|
1753
|
+
if (!(element.p1d_1 == null)) {
|
|
1754
|
+
var tmp_0 = Common_getInstance().j1t([name, 'Parameter', element.u1c_1]);
|
|
1755
1755
|
var tmp$ret$2;
|
|
1756
1756
|
// Inline function 'kotlin.collections.map' call
|
|
1757
|
-
var tmp1_map = ensureNotNull(element.
|
|
1757
|
+
var tmp1_map = ensureNotNull(element.p1d_1);
|
|
1758
1758
|
var tmp$ret$1;
|
|
1759
1759
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1760
1760
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -1763,7 +1763,7 @@
|
|
|
1763
1763
|
var item = tmp0_iterator_0.e();
|
|
1764
1764
|
var tmp$ret$0;
|
|
1765
1765
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
1766
|
-
tmp$ret$0 = item.
|
|
1766
|
+
tmp$ret$0 = item.u13();
|
|
1767
1767
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1768
1768
|
}
|
|
1769
1769
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -1779,7 +1779,7 @@
|
|
|
1779
1779
|
tmp$ret$4 = tmp0_flatMapTo;
|
|
1780
1780
|
tmp$ret$5 = tmp$ret$4;
|
|
1781
1781
|
var enums = tmp$ret$5;
|
|
1782
|
-
var tmp0_safe_receiver = req.
|
|
1782
|
+
var tmp0_safe_receiver = req.q1t_1.l1c_1;
|
|
1783
1783
|
var tmp_1;
|
|
1784
1784
|
if (tmp0_safe_receiver == null) {
|
|
1785
1785
|
tmp_1 = null;
|
|
@@ -1816,7 +1816,7 @@
|
|
|
1816
1816
|
var element_0 = tmp0_iterator_2.e();
|
|
1817
1817
|
var tmp$ret$9;
|
|
1818
1818
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1819
|
-
tmp$ret$9 = element_0.
|
|
1819
|
+
tmp$ret$9 = element_0.v1c_1.equals(ParameterLocation_BODY_getInstance());
|
|
1820
1820
|
if (tmp$ret$9) {
|
|
1821
1821
|
tmp2_filterTo.a(element_0);
|
|
1822
1822
|
}
|
|
@@ -1840,22 +1840,22 @@
|
|
|
1840
1840
|
var element_1 = tmp0_iterator_3.e();
|
|
1841
1841
|
var tmp$ret$13;
|
|
1842
1842
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1843
|
-
var schema = element_1.
|
|
1843
|
+
var schema = element_1.y1c_1;
|
|
1844
1844
|
var tmp_4;
|
|
1845
1845
|
if (schema instanceof SchemaObject) {
|
|
1846
|
-
var tmp0_subject = schema.
|
|
1846
|
+
var tmp0_subject = schema.w1e_1;
|
|
1847
1847
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
1848
1848
|
var tmp_5;
|
|
1849
1849
|
switch (tmp0) {
|
|
1850
1850
|
case -1:
|
|
1851
1851
|
case 5:
|
|
1852
|
-
tmp_5 = flatten(schema, this$0, Common_getInstance().
|
|
1852
|
+
tmp_5 = flatten(schema, this$0, Common_getInstance().j1t([name, 'RequestBody']));
|
|
1853
1853
|
break;
|
|
1854
1854
|
case 4:
|
|
1855
1855
|
var tmp$ret$12;
|
|
1856
1856
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1857
|
-
var tmp1_safe_receiver_0 = schema.
|
|
1858
|
-
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.x1e_1;
|
|
1858
|
+
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().j1t([name, 'RequestBody']));
|
|
1859
1859
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1860
1860
|
tmp$ret$12 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1861
1861
|
|
|
@@ -1884,26 +1884,26 @@
|
|
|
1884
1884
|
}
|
|
1885
1885
|
function OpenApiParser$parseResponseBody$lambda(this$0) {
|
|
1886
1886
|
return function (res) {
|
|
1887
|
-
var response = resolve_1(res.
|
|
1888
|
-
var parameters = plus(resolveParameters_0(res.
|
|
1889
|
-
var segments = toSegments(res.
|
|
1890
|
-
var name = toName(res.
|
|
1891
|
-
var schema = response.
|
|
1887
|
+
var response = resolve_1(res.x1t_1, this$0);
|
|
1888
|
+
var parameters = plus(resolveParameters_0(res.t1t_1, this$0), resolveParameters(res.v1t_1, this$0));
|
|
1889
|
+
var segments = toSegments(res.s1t_1, this$0, parameters);
|
|
1890
|
+
var name = toName(res.v1t_1, this$0, segments, res.u1t_1);
|
|
1891
|
+
var schema = response.i1f_1;
|
|
1892
1892
|
var tmp;
|
|
1893
1893
|
if (schema instanceof SchemaObject) {
|
|
1894
|
-
var tmp0_subject = schema.
|
|
1894
|
+
var tmp0_subject = schema.w1e_1;
|
|
1895
1895
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
1896
1896
|
var tmp_0;
|
|
1897
1897
|
switch (tmp0) {
|
|
1898
1898
|
case -1:
|
|
1899
1899
|
case 5:
|
|
1900
|
-
tmp_0 = flatten(schema, this$0, Common_getInstance().
|
|
1900
|
+
tmp_0 = flatten(schema, this$0, Common_getInstance().j1t([name, _StatusCode___get_value__impl__we50mu(res.w1t_1), 'ResponseBody']));
|
|
1901
1901
|
break;
|
|
1902
1902
|
case 4:
|
|
1903
1903
|
var tmp$ret$0;
|
|
1904
1904
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1905
|
-
var tmp1_safe_receiver = schema.
|
|
1906
|
-
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : flatten_0(tmp1_safe_receiver, this$0, Common_getInstance().
|
|
1905
|
+
var tmp1_safe_receiver = schema.x1e_1;
|
|
1906
|
+
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : flatten_0(tmp1_safe_receiver, this$0, Common_getInstance().j1t([name, _StatusCode___get_value__impl__we50mu(res.w1t_1), 'ResponseBody']));
|
|
1907
1907
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1908
1908
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1909
1909
|
|
|
@@ -1924,10 +1924,10 @@
|
|
|
1924
1924
|
var tmp0_subject = it;
|
|
1925
1925
|
var tmp;
|
|
1926
1926
|
if (tmp0_subject instanceof Literal) {
|
|
1927
|
-
tmp = Common_getInstance().
|
|
1927
|
+
tmp = Common_getInstance().j1t([it.tj_1]);
|
|
1928
1928
|
} else {
|
|
1929
1929
|
if (tmp0_subject instanceof Param) {
|
|
1930
|
-
tmp = Common_getInstance().
|
|
1930
|
+
tmp = Common_getInstance().j1t([it.ui_1.fj_1]);
|
|
1931
1931
|
} else {
|
|
1932
1932
|
noWhenBranchMatchedException();
|
|
1933
1933
|
}
|
|
@@ -1936,22 +1936,22 @@
|
|
|
1936
1936
|
}
|
|
1937
1937
|
function OpenApiParser(openApi) {
|
|
1938
1938
|
Companion_getInstance_0();
|
|
1939
|
-
this.
|
|
1939
|
+
this.l1t_1 = openApi;
|
|
1940
1940
|
}
|
|
1941
|
-
protoOf(OpenApiParser).
|
|
1941
|
+
protoOf(OpenApiParser).m1t = function () {
|
|
1942
1942
|
return plus(plus(plus(parseEndpoints(this), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
|
|
1943
1943
|
};
|
|
1944
1944
|
function toMap_0(_this__u8e3s4) {
|
|
1945
1945
|
var tmp0_subject = _this__u8e3s4;
|
|
1946
1946
|
var tmp;
|
|
1947
1947
|
if (tmp0_subject instanceof Custom) {
|
|
1948
|
-
tmp = _this__u8e3s4.
|
|
1948
|
+
tmp = _this__u8e3s4.nl(VOID, VOID, true);
|
|
1949
1949
|
} else {
|
|
1950
1950
|
if (tmp0_subject instanceof Any) {
|
|
1951
|
-
tmp = _this__u8e3s4.
|
|
1951
|
+
tmp = _this__u8e3s4.ll(VOID, true);
|
|
1952
1952
|
} else {
|
|
1953
1953
|
if (tmp0_subject instanceof Primitive) {
|
|
1954
|
-
tmp = _this__u8e3s4.
|
|
1954
|
+
tmp = _this__u8e3s4.pl(VOID, VOID, true);
|
|
1955
1955
|
} else {
|
|
1956
1956
|
noWhenBranchMatchedException();
|
|
1957
1957
|
}
|
|
@@ -1998,13 +1998,13 @@
|
|
|
1998
1998
|
var tmp0_subject = _this__u8e3s4;
|
|
1999
1999
|
var tmp;
|
|
2000
2000
|
if (tmp0_subject instanceof Custom) {
|
|
2001
|
-
tmp = _this__u8e3s4.
|
|
2001
|
+
tmp = _this__u8e3s4.nl(VOID, true);
|
|
2002
2002
|
} else {
|
|
2003
2003
|
if (tmp0_subject instanceof Any) {
|
|
2004
|
-
tmp = _this__u8e3s4.
|
|
2004
|
+
tmp = _this__u8e3s4.ll(true);
|
|
2005
2005
|
} else {
|
|
2006
2006
|
if (tmp0_subject instanceof Primitive) {
|
|
2007
|
-
tmp = _this__u8e3s4.
|
|
2007
|
+
tmp = _this__u8e3s4.pl(VOID, true);
|
|
2008
2008
|
} else {
|
|
2009
2009
|
noWhenBranchMatchedException();
|
|
2010
2010
|
}
|
|
@@ -2069,10 +2069,10 @@
|
|
|
2069
2069
|
function Companion_0() {
|
|
2070
2070
|
Companion_instance_0 = this;
|
|
2071
2071
|
}
|
|
2072
|
-
protoOf(Companion_0).
|
|
2072
|
+
protoOf(Companion_0).k1t = function (json) {
|
|
2073
2073
|
var tmp$ret$1;
|
|
2074
2074
|
// Inline function 'kotlin.let' call
|
|
2075
|
-
var tmp0_let = Default_getInstance_0().
|
|
2075
|
+
var tmp0_let = Default_getInstance_0().q1a(json);
|
|
2076
2076
|
// Inline function 'kotlin.contracts.contract' call
|
|
2077
2077
|
var tmp$ret$0;
|
|
2078
2078
|
// Inline function 'community.flock.wirespec.openapi.v3.Companion.parse.<anonymous>' call
|
|
@@ -2092,7 +2092,7 @@
|
|
|
2092
2092
|
function parseEndpoint($this) {
|
|
2093
2093
|
var tmp$ret$50;
|
|
2094
2094
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2095
|
-
var tmp1_flatMap = $this.
|
|
2095
|
+
var tmp1_flatMap = $this.z1t_1.q1j_1;
|
|
2096
2096
|
var tmp$ret$49;
|
|
2097
2097
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2098
2098
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -2106,7 +2106,7 @@
|
|
|
2106
2106
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>' call
|
|
2107
2107
|
var tmp$ret$1;
|
|
2108
2108
|
// Inline function 'kotlin.collections.component1' call
|
|
2109
|
-
tmp$ret$1 = element.v().
|
|
2109
|
+
tmp$ret$1 = element.v().y1j_1;
|
|
2110
2110
|
var key = tmp$ret$1;
|
|
2111
2111
|
var tmp$ret$2;
|
|
2112
2112
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -2149,7 +2149,7 @@
|
|
|
2149
2149
|
var element_0 = tmp0_iterator_1.e();
|
|
2150
2150
|
var tmp$ret$6;
|
|
2151
2151
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2152
|
-
tmp$ret$6 = element_0.
|
|
2152
|
+
tmp$ret$6 = element_0.s1l_1.equals(ParameterLocation_QUERY_getInstance_0());
|
|
2153
2153
|
if (tmp$ret$6) {
|
|
2154
2154
|
tmp0_filterTo.a(element_0);
|
|
2155
2155
|
}
|
|
@@ -2165,7 +2165,7 @@
|
|
|
2165
2165
|
var item_0 = tmp0_iterator_2.e();
|
|
2166
2166
|
var tmp$ret$9;
|
|
2167
2167
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2168
|
-
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().
|
|
2168
|
+
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().j1t([name, 'Parameter', item_0.r1l_1]));
|
|
2169
2169
|
tmp1_mapTo.a(tmp$ret$9);
|
|
2170
2170
|
}
|
|
2171
2171
|
tmp$ret$10 = tmp1_mapTo;
|
|
@@ -2183,7 +2183,7 @@
|
|
|
2183
2183
|
var element_1 = tmp0_iterator_3.e();
|
|
2184
2184
|
var tmp$ret$12;
|
|
2185
2185
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2186
|
-
tmp$ret$12 = element_1.
|
|
2186
|
+
tmp$ret$12 = element_1.s1l_1.equals(ParameterLocation_HEADER_getInstance_0());
|
|
2187
2187
|
if (tmp$ret$12) {
|
|
2188
2188
|
tmp3_filterTo.a(element_1);
|
|
2189
2189
|
}
|
|
@@ -2199,7 +2199,7 @@
|
|
|
2199
2199
|
var item_1 = tmp0_iterator_4.e();
|
|
2200
2200
|
var tmp$ret$15;
|
|
2201
2201
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2202
|
-
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().
|
|
2202
|
+
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().j1t([name, 'Parameter', item_1.r1l_1]));
|
|
2203
2203
|
tmp4_mapTo.a(tmp$ret$15);
|
|
2204
2204
|
}
|
|
2205
2205
|
tmp$ret$16 = tmp4_mapTo;
|
|
@@ -2217,7 +2217,7 @@
|
|
|
2217
2217
|
var element_2 = tmp0_iterator_5.e();
|
|
2218
2218
|
var tmp$ret$18;
|
|
2219
2219
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2220
|
-
tmp$ret$18 = element_2.
|
|
2220
|
+
tmp$ret$18 = element_2.s1l_1.equals(ParameterLocation_COOKIE_getInstance());
|
|
2221
2221
|
if (tmp$ret$18) {
|
|
2222
2222
|
tmp6_filterTo.a(element_2);
|
|
2223
2223
|
}
|
|
@@ -2233,13 +2233,13 @@
|
|
|
2233
2233
|
var item_2 = tmp0_iterator_6.e();
|
|
2234
2234
|
var tmp$ret$21;
|
|
2235
2235
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2236
|
-
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().
|
|
2236
|
+
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().j1t([name, 'Parameter', item_2.r1l_1]));
|
|
2237
2237
|
tmp7_mapTo.a(tmp$ret$21);
|
|
2238
2238
|
}
|
|
2239
2239
|
tmp$ret$22 = tmp7_mapTo;
|
|
2240
2240
|
tmp$ret$23 = tmp$ret$22;
|
|
2241
2241
|
var cookies = tmp$ret$23;
|
|
2242
|
-
var tmp0_safe_receiver = operation.
|
|
2242
|
+
var tmp0_safe_receiver = operation.x1k_1;
|
|
2243
2243
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, $this);
|
|
2244
2244
|
var tmp;
|
|
2245
2245
|
if (tmp1_safe_receiver == null) {
|
|
@@ -2250,7 +2250,7 @@
|
|
|
2250
2250
|
// Inline function 'kotlin.contracts.contract' call
|
|
2251
2251
|
var tmp$ret$30;
|
|
2252
2252
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2253
|
-
var tmp0_safe_receiver_0 = tmp1_safe_receiver.
|
|
2253
|
+
var tmp0_safe_receiver_0 = tmp1_safe_receiver.x1l_1;
|
|
2254
2254
|
var tmp_0;
|
|
2255
2255
|
if (tmp0_safe_receiver_0 == null) {
|
|
2256
2256
|
tmp_0 = null;
|
|
@@ -2270,20 +2270,20 @@
|
|
|
2270
2270
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2271
2271
|
var tmp$ret$25;
|
|
2272
2272
|
// Inline function 'kotlin.collections.component1' call
|
|
2273
|
-
tmp$ret$25 = item_3.v().
|
|
2273
|
+
tmp$ret$25 = item_3.v().b1m_1;
|
|
2274
2274
|
var mediaType = tmp$ret$25;
|
|
2275
2275
|
var tmp$ret$26;
|
|
2276
2276
|
// Inline function 'kotlin.collections.component2' call
|
|
2277
2277
|
tmp$ret$26 = item_3.w();
|
|
2278
2278
|
var mediaObject = tmp$ret$26;
|
|
2279
2279
|
var tmp_1 = _MediaType___get_value__impl__wy58mp(mediaType);
|
|
2280
|
-
var schema = mediaObject.
|
|
2280
|
+
var schema = mediaObject.e1m_1;
|
|
2281
2281
|
var tmp_2;
|
|
2282
2282
|
if (schema instanceof ReferenceObject_0) {
|
|
2283
2283
|
tmp_2 = toReference_1(schema, $this);
|
|
2284
2284
|
} else {
|
|
2285
2285
|
if (schema instanceof SchemaObject_0) {
|
|
2286
|
-
tmp_2 = toReference_2(schema, $this, Common_getInstance().
|
|
2286
|
+
tmp_2 = toReference_2(schema, $this, Common_getInstance().j1t([name, 'RequestBody']));
|
|
2287
2287
|
} else {
|
|
2288
2288
|
if (schema == null) {
|
|
2289
2289
|
throw new NotImplementedError();
|
|
@@ -2293,7 +2293,7 @@
|
|
|
2293
2293
|
}
|
|
2294
2294
|
}
|
|
2295
2295
|
var tmp_3 = tmp_2;
|
|
2296
|
-
var tmp0_elvis_lhs = tmp1_safe_receiver.
|
|
2296
|
+
var tmp0_elvis_lhs = tmp1_safe_receiver.y1l_1;
|
|
2297
2297
|
tmp$ret$27 = new Request(new Content(tmp_1, tmp_3, tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
2298
2298
|
tmp0_mapTo_0.a(tmp$ret$27);
|
|
2299
2299
|
}
|
|
@@ -2311,7 +2311,7 @@
|
|
|
2311
2311
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2312
2312
|
var tmp$ret$32;
|
|
2313
2313
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2314
|
-
var tmp9_orEmpty = operation.
|
|
2314
|
+
var tmp9_orEmpty = operation.y1k_1;
|
|
2315
2315
|
var tmp0_elvis_lhs_0 = tmp9_orEmpty;
|
|
2316
2316
|
tmp$ret$32 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2317
2317
|
var tmp11_flatMap = tmp$ret$32;
|
|
@@ -2328,13 +2328,13 @@
|
|
|
2328
2328
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2329
2329
|
var tmp$ret$34;
|
|
2330
2330
|
// Inline function 'kotlin.collections.component1' call
|
|
2331
|
-
tmp$ret$34 = element_3.v().
|
|
2331
|
+
tmp$ret$34 = element_3.v().a1o_1;
|
|
2332
2332
|
var status = tmp$ret$34;
|
|
2333
2333
|
var tmp$ret$35;
|
|
2334
2334
|
// Inline function 'kotlin.collections.component2' call
|
|
2335
2335
|
tmp$ret$35 = element_3.w();
|
|
2336
2336
|
var res = tmp$ret$35;
|
|
2337
|
-
var tmp0_safe_receiver_1 = resolve_6(res, $this).
|
|
2337
|
+
var tmp0_safe_receiver_1 = resolve_6(res, $this).f1o_1;
|
|
2338
2338
|
var tmp_4;
|
|
2339
2339
|
if (tmp0_safe_receiver_1 == null) {
|
|
2340
2340
|
tmp_4 = null;
|
|
@@ -2354,7 +2354,7 @@
|
|
|
2354
2354
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2355
2355
|
var tmp$ret$37;
|
|
2356
2356
|
// Inline function 'kotlin.collections.component1' call
|
|
2357
|
-
tmp$ret$37 = item_4.v().
|
|
2357
|
+
tmp$ret$37 = item_4.v().b1m_1;
|
|
2358
2358
|
var contentType = tmp$ret$37;
|
|
2359
2359
|
var tmp$ret$38;
|
|
2360
2360
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -2362,13 +2362,13 @@
|
|
|
2362
2362
|
var media = tmp$ret$38;
|
|
2363
2363
|
var tmp_5 = _StatusCode___get_value__impl__we50mu_0(status);
|
|
2364
2364
|
var tmp_6 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
2365
|
-
var schema_0 = media.
|
|
2365
|
+
var schema_0 = media.e1m_1;
|
|
2366
2366
|
var tmp_7;
|
|
2367
2367
|
if (schema_0 instanceof ReferenceObject_0) {
|
|
2368
2368
|
tmp_7 = toReference_1(schema_0, $this);
|
|
2369
2369
|
} else {
|
|
2370
2370
|
if (schema_0 instanceof SchemaObject_0) {
|
|
2371
|
-
tmp_7 = toReference_2(schema_0, $this, Common_getInstance().
|
|
2371
|
+
tmp_7 = toReference_2(schema_0, $this, Common_getInstance().j1t([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
2372
2372
|
} else {
|
|
2373
2373
|
if (schema_0 == null) {
|
|
2374
2374
|
throw new NotImplementedError();
|
|
@@ -2378,9 +2378,9 @@
|
|
|
2378
2378
|
}
|
|
2379
2379
|
}
|
|
2380
2380
|
var tmp_8 = tmp_7;
|
|
2381
|
-
var tmp0_safe_receiver_2 = media.
|
|
2381
|
+
var tmp0_safe_receiver_2 = media.e1m_1;
|
|
2382
2382
|
var tmp1_safe_receiver_0 = tmp0_safe_receiver_2 == null ? null : resolve_3(tmp0_safe_receiver_2, $this);
|
|
2383
|
-
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.n1m_1;
|
|
2384
2384
|
tmp$ret$39 = new Response(tmp_5, new Content(tmp_6, tmp_8, tmp2_elvis_lhs_0 == null ? false : tmp2_elvis_lhs_0));
|
|
2385
2385
|
tmp0_mapTo_1.a(tmp$ret$39);
|
|
2386
2386
|
}
|
|
@@ -2410,13 +2410,13 @@
|
|
|
2410
2410
|
return tmp$ret$50;
|
|
2411
2411
|
}
|
|
2412
2412
|
function parseParameters($this) {
|
|
2413
|
-
return flatMapRequests_0($this.
|
|
2413
|
+
return flatMapRequests_0($this.z1t_1, $this, OpenApiParser$parseParameters$lambda($this));
|
|
2414
2414
|
}
|
|
2415
2415
|
function parseRequestBody_0($this) {
|
|
2416
|
-
return flatMapRequests_0($this.
|
|
2416
|
+
return flatMapRequests_0($this.z1t_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
|
|
2417
2417
|
}
|
|
2418
2418
|
function parseResponseBody_0($this) {
|
|
2419
|
-
return flatMapResponses_0($this.
|
|
2419
|
+
return flatMapResponses_0($this.z1t_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
|
|
2420
2420
|
}
|
|
2421
2421
|
function parseComponents($this) {
|
|
2422
2422
|
var tmp$ret$8;
|
|
@@ -2425,8 +2425,8 @@
|
|
|
2425
2425
|
// Inline function 'kotlin.collections.filter' call
|
|
2426
2426
|
var tmp$ret$0;
|
|
2427
2427
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2428
|
-
var tmp0_safe_receiver = $this.
|
|
2429
|
-
var tmp0_orEmpty = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2428
|
+
var tmp0_safe_receiver = $this.z1t_1.r1j_1;
|
|
2429
|
+
var tmp0_orEmpty = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k1o_1;
|
|
2430
2430
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
2431
2431
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2432
2432
|
var tmp2_filter = tmp$ret$0;
|
|
@@ -2444,7 +2444,7 @@
|
|
|
2444
2444
|
var s = element.w();
|
|
2445
2445
|
var tmp;
|
|
2446
2446
|
if (s instanceof SchemaObject_0) {
|
|
2447
|
-
tmp = s.
|
|
2447
|
+
tmp = s.d1n_1 == null;
|
|
2448
2448
|
} else {
|
|
2449
2449
|
tmp = false;
|
|
2450
2450
|
}
|
|
@@ -2467,7 +2467,7 @@
|
|
|
2467
2467
|
var element_0 = tmp0_iterator_0.e();
|
|
2468
2468
|
var tmp$ret$6;
|
|
2469
2469
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2470
|
-
tmp$ret$6 = flatten_2(element_0.w(), $this, Common_getInstance().
|
|
2470
|
+
tmp$ret$6 = flatten_2(element_0.w(), $this, Common_getInstance().j1t([element_0.v()]));
|
|
2471
2471
|
var list = tmp$ret$6;
|
|
2472
2472
|
addAll(tmp3_flatMapTo, list);
|
|
2473
2473
|
}
|
|
@@ -2508,7 +2508,7 @@
|
|
|
2508
2508
|
var element = tmp0_iterator_0.e();
|
|
2509
2509
|
var tmp$ret$2;
|
|
2510
2510
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2511
|
-
tmp$ret$2 = element.
|
|
2511
|
+
tmp$ret$2 = element.r1l_1 === param;
|
|
2512
2512
|
if (tmp$ret$2) {
|
|
2513
2513
|
tmp$ret$3 = element;
|
|
2514
2514
|
break $l$block;
|
|
@@ -2518,7 +2518,7 @@
|
|
|
2518
2518
|
}
|
|
2519
2519
|
tmp$ret$4 = tmp$ret$3;
|
|
2520
2520
|
var tmp0_safe_receiver = tmp$ret$4;
|
|
2521
|
-
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.n1l_1;
|
|
2522
2522
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_3(tmp1_safe_receiver, $this);
|
|
2523
2523
|
var tmp_0;
|
|
2524
2524
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2529,7 +2529,7 @@
|
|
|
2529
2529
|
// Inline function 'kotlin.contracts.contract' call
|
|
2530
2530
|
var tmp$ret$5;
|
|
2531
2531
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2532
|
-
var tmp0_safe_receiver_0 = tmp2_safe_receiver.
|
|
2532
|
+
var tmp0_safe_receiver_0 = tmp2_safe_receiver.w1m_1;
|
|
2533
2533
|
tmp$ret$5 = tmp0_safe_receiver_0 == null ? null : toPrimitive_0(tmp0_safe_receiver_0, $this);
|
|
2534
2534
|
tmp$ret$6 = tmp$ret$5;
|
|
2535
2535
|
tmp_0 = tmp$ret$6;
|
|
@@ -2568,7 +2568,7 @@
|
|
|
2568
2568
|
return tmp$ret$11;
|
|
2569
2569
|
}
|
|
2570
2570
|
function toName_0(_this__u8e3s4, $this, segments, method) {
|
|
2571
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2571
|
+
var tmp0_safe_receiver = _this__u8e3s4.v1k_1;
|
|
2572
2572
|
var tmp;
|
|
2573
2573
|
if (tmp0_safe_receiver == null) {
|
|
2574
2574
|
tmp = null;
|
|
@@ -2578,7 +2578,7 @@
|
|
|
2578
2578
|
// Inline function 'kotlin.contracts.contract' call
|
|
2579
2579
|
var tmp$ret$0;
|
|
2580
2580
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
2581
|
-
tmp$ret$0 = Common_getInstance().
|
|
2581
|
+
tmp$ret$0 = Common_getInstance().j1t([tmp0_safe_receiver]);
|
|
2582
2582
|
tmp$ret$1 = tmp$ret$0;
|
|
2583
2583
|
tmp = tmp$ret$1;
|
|
2584
2584
|
}
|
|
@@ -2600,7 +2600,7 @@
|
|
|
2600
2600
|
return tmp_0;
|
|
2601
2601
|
}
|
|
2602
2602
|
function resolveParameters_1(_this__u8e3s4, $this) {
|
|
2603
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2603
|
+
var tmp0_safe_receiver = _this__u8e3s4.w1k_1;
|
|
2604
2604
|
var tmp;
|
|
2605
2605
|
if (tmp0_safe_receiver == null) {
|
|
2606
2606
|
tmp = null;
|
|
@@ -2648,7 +2648,7 @@
|
|
|
2648
2648
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2649
2649
|
}
|
|
2650
2650
|
function resolveParameters_2(_this__u8e3s4, $this) {
|
|
2651
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2651
|
+
var tmp0_safe_receiver = _this__u8e3s4.n1k_1;
|
|
2652
2652
|
var tmp;
|
|
2653
2653
|
if (tmp0_safe_receiver == null) {
|
|
2654
2654
|
tmp = null;
|
|
@@ -2696,8 +2696,8 @@
|
|
|
2696
2696
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2697
2697
|
}
|
|
2698
2698
|
function resolveParameterObject_0(_this__u8e3s4, $this) {
|
|
2699
|
-
var tmp0_safe_receiver = $this.
|
|
2700
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2699
|
+
var tmp0_safe_receiver = $this.z1t_1.r1j_1;
|
|
2700
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m1o_1;
|
|
2701
2701
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2702
2702
|
var tmp;
|
|
2703
2703
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2726,8 +2726,8 @@
|
|
|
2726
2726
|
return tmp;
|
|
2727
2727
|
}
|
|
2728
2728
|
function resolveSchemaObject_0(_this__u8e3s4, $this) {
|
|
2729
|
-
var tmp0_safe_receiver = $this.
|
|
2730
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2729
|
+
var tmp0_safe_receiver = $this.z1t_1.r1j_1;
|
|
2730
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k1o_1;
|
|
2731
2731
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2732
2732
|
var tmp;
|
|
2733
2733
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2756,7 +2756,7 @@
|
|
|
2756
2756
|
var tmp3_elvis_lhs = tmp;
|
|
2757
2757
|
var tmp_1;
|
|
2758
2758
|
if (tmp3_elvis_lhs == null) {
|
|
2759
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2759
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.k1m_1);
|
|
2760
2760
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2761
2761
|
} else {
|
|
2762
2762
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2764,8 +2764,8 @@
|
|
|
2764
2764
|
return tmp_1;
|
|
2765
2765
|
}
|
|
2766
2766
|
function resolveRequestBodyObject(_this__u8e3s4, $this) {
|
|
2767
|
-
var tmp0_safe_receiver = $this.
|
|
2768
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2767
|
+
var tmp0_safe_receiver = $this.z1t_1.r1j_1;
|
|
2768
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o1o_1;
|
|
2769
2769
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2770
2770
|
var tmp;
|
|
2771
2771
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2794,7 +2794,7 @@
|
|
|
2794
2794
|
var tmp3_elvis_lhs = tmp;
|
|
2795
2795
|
var tmp_1;
|
|
2796
2796
|
if (tmp3_elvis_lhs == null) {
|
|
2797
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2797
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.k1m_1);
|
|
2798
2798
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2799
2799
|
} else {
|
|
2800
2800
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2802,8 +2802,8 @@
|
|
|
2802
2802
|
return tmp_1;
|
|
2803
2803
|
}
|
|
2804
2804
|
function resolveResponseObject_0(_this__u8e3s4, $this) {
|
|
2805
|
-
var tmp0_safe_receiver = $this.
|
|
2806
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2805
|
+
var tmp0_safe_receiver = $this.z1t_1.r1j_1;
|
|
2806
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l1o_1;
|
|
2807
2807
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2808
2808
|
var tmp;
|
|
2809
2809
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2832,7 +2832,7 @@
|
|
|
2832
2832
|
var tmp3_elvis_lhs = tmp;
|
|
2833
2833
|
var tmp_1;
|
|
2834
2834
|
if (tmp3_elvis_lhs == null) {
|
|
2835
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2835
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.k1m_1);
|
|
2836
2836
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2837
2837
|
} else {
|
|
2838
2838
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2901,25 +2901,25 @@
|
|
|
2901
2901
|
}
|
|
2902
2902
|
function flatten_1(_this__u8e3s4, $this, name) {
|
|
2903
2903
|
var tmp;
|
|
2904
|
-
if (!(_this__u8e3s4.
|
|
2905
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2904
|
+
if (!(_this__u8e3s4.d1n_1 == null)) {
|
|
2905
|
+
var tmp0_subject = _this__u8e3s4.d1n_1;
|
|
2906
2906
|
var tmp_0;
|
|
2907
2907
|
if (tmp0_subject instanceof BooleanObject_0) {
|
|
2908
2908
|
tmp_0 = emptyList();
|
|
2909
2909
|
} else {
|
|
2910
|
-
tmp_0 = flatten_1(resolve_4(ensureNotNull(_this__u8e3s4.
|
|
2910
|
+
tmp_0 = flatten_1(resolve_4(ensureNotNull(_this__u8e3s4.d1n_1), $this), $this, name);
|
|
2911
2911
|
}
|
|
2912
2912
|
tmp = tmp_0;
|
|
2913
|
-
} else if (!(_this__u8e3s4.x1m_1 == null)) {
|
|
2914
|
-
throw new NotImplementedError('An operation is not implemented: oneOf is not implemented');
|
|
2915
2913
|
} else if (!(_this__u8e3s4.y1m_1 == null)) {
|
|
2914
|
+
throw new NotImplementedError('An operation is not implemented: oneOf is not implemented');
|
|
2915
|
+
} else if (!(_this__u8e3s4.z1m_1 == null)) {
|
|
2916
2916
|
throw new NotImplementedError('An operation is not implemented: anyOf is not implemented');
|
|
2917
|
-
} else if (!(_this__u8e3s4.
|
|
2917
|
+
} else if (!(_this__u8e3s4.x1m_1 == null)) {
|
|
2918
2918
|
var tmp$ret$3;
|
|
2919
2919
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2920
2920
|
var tmp$ret$0;
|
|
2921
2921
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2922
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
2922
|
+
var tmp0_orEmpty = _this__u8e3s4.x1m_1;
|
|
2923
2923
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
2924
2924
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2925
2925
|
var tmp2_flatMap = tmp$ret$0;
|
|
@@ -2940,7 +2940,7 @@
|
|
|
2940
2940
|
var tmp_1 = listOf(new Type(name, new Shape(tmp$ret$3)));
|
|
2941
2941
|
var tmp$ret$13;
|
|
2942
2942
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2943
|
-
var tmp4_flatMap = ensureNotNull(_this__u8e3s4.
|
|
2943
|
+
var tmp4_flatMap = ensureNotNull(_this__u8e3s4.x1m_1);
|
|
2944
2944
|
var tmp$ret$12;
|
|
2945
2945
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2946
2946
|
var tmp3_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -2959,7 +2959,7 @@
|
|
|
2959
2959
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2960
2960
|
var tmp$ret$4;
|
|
2961
2961
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2962
|
-
var tmp0_orEmpty_0 = element_0.
|
|
2962
|
+
var tmp0_orEmpty_0 = element_0.c1n_1;
|
|
2963
2963
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
2964
2964
|
tmp$ret$4 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2965
2965
|
var tmp2_flatMap_0 = tmp$ret$4;
|
|
@@ -2988,7 +2988,7 @@
|
|
|
2988
2988
|
tmp_3 = emptyList();
|
|
2989
2989
|
} else {
|
|
2990
2990
|
if (tmp0_subject_1 instanceof SchemaObject_0) {
|
|
2991
|
-
tmp_3 = flatten_1(value, $this, Common_getInstance().
|
|
2991
|
+
tmp_3 = flatten_1(value, $this, Common_getInstance().j1t([name, key]));
|
|
2992
2992
|
} else {
|
|
2993
2993
|
noWhenBranchMatchedException();
|
|
2994
2994
|
}
|
|
@@ -3011,12 +3011,12 @@
|
|
|
3011
3011
|
tmp$ret$12 = tmp3_flatMapTo;
|
|
3012
3012
|
tmp$ret$13 = tmp$ret$12;
|
|
3013
3013
|
tmp = plus(tmp_1, tmp$ret$13);
|
|
3014
|
-
} else if (!(_this__u8e3s4.
|
|
3014
|
+
} else if (!(_this__u8e3s4.w1n_1 == null)) {
|
|
3015
3015
|
var tmp$ret$18;
|
|
3016
3016
|
// Inline function 'kotlin.let' call
|
|
3017
3017
|
var tmp$ret$16;
|
|
3018
3018
|
// Inline function 'kotlin.collections.map' call
|
|
3019
|
-
var tmp6_map = ensureNotNull(_this__u8e3s4.
|
|
3019
|
+
var tmp6_map = ensureNotNull(_this__u8e3s4.w1n_1);
|
|
3020
3020
|
var tmp$ret$15;
|
|
3021
3021
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3022
3022
|
var tmp5_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp6_map, 10));
|
|
@@ -3025,7 +3025,7 @@
|
|
|
3025
3025
|
var item = tmp0_iterator_2.e();
|
|
3026
3026
|
var tmp$ret$14;
|
|
3027
3027
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
3028
|
-
tmp$ret$14 = item.
|
|
3028
|
+
tmp$ret$14 = item.u13();
|
|
3029
3029
|
tmp5_mapTo.a(tmp$ret$14);
|
|
3030
3030
|
}
|
|
3031
3031
|
tmp$ret$15 = tmp5_mapTo;
|
|
@@ -3038,7 +3038,7 @@
|
|
|
3038
3038
|
tmp$ret$18 = tmp$ret$17;
|
|
3039
3039
|
tmp = tmp$ret$18;
|
|
3040
3040
|
} else {
|
|
3041
|
-
var tmp1_subject = _this__u8e3s4.
|
|
3041
|
+
var tmp1_subject = _this__u8e3s4.w1m_1;
|
|
3042
3042
|
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.q4_1;
|
|
3043
3043
|
var tmp_4;
|
|
3044
3044
|
switch (tmp0) {
|
|
@@ -3048,7 +3048,7 @@
|
|
|
3048
3048
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3049
3049
|
var tmp$ret$19;
|
|
3050
3050
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3051
|
-
var tmp8_orEmpty = _this__u8e3s4.
|
|
3051
|
+
var tmp8_orEmpty = _this__u8e3s4.c1n_1;
|
|
3052
3052
|
var tmp0_elvis_lhs_1 = tmp8_orEmpty;
|
|
3053
3053
|
tmp$ret$19 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
3054
3054
|
var tmp10_flatMap = tmp$ret$19;
|
|
@@ -3074,7 +3074,7 @@
|
|
|
3074
3074
|
var tmp0_subject_2 = value_0;
|
|
3075
3075
|
var tmp_5;
|
|
3076
3076
|
if (tmp0_subject_2 instanceof SchemaObject_0) {
|
|
3077
|
-
tmp_5 = flatten_1(value_0, $this, Common_getInstance().
|
|
3077
|
+
tmp_5 = flatten_1(value_0, $this, Common_getInstance().j1t([name, key_0]));
|
|
3078
3078
|
} else {
|
|
3079
3079
|
if (tmp0_subject_2 instanceof ReferenceObject_0) {
|
|
3080
3080
|
tmp_5 = emptyList();
|
|
@@ -3094,7 +3094,7 @@
|
|
|
3094
3094
|
tmp_4 = plus(schema, fields);
|
|
3095
3095
|
break;
|
|
3096
3096
|
case 4:
|
|
3097
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
3097
|
+
var tmp2_safe_receiver = _this__u8e3s4.b1n_1;
|
|
3098
3098
|
var tmp_6;
|
|
3099
3099
|
if (tmp2_safe_receiver == null) {
|
|
3100
3100
|
tmp_6 = null;
|
|
@@ -3110,7 +3110,7 @@
|
|
|
3110
3110
|
tmp_7 = emptyList();
|
|
3111
3111
|
} else {
|
|
3112
3112
|
if (tmp0_subject_3 instanceof SchemaObject_0) {
|
|
3113
|
-
tmp_7 = flatten_1(tmp2_safe_receiver, $this, Common_getInstance().
|
|
3113
|
+
tmp_7 = flatten_1(tmp2_safe_receiver, $this, Common_getInstance().j1t([name, 'array']));
|
|
3114
3114
|
} else {
|
|
3115
3115
|
noWhenBranchMatchedException();
|
|
3116
3116
|
}
|
|
@@ -3155,8 +3155,8 @@
|
|
|
3155
3155
|
var referencingObject = tmp0_let.i3();
|
|
3156
3156
|
var schema = tmp0_let.j3();
|
|
3157
3157
|
var tmp;
|
|
3158
|
-
if (!(schema.
|
|
3159
|
-
var additionalProperties = ensureNotNull(schema.
|
|
3158
|
+
if (!(schema.d1n_1 == null)) {
|
|
3159
|
+
var additionalProperties = ensureNotNull(schema.d1n_1);
|
|
3160
3160
|
var tmp_0;
|
|
3161
3161
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
3162
3162
|
tmp_0 = new Any(false, true);
|
|
@@ -3172,25 +3172,25 @@
|
|
|
3172
3172
|
}
|
|
3173
3173
|
}
|
|
3174
3174
|
tmp = tmp_0;
|
|
3175
|
-
} else if (!(schema.
|
|
3176
|
-
tmp = new Custom(Common_getInstance().
|
|
3177
|
-
} else if (isPrimitive_0(schema.
|
|
3178
|
-
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.
|
|
3175
|
+
} else if (!(schema.w1n_1 == null)) {
|
|
3176
|
+
tmp = new Custom(Common_getInstance().j1t([getReference_0(referencingObject, $this)]), false, false);
|
|
3177
|
+
} else if (isPrimitive_0(schema.w1m_1)) {
|
|
3178
|
+
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.w1m_1), $this), false, false);
|
|
3179
3179
|
} else {
|
|
3180
|
-
var tmp0_subject = schema.
|
|
3180
|
+
var tmp0_subject = schema.w1m_1;
|
|
3181
3181
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
3182
3182
|
var tmp_1;
|
|
3183
3183
|
if (tmp0 === 4) {
|
|
3184
|
-
var items = schema.
|
|
3184
|
+
var items = schema.b1n_1;
|
|
3185
3185
|
var tmp_2;
|
|
3186
3186
|
if (items instanceof ReferenceObject_0) {
|
|
3187
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
3187
|
+
tmp_2 = new Custom(Common_getInstance().j1t([getReference_0(items, $this)]), true);
|
|
3188
3188
|
} else {
|
|
3189
3189
|
if (items instanceof SchemaObject_0) {
|
|
3190
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
3190
|
+
tmp_2 = new Custom(Common_getInstance().j1t([getReference_0(referencingObject, $this), 'Array']), true);
|
|
3191
3191
|
} else {
|
|
3192
3192
|
if (items == null) {
|
|
3193
|
-
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.k1m_1);
|
|
3194
3194
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
3195
3195
|
} else {
|
|
3196
3196
|
noWhenBranchMatchedException();
|
|
@@ -3199,7 +3199,7 @@
|
|
|
3199
3199
|
}
|
|
3200
3200
|
tmp_1 = tmp_2;
|
|
3201
3201
|
} else {
|
|
3202
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
3202
|
+
tmp_1 = new Custom(Common_getInstance().j1t([getReference_0(referencingObject, $this)]), false);
|
|
3203
3203
|
}
|
|
3204
3204
|
tmp = tmp_1;
|
|
3205
3205
|
}
|
|
@@ -3209,8 +3209,8 @@
|
|
|
3209
3209
|
}
|
|
3210
3210
|
function toReference_2(_this__u8e3s4, $this, name) {
|
|
3211
3211
|
var tmp;
|
|
3212
|
-
if (!(_this__u8e3s4.
|
|
3213
|
-
var additionalProperties = ensureNotNull(_this__u8e3s4.
|
|
3212
|
+
if (!(_this__u8e3s4.d1n_1 == null)) {
|
|
3213
|
+
var additionalProperties = ensureNotNull(_this__u8e3s4.d1n_1);
|
|
3214
3214
|
var tmp_0;
|
|
3215
3215
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
3216
3216
|
tmp_0 = new Any(false, true);
|
|
@@ -3226,10 +3226,10 @@
|
|
|
3226
3226
|
}
|
|
3227
3227
|
}
|
|
3228
3228
|
tmp = tmp_0;
|
|
3229
|
-
} else if (!(_this__u8e3s4.
|
|
3230
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
3229
|
+
} else if (!(_this__u8e3s4.w1n_1 == null)) {
|
|
3230
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.d1n_1 == null));
|
|
3231
3231
|
} else {
|
|
3232
|
-
var type = _this__u8e3s4.
|
|
3232
|
+
var type = _this__u8e3s4.w1m_1;
|
|
3233
3233
|
var tmp0 = type == null ? -1 : type.q4_1;
|
|
3234
3234
|
var tmp_1;
|
|
3235
3235
|
switch (tmp0) {
|
|
@@ -3237,22 +3237,22 @@
|
|
|
3237
3237
|
case 1:
|
|
3238
3238
|
case 2:
|
|
3239
3239
|
case 3:
|
|
3240
|
-
tmp_1 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.
|
|
3240
|
+
tmp_1 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.d1n_1 == null));
|
|
3241
3241
|
break;
|
|
3242
3242
|
case -1:
|
|
3243
3243
|
case 5:
|
|
3244
3244
|
var tmp_2;
|
|
3245
|
-
var tmp_3 = _this__u8e3s4.
|
|
3245
|
+
var tmp_3 = _this__u8e3s4.d1n_1;
|
|
3246
3246
|
if (tmp_3 instanceof BooleanObject_0) {
|
|
3247
|
-
tmp_2 = new Any(false, !(_this__u8e3s4.
|
|
3247
|
+
tmp_2 = new Any(false, !(_this__u8e3s4.d1n_1 == null));
|
|
3248
3248
|
} else {
|
|
3249
|
-
tmp_2 = new Custom(name, false, !(_this__u8e3s4.
|
|
3249
|
+
tmp_2 = new Custom(name, false, !(_this__u8e3s4.d1n_1 == null));
|
|
3250
3250
|
}
|
|
3251
3251
|
|
|
3252
3252
|
tmp_1 = tmp_2;
|
|
3253
3253
|
break;
|
|
3254
3254
|
case 4:
|
|
3255
|
-
var it = _this__u8e3s4.
|
|
3255
|
+
var it = _this__u8e3s4.b1n_1;
|
|
3256
3256
|
var tmp_4;
|
|
3257
3257
|
if (it instanceof ReferenceObject_0) {
|
|
3258
3258
|
tmp_4 = toIterable_0(toReference_1(it, $this));
|
|
@@ -3299,28 +3299,28 @@
|
|
|
3299
3299
|
var tmp;
|
|
3300
3300
|
switch (tmp0) {
|
|
3301
3301
|
case 0:
|
|
3302
|
-
tmp = _this__u8e3s4.
|
|
3302
|
+
tmp = _this__u8e3s4.e1k_1;
|
|
3303
3303
|
break;
|
|
3304
3304
|
case 1:
|
|
3305
|
-
tmp = _this__u8e3s4.
|
|
3305
|
+
tmp = _this__u8e3s4.g1k_1;
|
|
3306
3306
|
break;
|
|
3307
3307
|
case 2:
|
|
3308
|
-
tmp = _this__u8e3s4.
|
|
3308
|
+
tmp = _this__u8e3s4.f1k_1;
|
|
3309
3309
|
break;
|
|
3310
3310
|
case 3:
|
|
3311
|
-
tmp = _this__u8e3s4.
|
|
3311
|
+
tmp = _this__u8e3s4.h1k_1;
|
|
3312
3312
|
break;
|
|
3313
3313
|
case 4:
|
|
3314
|
-
tmp = _this__u8e3s4.
|
|
3314
|
+
tmp = _this__u8e3s4.i1k_1;
|
|
3315
3315
|
break;
|
|
3316
3316
|
case 5:
|
|
3317
|
-
tmp = _this__u8e3s4.
|
|
3317
|
+
tmp = _this__u8e3s4.j1k_1;
|
|
3318
3318
|
break;
|
|
3319
3319
|
case 6:
|
|
3320
|
-
tmp = _this__u8e3s4.
|
|
3320
|
+
tmp = _this__u8e3s4.k1k_1;
|
|
3321
3321
|
break;
|
|
3322
3322
|
case 7:
|
|
3323
|
-
tmp = _this__u8e3s4.
|
|
3323
|
+
tmp = _this__u8e3s4.l1k_1;
|
|
3324
3324
|
break;
|
|
3325
3325
|
default:
|
|
3326
3326
|
noWhenBranchMatchedException();
|
|
@@ -3334,10 +3334,10 @@
|
|
|
3334
3334
|
return filterNotNullValues_0(tmp$ret$2);
|
|
3335
3335
|
}
|
|
3336
3336
|
function getReference_0(_this__u8e3s4, $this) {
|
|
3337
|
-
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.k1m_1), ['/']), 3);
|
|
3338
3338
|
var tmp;
|
|
3339
3339
|
if (tmp0_elvis_lhs == null) {
|
|
3340
|
-
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.k1m_1);
|
|
3341
3341
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
3342
3342
|
} else {
|
|
3343
3343
|
tmp = tmp0_elvis_lhs;
|
|
@@ -3371,7 +3371,7 @@
|
|
|
3371
3371
|
// Inline function 'kotlin.collections.map' call
|
|
3372
3372
|
var tmp$ret$0;
|
|
3373
3373
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3374
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
3374
|
+
var tmp0_orEmpty = _this__u8e3s4.c1n_1;
|
|
3375
3375
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3376
3376
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3377
3377
|
var tmp2_map = tmp$ret$0;
|
|
@@ -3398,17 +3398,17 @@
|
|
|
3398
3398
|
var tmp;
|
|
3399
3399
|
if (tmp0_subject instanceof SchemaObject_0) {
|
|
3400
3400
|
var tmp_0 = new Identifier(key);
|
|
3401
|
-
var tmp1_subject = value.
|
|
3401
|
+
var tmp1_subject = value.w1m_1;
|
|
3402
3402
|
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.q4_1;
|
|
3403
|
-
var tmp_1 = tmp0 === 4 ? toReference_2(value, $this, Common_getInstance().
|
|
3404
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
3403
|
+
var tmp_1 = tmp0 === 4 ? toReference_2(value, $this, Common_getInstance().j1t([name, key, 'Array'])) : toReference_2(value, $this, Common_getInstance().j1t([name, key]));
|
|
3404
|
+
var tmp2_safe_receiver = _this__u8e3s4.v1n_1;
|
|
3405
3405
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.i1(key);
|
|
3406
3406
|
tmp = new Field(tmp_0, tmp_1, !(tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs));
|
|
3407
3407
|
} else {
|
|
3408
3408
|
if (tmp0_subject instanceof ReferenceObject_0) {
|
|
3409
3409
|
var tmp_2 = new Identifier(key);
|
|
3410
3410
|
var tmp_3 = new Custom(getReference_0(value, $this), false);
|
|
3411
|
-
var tmp4_safe_receiver = _this__u8e3s4.
|
|
3411
|
+
var tmp4_safe_receiver = _this__u8e3s4.v1n_1;
|
|
3412
3412
|
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.i1(key);
|
|
3413
3413
|
tmp = new Field(tmp_2, tmp_3, !(tmp5_elvis_lhs == null ? false : tmp5_elvis_lhs));
|
|
3414
3414
|
} else {
|
|
@@ -3425,7 +3425,7 @@
|
|
|
3425
3425
|
function toField_2(_this__u8e3s4, $this, name) {
|
|
3426
3426
|
var tmp$ret$1;
|
|
3427
3427
|
// Inline function 'kotlin.let' call
|
|
3428
|
-
var s = _this__u8e3s4.
|
|
3428
|
+
var s = _this__u8e3s4.n1l_1;
|
|
3429
3429
|
var tmp;
|
|
3430
3430
|
if (s instanceof ReferenceObject_0) {
|
|
3431
3431
|
tmp = toReference_1(s, $this);
|
|
@@ -3444,26 +3444,26 @@
|
|
|
3444
3444
|
// Inline function 'kotlin.contracts.contract' call
|
|
3445
3445
|
var tmp$ret$0;
|
|
3446
3446
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3447
|
-
var tmp_0 = new Identifier(_this__u8e3s4.
|
|
3448
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
3447
|
+
var tmp_0 = new Identifier(_this__u8e3s4.r1l_1);
|
|
3448
|
+
var tmp0_elvis_lhs = _this__u8e3s4.h1l_1;
|
|
3449
3449
|
tmp$ret$0 = new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
3450
3450
|
tmp$ret$1 = tmp$ret$0;
|
|
3451
3451
|
return tmp$ret$1;
|
|
3452
3452
|
}
|
|
3453
3453
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
3454
|
-
this.
|
|
3455
|
-
this.
|
|
3456
|
-
this.
|
|
3457
|
-
this.
|
|
3454
|
+
this.a1u_1 = path;
|
|
3455
|
+
this.b1u_1 = pathItem;
|
|
3456
|
+
this.c1u_1 = method;
|
|
3457
|
+
this.d1u_1 = operation;
|
|
3458
3458
|
}
|
|
3459
3459
|
protoOf(FlattenRequest_0).toString = function () {
|
|
3460
|
-
return 'FlattenRequest(path=' + new Path_0(this.
|
|
3460
|
+
return 'FlattenRequest(path=' + new Path_0(this.a1u_1) + ', pathItem=' + this.b1u_1 + ', method=' + this.c1u_1 + ', operation=' + this.d1u_1 + ')';
|
|
3461
3461
|
};
|
|
3462
3462
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
3463
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3464
|
-
result = imul(result, 31) + this.a1u_1.hashCode() | 0;
|
|
3463
|
+
var result = Path__hashCode_impl_go73kd_0(this.a1u_1);
|
|
3465
3464
|
result = imul(result, 31) + this.b1u_1.hashCode() | 0;
|
|
3466
3465
|
result = imul(result, 31) + this.c1u_1.hashCode() | 0;
|
|
3466
|
+
result = imul(result, 31) + this.d1u_1.hashCode() | 0;
|
|
3467
3467
|
return result;
|
|
3468
3468
|
};
|
|
3469
3469
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -3472,14 +3472,14 @@
|
|
|
3472
3472
|
if (!(other instanceof FlattenRequest_0))
|
|
3473
3473
|
return false;
|
|
3474
3474
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
3475
|
-
if (!(this.
|
|
3476
|
-
return false;
|
|
3477
|
-
if (!this.a1u_1.equals(tmp0_other_with_cast.a1u_1))
|
|
3475
|
+
if (!(this.a1u_1 === tmp0_other_with_cast.a1u_1))
|
|
3478
3476
|
return false;
|
|
3479
3477
|
if (!this.b1u_1.equals(tmp0_other_with_cast.b1u_1))
|
|
3480
3478
|
return false;
|
|
3481
3479
|
if (!this.c1u_1.equals(tmp0_other_with_cast.c1u_1))
|
|
3482
3480
|
return false;
|
|
3481
|
+
if (!this.d1u_1.equals(tmp0_other_with_cast.d1u_1))
|
|
3482
|
+
return false;
|
|
3483
3483
|
return true;
|
|
3484
3484
|
};
|
|
3485
3485
|
function flatMapRequests_0(_this__u8e3s4, $this, f) {
|
|
@@ -3487,7 +3487,7 @@
|
|
|
3487
3487
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3488
3488
|
var tmp$ret$11;
|
|
3489
3489
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3490
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
3490
|
+
var tmp1_flatMap = _this__u8e3s4.q1j_1;
|
|
3491
3491
|
var tmp$ret$10;
|
|
3492
3492
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3493
3493
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -3501,7 +3501,7 @@
|
|
|
3501
3501
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
3502
3502
|
var tmp$ret$1;
|
|
3503
3503
|
// Inline function 'kotlin.collections.component1' call
|
|
3504
|
-
tmp$ret$1 = element.v().
|
|
3504
|
+
tmp$ret$1 = element.v().y1j_1;
|
|
3505
3505
|
var path = tmp$ret$1;
|
|
3506
3506
|
var tmp$ret$2;
|
|
3507
3507
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3558,23 +3558,23 @@
|
|
|
3558
3558
|
return tmp$ret$14;
|
|
3559
3559
|
}
|
|
3560
3560
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
3561
|
-
this.
|
|
3562
|
-
this.
|
|
3563
|
-
this.
|
|
3564
|
-
this.
|
|
3565
|
-
this.
|
|
3566
|
-
this.
|
|
3561
|
+
this.e1u_1 = path;
|
|
3562
|
+
this.f1u_1 = pathItem;
|
|
3563
|
+
this.g1u_1 = method;
|
|
3564
|
+
this.h1u_1 = operation;
|
|
3565
|
+
this.i1u_1 = statusCode;
|
|
3566
|
+
this.j1u_1 = response;
|
|
3567
3567
|
}
|
|
3568
3568
|
protoOf(FlattenResponse_0).toString = function () {
|
|
3569
|
-
return 'FlattenResponse(path=' + new Path_0(this.
|
|
3569
|
+
return 'FlattenResponse(path=' + new Path_0(this.e1u_1) + ', pathItem=' + this.f1u_1 + ', method=' + this.g1u_1 + ', operation=' + this.h1u_1 + ', statusCode=' + new StatusCode_0(this.i1u_1) + ', response=' + this.j1u_1 + ')';
|
|
3570
3570
|
};
|
|
3571
3571
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
3572
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3573
|
-
result = imul(result, 31) + this.e1u_1.hashCode() | 0;
|
|
3572
|
+
var result = Path__hashCode_impl_go73kd_0(this.e1u_1);
|
|
3574
3573
|
result = imul(result, 31) + this.f1u_1.hashCode() | 0;
|
|
3575
3574
|
result = imul(result, 31) + this.g1u_1.hashCode() | 0;
|
|
3576
|
-
result = imul(result, 31) +
|
|
3577
|
-
result = imul(result, 31) +
|
|
3575
|
+
result = imul(result, 31) + this.h1u_1.hashCode() | 0;
|
|
3576
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.i1u_1) | 0;
|
|
3577
|
+
result = imul(result, 31) + hashCode(this.j1u_1) | 0;
|
|
3578
3578
|
return result;
|
|
3579
3579
|
};
|
|
3580
3580
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -3583,17 +3583,17 @@
|
|
|
3583
3583
|
if (!(other instanceof FlattenResponse_0))
|
|
3584
3584
|
return false;
|
|
3585
3585
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
3586
|
-
if (!(this.
|
|
3587
|
-
return false;
|
|
3588
|
-
if (!this.e1u_1.equals(tmp0_other_with_cast.e1u_1))
|
|
3586
|
+
if (!(this.e1u_1 === tmp0_other_with_cast.e1u_1))
|
|
3589
3587
|
return false;
|
|
3590
3588
|
if (!this.f1u_1.equals(tmp0_other_with_cast.f1u_1))
|
|
3591
3589
|
return false;
|
|
3592
3590
|
if (!this.g1u_1.equals(tmp0_other_with_cast.g1u_1))
|
|
3593
3591
|
return false;
|
|
3594
|
-
if (!
|
|
3592
|
+
if (!this.h1u_1.equals(tmp0_other_with_cast.h1u_1))
|
|
3593
|
+
return false;
|
|
3594
|
+
if (!(this.i1u_1 === tmp0_other_with_cast.i1u_1))
|
|
3595
3595
|
return false;
|
|
3596
|
-
if (!equals(this.
|
|
3596
|
+
if (!equals(this.j1u_1, tmp0_other_with_cast.j1u_1))
|
|
3597
3597
|
return false;
|
|
3598
3598
|
return true;
|
|
3599
3599
|
};
|
|
@@ -3602,7 +3602,7 @@
|
|
|
3602
3602
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3603
3603
|
var tmp$ret$18;
|
|
3604
3604
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3605
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
3605
|
+
var tmp1_flatMap = _this__u8e3s4.q1j_1;
|
|
3606
3606
|
var tmp$ret$17;
|
|
3607
3607
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3608
3608
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -3616,7 +3616,7 @@
|
|
|
3616
3616
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
3617
3617
|
var tmp$ret$1;
|
|
3618
3618
|
// Inline function 'kotlin.collections.component1' call
|
|
3619
|
-
tmp$ret$1 = element.v().
|
|
3619
|
+
tmp$ret$1 = element.v().y1j_1;
|
|
3620
3620
|
var path = tmp$ret$1;
|
|
3621
3621
|
var tmp$ret$2;
|
|
3622
3622
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3646,7 +3646,7 @@
|
|
|
3646
3646
|
var operation = tmp$ret$5;
|
|
3647
3647
|
var tmp$ret$12;
|
|
3648
3648
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3649
|
-
var tmp0_safe_receiver = operation.
|
|
3649
|
+
var tmp0_safe_receiver = operation.y1k_1;
|
|
3650
3650
|
var tmp;
|
|
3651
3651
|
if (tmp0_safe_receiver == null) {
|
|
3652
3652
|
tmp = null;
|
|
@@ -3666,7 +3666,7 @@
|
|
|
3666
3666
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
3667
3667
|
var tmp$ret$7;
|
|
3668
3668
|
// Inline function 'kotlin.collections.component1' call
|
|
3669
|
-
tmp$ret$7 = item.v().
|
|
3669
|
+
tmp$ret$7 = item.v().a1o_1;
|
|
3670
3670
|
var statusCode = tmp$ret$7;
|
|
3671
3671
|
var tmp$ret$8;
|
|
3672
3672
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3713,9 +3713,9 @@
|
|
|
3713
3713
|
}
|
|
3714
3714
|
function OpenApiParser$parseParameters$lambda(this$0) {
|
|
3715
3715
|
return function (req) {
|
|
3716
|
-
var parameters = plus(resolveParameters_2(req.
|
|
3717
|
-
var segments = toSegments_0(req.
|
|
3718
|
-
var name = toName_0(req.
|
|
3716
|
+
var parameters = plus(resolveParameters_2(req.b1u_1, this$0), resolveParameters_1(req.d1u_1, this$0));
|
|
3717
|
+
var segments = toSegments_0(req.a1u_1, this$0, parameters);
|
|
3718
|
+
var name = toName_0(req.d1u_1, this$0, segments, req.c1u_1);
|
|
3719
3719
|
var tmp$ret$2;
|
|
3720
3720
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3721
3721
|
var tmp$ret$1;
|
|
@@ -3726,8 +3726,8 @@
|
|
|
3726
3726
|
var element = tmp0_iterator.e();
|
|
3727
3727
|
var tmp$ret$0;
|
|
3728
3728
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
3729
|
-
var tmp0_safe_receiver = element.
|
|
3730
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().
|
|
3729
|
+
var tmp0_safe_receiver = element.n1l_1;
|
|
3730
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().j1t([name, 'Parameter', element.r1l_1]));
|
|
3731
3731
|
tmp$ret$0 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
3732
3732
|
var list = tmp$ret$0;
|
|
3733
3733
|
addAll(tmp0_flatMapTo, list);
|
|
@@ -3739,16 +3739,16 @@
|
|
|
3739
3739
|
}
|
|
3740
3740
|
function OpenApiParser$parseRequestBody$lambda_0(this$0) {
|
|
3741
3741
|
return function (req) {
|
|
3742
|
-
var parameters = plus(resolveParameters_2(req.
|
|
3743
|
-
var segments = toSegments_0(req.
|
|
3744
|
-
var name = toName_0(req.
|
|
3742
|
+
var parameters = plus(resolveParameters_2(req.b1u_1, this$0), resolveParameters_1(req.d1u_1, this$0));
|
|
3743
|
+
var segments = toSegments_0(req.a1u_1, this$0, parameters);
|
|
3744
|
+
var name = toName_0(req.d1u_1, this$0, segments, req.c1u_1);
|
|
3745
3745
|
var tmp$ret$6;
|
|
3746
3746
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3747
3747
|
var tmp$ret$0;
|
|
3748
3748
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3749
|
-
var tmp0_safe_receiver = req.
|
|
3749
|
+
var tmp0_safe_receiver = req.d1u_1.x1k_1;
|
|
3750
3750
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, this$0);
|
|
3751
|
-
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
3751
|
+
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.x1l_1;
|
|
3752
3752
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3753
3753
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3754
3754
|
var tmp2_flatMap = tmp$ret$0;
|
|
@@ -3767,22 +3767,22 @@
|
|
|
3767
3767
|
// Inline function 'kotlin.collections.component2' call
|
|
3768
3768
|
tmp$ret$2 = element.w();
|
|
3769
3769
|
var mediaObject = tmp$ret$2;
|
|
3770
|
-
var schema = mediaObject.
|
|
3770
|
+
var schema = mediaObject.e1m_1;
|
|
3771
3771
|
var tmp;
|
|
3772
3772
|
if (schema instanceof SchemaObject_0) {
|
|
3773
|
-
var tmp0_subject = schema.
|
|
3773
|
+
var tmp0_subject = schema.w1m_1;
|
|
3774
3774
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
3775
3775
|
var tmp_0;
|
|
3776
3776
|
switch (tmp0) {
|
|
3777
3777
|
case -1:
|
|
3778
3778
|
case 5:
|
|
3779
|
-
tmp_0 = flatten_1(schema, this$0, Common_getInstance().
|
|
3779
|
+
tmp_0 = flatten_1(schema, this$0, Common_getInstance().j1t([name, 'RequestBody']));
|
|
3780
3780
|
break;
|
|
3781
3781
|
case 4:
|
|
3782
3782
|
var tmp$ret$3;
|
|
3783
3783
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3784
|
-
var tmp1_safe_receiver_0 = schema.
|
|
3785
|
-
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.b1n_1;
|
|
3785
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().j1t([name, 'RequestBody']));
|
|
3786
3786
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
3787
3787
|
tmp$ret$3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
3788
3788
|
|
|
@@ -3815,17 +3815,17 @@
|
|
|
3815
3815
|
}
|
|
3816
3816
|
function OpenApiParser$parseResponseBody$lambda_0(this$0) {
|
|
3817
3817
|
return function (res) {
|
|
3818
|
-
var parameters = plus(resolveParameters_2(res.
|
|
3819
|
-
var segments = toSegments_0(res.
|
|
3820
|
-
var name = toName_0(res.
|
|
3821
|
-
var response = res.
|
|
3818
|
+
var parameters = plus(resolveParameters_2(res.f1u_1, this$0), resolveParameters_1(res.h1u_1, this$0));
|
|
3819
|
+
var segments = toSegments_0(res.e1u_1, this$0, parameters);
|
|
3820
|
+
var name = toName_0(res.h1u_1, this$0, segments, res.g1u_1);
|
|
3821
|
+
var response = res.j1u_1;
|
|
3822
3822
|
var tmp;
|
|
3823
3823
|
if (response instanceof ResponseObject_0) {
|
|
3824
3824
|
var tmp$ret$6;
|
|
3825
3825
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3826
3826
|
var tmp$ret$0;
|
|
3827
3827
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3828
|
-
var tmp0_orEmpty = response.
|
|
3828
|
+
var tmp0_orEmpty = response.f1o_1;
|
|
3829
3829
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3830
3830
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3831
3831
|
var tmp2_flatMap = tmp$ret$0;
|
|
@@ -3844,22 +3844,22 @@
|
|
|
3844
3844
|
// Inline function 'kotlin.collections.component2' call
|
|
3845
3845
|
tmp$ret$2 = element.w();
|
|
3846
3846
|
var mediaObject = tmp$ret$2;
|
|
3847
|
-
var schema = mediaObject.
|
|
3847
|
+
var schema = mediaObject.e1m_1;
|
|
3848
3848
|
var tmp_0;
|
|
3849
3849
|
if (schema instanceof SchemaObject_0) {
|
|
3850
|
-
var tmp0_subject = schema.
|
|
3850
|
+
var tmp0_subject = schema.w1m_1;
|
|
3851
3851
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
3852
3852
|
var tmp_1;
|
|
3853
3853
|
switch (tmp0) {
|
|
3854
3854
|
case -1:
|
|
3855
3855
|
case 5:
|
|
3856
|
-
tmp_1 = flatten_1(schema, this$0, Common_getInstance().
|
|
3856
|
+
tmp_1 = flatten_1(schema, this$0, Common_getInstance().j1t([name, _StatusCode___get_value__impl__we50mu_0(res.i1u_1), 'ResponseBody']));
|
|
3857
3857
|
break;
|
|
3858
3858
|
case 4:
|
|
3859
3859
|
var tmp$ret$3;
|
|
3860
3860
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3861
|
-
var tmp1_safe_receiver = schema.
|
|
3862
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().
|
|
3861
|
+
var tmp1_safe_receiver = schema.b1n_1;
|
|
3862
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().j1t([name, _StatusCode___get_value__impl__we50mu_0(res.i1u_1), 'ResponseBody']));
|
|
3863
3863
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
3864
3864
|
tmp$ret$3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
3865
3865
|
|
|
@@ -3894,10 +3894,10 @@
|
|
|
3894
3894
|
var tmp0_subject = it;
|
|
3895
3895
|
var tmp;
|
|
3896
3896
|
if (tmp0_subject instanceof Literal) {
|
|
3897
|
-
tmp = Common_getInstance().
|
|
3897
|
+
tmp = Common_getInstance().j1t([it.tj_1]);
|
|
3898
3898
|
} else {
|
|
3899
3899
|
if (tmp0_subject instanceof Param) {
|
|
3900
|
-
tmp = Common_getInstance().
|
|
3900
|
+
tmp = Common_getInstance().j1t([it.ui_1.fj_1]);
|
|
3901
3901
|
} else {
|
|
3902
3902
|
noWhenBranchMatchedException();
|
|
3903
3903
|
}
|
|
@@ -3906,19 +3906,19 @@
|
|
|
3906
3906
|
}
|
|
3907
3907
|
function OpenApiParser_0(openApi) {
|
|
3908
3908
|
Companion_getInstance_1();
|
|
3909
|
-
this.
|
|
3909
|
+
this.z1t_1 = openApi;
|
|
3910
3910
|
}
|
|
3911
3911
|
function toMap_1(_this__u8e3s4) {
|
|
3912
3912
|
var tmp0_subject = _this__u8e3s4;
|
|
3913
3913
|
var tmp;
|
|
3914
3914
|
if (tmp0_subject instanceof Custom) {
|
|
3915
|
-
tmp = _this__u8e3s4.
|
|
3915
|
+
tmp = _this__u8e3s4.nl(VOID, VOID, true);
|
|
3916
3916
|
} else {
|
|
3917
3917
|
if (tmp0_subject instanceof Any) {
|
|
3918
|
-
tmp = _this__u8e3s4.
|
|
3918
|
+
tmp = _this__u8e3s4.ll(VOID, true);
|
|
3919
3919
|
} else {
|
|
3920
3920
|
if (tmp0_subject instanceof Primitive) {
|
|
3921
|
-
tmp = _this__u8e3s4.
|
|
3921
|
+
tmp = _this__u8e3s4.pl(VOID, VOID, true);
|
|
3922
3922
|
} else {
|
|
3923
3923
|
noWhenBranchMatchedException();
|
|
3924
3924
|
}
|
|
@@ -3962,13 +3962,13 @@
|
|
|
3962
3962
|
var tmp0_subject = _this__u8e3s4;
|
|
3963
3963
|
var tmp;
|
|
3964
3964
|
if (tmp0_subject instanceof Custom) {
|
|
3965
|
-
tmp = _this__u8e3s4.
|
|
3965
|
+
tmp = _this__u8e3s4.nl(VOID, true);
|
|
3966
3966
|
} else {
|
|
3967
3967
|
if (tmp0_subject instanceof Any) {
|
|
3968
|
-
tmp = _this__u8e3s4.
|
|
3968
|
+
tmp = _this__u8e3s4.ll(true);
|
|
3969
3969
|
} else {
|
|
3970
3970
|
if (tmp0_subject instanceof Primitive) {
|
|
3971
|
-
tmp = _this__u8e3s4.
|
|
3971
|
+
tmp = _this__u8e3s4.pl(VOID, true);
|
|
3972
3972
|
} else {
|
|
3973
3973
|
noWhenBranchMatchedException();
|
|
3974
3974
|
}
|