@flock/wirespec 0.8.23 → 0.8.25
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-openapi-bindings.js +38 -12
- package/kotlin-openapi-bindings.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +5 -6
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-cli.js +1 -1
- package/wirespec-src-compiler-core.js +260 -219
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +1 -1
- package/wirespec-src-openapi.js +133 -88
- package/wirespec-src-openapi.js.map +1 -1
package/wirespec-src-openapi.js
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
'use strict';
|
|
20
20
|
//region block: imports
|
|
21
21
|
var imul = Math.imul;
|
|
22
|
-
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
22
|
+
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.d1;
|
|
23
23
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
|
|
24
24
|
var split = kotlin_kotlin.$_$.a9;
|
|
25
25
|
var addAll = kotlin_kotlin.$_$.y3;
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
var ensureNotNull = kotlin_kotlin.$_$.ra;
|
|
63
63
|
var toSet = kotlin_kotlin.$_$.a6;
|
|
64
64
|
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.n;
|
|
65
|
+
var HashSet_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
65
66
|
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.q;
|
|
66
67
|
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.r;
|
|
67
68
|
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.p;
|
|
@@ -70,8 +71,9 @@
|
|
|
70
71
|
var coerceAtLeast = kotlin_kotlin.$_$.z7;
|
|
71
72
|
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.o;
|
|
72
73
|
var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b1;
|
|
73
|
-
var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
74
|
+
var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.c1;
|
|
74
75
|
var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.a1;
|
|
76
|
+
var Type_Number_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.b1;
|
|
75
77
|
var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.z;
|
|
76
78
|
var Identifier = kotlin_community_flock_wirespec_compiler_core.$_$.o;
|
|
77
79
|
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.s;
|
|
@@ -574,10 +576,30 @@
|
|
|
574
576
|
if (_this__u8e3s4.y1f_1 instanceof BooleanObject) {
|
|
575
577
|
tmp_0 = emptyList();
|
|
576
578
|
} else {
|
|
577
|
-
|
|
579
|
+
var tmp1_safe_receiver = _this__u8e3s4.y1f_1;
|
|
580
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_0(tmp1_safe_receiver, $this);
|
|
581
|
+
var tmp_1;
|
|
582
|
+
if (tmp2_safe_receiver == null) {
|
|
583
|
+
tmp_1 = null;
|
|
584
|
+
} else {
|
|
585
|
+
// Inline function 'kotlin.takeIf' call
|
|
586
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
587
|
+
var tmp_2;
|
|
588
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
589
|
+
if (!(tmp2_safe_receiver.x1f_1 == null)) {
|
|
590
|
+
tmp_2 = tmp2_safe_receiver;
|
|
591
|
+
} else {
|
|
592
|
+
tmp_2 = null;
|
|
593
|
+
}
|
|
594
|
+
tmp_1 = tmp_2;
|
|
595
|
+
}
|
|
596
|
+
var tmp3_safe_receiver = tmp_1;
|
|
597
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : flatten(tmp3_safe_receiver, $this, name);
|
|
598
|
+
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
578
599
|
}
|
|
579
600
|
tmp = tmp_0;
|
|
580
601
|
} else if (!(_this__u8e3s4.w1f_1 == null)) {
|
|
602
|
+
// Inline function 'kotlin.collections.distinctBy' call
|
|
581
603
|
// Inline function 'kotlin.collections.flatMap' call
|
|
582
604
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
583
605
|
var tmp0_elvis_lhs = _this__u8e3s4.w1f_1;
|
|
@@ -591,18 +613,29 @@
|
|
|
591
613
|
var list = toField(resolve(element, $this), $this, name);
|
|
592
614
|
addAll(tmp0_flatMapTo, list);
|
|
593
615
|
}
|
|
594
|
-
var
|
|
616
|
+
var set = HashSet_init_$Create$();
|
|
617
|
+
var list_0 = ArrayList_init_$Create$();
|
|
618
|
+
var tmp0_iterator_0 = tmp0_flatMapTo.c();
|
|
619
|
+
while (tmp0_iterator_0.d()) {
|
|
620
|
+
var e = tmp0_iterator_0.e();
|
|
621
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
622
|
+
var key = e.nj_1;
|
|
623
|
+
if (set.a(key)) {
|
|
624
|
+
list_0.a(e);
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
var tmp_3 = listOf(new Type(name, new Shape(list_0)));
|
|
595
628
|
// Inline function 'kotlin.collections.flatMap' call
|
|
596
|
-
var
|
|
629
|
+
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.w1f_1);
|
|
597
630
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
598
631
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
599
|
-
var
|
|
600
|
-
while (
|
|
601
|
-
var element_0 =
|
|
632
|
+
var tmp0_iterator_1 = tmp3_flatMap.c();
|
|
633
|
+
while (tmp0_iterator_1.d()) {
|
|
634
|
+
var element_0 = tmp0_iterator_1.e();
|
|
602
635
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
603
|
-
var
|
|
636
|
+
var tmp_4;
|
|
604
637
|
if (element_0 instanceof ReferenceObject) {
|
|
605
|
-
|
|
638
|
+
tmp_4 = emptyList();
|
|
606
639
|
} else {
|
|
607
640
|
if (element_0 instanceof SchemaObject) {
|
|
608
641
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -612,58 +645,58 @@
|
|
|
612
645
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
613
646
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
614
647
|
// Inline function 'kotlin.collections.iterator' call
|
|
615
|
-
var
|
|
616
|
-
while (
|
|
617
|
-
var element_1 =
|
|
648
|
+
var tmp0_iterator_2 = tmp1_flatMap_0.u().c();
|
|
649
|
+
while (tmp0_iterator_2.d()) {
|
|
650
|
+
var element_1 = tmp0_iterator_2.e();
|
|
618
651
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>.<anonymous>' call
|
|
619
652
|
// Inline function 'kotlin.collections.component1' call
|
|
620
|
-
var
|
|
653
|
+
var key_0 = element_1.v();
|
|
621
654
|
// Inline function 'kotlin.collections.component2' call
|
|
622
655
|
var value = element_1.w();
|
|
623
|
-
var
|
|
656
|
+
var tmp_5;
|
|
624
657
|
if (value instanceof ReferenceObject) {
|
|
625
|
-
|
|
658
|
+
tmp_5 = emptyList();
|
|
626
659
|
} else {
|
|
627
660
|
if (value instanceof SchemaObject) {
|
|
628
|
-
|
|
661
|
+
tmp_5 = flatten(value, $this, Common_getInstance().i1u([name, key_0]));
|
|
629
662
|
} else {
|
|
630
663
|
noWhenBranchMatchedException();
|
|
631
664
|
}
|
|
632
665
|
}
|
|
633
|
-
var
|
|
634
|
-
addAll(tmp0_flatMapTo_1,
|
|
666
|
+
var list_1 = tmp_5;
|
|
667
|
+
addAll(tmp0_flatMapTo_1, list_1);
|
|
635
668
|
}
|
|
636
|
-
|
|
669
|
+
tmp_4 = tmp0_flatMapTo_1;
|
|
637
670
|
} else {
|
|
638
671
|
noWhenBranchMatchedException();
|
|
639
672
|
}
|
|
640
673
|
}
|
|
641
|
-
var
|
|
642
|
-
addAll(tmp0_flatMapTo_0,
|
|
674
|
+
var list_2 = tmp_4;
|
|
675
|
+
addAll(tmp0_flatMapTo_0, list_2);
|
|
643
676
|
}
|
|
644
|
-
tmp = plus(
|
|
677
|
+
tmp = plus(tmp_3, tmp0_flatMapTo_0);
|
|
645
678
|
} else if (!(_this__u8e3s4.t1f_1 == null)) {
|
|
646
679
|
// Inline function 'kotlin.let' call
|
|
647
680
|
// Inline function 'kotlin.collections.map' call
|
|
648
|
-
var
|
|
681
|
+
var tmp4_map = ensureNotNull(_this__u8e3s4.t1f_1);
|
|
649
682
|
// Inline function 'kotlin.collections.mapTo' call
|
|
650
|
-
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(
|
|
651
|
-
var
|
|
652
|
-
while (
|
|
653
|
-
var item =
|
|
654
|
-
var tmp$ret$
|
|
683
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp4_map, 10));
|
|
684
|
+
var tmp0_iterator_3 = tmp4_map.c();
|
|
685
|
+
while (tmp0_iterator_3.d()) {
|
|
686
|
+
var item = tmp0_iterator_3.e();
|
|
687
|
+
var tmp$ret$18;
|
|
655
688
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
656
|
-
tmp$ret$
|
|
657
|
-
tmp0_mapTo.a(tmp$ret$
|
|
689
|
+
tmp$ret$18 = item.s14();
|
|
690
|
+
tmp0_mapTo.a(tmp$ret$18);
|
|
658
691
|
}
|
|
659
|
-
var
|
|
692
|
+
var tmp5_let = toSet(tmp0_mapTo);
|
|
660
693
|
// Inline function 'kotlin.contracts.contract' call
|
|
661
694
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
662
|
-
tmp = listOf(new Enum(name,
|
|
695
|
+
tmp = listOf(new Enum(name, tmp5_let));
|
|
663
696
|
} else {
|
|
664
|
-
var
|
|
665
|
-
var
|
|
666
|
-
switch (
|
|
697
|
+
var tmp5_subject = _this__u8e3s4.u1f_1;
|
|
698
|
+
var tmp_6;
|
|
699
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.r4_1) {
|
|
667
700
|
case -1:
|
|
668
701
|
case 5:
|
|
669
702
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -671,52 +704,52 @@
|
|
|
671
704
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
672
705
|
|
|
673
706
|
var tmp0_elvis_lhs_1 = _this__u8e3s4.x1f_1;
|
|
674
|
-
var
|
|
707
|
+
var tmp7_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
675
708
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
676
709
|
|
|
677
710
|
var tmp0_flatMapTo_2 = ArrayList_init_$Create$();
|
|
678
711
|
// Inline function 'kotlin.collections.iterator' call
|
|
679
712
|
|
|
680
|
-
var
|
|
681
|
-
while (
|
|
682
|
-
var element_2 =
|
|
713
|
+
var tmp0_iterator_4 = tmp7_flatMap.u().c();
|
|
714
|
+
while (tmp0_iterator_4.d()) {
|
|
715
|
+
var element_2 = tmp0_iterator_4.e();
|
|
683
716
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
684
717
|
// Inline function 'kotlin.collections.component1' call
|
|
685
|
-
var
|
|
718
|
+
var key_1 = element_2.v();
|
|
686
719
|
// Inline function 'kotlin.collections.component2' call
|
|
687
720
|
var value_0 = element_2.w();
|
|
688
|
-
var
|
|
689
|
-
addAll(tmp0_flatMapTo_2,
|
|
721
|
+
var list_3 = flatten_0(value_0, $this, Common_getInstance().i1u([name, key_1]));
|
|
722
|
+
addAll(tmp0_flatMapTo_2, list_3);
|
|
690
723
|
}
|
|
691
724
|
|
|
692
725
|
var fields = tmp0_flatMapTo_2;
|
|
693
726
|
var schema = listOf(new Type(name, new Shape(toField(_this__u8e3s4, $this, name))));
|
|
694
|
-
|
|
727
|
+
tmp_6 = plus(schema, fields);
|
|
695
728
|
break;
|
|
696
729
|
case 4:
|
|
697
730
|
var it = _this__u8e3s4.v1f_1;
|
|
698
|
-
var
|
|
731
|
+
var tmp_7;
|
|
699
732
|
if (it instanceof ReferenceObject) {
|
|
700
|
-
|
|
733
|
+
tmp_7 = emptyList();
|
|
701
734
|
} else {
|
|
702
735
|
if (it instanceof SchemaObject) {
|
|
703
|
-
|
|
736
|
+
tmp_7 = flatten(it, $this, Common_getInstance().i1u([name, 'Array']));
|
|
704
737
|
} else {
|
|
705
738
|
if (it == null) {
|
|
706
|
-
|
|
739
|
+
tmp_7 = emptyList();
|
|
707
740
|
} else {
|
|
708
741
|
noWhenBranchMatchedException();
|
|
709
742
|
}
|
|
710
743
|
}
|
|
711
744
|
}
|
|
712
745
|
|
|
713
|
-
|
|
746
|
+
tmp_6 = tmp_7;
|
|
714
747
|
break;
|
|
715
748
|
default:
|
|
716
|
-
|
|
749
|
+
tmp_6 = emptyList();
|
|
717
750
|
break;
|
|
718
751
|
}
|
|
719
|
-
tmp =
|
|
752
|
+
tmp = tmp_6;
|
|
720
753
|
}
|
|
721
754
|
return tmp;
|
|
722
755
|
}
|
|
@@ -815,7 +848,7 @@
|
|
|
815
848
|
// Inline function 'kotlin.contracts.contract' call
|
|
816
849
|
var tmp_1;
|
|
817
850
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
|
|
818
|
-
if (
|
|
851
|
+
if (isPrimitive(additionalProperties.u1f_1) ? true : !(additionalProperties.x1f_1 == null)) {
|
|
819
852
|
tmp_1 = additionalProperties;
|
|
820
853
|
} else {
|
|
821
854
|
tmp_1 = null;
|
|
@@ -950,7 +983,7 @@
|
|
|
950
983
|
tmp = Type_Integer_getInstance();
|
|
951
984
|
break;
|
|
952
985
|
case 1:
|
|
953
|
-
tmp =
|
|
986
|
+
tmp = Type_Number_getInstance();
|
|
954
987
|
break;
|
|
955
988
|
case 3:
|
|
956
989
|
tmp = Type_Boolean_getInstance();
|
|
@@ -1583,7 +1616,7 @@
|
|
|
1583
1616
|
function OpenApiParser$toName$lambda(it) {
|
|
1584
1617
|
var tmp;
|
|
1585
1618
|
if (it instanceof Literal) {
|
|
1586
|
-
tmp = Common_getInstance().i1u([it.
|
|
1619
|
+
tmp = Common_getInstance().i1u([it.hk_1]);
|
|
1587
1620
|
} else {
|
|
1588
1621
|
if (it instanceof Param) {
|
|
1589
1622
|
tmp = Common_getInstance().i1u([it.ej_1.rj_1]);
|
|
@@ -2380,6 +2413,7 @@
|
|
|
2380
2413
|
} else if (!(_this__u8e3s4.y1n_1 == null)) {
|
|
2381
2414
|
throw new NotImplementedError('An operation is not implemented: anyOf is not implemented');
|
|
2382
2415
|
} else if (!(_this__u8e3s4.w1n_1 == null)) {
|
|
2416
|
+
// Inline function 'kotlin.collections.distinctBy' call
|
|
2383
2417
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2384
2418
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2385
2419
|
var tmp0_elvis_lhs = _this__u8e3s4.w1n_1;
|
|
@@ -2393,14 +2427,25 @@
|
|
|
2393
2427
|
var list = toField_1(resolve_3(element, $this), $this, name);
|
|
2394
2428
|
addAll(tmp0_flatMapTo, list);
|
|
2395
2429
|
}
|
|
2396
|
-
var
|
|
2430
|
+
var set = HashSet_init_$Create$();
|
|
2431
|
+
var list_0 = ArrayList_init_$Create$();
|
|
2432
|
+
var tmp0_iterator_0 = tmp0_flatMapTo.c();
|
|
2433
|
+
while (tmp0_iterator_0.d()) {
|
|
2434
|
+
var e = tmp0_iterator_0.e();
|
|
2435
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2436
|
+
var key = e.nj_1;
|
|
2437
|
+
if (set.a(key)) {
|
|
2438
|
+
list_0.a(e);
|
|
2439
|
+
}
|
|
2440
|
+
}
|
|
2441
|
+
var tmp_3 = listOf(new Type(name, new Shape(list_0)));
|
|
2397
2442
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2398
|
-
var
|
|
2443
|
+
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.w1n_1);
|
|
2399
2444
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2400
2445
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
2401
|
-
var
|
|
2402
|
-
while (
|
|
2403
|
-
var element_0 =
|
|
2446
|
+
var tmp0_iterator_1 = tmp3_flatMap.c();
|
|
2447
|
+
while (tmp0_iterator_1.d()) {
|
|
2448
|
+
var element_0 = tmp0_iterator_1.e();
|
|
2404
2449
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2405
2450
|
var tmp_4;
|
|
2406
2451
|
if (element_0 instanceof ReferenceObject_0) {
|
|
@@ -2414,12 +2459,12 @@
|
|
|
2414
2459
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2415
2460
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
2416
2461
|
// Inline function 'kotlin.collections.iterator' call
|
|
2417
|
-
var
|
|
2418
|
-
while (
|
|
2419
|
-
var element_1 =
|
|
2462
|
+
var tmp0_iterator_2 = tmp1_flatMap_0.u().c();
|
|
2463
|
+
while (tmp0_iterator_2.d()) {
|
|
2464
|
+
var element_1 = tmp0_iterator_2.e();
|
|
2420
2465
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>.<anonymous>' call
|
|
2421
2466
|
// Inline function 'kotlin.collections.component1' call
|
|
2422
|
-
var
|
|
2467
|
+
var key_0 = element_1.v();
|
|
2423
2468
|
// Inline function 'kotlin.collections.component2' call
|
|
2424
2469
|
var value = element_1.w();
|
|
2425
2470
|
var tmp_5;
|
|
@@ -2427,41 +2472,41 @@
|
|
|
2427
2472
|
tmp_5 = emptyList();
|
|
2428
2473
|
} else {
|
|
2429
2474
|
if (value instanceof SchemaObject_0) {
|
|
2430
|
-
tmp_5 = flatten_1(value, $this, Common_getInstance().i1u([name,
|
|
2475
|
+
tmp_5 = flatten_1(value, $this, Common_getInstance().i1u([name, key_0]));
|
|
2431
2476
|
} else {
|
|
2432
2477
|
noWhenBranchMatchedException();
|
|
2433
2478
|
}
|
|
2434
2479
|
}
|
|
2435
|
-
var
|
|
2436
|
-
addAll(tmp0_flatMapTo_1,
|
|
2480
|
+
var list_1 = tmp_5;
|
|
2481
|
+
addAll(tmp0_flatMapTo_1, list_1);
|
|
2437
2482
|
}
|
|
2438
2483
|
tmp_4 = tmp0_flatMapTo_1;
|
|
2439
2484
|
} else {
|
|
2440
2485
|
noWhenBranchMatchedException();
|
|
2441
2486
|
}
|
|
2442
2487
|
}
|
|
2443
|
-
var
|
|
2444
|
-
addAll(tmp0_flatMapTo_0,
|
|
2488
|
+
var list_2 = tmp_4;
|
|
2489
|
+
addAll(tmp0_flatMapTo_0, list_2);
|
|
2445
2490
|
}
|
|
2446
2491
|
tmp = plus(tmp_3, tmp0_flatMapTo_0);
|
|
2447
2492
|
} else if (!(_this__u8e3s4.v1o_1 == null)) {
|
|
2448
2493
|
// Inline function 'kotlin.let' call
|
|
2449
2494
|
// Inline function 'kotlin.collections.map' call
|
|
2450
|
-
var
|
|
2495
|
+
var tmp4_map = ensureNotNull(_this__u8e3s4.v1o_1);
|
|
2451
2496
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2452
|
-
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(
|
|
2453
|
-
var
|
|
2454
|
-
while (
|
|
2455
|
-
var item =
|
|
2456
|
-
var tmp$ret$
|
|
2497
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp4_map, 10));
|
|
2498
|
+
var tmp0_iterator_3 = tmp4_map.c();
|
|
2499
|
+
while (tmp0_iterator_3.d()) {
|
|
2500
|
+
var item = tmp0_iterator_3.e();
|
|
2501
|
+
var tmp$ret$18;
|
|
2457
2502
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2458
|
-
tmp$ret$
|
|
2459
|
-
tmp0_mapTo.a(tmp$ret$
|
|
2503
|
+
tmp$ret$18 = item.s14();
|
|
2504
|
+
tmp0_mapTo.a(tmp$ret$18);
|
|
2460
2505
|
}
|
|
2461
|
-
var
|
|
2506
|
+
var tmp5_let = toSet(tmp0_mapTo);
|
|
2462
2507
|
// Inline function 'kotlin.contracts.contract' call
|
|
2463
2508
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2464
|
-
tmp = listOf(new Enum(name,
|
|
2509
|
+
tmp = listOf(new Enum(name, tmp5_let));
|
|
2465
2510
|
} else {
|
|
2466
2511
|
var tmp5_subject = _this__u8e3s4.v1n_1;
|
|
2467
2512
|
var tmp_6;
|
|
@@ -2473,22 +2518,22 @@
|
|
|
2473
2518
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2474
2519
|
|
|
2475
2520
|
var tmp0_elvis_lhs_1 = _this__u8e3s4.b1o_1;
|
|
2476
|
-
var
|
|
2521
|
+
var tmp7_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
2477
2522
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2478
2523
|
|
|
2479
2524
|
var tmp0_flatMapTo_2 = ArrayList_init_$Create$();
|
|
2480
2525
|
// Inline function 'kotlin.collections.iterator' call
|
|
2481
2526
|
|
|
2482
|
-
var
|
|
2483
|
-
while (
|
|
2484
|
-
var element_2 =
|
|
2527
|
+
var tmp0_iterator_4 = tmp7_flatMap.u().c();
|
|
2528
|
+
while (tmp0_iterator_4.d()) {
|
|
2529
|
+
var element_2 = tmp0_iterator_4.e();
|
|
2485
2530
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2486
2531
|
// Inline function 'kotlin.collections.component1' call
|
|
2487
|
-
var
|
|
2532
|
+
var key_1 = element_2.v();
|
|
2488
2533
|
// Inline function 'kotlin.collections.component2' call
|
|
2489
2534
|
var value_0 = element_2.w();
|
|
2490
|
-
var
|
|
2491
|
-
addAll(tmp0_flatMapTo_2,
|
|
2535
|
+
var list_3 = flatten_2(value_0, $this, Common_getInstance().i1u([name, key_1]));
|
|
2536
|
+
addAll(tmp0_flatMapTo_2, list_3);
|
|
2492
2537
|
}
|
|
2493
2538
|
|
|
2494
2539
|
var fields = tmp0_flatMapTo_2;
|
|
@@ -2614,7 +2659,7 @@
|
|
|
2614
2659
|
// Inline function 'kotlin.contracts.contract' call
|
|
2615
2660
|
var tmp_1;
|
|
2616
2661
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toReference.<anonymous>' call
|
|
2617
|
-
if (
|
|
2662
|
+
if (isPrimitive_0(additionalProperties.v1n_1) ? true : !(additionalProperties.b1o_1 == null)) {
|
|
2618
2663
|
tmp_1 = additionalProperties;
|
|
2619
2664
|
} else {
|
|
2620
2665
|
tmp_1 = null;
|
|
@@ -2755,7 +2800,7 @@
|
|
|
2755
2800
|
tmp = Type_Integer_getInstance();
|
|
2756
2801
|
break;
|
|
2757
2802
|
case 1:
|
|
2758
|
-
tmp =
|
|
2803
|
+
tmp = Type_Number_getInstance();
|
|
2759
2804
|
break;
|
|
2760
2805
|
case 3:
|
|
2761
2806
|
tmp = Type_Boolean_getInstance();
|
|
@@ -3199,7 +3244,7 @@
|
|
|
3199
3244
|
function OpenApiParser$toName$lambda_0(it) {
|
|
3200
3245
|
var tmp;
|
|
3201
3246
|
if (it instanceof Literal) {
|
|
3202
|
-
tmp = Common_getInstance().i1u([it.
|
|
3247
|
+
tmp = Common_getInstance().i1u([it.hk_1]);
|
|
3203
3248
|
} else {
|
|
3204
3249
|
if (it instanceof Param) {
|
|
3205
3250
|
tmp = Common_getInstance().i1u([it.ej_1.rj_1]);
|