@flock/wirespec 0.8.37 → 0.8.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{Kotlinx-Cli-Library-kotlinx-cli-js-ir.js → Kotlinx-Cli-Library-kotlinx-cli.js} +427 -379
- package/Kotlinx-Cli-Library-kotlinx-cli.js.map +1 -0
- package/arrow-arrow-atomic.js +15 -15
- package/arrow-arrow-continuations.js +3 -3
- package/arrow-arrow-core.js +86 -86
- package/kotlin-kotlin-stdlib-js-ir.js +1084 -1265
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin-openapi-bindings.js +3627 -5777
- package/kotlin-openapi-bindings.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1478 -2508
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1182 -2319
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-cli.js +656 -450
- package/wirespec-src-compiler-cli.js.map +1 -1
- package/wirespec-src-compiler-core.js +1450 -1782
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +251 -251
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-openapi.js +502 -502
- package/wirespec-src-openapi.js.map +1 -1
- package/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.map +0 -1
package/wirespec-src-openapi.js
CHANGED
|
@@ -22,108 +22,108 @@
|
|
|
22
22
|
'use strict';
|
|
23
23
|
//region block: imports
|
|
24
24
|
var imul = Math.imul;
|
|
25
|
-
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
25
|
+
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.f1;
|
|
26
26
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
|
|
27
|
-
var split = kotlin_kotlin.$_$.
|
|
28
|
-
var addAll = kotlin_kotlin.$_$.
|
|
29
|
-
var VOID = kotlin_kotlin.$_$.
|
|
30
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
31
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
32
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
33
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
34
|
-
var Unit_getInstance = kotlin_kotlin.$_$.
|
|
35
|
-
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.
|
|
36
|
-
var OpenAPI = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
37
|
-
var plus = kotlin_kotlin.$_$.
|
|
38
|
-
var ParameterLocation_QUERY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
39
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
27
|
+
var split = kotlin_kotlin.$_$.f9;
|
|
28
|
+
var addAll = kotlin_kotlin.$_$.y3;
|
|
29
|
+
var VOID = kotlin_kotlin.$_$.ib;
|
|
30
|
+
var joinToString = kotlin_kotlin.$_$.d5;
|
|
31
|
+
var protoOf = kotlin_kotlin.$_$.v7;
|
|
32
|
+
var objectMeta = kotlin_kotlin.$_$.u7;
|
|
33
|
+
var setMetadataFor = kotlin_kotlin.$_$.w7;
|
|
34
|
+
var Unit_getInstance = kotlin_kotlin.$_$.h3;
|
|
35
|
+
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.g;
|
|
36
|
+
var OpenAPI = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b;
|
|
37
|
+
var plus = kotlin_kotlin.$_$.r5;
|
|
38
|
+
var ParameterLocation_QUERY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.w;
|
|
39
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.b4;
|
|
40
40
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.f;
|
|
41
|
-
var ParameterLocation_HEADER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
42
|
-
var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
43
|
-
var listOf = kotlin_kotlin.$_$.
|
|
44
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
45
|
-
var NotImplementedError = kotlin_kotlin.$_$.
|
|
46
|
-
var SchemaObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
47
|
-
var ReferenceObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
48
|
-
var Content = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
49
|
-
var Request = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
50
|
-
var emptyMap = kotlin_kotlin.$_$.
|
|
51
|
-
var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
52
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
53
|
-
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
54
|
-
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
41
|
+
var ParameterLocation_HEADER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.v;
|
|
42
|
+
var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.u;
|
|
43
|
+
var listOf = kotlin_kotlin.$_$.k5;
|
|
44
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.db;
|
|
45
|
+
var NotImplementedError = kotlin_kotlin.$_$.ea;
|
|
46
|
+
var SchemaObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h;
|
|
47
|
+
var ReferenceObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e;
|
|
48
|
+
var Content = kotlin_community_flock_wirespec_compiler_core.$_$.g;
|
|
49
|
+
var Request = kotlin_community_flock_wirespec_compiler_core.$_$.i;
|
|
50
|
+
var emptyMap = kotlin_kotlin.$_$.s4;
|
|
51
|
+
var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g1;
|
|
52
|
+
var emptyList = kotlin_kotlin.$_$.r4;
|
|
53
|
+
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.j;
|
|
54
|
+
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.m;
|
|
55
55
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
56
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
57
|
-
var Map = kotlin_kotlin.$_$.
|
|
58
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
59
|
-
var ParameterObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
60
|
-
var Ref = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
61
|
-
var toString = kotlin_kotlin.$_$.
|
|
62
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
56
|
+
var THROW_CCE = kotlin_kotlin.$_$.ia;
|
|
57
|
+
var Map = kotlin_kotlin.$_$.t3;
|
|
58
|
+
var isInterface = kotlin_kotlin.$_$.k7;
|
|
59
|
+
var ParameterObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c;
|
|
60
|
+
var Ref = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f;
|
|
61
|
+
var toString = kotlin_kotlin.$_$.a8;
|
|
62
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.e1;
|
|
63
63
|
var BooleanObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a;
|
|
64
|
-
var ResponseObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
65
|
-
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
66
|
-
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
67
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
68
|
-
var toSet = kotlin_kotlin.$_$.
|
|
69
|
-
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
64
|
+
var ResponseObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g;
|
|
65
|
+
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.v;
|
|
66
|
+
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.w;
|
|
67
|
+
var ensureNotNull = kotlin_kotlin.$_$.xa;
|
|
68
|
+
var toSet = kotlin_kotlin.$_$.d6;
|
|
69
|
+
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.n;
|
|
70
70
|
var HashSet_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
71
|
-
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
72
|
-
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
73
|
-
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
74
|
-
var get_entries = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
75
|
-
var mapCapacity = kotlin_kotlin.$_$.
|
|
76
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
71
|
+
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.r;
|
|
72
|
+
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.s;
|
|
73
|
+
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.q;
|
|
74
|
+
var get_entries = kotlin_community_flock_wirespec_compiler_core.$_$.h;
|
|
75
|
+
var mapCapacity = kotlin_kotlin.$_$.m5;
|
|
76
|
+
var coerceAtLeast = kotlin_kotlin.$_$.b8;
|
|
77
77
|
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.o;
|
|
78
|
-
var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
79
|
-
var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
80
|
-
var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
81
|
-
var Type_Number_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
82
|
-
var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
83
|
-
var Identifier = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
84
|
-
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
85
|
-
var Type_ARRAY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
86
|
-
var equals = kotlin_kotlin.$_$.
|
|
87
|
-
var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
88
|
-
var drop = kotlin_kotlin.$_$.
|
|
89
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
90
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
91
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
92
|
-
var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
93
|
-
var Param = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
94
|
-
var isBlank = kotlin_kotlin.$_$.
|
|
95
|
-
var Path = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
96
|
-
var Path__hashCode_impl_go73kd = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
97
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
98
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
99
|
-
var StatusCode = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
100
|
-
var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
101
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
102
|
-
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
103
|
-
var to = kotlin_kotlin.$_$.
|
|
104
|
-
var toMap = kotlin_kotlin.$_$.
|
|
105
|
-
var OpenAPI_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
106
|
-
var ParameterLocation_QUERY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
107
|
-
var ParameterLocation_HEADER_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
108
|
-
var ParameterLocation_COOKIE_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
109
|
-
var _MediaType___get_value__impl__wy58mp = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
110
|
-
var SchemaObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
111
|
-
var ReferenceObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
112
|
-
var _StatusCode___get_value__impl__we50mu_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
113
|
-
var _Path___get_value__impl__thmflc_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
114
|
-
var ParameterObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
115
|
-
var Ref_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
116
|
-
var HeaderObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
117
|
-
var RequestBodyObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
118
|
-
var ResponseObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
119
|
-
var BooleanObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
120
|
-
var _Ref___get_value__impl__kxavfe_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
121
|
-
var getOrNull = kotlin_kotlin.$_$.
|
|
122
|
-
var Type_ARRAY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
123
|
-
var Path_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
124
|
-
var Path__hashCode_impl_go73kd_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
125
|
-
var StatusCode_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
126
|
-
var StatusCode__hashCode_impl_fevhvx_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
78
|
+
var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e1;
|
|
79
|
+
var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.e1;
|
|
80
|
+
var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.c1;
|
|
81
|
+
var Type_Number_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.d1;
|
|
82
|
+
var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.b1;
|
|
83
|
+
var Identifier = kotlin_community_flock_wirespec_compiler_core.$_$.p;
|
|
84
|
+
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.u;
|
|
85
|
+
var Type_ARRAY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.x;
|
|
86
|
+
var equals = kotlin_kotlin.$_$.v6;
|
|
87
|
+
var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d1;
|
|
88
|
+
var drop = kotlin_kotlin.$_$.q4;
|
|
89
|
+
var charSequenceLength = kotlin_kotlin.$_$.r6;
|
|
90
|
+
var charSequenceGet = kotlin_kotlin.$_$.q6;
|
|
91
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.h1;
|
|
92
|
+
var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.k;
|
|
93
|
+
var Param = kotlin_community_flock_wirespec_compiler_core.$_$.l;
|
|
94
|
+
var isBlank = kotlin_kotlin.$_$.w8;
|
|
95
|
+
var Path = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d;
|
|
96
|
+
var Path__hashCode_impl_go73kd = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c1;
|
|
97
|
+
var getStringHashCode = kotlin_kotlin.$_$.z6;
|
|
98
|
+
var classMeta = kotlin_kotlin.$_$.t6;
|
|
99
|
+
var StatusCode = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i;
|
|
100
|
+
var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f1;
|
|
101
|
+
var hashCode = kotlin_kotlin.$_$.a7;
|
|
102
|
+
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.t;
|
|
103
|
+
var to = kotlin_kotlin.$_$.hb;
|
|
104
|
+
var toMap = kotlin_kotlin.$_$.c6;
|
|
105
|
+
var OpenAPI_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l;
|
|
106
|
+
var ParameterLocation_QUERY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a1;
|
|
107
|
+
var ParameterLocation_HEADER_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.z;
|
|
108
|
+
var ParameterLocation_COOKIE_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.y;
|
|
109
|
+
var _MediaType___get_value__impl__wy58mp = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h1;
|
|
110
|
+
var SchemaObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s;
|
|
111
|
+
var ReferenceObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.o;
|
|
112
|
+
var _StatusCode___get_value__impl__we50mu_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.m1;
|
|
113
|
+
var _Path___get_value__impl__thmflc_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j1;
|
|
114
|
+
var ParameterObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.m;
|
|
115
|
+
var Ref_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.p;
|
|
116
|
+
var HeaderObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k;
|
|
117
|
+
var RequestBodyObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.q;
|
|
118
|
+
var ResponseObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r;
|
|
119
|
+
var BooleanObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j;
|
|
120
|
+
var _Ref___get_value__impl__kxavfe_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k1;
|
|
121
|
+
var getOrNull = kotlin_kotlin.$_$.z4;
|
|
122
|
+
var Type_ARRAY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b1;
|
|
123
|
+
var Path_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.n;
|
|
124
|
+
var Path__hashCode_impl_go73kd_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i1;
|
|
125
|
+
var StatusCode_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.t;
|
|
126
|
+
var StatusCode__hashCode_impl_fevhvx_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l1;
|
|
127
127
|
//endregion
|
|
128
128
|
//region block: pre-declaration
|
|
129
129
|
setMetadataFor(Common, 'Common', objectMeta);
|
|
@@ -137,12 +137,12 @@
|
|
|
137
137
|
setMetadataFor(OpenApiParser_0, 'OpenApiParser', classMeta);
|
|
138
138
|
//endregion
|
|
139
139
|
function Common$className$lambda(it) {
|
|
140
|
-
return Companion_getInstance().
|
|
140
|
+
return Companion_getInstance().y1q(it);
|
|
141
141
|
}
|
|
142
142
|
function Common() {
|
|
143
143
|
Common_instance = this;
|
|
144
144
|
}
|
|
145
|
-
protoOf(Common).
|
|
145
|
+
protoOf(Common).p1v = function (arg) {
|
|
146
146
|
// Inline function 'kotlin.collections.flatMap' call
|
|
147
147
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
148
148
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -166,24 +166,24 @@
|
|
|
166
166
|
}
|
|
167
167
|
function OpenApiParser$Companion$parse$lambda($ignoreUnknown) {
|
|
168
168
|
return function ($this$Json) {
|
|
169
|
-
$this$Json.
|
|
170
|
-
$this$Json.
|
|
169
|
+
$this$Json.jx_1 = true;
|
|
170
|
+
$this$Json.gx_1 = $ignoreUnknown;
|
|
171
171
|
return Unit_getInstance();
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
174
|
function Companion() {
|
|
175
175
|
Companion_instance = this;
|
|
176
176
|
}
|
|
177
|
-
protoOf(Companion).
|
|
177
|
+
protoOf(Companion).q1v = function (json, ignoreUnknown) {
|
|
178
178
|
// Inline function 'kotlin.let' call
|
|
179
|
-
var tmp0_let = (new OpenAPI(Json(VOID, OpenApiParser$Companion$parse$lambda(ignoreUnknown)))).
|
|
179
|
+
var tmp0_let = (new OpenAPI(Json(VOID, OpenApiParser$Companion$parse$lambda(ignoreUnknown)))).d15(json);
|
|
180
180
|
// Inline function 'kotlin.contracts.contract' call
|
|
181
181
|
// Inline function 'community.flock.wirespec.openapi.v2.Companion.parse.<anonymous>' call
|
|
182
|
-
return (new OpenApiParser(tmp0_let)).
|
|
182
|
+
return (new OpenApiParser(tmp0_let)).s1v();
|
|
183
183
|
};
|
|
184
|
-
protoOf(Companion).
|
|
184
|
+
protoOf(Companion).t1v = function (json, ignoreUnknown, $super) {
|
|
185
185
|
ignoreUnknown = ignoreUnknown === VOID ? false : ignoreUnknown;
|
|
186
|
-
return $super === VOID ? this.
|
|
186
|
+
return $super === VOID ? this.q1v(json, ignoreUnknown) : $super.q1v.call(this, json, ignoreUnknown);
|
|
187
187
|
};
|
|
188
188
|
var Companion_instance;
|
|
189
189
|
function Companion_getInstance_0() {
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
}
|
|
194
194
|
function parseEndpoints($this) {
|
|
195
195
|
// Inline function 'kotlin.collections.flatMap' call
|
|
196
|
-
var tmp0_flatMap = $this.
|
|
196
|
+
var tmp0_flatMap = $this.r1v_1.n15_1;
|
|
197
197
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
198
198
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
199
199
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
var element = tmp0_iterator.e();
|
|
203
203
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>' call
|
|
204
204
|
// Inline function 'kotlin.collections.component1' call
|
|
205
|
-
var path = element.v().
|
|
205
|
+
var path = element.v().y15_1;
|
|
206
206
|
// Inline function 'kotlin.collections.component2' call
|
|
207
207
|
var pathItem = element.w();
|
|
208
208
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
var parameters = plus(resolveParameters_0(pathItem, $this), resolveParameters(operation, $this));
|
|
222
222
|
var segments = toSegments(path, $this, parameters);
|
|
223
223
|
var tmp0_elvis_lhs = toName(operation, $this);
|
|
224
|
-
var name = tmp0_elvis_lhs == null ? toName_0(path, $this) + method.
|
|
224
|
+
var name = tmp0_elvis_lhs == null ? toName_0(path, $this) + method.t4_1 : tmp0_elvis_lhs;
|
|
225
225
|
// Inline function 'kotlin.collections.map' call
|
|
226
226
|
// Inline function 'kotlin.collections.filter' call
|
|
227
227
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
while (tmp0_iterator_1.d()) {
|
|
231
231
|
var element_1 = tmp0_iterator_1.e();
|
|
232
232
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
233
|
-
if (element_1.
|
|
233
|
+
if (element_1.i17_1.equals(ParameterLocation_QUERY_getInstance())) {
|
|
234
234
|
tmp0_filterTo.a(element_1);
|
|
235
235
|
}
|
|
236
236
|
}
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
while (tmp0_iterator_3.d()) {
|
|
254
254
|
var element_2 = tmp0_iterator_3.e();
|
|
255
255
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
256
|
-
if (element_2.
|
|
256
|
+
if (element_2.i17_1.equals(ParameterLocation_HEADER_getInstance())) {
|
|
257
257
|
tmp0_filterTo_0.a(element_2);
|
|
258
258
|
}
|
|
259
259
|
}
|
|
@@ -277,7 +277,7 @@
|
|
|
277
277
|
while (tmp0_iterator_5.d()) {
|
|
278
278
|
var element_3 = tmp0_iterator_5.e();
|
|
279
279
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
280
|
-
if (element_3.
|
|
280
|
+
if (element_3.i17_1.equals(ParameterLocation_BODY_getInstance())) {
|
|
281
281
|
tmp0_filterTo_1.a(element_3);
|
|
282
282
|
}
|
|
283
283
|
}
|
|
@@ -288,8 +288,8 @@
|
|
|
288
288
|
var element_4 = tmp0_iterator_6.e();
|
|
289
289
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
290
290
|
// Inline function 'kotlin.collections.map' call
|
|
291
|
-
var tmp0_elvis_lhs_0 = $this.
|
|
292
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.
|
|
291
|
+
var tmp0_elvis_lhs_0 = $this.r1v_1.l15_1;
|
|
292
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.w16_1 : tmp0_elvis_lhs_0;
|
|
293
293
|
var tmp0_map = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
|
|
294
294
|
// Inline function 'kotlin.collections.mapTo' call
|
|
295
295
|
var tmp0_mapTo_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
@@ -298,13 +298,13 @@
|
|
|
298
298
|
var item_1 = tmp0_iterator_7.e();
|
|
299
299
|
var tmp$ret$21;
|
|
300
300
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
301
|
-
var schema = element_4.
|
|
301
|
+
var schema = element_4.l17_1;
|
|
302
302
|
var tmp;
|
|
303
303
|
if (schema instanceof ReferenceObject) {
|
|
304
304
|
tmp = toReference(schema, $this);
|
|
305
305
|
} else {
|
|
306
306
|
if (schema instanceof SchemaObject) {
|
|
307
|
-
tmp = toReference_0(schema, $this, Common_getInstance().
|
|
307
|
+
tmp = toReference_0(schema, $this, Common_getInstance().p1v([name, 'RequestBody']));
|
|
308
308
|
} else {
|
|
309
309
|
if (schema == null) {
|
|
310
310
|
throw new NotImplementedError();
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
var tmp_0 = tmp;
|
|
317
|
-
var tmp0_elvis_lhs_1 = element_4.
|
|
317
|
+
var tmp0_elvis_lhs_1 = element_4.k17_1;
|
|
318
318
|
tmp$ret$21 = new Request(new Content(item_1, tmp_0, tmp0_elvis_lhs_1 == null ? false : tmp0_elvis_lhs_1));
|
|
319
319
|
tmp0_mapTo_1.a(tmp$ret$21);
|
|
320
320
|
}
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
var requests = tmp_1;
|
|
332
332
|
// Inline function 'kotlin.collections.flatMap' call
|
|
333
333
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
334
|
-
var tmp0_elvis_lhs_2 = operation.
|
|
334
|
+
var tmp0_elvis_lhs_2 = operation.z16_1;
|
|
335
335
|
var tmp5_flatMap = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
336
336
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
337
337
|
var tmp0_flatMapTo_2 = ArrayList_init_$Create$();
|
|
@@ -341,12 +341,12 @@
|
|
|
341
341
|
var element_5 = tmp0_iterator_8.e();
|
|
342
342
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
343
343
|
// Inline function 'kotlin.collections.component1' call
|
|
344
|
-
var status = element_5.v().
|
|
344
|
+
var status = element_5.v().r19_1;
|
|
345
345
|
// Inline function 'kotlin.collections.component2' call
|
|
346
346
|
var res = element_5.w();
|
|
347
347
|
// Inline function 'kotlin.collections.map' call
|
|
348
|
-
var tmp0_elvis_lhs_3 = $this.
|
|
349
|
-
var tmp1_elvis_lhs_0 = tmp0_elvis_lhs_3 == null ? operation.
|
|
348
|
+
var tmp0_elvis_lhs_3 = $this.r1v_1.m15_1;
|
|
349
|
+
var tmp1_elvis_lhs_0 = tmp0_elvis_lhs_3 == null ? operation.x16_1 : tmp0_elvis_lhs_3;
|
|
350
350
|
var tmp0_map_0 = tmp1_elvis_lhs_0 == null ? listOf('application/json') : tmp1_elvis_lhs_0;
|
|
351
351
|
// Inline function 'kotlin.collections.mapTo' call
|
|
352
352
|
var tmp0_mapTo_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map_0, 10));
|
|
@@ -357,7 +357,7 @@
|
|
|
357
357
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
358
358
|
var tmp_2 = _StatusCode___get_value__impl__we50mu(status);
|
|
359
359
|
var tmp_3 = emptyList();
|
|
360
|
-
var tmp0_safe_receiver = resolve_1(res, $this).
|
|
360
|
+
var tmp0_safe_receiver = resolve_1(res, $this).v19_1;
|
|
361
361
|
var tmp_4;
|
|
362
362
|
if (tmp0_safe_receiver == null) {
|
|
363
363
|
tmp_4 = null;
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
tmp_5 = toReference(tmp0_safe_receiver, $this);
|
|
371
371
|
} else {
|
|
372
372
|
if (tmp0_safe_receiver instanceof SchemaObject) {
|
|
373
|
-
tmp_5 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().
|
|
373
|
+
tmp_5 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().p1v([name, _StatusCode___get_value__impl__we50mu(status), item_2, 'ResponseBody']));
|
|
374
374
|
} else {
|
|
375
375
|
noWhenBranchMatchedException();
|
|
376
376
|
}
|
|
@@ -393,20 +393,20 @@
|
|
|
393
393
|
return tmp0_flatMapTo;
|
|
394
394
|
}
|
|
395
395
|
function parseParameters($this) {
|
|
396
|
-
return flatMapRequests($this.
|
|
396
|
+
return flatMapRequests($this.r1v_1, $this, OpenApiParser$parseParameters$lambda($this));
|
|
397
397
|
}
|
|
398
398
|
function parseRequestBody($this) {
|
|
399
|
-
return flatMapRequests($this.
|
|
399
|
+
return flatMapRequests($this.r1v_1, $this, OpenApiParser$parseRequestBody$lambda($this));
|
|
400
400
|
}
|
|
401
401
|
function parseResponseBody($this) {
|
|
402
|
-
return flatMapResponses($this.
|
|
402
|
+
return flatMapResponses($this.r1v_1, $this, OpenApiParser$parseResponseBody$lambda($this));
|
|
403
403
|
}
|
|
404
404
|
function parseDefinitions($this) {
|
|
405
405
|
// Inline function 'kotlin.collections.flatMap' call
|
|
406
406
|
// Inline function 'kotlin.collections.filter' call
|
|
407
407
|
// Inline function 'arrow.core.filterIsInstance' call
|
|
408
408
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
409
|
-
var tmp0_elvis_lhs = $this.
|
|
409
|
+
var tmp0_elvis_lhs = $this.r1v_1.o15_1;
|
|
410
410
|
var tmp1_filterIsInstance = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
411
411
|
// Inline function 'kotlin.collections.filterValues' call
|
|
412
412
|
var result = LinkedHashMap_init_$Create$();
|
|
@@ -428,7 +428,7 @@
|
|
|
428
428
|
while (tmp0_iterator_0.d()) {
|
|
429
429
|
var element = tmp0_iterator_0.e();
|
|
430
430
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
431
|
-
if (element.w().
|
|
431
|
+
if (element.w().n19_1 == null) {
|
|
432
432
|
tmp0_filterTo.m3(element.v(), element.w());
|
|
433
433
|
}
|
|
434
434
|
}
|
|
@@ -439,7 +439,7 @@
|
|
|
439
439
|
while (tmp0_iterator_1.d()) {
|
|
440
440
|
var element_0 = tmp0_iterator_1.e();
|
|
441
441
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
442
|
-
var list = flatten(element_0.w(), $this, Common_getInstance().
|
|
442
|
+
var list = flatten(element_0.w(), $this, Common_getInstance().p1v([element_0.v()]));
|
|
443
443
|
addAll(tmp0_flatMapTo, list);
|
|
444
444
|
}
|
|
445
445
|
return tmp0_flatMapTo;
|
|
@@ -447,7 +447,7 @@
|
|
|
447
447
|
function resolveParameters(_this__u8e3s4, $this) {
|
|
448
448
|
// Inline function 'kotlin.collections.map' call
|
|
449
449
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
450
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
450
|
+
var tmp0_elvis_lhs = _this__u8e3s4.y16_1;
|
|
451
451
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
452
452
|
// Inline function 'kotlin.collections.mapTo' call
|
|
453
453
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -474,7 +474,7 @@
|
|
|
474
474
|
function resolveParameters_0(_this__u8e3s4, $this) {
|
|
475
475
|
// Inline function 'kotlin.collections.map' call
|
|
476
476
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
477
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
477
|
+
var tmp0_elvis_lhs = _this__u8e3s4.n16_1;
|
|
478
478
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
479
479
|
// Inline function 'kotlin.collections.mapTo' call
|
|
480
480
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -499,11 +499,11 @@
|
|
|
499
499
|
return tmp0_mapTo;
|
|
500
500
|
}
|
|
501
501
|
function resolveParameterObject(_this__u8e3s4, $this) {
|
|
502
|
-
var tmp0_safe_receiver = $this.
|
|
502
|
+
var tmp0_safe_receiver = $this.r1v_1.p15_1;
|
|
503
503
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o2(getReference(_this__u8e3s4, $this));
|
|
504
504
|
var tmp;
|
|
505
505
|
if (tmp1_elvis_lhs == null) {
|
|
506
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
506
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.h18_1);
|
|
507
507
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
508
508
|
} else {
|
|
509
509
|
tmp = tmp1_elvis_lhs;
|
|
@@ -511,11 +511,11 @@
|
|
|
511
511
|
return tmp;
|
|
512
512
|
}
|
|
513
513
|
function resolveResponseObject(_this__u8e3s4, $this) {
|
|
514
|
-
var tmp0_safe_receiver = $this.
|
|
514
|
+
var tmp0_safe_receiver = $this.r1v_1.q15_1;
|
|
515
515
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o2(getReference(_this__u8e3s4, $this));
|
|
516
516
|
var tmp;
|
|
517
517
|
if (tmp1_elvis_lhs == null) {
|
|
518
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
518
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.h18_1);
|
|
519
519
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
520
520
|
} else {
|
|
521
521
|
tmp = tmp1_elvis_lhs;
|
|
@@ -523,11 +523,11 @@
|
|
|
523
523
|
return tmp;
|
|
524
524
|
}
|
|
525
525
|
function resolveSchemaObject(_this__u8e3s4, $this) {
|
|
526
|
-
var tmp0_safe_receiver = $this.
|
|
526
|
+
var tmp0_safe_receiver = $this.r1v_1.o15_1;
|
|
527
527
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o2(getReference(_this__u8e3s4, $this));
|
|
528
528
|
var tmp;
|
|
529
529
|
if (tmp1_elvis_lhs == null) {
|
|
530
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
530
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.h18_1);
|
|
531
531
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
532
532
|
} else {
|
|
533
533
|
tmp = tmp1_elvis_lhs;
|
|
@@ -592,12 +592,12 @@
|
|
|
592
592
|
}
|
|
593
593
|
function flatten(_this__u8e3s4, $this, name) {
|
|
594
594
|
var tmp;
|
|
595
|
-
if (!(_this__u8e3s4.
|
|
595
|
+
if (!(_this__u8e3s4.n19_1 == null)) {
|
|
596
596
|
var tmp_0;
|
|
597
|
-
if (_this__u8e3s4.
|
|
597
|
+
if (_this__u8e3s4.n19_1 instanceof BooleanObject) {
|
|
598
598
|
tmp_0 = emptyList();
|
|
599
599
|
} else {
|
|
600
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
600
|
+
var tmp1_safe_receiver = _this__u8e3s4.n19_1;
|
|
601
601
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_0(tmp1_safe_receiver, $this);
|
|
602
602
|
var tmp_1;
|
|
603
603
|
if (tmp2_safe_receiver == null) {
|
|
@@ -607,7 +607,7 @@
|
|
|
607
607
|
// Inline function 'kotlin.contracts.contract' call
|
|
608
608
|
var tmp_2;
|
|
609
609
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
610
|
-
if (!(tmp2_safe_receiver.
|
|
610
|
+
if (!(tmp2_safe_receiver.m19_1 == null)) {
|
|
611
611
|
tmp_2 = tmp2_safe_receiver;
|
|
612
612
|
} else {
|
|
613
613
|
tmp_2 = null;
|
|
@@ -619,11 +619,11 @@
|
|
|
619
619
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
620
620
|
}
|
|
621
621
|
tmp = tmp_0;
|
|
622
|
-
} else if (!(_this__u8e3s4.
|
|
622
|
+
} else if (!(_this__u8e3s4.l19_1 == null)) {
|
|
623
623
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
624
624
|
// Inline function 'kotlin.collections.flatMap' call
|
|
625
625
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
626
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
626
|
+
var tmp0_elvis_lhs = _this__u8e3s4.l19_1;
|
|
627
627
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
628
628
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
629
629
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -650,14 +650,14 @@
|
|
|
650
650
|
while (tmp0_iterator_0.d()) {
|
|
651
651
|
var e = tmp0_iterator_0.e();
|
|
652
652
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
653
|
-
var key = e.
|
|
653
|
+
var key = e.l1r_1;
|
|
654
654
|
if (set.a(key)) {
|
|
655
655
|
list_0.a(e);
|
|
656
656
|
}
|
|
657
657
|
}
|
|
658
658
|
var tmp_4 = listOf(new Type(name, new Shape(list_0)));
|
|
659
659
|
// Inline function 'kotlin.collections.flatMap' call
|
|
660
|
-
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.
|
|
660
|
+
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.l19_1);
|
|
661
661
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
662
662
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
663
663
|
var tmp0_iterator_1 = tmp3_flatMap.c();
|
|
@@ -671,7 +671,7 @@
|
|
|
671
671
|
if (element_0 instanceof SchemaObject) {
|
|
672
672
|
// Inline function 'kotlin.collections.flatMap' call
|
|
673
673
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
674
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
674
|
+
var tmp0_elvis_lhs_0 = element_0.m19_1;
|
|
675
675
|
var tmp1_flatMap_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
676
676
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
677
677
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
@@ -689,7 +689,7 @@
|
|
|
689
689
|
tmp_6 = emptyList();
|
|
690
690
|
} else {
|
|
691
691
|
if (value instanceof SchemaObject) {
|
|
692
|
-
tmp_6 = flatten(value, $this, Common_getInstance().
|
|
692
|
+
tmp_6 = flatten(value, $this, Common_getInstance().p1v([name, key_0]));
|
|
693
693
|
} else {
|
|
694
694
|
noWhenBranchMatchedException();
|
|
695
695
|
}
|
|
@@ -706,10 +706,10 @@
|
|
|
706
706
|
addAll(tmp0_flatMapTo_0, list_2);
|
|
707
707
|
}
|
|
708
708
|
tmp = plus(tmp_4, tmp0_flatMapTo_0);
|
|
709
|
-
} else if (!(_this__u8e3s4.
|
|
709
|
+
} else if (!(_this__u8e3s4.i19_1 == null)) {
|
|
710
710
|
// Inline function 'kotlin.let' call
|
|
711
711
|
// Inline function 'kotlin.collections.map' call
|
|
712
|
-
var tmp4_map = ensureNotNull(_this__u8e3s4.
|
|
712
|
+
var tmp4_map = ensureNotNull(_this__u8e3s4.i19_1);
|
|
713
713
|
// Inline function 'kotlin.collections.mapTo' call
|
|
714
714
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp4_map, 10));
|
|
715
715
|
var tmp0_iterator_3 = tmp4_map.c();
|
|
@@ -717,7 +717,7 @@
|
|
|
717
717
|
var item = tmp0_iterator_3.e();
|
|
718
718
|
var tmp$ret$18;
|
|
719
719
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
720
|
-
tmp$ret$18 = item.
|
|
720
|
+
tmp$ret$18 = item.hy();
|
|
721
721
|
tmp0_mapTo.a(tmp$ret$18);
|
|
722
722
|
}
|
|
723
723
|
var tmp5_let = toSet(tmp0_mapTo);
|
|
@@ -725,16 +725,16 @@
|
|
|
725
725
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
726
726
|
tmp = listOf(new Enum(name, tmp5_let));
|
|
727
727
|
} else {
|
|
728
|
-
var tmp5_subject = _this__u8e3s4.
|
|
728
|
+
var tmp5_subject = _this__u8e3s4.j19_1;
|
|
729
729
|
var tmp_7;
|
|
730
|
-
switch (tmp5_subject == null ? -1 : tmp5_subject.
|
|
730
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.u4_1) {
|
|
731
731
|
case -1:
|
|
732
732
|
case 5:
|
|
733
733
|
// Inline function 'kotlin.collections.flatMap' call
|
|
734
734
|
|
|
735
735
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
736
736
|
|
|
737
|
-
var tmp0_elvis_lhs_1 = _this__u8e3s4.
|
|
737
|
+
var tmp0_elvis_lhs_1 = _this__u8e3s4.m19_1;
|
|
738
738
|
var tmp7_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
739
739
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
740
740
|
|
|
@@ -749,7 +749,7 @@
|
|
|
749
749
|
var key_1 = element_2.v();
|
|
750
750
|
// Inline function 'kotlin.collections.component2' call
|
|
751
751
|
var value_0 = element_2.w();
|
|
752
|
-
var list_3 = flatten_0(value_0, $this, Common_getInstance().
|
|
752
|
+
var list_3 = flatten_0(value_0, $this, Common_getInstance().p1v([name, key_1]));
|
|
753
753
|
addAll(tmp0_flatMapTo_2, list_3);
|
|
754
754
|
}
|
|
755
755
|
|
|
@@ -758,13 +758,13 @@
|
|
|
758
758
|
tmp_7 = plus(schema, fields);
|
|
759
759
|
break;
|
|
760
760
|
case 4:
|
|
761
|
-
var it = _this__u8e3s4.
|
|
761
|
+
var it = _this__u8e3s4.k19_1;
|
|
762
762
|
var tmp_8;
|
|
763
763
|
if (it instanceof ReferenceObject) {
|
|
764
764
|
tmp_8 = emptyList();
|
|
765
765
|
} else {
|
|
766
766
|
if (it instanceof SchemaObject) {
|
|
767
|
-
tmp_8 = flatten(it, $this, Common_getInstance().
|
|
767
|
+
tmp_8 = flatten(it, $this, Common_getInstance().p1v([name, 'Array']));
|
|
768
768
|
} else {
|
|
769
769
|
if (it == null) {
|
|
770
770
|
tmp_8 = emptyList();
|
|
@@ -804,8 +804,8 @@
|
|
|
804
804
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
|
|
805
805
|
var schema = resolve(tmp0_let, $this);
|
|
806
806
|
var tmp;
|
|
807
|
-
if (!(schema.
|
|
808
|
-
var additionalProperties = ensureNotNull(schema.
|
|
807
|
+
if (!(schema.n19_1 == null)) {
|
|
808
|
+
var additionalProperties = ensureNotNull(schema.n19_1);
|
|
809
809
|
var tmp_0;
|
|
810
810
|
if (additionalProperties instanceof BooleanObject) {
|
|
811
811
|
tmp_0 = new Any(false, true);
|
|
@@ -821,24 +821,24 @@
|
|
|
821
821
|
}
|
|
822
822
|
}
|
|
823
823
|
tmp = tmp_0;
|
|
824
|
-
} else if (!(schema.
|
|
825
|
-
tmp = new Custom(Common_getInstance().
|
|
826
|
-
} else if (isPrimitive(schema.
|
|
827
|
-
tmp = new Primitive(toPrimitive(ensureNotNull(schema.
|
|
824
|
+
} else if (!(schema.i19_1 == null)) {
|
|
825
|
+
tmp = new Custom(Common_getInstance().p1v([getReference(_this__u8e3s4, $this)]), false, false);
|
|
826
|
+
} else if (isPrimitive(schema.j19_1)) {
|
|
827
|
+
tmp = new Primitive(toPrimitive(ensureNotNull(schema.j19_1), $this), false, false);
|
|
828
828
|
} else {
|
|
829
|
-
var tmp0_subject = schema.
|
|
829
|
+
var tmp0_subject = schema.j19_1;
|
|
830
830
|
var tmp_1;
|
|
831
|
-
if ((tmp0_subject == null ? -1 : tmp0_subject.
|
|
832
|
-
var items = schema.
|
|
831
|
+
if ((tmp0_subject == null ? -1 : tmp0_subject.u4_1) === 4) {
|
|
832
|
+
var items = schema.k19_1;
|
|
833
833
|
var tmp_2;
|
|
834
834
|
if (items instanceof ReferenceObject) {
|
|
835
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
835
|
+
tmp_2 = new Custom(Common_getInstance().p1v([getReference(items, $this)]), true);
|
|
836
836
|
} else {
|
|
837
837
|
if (items instanceof SchemaObject) {
|
|
838
|
-
tmp_2 = toIterable(toReference_0(items, $this, Common_getInstance().
|
|
838
|
+
tmp_2 = toIterable(toReference_0(items, $this, Common_getInstance().p1v([getReference(_this__u8e3s4, $this), 'Array'])));
|
|
839
839
|
} else {
|
|
840
840
|
if (items == null) {
|
|
841
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.
|
|
841
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.h18_1);
|
|
842
842
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
843
843
|
} else {
|
|
844
844
|
noWhenBranchMatchedException();
|
|
@@ -849,10 +849,10 @@
|
|
|
849
849
|
} else {
|
|
850
850
|
var tmp_3;
|
|
851
851
|
if (tmp0_let instanceof SchemaObject) {
|
|
852
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
852
|
+
tmp_3 = new Custom(Common_getInstance().p1v([getReference(_this__u8e3s4, $this)]), false);
|
|
853
853
|
} else {
|
|
854
854
|
if (tmp0_let instanceof ReferenceObject) {
|
|
855
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
855
|
+
tmp_3 = new Custom(Common_getInstance().p1v([getReference(tmp0_let, $this)]), false);
|
|
856
856
|
} else {
|
|
857
857
|
noWhenBranchMatchedException();
|
|
858
858
|
}
|
|
@@ -865,8 +865,8 @@
|
|
|
865
865
|
}
|
|
866
866
|
function toReference_0(_this__u8e3s4, $this, name) {
|
|
867
867
|
var tmp;
|
|
868
|
-
if (!(_this__u8e3s4.
|
|
869
|
-
var additionalProperties = ensureNotNull(_this__u8e3s4.
|
|
868
|
+
if (!(_this__u8e3s4.n19_1 == null)) {
|
|
869
|
+
var additionalProperties = ensureNotNull(_this__u8e3s4.n19_1);
|
|
870
870
|
var tmp_0;
|
|
871
871
|
if (additionalProperties instanceof BooleanObject) {
|
|
872
872
|
tmp_0 = new Any(false, true);
|
|
@@ -879,7 +879,7 @@
|
|
|
879
879
|
// Inline function 'kotlin.contracts.contract' call
|
|
880
880
|
var tmp_1;
|
|
881
881
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
|
|
882
|
-
if (isPrimitive(additionalProperties.
|
|
882
|
+
if (isPrimitive(additionalProperties.j19_1) ? true : !(additionalProperties.m19_1 == null)) {
|
|
883
883
|
tmp_1 = additionalProperties;
|
|
884
884
|
} else {
|
|
885
885
|
tmp_1 = null;
|
|
@@ -902,32 +902,32 @@
|
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
904
|
tmp = tmp_0;
|
|
905
|
-
} else if (!(_this__u8e3s4.
|
|
906
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
905
|
+
} else if (!(_this__u8e3s4.i19_1 == null)) {
|
|
906
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.n19_1 == null));
|
|
907
907
|
} else {
|
|
908
|
-
var type = _this__u8e3s4.
|
|
908
|
+
var type = _this__u8e3s4.j19_1;
|
|
909
909
|
var tmp_3;
|
|
910
|
-
switch (type == null ? -1 : type.
|
|
910
|
+
switch (type == null ? -1 : type.u4_1) {
|
|
911
911
|
case 0:
|
|
912
912
|
case 2:
|
|
913
913
|
case 1:
|
|
914
914
|
case 3:
|
|
915
|
-
tmp_3 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.
|
|
915
|
+
tmp_3 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.n19_1 == null));
|
|
916
916
|
break;
|
|
917
917
|
case -1:
|
|
918
918
|
case 5:
|
|
919
919
|
var tmp_4;
|
|
920
|
-
var tmp_5 = _this__u8e3s4.
|
|
920
|
+
var tmp_5 = _this__u8e3s4.n19_1;
|
|
921
921
|
if (tmp_5 instanceof BooleanObject) {
|
|
922
|
-
tmp_4 = new Any(false, !(_this__u8e3s4.
|
|
922
|
+
tmp_4 = new Any(false, !(_this__u8e3s4.n19_1 == null));
|
|
923
923
|
} else {
|
|
924
|
-
tmp_4 = new Custom(name, false, !(_this__u8e3s4.
|
|
924
|
+
tmp_4 = new Custom(name, false, !(_this__u8e3s4.n19_1 == null));
|
|
925
925
|
}
|
|
926
926
|
|
|
927
927
|
tmp_3 = tmp_4;
|
|
928
928
|
break;
|
|
929
929
|
case 4:
|
|
930
|
-
var it = _this__u8e3s4.
|
|
930
|
+
var it = _this__u8e3s4.k19_1;
|
|
931
931
|
var tmp_6;
|
|
932
932
|
if (it instanceof ReferenceObject) {
|
|
933
933
|
tmp_6 = toIterable(toReference(it, $this));
|
|
@@ -967,30 +967,30 @@
|
|
|
967
967
|
var tmp$ret$0;
|
|
968
968
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toOperationList.<anonymous>' call
|
|
969
969
|
var tmp;
|
|
970
|
-
switch (element.
|
|
970
|
+
switch (element.u4_1) {
|
|
971
971
|
case 0:
|
|
972
|
-
tmp = _this__u8e3s4.
|
|
972
|
+
tmp = _this__u8e3s4.e16_1;
|
|
973
973
|
break;
|
|
974
974
|
case 1:
|
|
975
|
-
tmp = _this__u8e3s4.
|
|
975
|
+
tmp = _this__u8e3s4.g16_1;
|
|
976
976
|
break;
|
|
977
977
|
case 2:
|
|
978
|
-
tmp = _this__u8e3s4.
|
|
978
|
+
tmp = _this__u8e3s4.f16_1;
|
|
979
979
|
break;
|
|
980
980
|
case 3:
|
|
981
|
-
tmp = _this__u8e3s4.
|
|
981
|
+
tmp = _this__u8e3s4.h16_1;
|
|
982
982
|
break;
|
|
983
983
|
case 4:
|
|
984
|
-
tmp = _this__u8e3s4.
|
|
984
|
+
tmp = _this__u8e3s4.i16_1;
|
|
985
985
|
break;
|
|
986
986
|
case 5:
|
|
987
|
-
tmp = _this__u8e3s4.
|
|
987
|
+
tmp = _this__u8e3s4.j16_1;
|
|
988
988
|
break;
|
|
989
989
|
case 6:
|
|
990
|
-
tmp = _this__u8e3s4.
|
|
990
|
+
tmp = _this__u8e3s4.k16_1;
|
|
991
991
|
break;
|
|
992
992
|
case 7:
|
|
993
|
-
tmp = _this__u8e3s4.
|
|
993
|
+
tmp = _this__u8e3s4.l16_1;
|
|
994
994
|
break;
|
|
995
995
|
default:
|
|
996
996
|
noWhenBranchMatchedException();
|
|
@@ -1002,11 +1002,11 @@
|
|
|
1002
1002
|
return filterNotNullValues(result);
|
|
1003
1003
|
}
|
|
1004
1004
|
function getReference(_this__u8e3s4, $this) {
|
|
1005
|
-
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
1005
|
+
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.h18_1), ['/']).h(2);
|
|
1006
1006
|
}
|
|
1007
1007
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
1008
1008
|
var tmp;
|
|
1009
|
-
switch (_this__u8e3s4.
|
|
1009
|
+
switch (_this__u8e3s4.u4_1) {
|
|
1010
1010
|
case 0:
|
|
1011
1011
|
tmp = Type_String_getInstance();
|
|
1012
1012
|
break;
|
|
@@ -1027,7 +1027,7 @@
|
|
|
1027
1027
|
function toField(_this__u8e3s4, $this, name) {
|
|
1028
1028
|
// Inline function 'kotlin.collections.map' call
|
|
1029
1029
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1030
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1030
|
+
var tmp0_elvis_lhs = _this__u8e3s4.m19_1;
|
|
1031
1031
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1032
1032
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1033
1033
|
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.f());
|
|
@@ -1044,15 +1044,15 @@
|
|
|
1044
1044
|
var tmp;
|
|
1045
1045
|
if (value instanceof SchemaObject) {
|
|
1046
1046
|
var tmp_0 = new Identifier(key);
|
|
1047
|
-
var tmp_1 = !(value.
|
|
1048
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
1047
|
+
var tmp_1 = !(value.i19_1 == null) ? toReference_0(value, $this, Common_getInstance().p1v([name, key])) : equals(value.j19_1, Type_ARRAY_getInstance()) ? toReference_0(value, $this, Common_getInstance().p1v([name, key, 'Array'])) : toReference_0(value, $this, Common_getInstance().p1v([name, key]));
|
|
1048
|
+
var tmp1_safe_receiver = _this__u8e3s4.h19_1;
|
|
1049
1049
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k1(key);
|
|
1050
1050
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
1051
1051
|
} else {
|
|
1052
1052
|
if (value instanceof ReferenceObject) {
|
|
1053
1053
|
var tmp_2 = new Identifier(key);
|
|
1054
1054
|
var tmp_3 = toReference(value, $this);
|
|
1055
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
1055
|
+
var tmp3_safe_receiver = _this__u8e3s4.h19_1;
|
|
1056
1056
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.k1(key);
|
|
1057
1057
|
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
1058
1058
|
} else {
|
|
@@ -1071,12 +1071,12 @@
|
|
|
1071
1071
|
// Inline function 'kotlin.contracts.contract' call
|
|
1072
1072
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1073
1073
|
var tmp;
|
|
1074
|
-
if (!(_this__u8e3s4.
|
|
1075
|
-
tmp = new Custom(Common_getInstance().
|
|
1074
|
+
if (!(_this__u8e3s4.c18_1 == null)) {
|
|
1075
|
+
tmp = new Custom(Common_getInstance().p1v([name, 'Parameter', tmp0_let.h17_1]), false);
|
|
1076
1076
|
} else {
|
|
1077
|
-
var type = tmp0_let.
|
|
1077
|
+
var type = tmp0_let.m17_1;
|
|
1078
1078
|
var tmp_0;
|
|
1079
|
-
switch (type == null ? -1 : type.
|
|
1079
|
+
switch (type == null ? -1 : type.u4_1) {
|
|
1080
1080
|
case 0:
|
|
1081
1081
|
case 1:
|
|
1082
1082
|
case 2:
|
|
@@ -1091,9 +1091,9 @@
|
|
|
1091
1091
|
tmp_0 = new Primitive(tmp0_let_0, false);
|
|
1092
1092
|
break;
|
|
1093
1093
|
case 4:
|
|
1094
|
-
var tmp0_safe_receiver = tmp0_let.
|
|
1094
|
+
var tmp0_safe_receiver = tmp0_let.n17_1;
|
|
1095
1095
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve(tmp0_safe_receiver, $this);
|
|
1096
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1096
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.j19_1;
|
|
1097
1097
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toPrimitive(tmp2_safe_receiver, $this);
|
|
1098
1098
|
var tmp_1;
|
|
1099
1099
|
if (tmp3_safe_receiver == null) {
|
|
@@ -1130,8 +1130,8 @@
|
|
|
1130
1130
|
var tmp1_let = tmp;
|
|
1131
1131
|
// Inline function 'kotlin.contracts.contract' call
|
|
1132
1132
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1133
|
-
var tmp_3 = new Identifier(_this__u8e3s4.
|
|
1134
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1133
|
+
var tmp_3 = new Identifier(_this__u8e3s4.h17_1);
|
|
1134
|
+
var tmp0_elvis_lhs = _this__u8e3s4.k17_1;
|
|
1135
1135
|
return new Field(tmp_3, tmp1_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
1136
1136
|
}
|
|
1137
1137
|
function toSegments(_this__u8e3s4, $this, parameters) {
|
|
@@ -1172,7 +1172,7 @@
|
|
|
1172
1172
|
while (tmp0_iterator_0.d()) {
|
|
1173
1173
|
var element = tmp0_iterator_0.e();
|
|
1174
1174
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1175
|
-
if (element.
|
|
1175
|
+
if (element.h17_1 === param) {
|
|
1176
1176
|
tmp$ret$4 = element;
|
|
1177
1177
|
break $l$block;
|
|
1178
1178
|
}
|
|
@@ -1187,7 +1187,7 @@
|
|
|
1187
1187
|
// Inline function 'kotlin.let' call
|
|
1188
1188
|
// Inline function 'kotlin.contracts.contract' call
|
|
1189
1189
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1190
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver.
|
|
1190
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver.m17_1;
|
|
1191
1191
|
tmp_2 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, $this);
|
|
1192
1192
|
}
|
|
1193
1193
|
var tmp1_safe_receiver = tmp_2;
|
|
@@ -1221,7 +1221,7 @@
|
|
|
1221
1221
|
return charSequenceGet(_this__u8e3s4, 0) === _Char___init__impl__6a9atx(123) ? charSequenceGet(_this__u8e3s4, _this__u8e3s4.length - 1 | 0) === _Char___init__impl__6a9atx(125) : false;
|
|
1222
1222
|
}
|
|
1223
1223
|
function toName(_this__u8e3s4, $this) {
|
|
1224
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1224
|
+
var tmp0_safe_receiver = _this__u8e3s4.v16_1;
|
|
1225
1225
|
var tmp;
|
|
1226
1226
|
if (tmp0_safe_receiver == null) {
|
|
1227
1227
|
tmp = null;
|
|
@@ -1229,7 +1229,7 @@
|
|
|
1229
1229
|
// Inline function 'kotlin.let' call
|
|
1230
1230
|
// Inline function 'kotlin.contracts.contract' call
|
|
1231
1231
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
1232
|
-
tmp = Common_getInstance().
|
|
1232
|
+
tmp = Common_getInstance().p1v([tmp0_safe_receiver]);
|
|
1233
1233
|
}
|
|
1234
1234
|
return tmp;
|
|
1235
1235
|
}
|
|
@@ -1251,21 +1251,21 @@
|
|
|
1251
1251
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda($this));
|
|
1252
1252
|
}
|
|
1253
1253
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
1254
|
-
this.
|
|
1255
|
-
this.
|
|
1256
|
-
this.
|
|
1257
|
-
this.
|
|
1258
|
-
this.
|
|
1254
|
+
this.u1v_1 = path;
|
|
1255
|
+
this.v1v_1 = pathItem;
|
|
1256
|
+
this.w1v_1 = method;
|
|
1257
|
+
this.x1v_1 = operation;
|
|
1258
|
+
this.y1v_1 = type;
|
|
1259
1259
|
}
|
|
1260
1260
|
protoOf(FlattenRequest).toString = function () {
|
|
1261
|
-
return 'FlattenRequest(path=' + new Path(this.
|
|
1261
|
+
return 'FlattenRequest(path=' + new Path(this.u1v_1) + ', pathItem=' + this.v1v_1 + ', method=' + this.w1v_1 + ', operation=' + this.x1v_1 + ', type=' + this.y1v_1 + ')';
|
|
1262
1262
|
};
|
|
1263
1263
|
protoOf(FlattenRequest).hashCode = function () {
|
|
1264
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1265
|
-
result = imul(result, 31) + this.
|
|
1266
|
-
result = imul(result, 31) + this.
|
|
1267
|
-
result = imul(result, 31) + this.
|
|
1268
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1264
|
+
var result = Path__hashCode_impl_go73kd(this.u1v_1);
|
|
1265
|
+
result = imul(result, 31) + this.v1v_1.hashCode() | 0;
|
|
1266
|
+
result = imul(result, 31) + this.w1v_1.hashCode() | 0;
|
|
1267
|
+
result = imul(result, 31) + this.x1v_1.hashCode() | 0;
|
|
1268
|
+
result = imul(result, 31) + getStringHashCode(this.y1v_1) | 0;
|
|
1269
1269
|
return result;
|
|
1270
1270
|
};
|
|
1271
1271
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -1274,22 +1274,22 @@
|
|
|
1274
1274
|
if (!(other instanceof FlattenRequest))
|
|
1275
1275
|
return false;
|
|
1276
1276
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
1277
|
-
if (!(this.
|
|
1277
|
+
if (!(this.u1v_1 === tmp0_other_with_cast.u1v_1))
|
|
1278
1278
|
return false;
|
|
1279
|
-
if (!this.
|
|
1279
|
+
if (!this.v1v_1.equals(tmp0_other_with_cast.v1v_1))
|
|
1280
1280
|
return false;
|
|
1281
|
-
if (!this.
|
|
1281
|
+
if (!this.w1v_1.equals(tmp0_other_with_cast.w1v_1))
|
|
1282
1282
|
return false;
|
|
1283
|
-
if (!this.
|
|
1283
|
+
if (!this.x1v_1.equals(tmp0_other_with_cast.x1v_1))
|
|
1284
1284
|
return false;
|
|
1285
|
-
if (!(this.
|
|
1285
|
+
if (!(this.y1v_1 === tmp0_other_with_cast.y1v_1))
|
|
1286
1286
|
return false;
|
|
1287
1287
|
return true;
|
|
1288
1288
|
};
|
|
1289
1289
|
function flatMapRequests(_this__u8e3s4, $this, f) {
|
|
1290
1290
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1291
1291
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1292
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
1292
|
+
var tmp0_flatMap = _this__u8e3s4.n15_1;
|
|
1293
1293
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1294
1294
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1295
1295
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1298,7 +1298,7 @@
|
|
|
1298
1298
|
var element = tmp0_iterator.e();
|
|
1299
1299
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
1300
1300
|
// Inline function 'kotlin.collections.component1' call
|
|
1301
|
-
var path = element.v().
|
|
1301
|
+
var path = element.v().y15_1;
|
|
1302
1302
|
// Inline function 'kotlin.collections.component2' call
|
|
1303
1303
|
var pathItem = element.w();
|
|
1304
1304
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -1315,8 +1315,8 @@
|
|
|
1315
1315
|
// Inline function 'kotlin.collections.component2' call
|
|
1316
1316
|
var operation = element_0.w();
|
|
1317
1317
|
// Inline function 'kotlin.collections.map' call
|
|
1318
|
-
var tmp0_elvis_lhs = $this.
|
|
1319
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? operation.
|
|
1318
|
+
var tmp0_elvis_lhs = $this.r1v_1.l15_1;
|
|
1319
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? operation.w16_1 : tmp0_elvis_lhs;
|
|
1320
1320
|
var tmp0_map = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
|
|
1321
1321
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1322
1322
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
@@ -1346,25 +1346,25 @@
|
|
|
1346
1346
|
return tmp0_flatMapTo_1;
|
|
1347
1347
|
}
|
|
1348
1348
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
1349
|
-
this.
|
|
1350
|
-
this.
|
|
1351
|
-
this.
|
|
1352
|
-
this.
|
|
1353
|
-
this.
|
|
1354
|
-
this.
|
|
1355
|
-
this.
|
|
1349
|
+
this.z1v_1 = path;
|
|
1350
|
+
this.a1w_1 = pathItem;
|
|
1351
|
+
this.b1w_1 = method;
|
|
1352
|
+
this.c1w_1 = operation;
|
|
1353
|
+
this.d1w_1 = statusCode;
|
|
1354
|
+
this.e1w_1 = response;
|
|
1355
|
+
this.f1w_1 = type;
|
|
1356
1356
|
}
|
|
1357
1357
|
protoOf(FlattenResponse).toString = function () {
|
|
1358
|
-
return 'FlattenResponse(path=' + new Path(this.
|
|
1358
|
+
return 'FlattenResponse(path=' + new Path(this.z1v_1) + ', pathItem=' + this.a1w_1 + ', method=' + this.b1w_1 + ', operation=' + this.c1w_1 + ', statusCode=' + new StatusCode(this.d1w_1) + ', response=' + this.e1w_1 + ', type=' + this.f1w_1 + ')';
|
|
1359
1359
|
};
|
|
1360
1360
|
protoOf(FlattenResponse).hashCode = function () {
|
|
1361
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1362
|
-
result = imul(result, 31) + this.
|
|
1363
|
-
result = imul(result, 31) + this.
|
|
1364
|
-
result = imul(result, 31) + this.
|
|
1365
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
1366
|
-
result = imul(result, 31) + hashCode(this.
|
|
1367
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1361
|
+
var result = Path__hashCode_impl_go73kd(this.z1v_1);
|
|
1362
|
+
result = imul(result, 31) + this.a1w_1.hashCode() | 0;
|
|
1363
|
+
result = imul(result, 31) + this.b1w_1.hashCode() | 0;
|
|
1364
|
+
result = imul(result, 31) + this.c1w_1.hashCode() | 0;
|
|
1365
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.d1w_1) | 0;
|
|
1366
|
+
result = imul(result, 31) + hashCode(this.e1w_1) | 0;
|
|
1367
|
+
result = imul(result, 31) + getStringHashCode(this.f1w_1) | 0;
|
|
1368
1368
|
return result;
|
|
1369
1369
|
};
|
|
1370
1370
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -1373,26 +1373,26 @@
|
|
|
1373
1373
|
if (!(other instanceof FlattenResponse))
|
|
1374
1374
|
return false;
|
|
1375
1375
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
1376
|
-
if (!(this.
|
|
1376
|
+
if (!(this.z1v_1 === tmp0_other_with_cast.z1v_1))
|
|
1377
1377
|
return false;
|
|
1378
|
-
if (!this.
|
|
1378
|
+
if (!this.a1w_1.equals(tmp0_other_with_cast.a1w_1))
|
|
1379
1379
|
return false;
|
|
1380
|
-
if (!this.
|
|
1380
|
+
if (!this.b1w_1.equals(tmp0_other_with_cast.b1w_1))
|
|
1381
1381
|
return false;
|
|
1382
|
-
if (!this.
|
|
1382
|
+
if (!this.c1w_1.equals(tmp0_other_with_cast.c1w_1))
|
|
1383
1383
|
return false;
|
|
1384
|
-
if (!(this.
|
|
1384
|
+
if (!(this.d1w_1 === tmp0_other_with_cast.d1w_1))
|
|
1385
1385
|
return false;
|
|
1386
|
-
if (!equals(this.
|
|
1386
|
+
if (!equals(this.e1w_1, tmp0_other_with_cast.e1w_1))
|
|
1387
1387
|
return false;
|
|
1388
|
-
if (!(this.
|
|
1388
|
+
if (!(this.f1w_1 === tmp0_other_with_cast.f1w_1))
|
|
1389
1389
|
return false;
|
|
1390
1390
|
return true;
|
|
1391
1391
|
};
|
|
1392
1392
|
function flatMapResponses(_this__u8e3s4, $this, f) {
|
|
1393
1393
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1394
1394
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1395
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
1395
|
+
var tmp0_flatMap = _this__u8e3s4.n15_1;
|
|
1396
1396
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1397
1397
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1398
1398
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1401,7 +1401,7 @@
|
|
|
1401
1401
|
var element = tmp0_iterator.e();
|
|
1402
1402
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
1403
1403
|
// Inline function 'kotlin.collections.component1' call
|
|
1404
|
-
var path = element.v().
|
|
1404
|
+
var path = element.v().y15_1;
|
|
1405
1405
|
// Inline function 'kotlin.collections.component2' call
|
|
1406
1406
|
var pathItem = element.w();
|
|
1407
1407
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -1419,7 +1419,7 @@
|
|
|
1419
1419
|
var operation = element_0.w();
|
|
1420
1420
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1421
1421
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1422
|
-
var tmp0_elvis_lhs = operation.
|
|
1422
|
+
var tmp0_elvis_lhs = operation.z16_1;
|
|
1423
1423
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1424
1424
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1425
1425
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
@@ -1429,12 +1429,12 @@
|
|
|
1429
1429
|
var element_1 = tmp0_iterator_1.e();
|
|
1430
1430
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
1431
1431
|
// Inline function 'kotlin.collections.component1' call
|
|
1432
|
-
var statusCode = element_1.v().
|
|
1432
|
+
var statusCode = element_1.v().r19_1;
|
|
1433
1433
|
// Inline function 'kotlin.collections.component2' call
|
|
1434
1434
|
var response = element_1.w();
|
|
1435
1435
|
// Inline function 'kotlin.collections.map' call
|
|
1436
|
-
var tmp0_elvis_lhs_0 = _this__u8e3s4.
|
|
1437
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.
|
|
1436
|
+
var tmp0_elvis_lhs_0 = _this__u8e3s4.m15_1;
|
|
1437
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.x16_1 : tmp0_elvis_lhs_0;
|
|
1438
1438
|
var tmp0_map = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
|
|
1439
1439
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1440
1440
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
@@ -1468,9 +1468,9 @@
|
|
|
1468
1468
|
}
|
|
1469
1469
|
function OpenApiParser$parseParameters$lambda(this$0) {
|
|
1470
1470
|
return function (req) {
|
|
1471
|
-
var parameters = plus(resolveParameters_0(req.
|
|
1472
|
-
var tmp0_elvis_lhs = toName(req.
|
|
1473
|
-
var name = tmp0_elvis_lhs == null ? toName_0(req.
|
|
1471
|
+
var parameters = plus(resolveParameters_0(req.v1v_1, this$0), resolveParameters(req.x1v_1, this$0));
|
|
1472
|
+
var tmp0_elvis_lhs = toName(req.x1v_1, this$0);
|
|
1473
|
+
var name = tmp0_elvis_lhs == null ? toName_0(req.u1v_1, this$0) + req.w1v_1.t4_1 : tmp0_elvis_lhs;
|
|
1474
1474
|
var tmp$ret$5;
|
|
1475
1475
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1476
1476
|
var tmp$ret$2;
|
|
@@ -1483,7 +1483,7 @@
|
|
|
1483
1483
|
var element = tmp0_iterator.e();
|
|
1484
1484
|
var tmp$ret$0;
|
|
1485
1485
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
1486
|
-
tmp$ret$0 = !element.
|
|
1486
|
+
tmp$ret$0 = !element.i17_1.equals(ParameterLocation_BODY_getInstance());
|
|
1487
1487
|
if (tmp$ret$0) {
|
|
1488
1488
|
tmp0_filterTo.a(element);
|
|
1489
1489
|
}
|
|
@@ -1499,8 +1499,8 @@
|
|
|
1499
1499
|
var element_0 = tmp0_iterator_0.e();
|
|
1500
1500
|
var tmp$ret$3;
|
|
1501
1501
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
1502
|
-
var tmp0_safe_receiver = element_0.
|
|
1503
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_0(tmp0_safe_receiver, this$0, Common_getInstance().
|
|
1502
|
+
var tmp0_safe_receiver = element_0.l17_1;
|
|
1503
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_0(tmp0_safe_receiver, this$0, Common_getInstance().p1v([name, 'Parameter', element_0.h17_1]));
|
|
1504
1504
|
tmp$ret$3 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
1505
1505
|
var list = tmp$ret$3;
|
|
1506
1506
|
addAll(tmp0_flatMapTo, list);
|
|
@@ -1512,9 +1512,9 @@
|
|
|
1512
1512
|
}
|
|
1513
1513
|
function OpenApiParser$parseRequestBody$lambda(this$0) {
|
|
1514
1514
|
return function (req) {
|
|
1515
|
-
var parameters = plus(resolveParameters_0(req.
|
|
1516
|
-
var tmp0_elvis_lhs = toName(req.
|
|
1517
|
-
var name = tmp0_elvis_lhs == null ? toName_0(req.
|
|
1515
|
+
var parameters = plus(resolveParameters_0(req.v1v_1, this$0), resolveParameters(req.x1v_1, this$0));
|
|
1516
|
+
var tmp0_elvis_lhs = toName(req.x1v_1, this$0);
|
|
1517
|
+
var name = tmp0_elvis_lhs == null ? toName_0(req.u1v_1, this$0) + req.w1v_1.t4_1 : tmp0_elvis_lhs;
|
|
1518
1518
|
var tmp$ret$5;
|
|
1519
1519
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1520
1520
|
var tmp$ret$4;
|
|
@@ -1526,11 +1526,11 @@
|
|
|
1526
1526
|
var tmp$ret$3;
|
|
1527
1527
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1528
1528
|
var tmp;
|
|
1529
|
-
if (!(element.
|
|
1530
|
-
var tmp_0 = Common_getInstance().
|
|
1529
|
+
if (!(element.c18_1 == null)) {
|
|
1530
|
+
var tmp_0 = Common_getInstance().p1v([name, 'Parameter', element.h17_1]);
|
|
1531
1531
|
var tmp$ret$2;
|
|
1532
1532
|
// Inline function 'kotlin.collections.map' call
|
|
1533
|
-
var tmp0_map = ensureNotNull(element.
|
|
1533
|
+
var tmp0_map = ensureNotNull(element.c18_1);
|
|
1534
1534
|
var tmp$ret$1;
|
|
1535
1535
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1536
1536
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
@@ -1539,7 +1539,7 @@
|
|
|
1539
1539
|
var item = tmp0_iterator_0.e();
|
|
1540
1540
|
var tmp$ret$0;
|
|
1541
1541
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
1542
|
-
tmp$ret$0 = item.
|
|
1542
|
+
tmp$ret$0 = item.hy();
|
|
1543
1543
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1544
1544
|
}
|
|
1545
1545
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -1555,7 +1555,7 @@
|
|
|
1555
1555
|
tmp$ret$4 = tmp0_flatMapTo;
|
|
1556
1556
|
tmp$ret$5 = tmp$ret$4;
|
|
1557
1557
|
var enums = tmp$ret$5;
|
|
1558
|
-
var tmp1_safe_receiver = req.
|
|
1558
|
+
var tmp1_safe_receiver = req.x1v_1.y16_1;
|
|
1559
1559
|
var tmp_1;
|
|
1560
1560
|
if (tmp1_safe_receiver == null) {
|
|
1561
1561
|
tmp_1 = null;
|
|
@@ -1592,7 +1592,7 @@
|
|
|
1592
1592
|
var element_0 = tmp0_iterator_2.e();
|
|
1593
1593
|
var tmp$ret$9;
|
|
1594
1594
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1595
|
-
tmp$ret$9 = element_0.
|
|
1595
|
+
tmp$ret$9 = element_0.i17_1.equals(ParameterLocation_BODY_getInstance());
|
|
1596
1596
|
if (tmp$ret$9) {
|
|
1597
1597
|
tmp0_filterTo.a(element_0);
|
|
1598
1598
|
}
|
|
@@ -1616,22 +1616,22 @@
|
|
|
1616
1616
|
var element_1 = tmp0_iterator_3.e();
|
|
1617
1617
|
var tmp$ret$13;
|
|
1618
1618
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1619
|
-
var schema = element_1.
|
|
1619
|
+
var schema = element_1.l17_1;
|
|
1620
1620
|
var tmp_4;
|
|
1621
1621
|
if (schema instanceof SchemaObject) {
|
|
1622
|
-
var tmp0_subject = schema.
|
|
1623
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.
|
|
1622
|
+
var tmp0_subject = schema.j19_1;
|
|
1623
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.u4_1;
|
|
1624
1624
|
var tmp_5;
|
|
1625
1625
|
switch (tmp0) {
|
|
1626
1626
|
case -1:
|
|
1627
1627
|
case 5:
|
|
1628
|
-
tmp_5 = flatten(schema, this$0, Common_getInstance().
|
|
1628
|
+
tmp_5 = flatten(schema, this$0, Common_getInstance().p1v([name, 'RequestBody']));
|
|
1629
1629
|
break;
|
|
1630
1630
|
case 4:
|
|
1631
1631
|
var tmp$ret$12;
|
|
1632
1632
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1633
|
-
var tmp1_safe_receiver_0 = schema.
|
|
1634
|
-
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
1633
|
+
var tmp1_safe_receiver_0 = schema.k19_1;
|
|
1634
|
+
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().p1v([name, 'RequestBody']));
|
|
1635
1635
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
1636
1636
|
tmp$ret$12 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1637
1637
|
|
|
@@ -1660,25 +1660,25 @@
|
|
|
1660
1660
|
}
|
|
1661
1661
|
function OpenApiParser$parseResponseBody$lambda(this$0) {
|
|
1662
1662
|
return function (res) {
|
|
1663
|
-
var response = resolve_1(res.
|
|
1664
|
-
var tmp0_elvis_lhs = toName(res.
|
|
1665
|
-
var name = tmp0_elvis_lhs == null ? toName_0(res.
|
|
1666
|
-
var schema = response.
|
|
1663
|
+
var response = resolve_1(res.e1w_1, this$0);
|
|
1664
|
+
var tmp0_elvis_lhs = toName(res.c1w_1, this$0);
|
|
1665
|
+
var name = tmp0_elvis_lhs == null ? toName_0(res.z1v_1, this$0) + res.b1w_1.t4_1 : tmp0_elvis_lhs;
|
|
1666
|
+
var schema = response.v19_1;
|
|
1667
1667
|
var tmp;
|
|
1668
1668
|
if (schema instanceof SchemaObject) {
|
|
1669
|
-
var tmp1_subject = schema.
|
|
1670
|
-
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.
|
|
1669
|
+
var tmp1_subject = schema.j19_1;
|
|
1670
|
+
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.u4_1;
|
|
1671
1671
|
var tmp_0;
|
|
1672
1672
|
switch (tmp0) {
|
|
1673
1673
|
case -1:
|
|
1674
1674
|
case 5:
|
|
1675
|
-
tmp_0 = flatten(schema, this$0, Common_getInstance().
|
|
1675
|
+
tmp_0 = flatten(schema, this$0, Common_getInstance().p1v([name, _StatusCode___get_value__impl__we50mu(res.d1w_1), res.f1w_1, 'ResponseBody']));
|
|
1676
1676
|
break;
|
|
1677
1677
|
case 4:
|
|
1678
1678
|
var tmp$ret$0;
|
|
1679
1679
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1680
|
-
var tmp2_safe_receiver = schema.
|
|
1681
|
-
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : flatten_0(tmp2_safe_receiver, this$0, Common_getInstance().
|
|
1680
|
+
var tmp2_safe_receiver = schema.k19_1;
|
|
1681
|
+
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : flatten_0(tmp2_safe_receiver, this$0, Common_getInstance().p1v([name, _StatusCode___get_value__impl__we50mu(res.d1w_1), res.f1w_1, 'ResponseBody']));
|
|
1682
1682
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
1683
1683
|
tmp$ret$0 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1684
1684
|
|
|
@@ -1710,10 +1710,10 @@
|
|
|
1710
1710
|
tmp$ret$0 = it;
|
|
1711
1711
|
tmp$ret$1 = tmp$ret$0.substring(1, tmp0_substring);
|
|
1712
1712
|
|
|
1713
|
-
tmp = tmp_0.
|
|
1713
|
+
tmp = tmp_0.p1v([tmp$ret$1]);
|
|
1714
1714
|
break;
|
|
1715
1715
|
case false:
|
|
1716
|
-
tmp = Common_getInstance().
|
|
1716
|
+
tmp = Common_getInstance().p1v([it]);
|
|
1717
1717
|
break;
|
|
1718
1718
|
default:
|
|
1719
1719
|
noWhenBranchMatchedException();
|
|
@@ -1724,24 +1724,24 @@
|
|
|
1724
1724
|
}
|
|
1725
1725
|
function OpenApiParser(openApi) {
|
|
1726
1726
|
Companion_getInstance_0();
|
|
1727
|
-
this.
|
|
1727
|
+
this.r1v_1 = openApi;
|
|
1728
1728
|
}
|
|
1729
|
-
protoOf(OpenApiParser).
|
|
1729
|
+
protoOf(OpenApiParser).s1v = function () {
|
|
1730
1730
|
return plus(plus(plus(plus(parseEndpoints(this), parseParameters(this)), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
|
|
1731
1731
|
};
|
|
1732
1732
|
function toMap_0(_this__u8e3s4) {
|
|
1733
1733
|
var tmp;
|
|
1734
1734
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1735
|
-
tmp = _this__u8e3s4.
|
|
1735
|
+
tmp = _this__u8e3s4.f1v(VOID, VOID, true);
|
|
1736
1736
|
} else {
|
|
1737
1737
|
if (_this__u8e3s4 instanceof Any) {
|
|
1738
|
-
tmp = _this__u8e3s4.
|
|
1738
|
+
tmp = _this__u8e3s4.a1v(VOID, true);
|
|
1739
1739
|
} else {
|
|
1740
1740
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1741
|
-
tmp = _this__u8e3s4.
|
|
1741
|
+
tmp = _this__u8e3s4.h1v(VOID, VOID, true);
|
|
1742
1742
|
} else {
|
|
1743
1743
|
if (_this__u8e3s4 instanceof Unit) {
|
|
1744
|
-
tmp = _this__u8e3s4.
|
|
1744
|
+
tmp = _this__u8e3s4.d1v(VOID, true);
|
|
1745
1745
|
} else {
|
|
1746
1746
|
noWhenBranchMatchedException();
|
|
1747
1747
|
}
|
|
@@ -1752,7 +1752,7 @@
|
|
|
1752
1752
|
}
|
|
1753
1753
|
function isPrimitive(_this__u8e3s4) {
|
|
1754
1754
|
var tmp;
|
|
1755
|
-
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.
|
|
1755
|
+
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.u4_1) {
|
|
1756
1756
|
case 0:
|
|
1757
1757
|
tmp = true;
|
|
1758
1758
|
break;
|
|
@@ -1786,16 +1786,16 @@
|
|
|
1786
1786
|
function toIterable(_this__u8e3s4) {
|
|
1787
1787
|
var tmp;
|
|
1788
1788
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1789
|
-
tmp = _this__u8e3s4.
|
|
1789
|
+
tmp = _this__u8e3s4.f1v(VOID, true);
|
|
1790
1790
|
} else {
|
|
1791
1791
|
if (_this__u8e3s4 instanceof Any) {
|
|
1792
|
-
tmp = _this__u8e3s4.
|
|
1792
|
+
tmp = _this__u8e3s4.a1v(true);
|
|
1793
1793
|
} else {
|
|
1794
1794
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1795
|
-
tmp = _this__u8e3s4.
|
|
1795
|
+
tmp = _this__u8e3s4.h1v(VOID, true);
|
|
1796
1796
|
} else {
|
|
1797
1797
|
if (_this__u8e3s4 instanceof Unit) {
|
|
1798
|
-
tmp = _this__u8e3s4.
|
|
1798
|
+
tmp = _this__u8e3s4.d1v(true);
|
|
1799
1799
|
} else {
|
|
1800
1800
|
noWhenBranchMatchedException();
|
|
1801
1801
|
}
|
|
@@ -1841,24 +1841,24 @@
|
|
|
1841
1841
|
}
|
|
1842
1842
|
function OpenApiParser$Companion$parse$lambda_0($strict) {
|
|
1843
1843
|
return function ($this$Json) {
|
|
1844
|
-
$this$Json.
|
|
1845
|
-
$this$Json.
|
|
1844
|
+
$this$Json.jx_1 = true;
|
|
1845
|
+
$this$Json.gx_1 = $strict;
|
|
1846
1846
|
return Unit_getInstance();
|
|
1847
1847
|
};
|
|
1848
1848
|
}
|
|
1849
1849
|
function Companion_0() {
|
|
1850
1850
|
Companion_instance_0 = this;
|
|
1851
1851
|
}
|
|
1852
|
-
protoOf(Companion_0).
|
|
1852
|
+
protoOf(Companion_0).q1v = function (json, strict) {
|
|
1853
1853
|
// Inline function 'kotlin.let' call
|
|
1854
|
-
var tmp0_let = (new OpenAPI_0(Json(VOID, OpenApiParser$Companion$parse$lambda_0(strict)))).
|
|
1854
|
+
var tmp0_let = (new OpenAPI_0(Json(VOID, OpenApiParser$Companion$parse$lambda_0(strict)))).d15(json);
|
|
1855
1855
|
// Inline function 'kotlin.contracts.contract' call
|
|
1856
1856
|
// Inline function 'community.flock.wirespec.openapi.v3.Companion.parse.<anonymous>' call
|
|
1857
1857
|
return parse(new OpenApiParser_0(tmp0_let));
|
|
1858
1858
|
};
|
|
1859
|
-
protoOf(Companion_0).
|
|
1859
|
+
protoOf(Companion_0).g1w = function (json, strict, $super) {
|
|
1860
1860
|
strict = strict === VOID ? false : strict;
|
|
1861
|
-
return $super === VOID ? this.
|
|
1861
|
+
return $super === VOID ? this.q1v(json, strict) : $super.q1v.call(this, json, strict);
|
|
1862
1862
|
};
|
|
1863
1863
|
var Companion_instance_0;
|
|
1864
1864
|
function Companion_getInstance_1() {
|
|
@@ -1871,7 +1871,7 @@
|
|
|
1871
1871
|
}
|
|
1872
1872
|
function parseEndpoint($this) {
|
|
1873
1873
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1874
|
-
var tmp0_flatMap = $this.
|
|
1874
|
+
var tmp0_flatMap = $this.h1w_1.d1e_1;
|
|
1875
1875
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1876
1876
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1877
1877
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1880,7 +1880,7 @@
|
|
|
1880
1880
|
var element = tmp0_iterator.e();
|
|
1881
1881
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>' call
|
|
1882
1882
|
// Inline function 'kotlin.collections.component1' call
|
|
1883
|
-
var key = element.v().
|
|
1883
|
+
var key = element.v().l1e_1;
|
|
1884
1884
|
// Inline function 'kotlin.collections.component2' call
|
|
1885
1885
|
var path = element.w();
|
|
1886
1886
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1900,7 +1900,7 @@
|
|
|
1900
1900
|
var parameters = plus(resolveParameters_2(path, $this), resolveParameters_1(operation, $this));
|
|
1901
1901
|
var segments = toSegments_0(key, $this, parameters);
|
|
1902
1902
|
var tmp0_elvis_lhs = toName_1(operation, $this);
|
|
1903
|
-
var name = tmp0_elvis_lhs == null ? toName_2(key, $this) + method.
|
|
1903
|
+
var name = tmp0_elvis_lhs == null ? toName_2(key, $this) + method.t4_1 : tmp0_elvis_lhs;
|
|
1904
1904
|
// Inline function 'kotlin.collections.map' call
|
|
1905
1905
|
// Inline function 'kotlin.collections.filter' call
|
|
1906
1906
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -1909,7 +1909,7 @@
|
|
|
1909
1909
|
while (tmp0_iterator_1.d()) {
|
|
1910
1910
|
var element_0 = tmp0_iterator_1.e();
|
|
1911
1911
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1912
|
-
if (element_0.
|
|
1912
|
+
if (element_0.f1g_1.equals(ParameterLocation_QUERY_getInstance_0())) {
|
|
1913
1913
|
tmp0_filterTo.a(element_0);
|
|
1914
1914
|
}
|
|
1915
1915
|
}
|
|
@@ -1920,7 +1920,7 @@
|
|
|
1920
1920
|
var item_0 = tmp0_iterator_2.e();
|
|
1921
1921
|
var tmp$ret$9;
|
|
1922
1922
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1923
|
-
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().
|
|
1923
|
+
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().p1v([name, 'Parameter', item_0.e1g_1]));
|
|
1924
1924
|
tmp0_mapTo_0.a(tmp$ret$9);
|
|
1925
1925
|
}
|
|
1926
1926
|
var query = tmp0_mapTo_0;
|
|
@@ -1932,7 +1932,7 @@
|
|
|
1932
1932
|
while (tmp0_iterator_3.d()) {
|
|
1933
1933
|
var element_1 = tmp0_iterator_3.e();
|
|
1934
1934
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1935
|
-
if (element_1.
|
|
1935
|
+
if (element_1.f1g_1.equals(ParameterLocation_HEADER_getInstance_0())) {
|
|
1936
1936
|
tmp0_filterTo_0.a(element_1);
|
|
1937
1937
|
}
|
|
1938
1938
|
}
|
|
@@ -1943,7 +1943,7 @@
|
|
|
1943
1943
|
var item_1 = tmp0_iterator_4.e();
|
|
1944
1944
|
var tmp$ret$15;
|
|
1945
1945
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1946
|
-
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().
|
|
1946
|
+
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().p1v([name, 'Parameter', item_1.e1g_1]));
|
|
1947
1947
|
tmp0_mapTo_1.a(tmp$ret$15);
|
|
1948
1948
|
}
|
|
1949
1949
|
var headers = tmp0_mapTo_1;
|
|
@@ -1955,7 +1955,7 @@
|
|
|
1955
1955
|
while (tmp0_iterator_5.d()) {
|
|
1956
1956
|
var element_2 = tmp0_iterator_5.e();
|
|
1957
1957
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1958
|
-
if (element_2.
|
|
1958
|
+
if (element_2.f1g_1.equals(ParameterLocation_COOKIE_getInstance())) {
|
|
1959
1959
|
tmp0_filterTo_1.a(element_2);
|
|
1960
1960
|
}
|
|
1961
1961
|
}
|
|
@@ -1966,11 +1966,11 @@
|
|
|
1966
1966
|
var item_2 = tmp0_iterator_6.e();
|
|
1967
1967
|
var tmp$ret$21;
|
|
1968
1968
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1969
|
-
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().
|
|
1969
|
+
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().p1v([name, 'Parameter', item_2.e1g_1]));
|
|
1970
1970
|
tmp0_mapTo_2.a(tmp$ret$21);
|
|
1971
1971
|
}
|
|
1972
1972
|
var cookies = tmp0_mapTo_2;
|
|
1973
|
-
var tmp1_safe_receiver = operation.
|
|
1973
|
+
var tmp1_safe_receiver = operation.k1f_1;
|
|
1974
1974
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_6(tmp1_safe_receiver, $this);
|
|
1975
1975
|
var tmp;
|
|
1976
1976
|
if (tmp2_safe_receiver == null) {
|
|
@@ -1979,7 +1979,7 @@
|
|
|
1979
1979
|
// Inline function 'kotlin.let' call
|
|
1980
1980
|
// Inline function 'kotlin.contracts.contract' call
|
|
1981
1981
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1982
|
-
var tmp0_safe_receiver = tmp2_safe_receiver.
|
|
1982
|
+
var tmp0_safe_receiver = tmp2_safe_receiver.k1g_1;
|
|
1983
1983
|
var tmp_0;
|
|
1984
1984
|
if (tmp0_safe_receiver == null) {
|
|
1985
1985
|
tmp_0 = null;
|
|
@@ -1994,17 +1994,17 @@
|
|
|
1994
1994
|
var tmp$ret$27;
|
|
1995
1995
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1996
1996
|
// Inline function 'kotlin.collections.component1' call
|
|
1997
|
-
var mediaType = item_3.v().
|
|
1997
|
+
var mediaType = item_3.v().p1g_1;
|
|
1998
1998
|
// Inline function 'kotlin.collections.component2' call
|
|
1999
1999
|
var mediaObject = item_3.w();
|
|
2000
2000
|
var tmp_1 = _MediaType___get_value__impl__wy58mp(mediaType);
|
|
2001
|
-
var schema = mediaObject.
|
|
2001
|
+
var schema = mediaObject.s1g_1;
|
|
2002
2002
|
var tmp_2;
|
|
2003
2003
|
if (schema instanceof ReferenceObject_0) {
|
|
2004
2004
|
tmp_2 = toReference_1(schema, $this);
|
|
2005
2005
|
} else {
|
|
2006
2006
|
if (schema instanceof SchemaObject_0) {
|
|
2007
|
-
tmp_2 = toReference_2(schema, $this, Common_getInstance().
|
|
2007
|
+
tmp_2 = toReference_2(schema, $this, Common_getInstance().p1v([name, 'RequestBody']));
|
|
2008
2008
|
} else {
|
|
2009
2009
|
if (schema == null) {
|
|
2010
2010
|
throw new NotImplementedError();
|
|
@@ -2014,7 +2014,7 @@
|
|
|
2014
2014
|
}
|
|
2015
2015
|
}
|
|
2016
2016
|
var tmp_3 = tmp_2;
|
|
2017
|
-
var tmp0_elvis_lhs_0 = tmp2_safe_receiver.
|
|
2017
|
+
var tmp0_elvis_lhs_0 = tmp2_safe_receiver.l1g_1;
|
|
2018
2018
|
tmp$ret$27 = new Request(new Content(tmp_1, tmp_3, tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0));
|
|
2019
2019
|
tmp0_mapTo_3.a(tmp$ret$27);
|
|
2020
2020
|
}
|
|
@@ -2026,7 +2026,7 @@
|
|
|
2026
2026
|
var requests = tmp3_elvis_lhs == null ? listOf(new Request(null)) : tmp3_elvis_lhs;
|
|
2027
2027
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2028
2028
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2029
|
-
var tmp0_elvis_lhs_1 = operation.
|
|
2029
|
+
var tmp0_elvis_lhs_1 = operation.l1f_1;
|
|
2030
2030
|
var tmp4_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
2031
2031
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2032
2032
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
@@ -2036,14 +2036,14 @@
|
|
|
2036
2036
|
var element_3 = tmp0_iterator_8.e();
|
|
2037
2037
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2038
2038
|
// Inline function 'kotlin.collections.component1' call
|
|
2039
|
-
var status = element_3.v().
|
|
2039
|
+
var status = element_3.v().o1i_1;
|
|
2040
2040
|
// Inline function 'kotlin.collections.component2' call
|
|
2041
2041
|
var res = element_3.w();
|
|
2042
2042
|
// Inline function 'kotlin.let' call
|
|
2043
2043
|
var tmp0_let = resolve_7(res, $this);
|
|
2044
2044
|
// Inline function 'kotlin.contracts.contract' call
|
|
2045
2045
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2046
|
-
var tmp0_safe_receiver_0 = tmp0_let.
|
|
2046
|
+
var tmp0_safe_receiver_0 = tmp0_let.t1i_1;
|
|
2047
2047
|
var tmp_4;
|
|
2048
2048
|
if (tmp0_safe_receiver_0 == null) {
|
|
2049
2049
|
tmp_4 = null;
|
|
@@ -2058,12 +2058,12 @@
|
|
|
2058
2058
|
var tmp$ret$44;
|
|
2059
2059
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2060
2060
|
// Inline function 'kotlin.collections.component1' call
|
|
2061
|
-
var contentType = item_4.v().
|
|
2061
|
+
var contentType = item_4.v().p1g_1;
|
|
2062
2062
|
// Inline function 'kotlin.collections.component2' call
|
|
2063
2063
|
var media = item_4.w();
|
|
2064
2064
|
var tmp_5 = _StatusCode___get_value__impl__we50mu_0(status);
|
|
2065
2065
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2066
|
-
var tmp0_safe_receiver_1 = tmp0_let.
|
|
2066
|
+
var tmp0_safe_receiver_1 = tmp0_let.s1i_1;
|
|
2067
2067
|
var tmp_6;
|
|
2068
2068
|
if (tmp0_safe_receiver_1 == null) {
|
|
2069
2069
|
tmp_6 = null;
|
|
@@ -2077,7 +2077,7 @@
|
|
|
2077
2077
|
var item_5 = tmp0_iterator_10.e();
|
|
2078
2078
|
var tmp$ret$40;
|
|
2079
2079
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2080
|
-
tmp$ret$40 = toField_3(resolve_4(item_5.w(), $this), $this, item_5.v(), Common_getInstance().
|
|
2080
|
+
tmp$ret$40 = toField_3(resolve_4(item_5.w(), $this), $this, item_5.v(), Common_getInstance().p1v([name, 'ResponseHeader']));
|
|
2081
2081
|
tmp0_mapTo_5.a(tmp$ret$40);
|
|
2082
2082
|
}
|
|
2083
2083
|
tmp_6 = tmp0_mapTo_5;
|
|
@@ -2085,13 +2085,13 @@
|
|
|
2085
2085
|
var tmp0_elvis_lhs_2 = tmp_6;
|
|
2086
2086
|
var tmp_7 = tmp0_elvis_lhs_2 == null ? emptyList() : tmp0_elvis_lhs_2;
|
|
2087
2087
|
var tmp_8 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
2088
|
-
var schema_0 = media.
|
|
2088
|
+
var schema_0 = media.s1g_1;
|
|
2089
2089
|
var tmp_9;
|
|
2090
2090
|
if (schema_0 instanceof ReferenceObject_0) {
|
|
2091
2091
|
tmp_9 = toReference_1(schema_0, $this);
|
|
2092
2092
|
} else {
|
|
2093
2093
|
if (schema_0 instanceof SchemaObject_0) {
|
|
2094
|
-
tmp_9 = toReference_2(schema_0, $this, Common_getInstance().
|
|
2094
|
+
tmp_9 = toReference_2(schema_0, $this, Common_getInstance().p1v([name, _StatusCode___get_value__impl__we50mu_0(status), _MediaType___get_value__impl__wy58mp(contentType), 'ResponseBody']));
|
|
2095
2095
|
} else {
|
|
2096
2096
|
if (schema_0 == null) {
|
|
2097
2097
|
throw new NotImplementedError();
|
|
@@ -2101,9 +2101,9 @@
|
|
|
2101
2101
|
}
|
|
2102
2102
|
}
|
|
2103
2103
|
var tmp_10 = tmp_9;
|
|
2104
|
-
var tmp1_safe_receiver_0 = media.
|
|
2104
|
+
var tmp1_safe_receiver_0 = media.s1g_1;
|
|
2105
2105
|
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : resolve_3(tmp1_safe_receiver_0, $this);
|
|
2106
|
-
var tmp3_elvis_lhs_0 = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.
|
|
2106
|
+
var tmp3_elvis_lhs_0 = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.b1h_1;
|
|
2107
2107
|
tmp$ret$44 = new Response(tmp_5, tmp_7, new Content(tmp_8, tmp_10, tmp3_elvis_lhs_0 == null ? false : tmp3_elvis_lhs_0));
|
|
2108
2108
|
tmp0_mapTo_4.a(tmp$ret$44);
|
|
2109
2109
|
}
|
|
@@ -2123,20 +2123,20 @@
|
|
|
2123
2123
|
return tmp0_flatMapTo;
|
|
2124
2124
|
}
|
|
2125
2125
|
function parseParameters_0($this) {
|
|
2126
|
-
return flatMapRequests_0($this.
|
|
2126
|
+
return flatMapRequests_0($this.h1w_1, $this, OpenApiParser$parseParameters$lambda_0($this));
|
|
2127
2127
|
}
|
|
2128
2128
|
function parseRequestBody_0($this) {
|
|
2129
|
-
return flatMapRequests_0($this.
|
|
2129
|
+
return flatMapRequests_0($this.h1w_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
|
|
2130
2130
|
}
|
|
2131
2131
|
function parseResponseBody_0($this) {
|
|
2132
|
-
return flatMapResponses_0($this.
|
|
2132
|
+
return flatMapResponses_0($this.h1w_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
|
|
2133
2133
|
}
|
|
2134
2134
|
function parseComponents($this) {
|
|
2135
2135
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2136
2136
|
// Inline function 'kotlin.collections.filter' call
|
|
2137
2137
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2138
|
-
var tmp0_safe_receiver = $this.
|
|
2139
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2138
|
+
var tmp0_safe_receiver = $this.h1w_1.e1e_1;
|
|
2139
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m1j_1;
|
|
2140
2140
|
var tmp1_filter = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2141
2141
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2142
2142
|
var tmp0_filterTo = LinkedHashMap_init_$Create$();
|
|
@@ -2148,7 +2148,7 @@
|
|
|
2148
2148
|
var s = element.w();
|
|
2149
2149
|
var tmp;
|
|
2150
2150
|
if (s instanceof SchemaObject_0) {
|
|
2151
|
-
tmp = s.
|
|
2151
|
+
tmp = s.r1h_1 == null;
|
|
2152
2152
|
} else {
|
|
2153
2153
|
tmp = false;
|
|
2154
2154
|
}
|
|
@@ -2163,7 +2163,7 @@
|
|
|
2163
2163
|
while (tmp0_iterator_0.d()) {
|
|
2164
2164
|
var element_0 = tmp0_iterator_0.e();
|
|
2165
2165
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2166
|
-
var list = flatten_2(element_0.w(), $this, Common_getInstance().
|
|
2166
|
+
var list = flatten_2(element_0.w(), $this, Common_getInstance().p1v([element_0.v()]));
|
|
2167
2167
|
addAll(tmp0_flatMapTo, list);
|
|
2168
2168
|
}
|
|
2169
2169
|
return tmp0_flatMapTo;
|
|
@@ -2172,7 +2172,7 @@
|
|
|
2172
2172
|
return charSequenceGet(_this__u8e3s4, 0) === _Char___init__impl__6a9atx(123) ? charSequenceGet(_this__u8e3s4, _this__u8e3s4.length - 1 | 0) === _Char___init__impl__6a9atx(125) : false;
|
|
2173
2173
|
}
|
|
2174
2174
|
function toName_1(_this__u8e3s4, $this) {
|
|
2175
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2175
|
+
var tmp0_safe_receiver = _this__u8e3s4.i1f_1;
|
|
2176
2176
|
var tmp;
|
|
2177
2177
|
if (tmp0_safe_receiver == null) {
|
|
2178
2178
|
tmp = null;
|
|
@@ -2180,7 +2180,7 @@
|
|
|
2180
2180
|
// Inline function 'kotlin.let' call
|
|
2181
2181
|
// Inline function 'kotlin.contracts.contract' call
|
|
2182
2182
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
2183
|
-
tmp = Common_getInstance().
|
|
2183
|
+
tmp = Common_getInstance().p1v([tmp0_safe_receiver]);
|
|
2184
2184
|
}
|
|
2185
2185
|
return tmp;
|
|
2186
2186
|
}
|
|
@@ -2242,7 +2242,7 @@
|
|
|
2242
2242
|
while (tmp0_iterator_1.d()) {
|
|
2243
2243
|
var element_0 = tmp0_iterator_1.e();
|
|
2244
2244
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2245
|
-
if (element_0.
|
|
2245
|
+
if (element_0.e1g_1 === param) {
|
|
2246
2246
|
tmp$ret$7 = element_0;
|
|
2247
2247
|
break $l$block;
|
|
2248
2248
|
}
|
|
@@ -2251,9 +2251,9 @@
|
|
|
2251
2251
|
}
|
|
2252
2252
|
|
|
2253
2253
|
var tmp1_safe_receiver = tmp$ret$7;
|
|
2254
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2254
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.a1g_1;
|
|
2255
2255
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : resolve_3(tmp2_safe_receiver, $this);
|
|
2256
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : toReference_2(tmp3_safe_receiver, $this, Common_getInstance().
|
|
2256
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : toReference_2(tmp3_safe_receiver, $this, Common_getInstance().p1v([name, 'Parameter', param]));
|
|
2257
2257
|
var tmp_0;
|
|
2258
2258
|
if (tmp4_safe_receiver == null) {
|
|
2259
2259
|
tmp_0 = null;
|
|
@@ -2288,7 +2288,7 @@
|
|
|
2288
2288
|
return tmp0_mapTo;
|
|
2289
2289
|
}
|
|
2290
2290
|
function resolveParameters_1(_this__u8e3s4, $this) {
|
|
2291
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2291
|
+
var tmp0_safe_receiver = _this__u8e3s4.j1f_1;
|
|
2292
2292
|
var tmp;
|
|
2293
2293
|
if (tmp0_safe_receiver == null) {
|
|
2294
2294
|
tmp = null;
|
|
@@ -2327,7 +2327,7 @@
|
|
|
2327
2327
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2328
2328
|
}
|
|
2329
2329
|
function resolveParameters_2(_this__u8e3s4, $this) {
|
|
2330
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2330
|
+
var tmp0_safe_receiver = _this__u8e3s4.a1f_1;
|
|
2331
2331
|
var tmp;
|
|
2332
2332
|
if (tmp0_safe_receiver == null) {
|
|
2333
2333
|
tmp = null;
|
|
@@ -2366,8 +2366,8 @@
|
|
|
2366
2366
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2367
2367
|
}
|
|
2368
2368
|
function resolveParameterObject_0(_this__u8e3s4, $this) {
|
|
2369
|
-
var tmp0_safe_receiver = $this.
|
|
2370
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2369
|
+
var tmp0_safe_receiver = $this.h1w_1.e1e_1;
|
|
2370
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o1j_1;
|
|
2371
2371
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o2(getReference_0(_this__u8e3s4, $this));
|
|
2372
2372
|
var tmp;
|
|
2373
2373
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2391,8 +2391,8 @@
|
|
|
2391
2391
|
return tmp;
|
|
2392
2392
|
}
|
|
2393
2393
|
function resolveSchemaObject_0(_this__u8e3s4, $this) {
|
|
2394
|
-
var tmp0_safe_receiver = $this.
|
|
2395
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2394
|
+
var tmp0_safe_receiver = $this.h1w_1.e1e_1;
|
|
2395
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m1j_1;
|
|
2396
2396
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o2(getReference_0(_this__u8e3s4, $this));
|
|
2397
2397
|
var tmp;
|
|
2398
2398
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2416,7 +2416,7 @@
|
|
|
2416
2416
|
var tmp3_elvis_lhs = tmp;
|
|
2417
2417
|
var tmp_1;
|
|
2418
2418
|
if (tmp3_elvis_lhs == null) {
|
|
2419
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2419
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.y1g_1);
|
|
2420
2420
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2421
2421
|
} else {
|
|
2422
2422
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2424,8 +2424,8 @@
|
|
|
2424
2424
|
return tmp_1;
|
|
2425
2425
|
}
|
|
2426
2426
|
function resolveHeaderObject(_this__u8e3s4, $this) {
|
|
2427
|
-
var tmp0_safe_receiver = $this.
|
|
2428
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2427
|
+
var tmp0_safe_receiver = $this.h1w_1.e1e_1;
|
|
2428
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r1j_1;
|
|
2429
2429
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o2(getReference_0(_this__u8e3s4, $this));
|
|
2430
2430
|
var tmp;
|
|
2431
2431
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2449,7 +2449,7 @@
|
|
|
2449
2449
|
var tmp3_elvis_lhs = tmp;
|
|
2450
2450
|
var tmp_1;
|
|
2451
2451
|
if (tmp3_elvis_lhs == null) {
|
|
2452
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2452
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.y1g_1);
|
|
2453
2453
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2454
2454
|
} else {
|
|
2455
2455
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2457,8 +2457,8 @@
|
|
|
2457
2457
|
return tmp_1;
|
|
2458
2458
|
}
|
|
2459
2459
|
function resolveRequestBodyObject(_this__u8e3s4, $this) {
|
|
2460
|
-
var tmp0_safe_receiver = $this.
|
|
2461
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2460
|
+
var tmp0_safe_receiver = $this.h1w_1.e1e_1;
|
|
2461
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q1j_1;
|
|
2462
2462
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o2(getReference_0(_this__u8e3s4, $this));
|
|
2463
2463
|
var tmp;
|
|
2464
2464
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2482,7 +2482,7 @@
|
|
|
2482
2482
|
var tmp3_elvis_lhs = tmp;
|
|
2483
2483
|
var tmp_1;
|
|
2484
2484
|
if (tmp3_elvis_lhs == null) {
|
|
2485
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2485
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.y1g_1);
|
|
2486
2486
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2487
2487
|
} else {
|
|
2488
2488
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2490,8 +2490,8 @@
|
|
|
2490
2490
|
return tmp_1;
|
|
2491
2491
|
}
|
|
2492
2492
|
function resolveResponseObject_0(_this__u8e3s4, $this) {
|
|
2493
|
-
var tmp0_safe_receiver = $this.
|
|
2494
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2493
|
+
var tmp0_safe_receiver = $this.h1w_1.e1e_1;
|
|
2494
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n1j_1;
|
|
2495
2495
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o2(getReference_0(_this__u8e3s4, $this));
|
|
2496
2496
|
var tmp;
|
|
2497
2497
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2515,7 +2515,7 @@
|
|
|
2515
2515
|
var tmp3_elvis_lhs = tmp;
|
|
2516
2516
|
var tmp_1;
|
|
2517
2517
|
if (tmp3_elvis_lhs == null) {
|
|
2518
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2518
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.y1g_1);
|
|
2519
2519
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2520
2520
|
} else {
|
|
2521
2521
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2593,12 +2593,12 @@
|
|
|
2593
2593
|
}
|
|
2594
2594
|
function flatten_1(_this__u8e3s4, $this, name) {
|
|
2595
2595
|
var tmp;
|
|
2596
|
-
if (!(_this__u8e3s4.
|
|
2596
|
+
if (!(_this__u8e3s4.r1h_1 == null)) {
|
|
2597
2597
|
var tmp_0;
|
|
2598
|
-
if (_this__u8e3s4.
|
|
2598
|
+
if (_this__u8e3s4.r1h_1 instanceof BooleanObject_0) {
|
|
2599
2599
|
tmp_0 = emptyList();
|
|
2600
2600
|
} else {
|
|
2601
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
2601
|
+
var tmp1_safe_receiver = _this__u8e3s4.r1h_1;
|
|
2602
2602
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_5(tmp1_safe_receiver, $this);
|
|
2603
2603
|
var tmp_1;
|
|
2604
2604
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2608,7 +2608,7 @@
|
|
|
2608
2608
|
// Inline function 'kotlin.contracts.contract' call
|
|
2609
2609
|
var tmp_2;
|
|
2610
2610
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2611
|
-
if (!(tmp2_safe_receiver.
|
|
2611
|
+
if (!(tmp2_safe_receiver.q1h_1 == null)) {
|
|
2612
2612
|
tmp_2 = tmp2_safe_receiver;
|
|
2613
2613
|
} else {
|
|
2614
2614
|
tmp_2 = null;
|
|
@@ -2620,15 +2620,15 @@
|
|
|
2620
2620
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
2621
2621
|
}
|
|
2622
2622
|
tmp = tmp_0;
|
|
2623
|
-
} else if (!(_this__u8e3s4.
|
|
2623
|
+
} else if (!(_this__u8e3s4.m1h_1 == null)) {
|
|
2624
2624
|
throw new NotImplementedError('An operation is not implemented: oneOf is not implemented');
|
|
2625
|
-
} else if (!(_this__u8e3s4.
|
|
2625
|
+
} else if (!(_this__u8e3s4.n1h_1 == null)) {
|
|
2626
2626
|
throw new NotImplementedError('An operation is not implemented: anyOf is not implemented');
|
|
2627
|
-
} else if (!(_this__u8e3s4.
|
|
2627
|
+
} else if (!(_this__u8e3s4.l1h_1 == null)) {
|
|
2628
2628
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
2629
2629
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2630
2630
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2631
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2631
|
+
var tmp0_elvis_lhs = _this__u8e3s4.l1h_1;
|
|
2632
2632
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2633
2633
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2634
2634
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -2645,14 +2645,14 @@
|
|
|
2645
2645
|
while (tmp0_iterator_0.d()) {
|
|
2646
2646
|
var e = tmp0_iterator_0.e();
|
|
2647
2647
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2648
|
-
var key = e.
|
|
2648
|
+
var key = e.l1r_1;
|
|
2649
2649
|
if (set.a(key)) {
|
|
2650
2650
|
list_0.a(e);
|
|
2651
2651
|
}
|
|
2652
2652
|
}
|
|
2653
2653
|
var tmp_3 = listOf(new Type(name, new Shape(list_0)));
|
|
2654
2654
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2655
|
-
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.
|
|
2655
|
+
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.l1h_1);
|
|
2656
2656
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2657
2657
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
2658
2658
|
var tmp0_iterator_1 = tmp3_flatMap.c();
|
|
@@ -2666,7 +2666,7 @@
|
|
|
2666
2666
|
if (element_0 instanceof SchemaObject_0) {
|
|
2667
2667
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2668
2668
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2669
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
2669
|
+
var tmp0_elvis_lhs_0 = element_0.q1h_1;
|
|
2670
2670
|
var tmp1_flatMap_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2671
2671
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2672
2672
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
@@ -2684,7 +2684,7 @@
|
|
|
2684
2684
|
tmp_5 = emptyList();
|
|
2685
2685
|
} else {
|
|
2686
2686
|
if (value instanceof SchemaObject_0) {
|
|
2687
|
-
tmp_5 = flatten_1(value, $this, Common_getInstance().
|
|
2687
|
+
tmp_5 = flatten_1(value, $this, Common_getInstance().p1v([name, key_0]));
|
|
2688
2688
|
} else {
|
|
2689
2689
|
noWhenBranchMatchedException();
|
|
2690
2690
|
}
|
|
@@ -2701,10 +2701,10 @@
|
|
|
2701
2701
|
addAll(tmp0_flatMapTo_0, list_2);
|
|
2702
2702
|
}
|
|
2703
2703
|
tmp = plus(tmp_3, tmp0_flatMapTo_0);
|
|
2704
|
-
} else if (!(_this__u8e3s4.
|
|
2704
|
+
} else if (!(_this__u8e3s4.k1i_1 == null)) {
|
|
2705
2705
|
// Inline function 'kotlin.let' call
|
|
2706
2706
|
// Inline function 'kotlin.collections.map' call
|
|
2707
|
-
var tmp4_map = ensureNotNull(_this__u8e3s4.
|
|
2707
|
+
var tmp4_map = ensureNotNull(_this__u8e3s4.k1i_1);
|
|
2708
2708
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2709
2709
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp4_map, 10));
|
|
2710
2710
|
var tmp0_iterator_3 = tmp4_map.c();
|
|
@@ -2712,7 +2712,7 @@
|
|
|
2712
2712
|
var item = tmp0_iterator_3.e();
|
|
2713
2713
|
var tmp$ret$18;
|
|
2714
2714
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2715
|
-
tmp$ret$18 = item.
|
|
2715
|
+
tmp$ret$18 = item.hy();
|
|
2716
2716
|
tmp0_mapTo.a(tmp$ret$18);
|
|
2717
2717
|
}
|
|
2718
2718
|
var tmp5_let = toSet(tmp0_mapTo);
|
|
@@ -2720,16 +2720,16 @@
|
|
|
2720
2720
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2721
2721
|
tmp = listOf(new Enum(name, tmp5_let));
|
|
2722
2722
|
} else {
|
|
2723
|
-
var tmp5_subject = _this__u8e3s4.
|
|
2723
|
+
var tmp5_subject = _this__u8e3s4.k1h_1;
|
|
2724
2724
|
var tmp_6;
|
|
2725
|
-
switch (tmp5_subject == null ? -1 : tmp5_subject.
|
|
2725
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.u4_1) {
|
|
2726
2726
|
case -1:
|
|
2727
2727
|
case 5:
|
|
2728
2728
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2729
2729
|
|
|
2730
2730
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2731
2731
|
|
|
2732
|
-
var tmp0_elvis_lhs_1 = _this__u8e3s4.
|
|
2732
|
+
var tmp0_elvis_lhs_1 = _this__u8e3s4.q1h_1;
|
|
2733
2733
|
var tmp7_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
2734
2734
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2735
2735
|
|
|
@@ -2744,7 +2744,7 @@
|
|
|
2744
2744
|
var key_1 = element_2.v();
|
|
2745
2745
|
// Inline function 'kotlin.collections.component2' call
|
|
2746
2746
|
var value_0 = element_2.w();
|
|
2747
|
-
var list_3 = flatten_2(value_0, $this, Common_getInstance().
|
|
2747
|
+
var list_3 = flatten_2(value_0, $this, Common_getInstance().p1v([name, key_1]));
|
|
2748
2748
|
addAll(tmp0_flatMapTo_2, list_3);
|
|
2749
2749
|
}
|
|
2750
2750
|
|
|
@@ -2753,7 +2753,7 @@
|
|
|
2753
2753
|
tmp_6 = plus(schema, fields);
|
|
2754
2754
|
break;
|
|
2755
2755
|
case 4:
|
|
2756
|
-
var tmp6_safe_receiver = _this__u8e3s4.
|
|
2756
|
+
var tmp6_safe_receiver = _this__u8e3s4.p1h_1;
|
|
2757
2757
|
var tmp_7;
|
|
2758
2758
|
if (tmp6_safe_receiver == null) {
|
|
2759
2759
|
tmp_7 = null;
|
|
@@ -2766,7 +2766,7 @@
|
|
|
2766
2766
|
tmp_8 = emptyList();
|
|
2767
2767
|
} else {
|
|
2768
2768
|
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
2769
|
-
tmp_8 = flatten_1(tmp6_safe_receiver, $this, Common_getInstance().
|
|
2769
|
+
tmp_8 = flatten_1(tmp6_safe_receiver, $this, Common_getInstance().p1v([name, 'array']));
|
|
2770
2770
|
} else {
|
|
2771
2771
|
noWhenBranchMatchedException();
|
|
2772
2772
|
}
|
|
@@ -2806,8 +2806,8 @@
|
|
|
2806
2806
|
var referencingObject = tmp0_let.k3();
|
|
2807
2807
|
var schema = tmp0_let.l3();
|
|
2808
2808
|
var tmp;
|
|
2809
|
-
if (!(schema.
|
|
2810
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2809
|
+
if (!(schema.r1h_1 == null)) {
|
|
2810
|
+
var additionalProperties = ensureNotNull(schema.r1h_1);
|
|
2811
2811
|
var tmp_0;
|
|
2812
2812
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
2813
2813
|
tmp_0 = new Any(false, true);
|
|
@@ -2823,24 +2823,24 @@
|
|
|
2823
2823
|
}
|
|
2824
2824
|
}
|
|
2825
2825
|
tmp = tmp_0;
|
|
2826
|
-
} else if (!(schema.
|
|
2827
|
-
tmp = new Custom(Common_getInstance().
|
|
2828
|
-
} else if (isPrimitive_0(schema.
|
|
2829
|
-
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.
|
|
2826
|
+
} else if (!(schema.k1i_1 == null)) {
|
|
2827
|
+
tmp = new Custom(Common_getInstance().p1v([getReference_0(referencingObject, $this)]), false, false);
|
|
2828
|
+
} else if (isPrimitive_0(schema.k1h_1)) {
|
|
2829
|
+
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.k1h_1), $this), false, false);
|
|
2830
2830
|
} else {
|
|
2831
|
-
var tmp0_subject = schema.
|
|
2831
|
+
var tmp0_subject = schema.k1h_1;
|
|
2832
2832
|
var tmp_1;
|
|
2833
|
-
if ((tmp0_subject == null ? -1 : tmp0_subject.
|
|
2834
|
-
var items = schema.
|
|
2833
|
+
if ((tmp0_subject == null ? -1 : tmp0_subject.u4_1) === 4) {
|
|
2834
|
+
var items = schema.p1h_1;
|
|
2835
2835
|
var tmp_2;
|
|
2836
2836
|
if (items instanceof ReferenceObject_0) {
|
|
2837
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2837
|
+
tmp_2 = new Custom(Common_getInstance().p1v([getReference_0(items, $this)]), true);
|
|
2838
2838
|
} else {
|
|
2839
2839
|
if (items instanceof SchemaObject_0) {
|
|
2840
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2840
|
+
tmp_2 = new Custom(Common_getInstance().p1v([getReference_0(referencingObject, $this), 'Array']), true);
|
|
2841
2841
|
} else {
|
|
2842
2842
|
if (items == null) {
|
|
2843
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.
|
|
2843
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.y1g_1);
|
|
2844
2844
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2845
2845
|
} else {
|
|
2846
2846
|
noWhenBranchMatchedException();
|
|
@@ -2849,7 +2849,7 @@
|
|
|
2849
2849
|
}
|
|
2850
2850
|
tmp_1 = tmp_2;
|
|
2851
2851
|
} else {
|
|
2852
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
2852
|
+
tmp_1 = new Custom(Common_getInstance().p1v([getReference_0(referencingObject, $this)]), false);
|
|
2853
2853
|
}
|
|
2854
2854
|
tmp = tmp_1;
|
|
2855
2855
|
}
|
|
@@ -2857,8 +2857,8 @@
|
|
|
2857
2857
|
}
|
|
2858
2858
|
function toReference_2(_this__u8e3s4, $this, name) {
|
|
2859
2859
|
var tmp;
|
|
2860
|
-
if (!(_this__u8e3s4.
|
|
2861
|
-
var additionalProperties = ensureNotNull(_this__u8e3s4.
|
|
2860
|
+
if (!(_this__u8e3s4.r1h_1 == null)) {
|
|
2861
|
+
var additionalProperties = ensureNotNull(_this__u8e3s4.r1h_1);
|
|
2862
2862
|
var tmp_0;
|
|
2863
2863
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
2864
2864
|
tmp_0 = new Any(false, true);
|
|
@@ -2871,7 +2871,7 @@
|
|
|
2871
2871
|
// Inline function 'kotlin.contracts.contract' call
|
|
2872
2872
|
var tmp_1;
|
|
2873
2873
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toReference.<anonymous>' call
|
|
2874
|
-
if (isPrimitive_0(additionalProperties.
|
|
2874
|
+
if (isPrimitive_0(additionalProperties.k1h_1) ? true : !(additionalProperties.q1h_1 == null)) {
|
|
2875
2875
|
tmp_1 = additionalProperties;
|
|
2876
2876
|
} else {
|
|
2877
2877
|
tmp_1 = null;
|
|
@@ -2894,32 +2894,32 @@
|
|
|
2894
2894
|
}
|
|
2895
2895
|
}
|
|
2896
2896
|
tmp = tmp_0;
|
|
2897
|
-
} else if (!(_this__u8e3s4.
|
|
2898
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
2897
|
+
} else if (!(_this__u8e3s4.k1i_1 == null)) {
|
|
2898
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.r1h_1 == null));
|
|
2899
2899
|
} else {
|
|
2900
|
-
var type = _this__u8e3s4.
|
|
2900
|
+
var type = _this__u8e3s4.k1h_1;
|
|
2901
2901
|
var tmp_3;
|
|
2902
|
-
switch (type == null ? -1 : type.
|
|
2902
|
+
switch (type == null ? -1 : type.u4_1) {
|
|
2903
2903
|
case 0:
|
|
2904
2904
|
case 1:
|
|
2905
2905
|
case 2:
|
|
2906
2906
|
case 3:
|
|
2907
|
-
tmp_3 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.
|
|
2907
|
+
tmp_3 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.r1h_1 == null));
|
|
2908
2908
|
break;
|
|
2909
2909
|
case -1:
|
|
2910
2910
|
case 5:
|
|
2911
2911
|
var tmp_4;
|
|
2912
|
-
var tmp_5 = _this__u8e3s4.
|
|
2912
|
+
var tmp_5 = _this__u8e3s4.r1h_1;
|
|
2913
2913
|
if (tmp_5 instanceof BooleanObject_0) {
|
|
2914
|
-
tmp_4 = new Any(false, !(_this__u8e3s4.
|
|
2914
|
+
tmp_4 = new Any(false, !(_this__u8e3s4.r1h_1 == null));
|
|
2915
2915
|
} else {
|
|
2916
|
-
tmp_4 = new Custom(name, false, !(_this__u8e3s4.
|
|
2916
|
+
tmp_4 = new Custom(name, false, !(_this__u8e3s4.r1h_1 == null));
|
|
2917
2917
|
}
|
|
2918
2918
|
|
|
2919
2919
|
tmp_3 = tmp_4;
|
|
2920
2920
|
break;
|
|
2921
2921
|
case 4:
|
|
2922
|
-
var it = _this__u8e3s4.
|
|
2922
|
+
var it = _this__u8e3s4.p1h_1;
|
|
2923
2923
|
var tmp_6;
|
|
2924
2924
|
if (it instanceof ReferenceObject_0) {
|
|
2925
2925
|
tmp_6 = toIterable_0(toReference_1(it, $this));
|
|
@@ -2957,30 +2957,30 @@
|
|
|
2957
2957
|
var tmp$ret$0;
|
|
2958
2958
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toOperationList.<anonymous>' call
|
|
2959
2959
|
var tmp;
|
|
2960
|
-
switch (element.
|
|
2960
|
+
switch (element.u4_1) {
|
|
2961
2961
|
case 0:
|
|
2962
|
-
tmp = _this__u8e3s4.
|
|
2962
|
+
tmp = _this__u8e3s4.r1e_1;
|
|
2963
2963
|
break;
|
|
2964
2964
|
case 1:
|
|
2965
|
-
tmp = _this__u8e3s4.
|
|
2965
|
+
tmp = _this__u8e3s4.t1e_1;
|
|
2966
2966
|
break;
|
|
2967
2967
|
case 2:
|
|
2968
|
-
tmp = _this__u8e3s4.
|
|
2968
|
+
tmp = _this__u8e3s4.s1e_1;
|
|
2969
2969
|
break;
|
|
2970
2970
|
case 3:
|
|
2971
|
-
tmp = _this__u8e3s4.
|
|
2971
|
+
tmp = _this__u8e3s4.u1e_1;
|
|
2972
2972
|
break;
|
|
2973
2973
|
case 4:
|
|
2974
|
-
tmp = _this__u8e3s4.
|
|
2974
|
+
tmp = _this__u8e3s4.v1e_1;
|
|
2975
2975
|
break;
|
|
2976
2976
|
case 5:
|
|
2977
|
-
tmp = _this__u8e3s4.
|
|
2977
|
+
tmp = _this__u8e3s4.w1e_1;
|
|
2978
2978
|
break;
|
|
2979
2979
|
case 6:
|
|
2980
|
-
tmp = _this__u8e3s4.
|
|
2980
|
+
tmp = _this__u8e3s4.x1e_1;
|
|
2981
2981
|
break;
|
|
2982
2982
|
case 7:
|
|
2983
|
-
tmp = _this__u8e3s4.
|
|
2983
|
+
tmp = _this__u8e3s4.y1e_1;
|
|
2984
2984
|
break;
|
|
2985
2985
|
default:
|
|
2986
2986
|
noWhenBranchMatchedException();
|
|
@@ -2992,10 +2992,10 @@
|
|
|
2992
2992
|
return filterNotNullValues_0(result);
|
|
2993
2993
|
}
|
|
2994
2994
|
function getReference_0(_this__u8e3s4, $this) {
|
|
2995
|
-
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
2995
|
+
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.y1g_1), ['/']), 3);
|
|
2996
2996
|
var tmp;
|
|
2997
2997
|
if (tmp0_elvis_lhs == null) {
|
|
2998
|
-
var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
2998
|
+
var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.y1g_1);
|
|
2999
2999
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
3000
3000
|
} else {
|
|
3001
3001
|
tmp = tmp0_elvis_lhs;
|
|
@@ -3004,7 +3004,7 @@
|
|
|
3004
3004
|
}
|
|
3005
3005
|
function toPrimitive_0(_this__u8e3s4, $this) {
|
|
3006
3006
|
var tmp;
|
|
3007
|
-
switch (_this__u8e3s4.
|
|
3007
|
+
switch (_this__u8e3s4.u4_1) {
|
|
3008
3008
|
case 0:
|
|
3009
3009
|
tmp = Type_String_getInstance();
|
|
3010
3010
|
break;
|
|
@@ -3025,7 +3025,7 @@
|
|
|
3025
3025
|
function toField_1(_this__u8e3s4, $this, name) {
|
|
3026
3026
|
// Inline function 'kotlin.collections.map' call
|
|
3027
3027
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3028
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
3028
|
+
var tmp0_elvis_lhs = _this__u8e3s4.q1h_1;
|
|
3029
3029
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3030
3030
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3031
3031
|
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.f());
|
|
@@ -3042,15 +3042,15 @@
|
|
|
3042
3042
|
var tmp;
|
|
3043
3043
|
if (value instanceof SchemaObject_0) {
|
|
3044
3044
|
var tmp_0 = new Identifier(key);
|
|
3045
|
-
var tmp_1 = !(value.
|
|
3046
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
3045
|
+
var tmp_1 = !(value.k1i_1 == null) ? toReference_2(value, $this, Common_getInstance().p1v([name, key])) : equals(value.k1h_1, Type_ARRAY_getInstance_0()) ? toReference_2(value, $this, Common_getInstance().p1v([name, key, 'Array'])) : toReference_2(value, $this, Common_getInstance().p1v([name, key]));
|
|
3046
|
+
var tmp1_safe_receiver = _this__u8e3s4.j1i_1;
|
|
3047
3047
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k1(key);
|
|
3048
3048
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
3049
3049
|
} else {
|
|
3050
3050
|
if (value instanceof ReferenceObject_0) {
|
|
3051
3051
|
var tmp_2 = new Identifier(key);
|
|
3052
|
-
var tmp_3 = new Custom(Common_getInstance().
|
|
3053
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
3052
|
+
var tmp_3 = new Custom(Common_getInstance().p1v([getReference_0(value, $this)]), false);
|
|
3053
|
+
var tmp3_safe_receiver = _this__u8e3s4.j1i_1;
|
|
3054
3054
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.k1(key);
|
|
3055
3055
|
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
3056
3056
|
} else {
|
|
@@ -3064,7 +3064,7 @@
|
|
|
3064
3064
|
}
|
|
3065
3065
|
function toField_2(_this__u8e3s4, $this, name) {
|
|
3066
3066
|
// Inline function 'kotlin.let' call
|
|
3067
|
-
var s = _this__u8e3s4.
|
|
3067
|
+
var s = _this__u8e3s4.a1g_1;
|
|
3068
3068
|
var tmp;
|
|
3069
3069
|
if (s instanceof ReferenceObject_0) {
|
|
3070
3070
|
tmp = toReference_1(s, $this);
|
|
@@ -3082,13 +3082,13 @@
|
|
|
3082
3082
|
var tmp0_let = tmp;
|
|
3083
3083
|
// Inline function 'kotlin.contracts.contract' call
|
|
3084
3084
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3085
|
-
var tmp_0 = new Identifier(_this__u8e3s4.
|
|
3086
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
3085
|
+
var tmp_0 = new Identifier(_this__u8e3s4.e1g_1);
|
|
3086
|
+
var tmp0_elvis_lhs = _this__u8e3s4.u1f_1;
|
|
3087
3087
|
return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
3088
3088
|
}
|
|
3089
3089
|
function toField_3(_this__u8e3s4, $this, identifier, name) {
|
|
3090
3090
|
// Inline function 'kotlin.let' call
|
|
3091
|
-
var s = _this__u8e3s4.
|
|
3091
|
+
var s = _this__u8e3s4.f1j_1;
|
|
3092
3092
|
var tmp;
|
|
3093
3093
|
if (s instanceof ReferenceObject_0) {
|
|
3094
3094
|
tmp = toReference_1(s, $this);
|
|
@@ -3107,23 +3107,23 @@
|
|
|
3107
3107
|
// Inline function 'kotlin.contracts.contract' call
|
|
3108
3108
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3109
3109
|
var tmp_0 = new Identifier(identifier);
|
|
3110
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
3110
|
+
var tmp0_elvis_lhs = _this__u8e3s4.z1i_1;
|
|
3111
3111
|
return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
3112
3112
|
}
|
|
3113
3113
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
3114
|
-
this.
|
|
3115
|
-
this.
|
|
3116
|
-
this.
|
|
3117
|
-
this.
|
|
3114
|
+
this.i1w_1 = path;
|
|
3115
|
+
this.j1w_1 = pathItem;
|
|
3116
|
+
this.k1w_1 = method;
|
|
3117
|
+
this.l1w_1 = operation;
|
|
3118
3118
|
}
|
|
3119
3119
|
protoOf(FlattenRequest_0).toString = function () {
|
|
3120
|
-
return 'FlattenRequest(path=' + new Path_0(this.
|
|
3120
|
+
return 'FlattenRequest(path=' + new Path_0(this.i1w_1) + ', pathItem=' + this.j1w_1 + ', method=' + this.k1w_1 + ', operation=' + this.l1w_1 + ')';
|
|
3121
3121
|
};
|
|
3122
3122
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
3123
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3124
|
-
result = imul(result, 31) + this.
|
|
3125
|
-
result = imul(result, 31) + this.
|
|
3126
|
-
result = imul(result, 31) + this.
|
|
3123
|
+
var result = Path__hashCode_impl_go73kd_0(this.i1w_1);
|
|
3124
|
+
result = imul(result, 31) + this.j1w_1.hashCode() | 0;
|
|
3125
|
+
result = imul(result, 31) + this.k1w_1.hashCode() | 0;
|
|
3126
|
+
result = imul(result, 31) + this.l1w_1.hashCode() | 0;
|
|
3127
3127
|
return result;
|
|
3128
3128
|
};
|
|
3129
3129
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -3132,20 +3132,20 @@
|
|
|
3132
3132
|
if (!(other instanceof FlattenRequest_0))
|
|
3133
3133
|
return false;
|
|
3134
3134
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
3135
|
-
if (!(this.
|
|
3135
|
+
if (!(this.i1w_1 === tmp0_other_with_cast.i1w_1))
|
|
3136
3136
|
return false;
|
|
3137
|
-
if (!this.
|
|
3137
|
+
if (!this.j1w_1.equals(tmp0_other_with_cast.j1w_1))
|
|
3138
3138
|
return false;
|
|
3139
|
-
if (!this.
|
|
3139
|
+
if (!this.k1w_1.equals(tmp0_other_with_cast.k1w_1))
|
|
3140
3140
|
return false;
|
|
3141
|
-
if (!this.
|
|
3141
|
+
if (!this.l1w_1.equals(tmp0_other_with_cast.l1w_1))
|
|
3142
3142
|
return false;
|
|
3143
3143
|
return true;
|
|
3144
3144
|
};
|
|
3145
3145
|
function flatMapRequests_0(_this__u8e3s4, $this, f) {
|
|
3146
3146
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3147
3147
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3148
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
3148
|
+
var tmp0_flatMap = _this__u8e3s4.d1e_1;
|
|
3149
3149
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3150
3150
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
3151
3151
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -3154,7 +3154,7 @@
|
|
|
3154
3154
|
var element = tmp0_iterator.e();
|
|
3155
3155
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
3156
3156
|
// Inline function 'kotlin.collections.component1' call
|
|
3157
|
-
var path = element.v().
|
|
3157
|
+
var path = element.v().l1e_1;
|
|
3158
3158
|
// Inline function 'kotlin.collections.component2' call
|
|
3159
3159
|
var pathItem = element.w();
|
|
3160
3160
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3189,23 +3189,23 @@
|
|
|
3189
3189
|
return tmp0_flatMapTo_0;
|
|
3190
3190
|
}
|
|
3191
3191
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
3192
|
-
this.
|
|
3193
|
-
this.
|
|
3194
|
-
this.
|
|
3195
|
-
this.
|
|
3196
|
-
this.
|
|
3197
|
-
this.
|
|
3192
|
+
this.m1w_1 = path;
|
|
3193
|
+
this.n1w_1 = pathItem;
|
|
3194
|
+
this.o1w_1 = method;
|
|
3195
|
+
this.p1w_1 = operation;
|
|
3196
|
+
this.q1w_1 = statusCode;
|
|
3197
|
+
this.r1w_1 = response;
|
|
3198
3198
|
}
|
|
3199
3199
|
protoOf(FlattenResponse_0).toString = function () {
|
|
3200
|
-
return 'FlattenResponse(path=' + new Path_0(this.
|
|
3200
|
+
return 'FlattenResponse(path=' + new Path_0(this.m1w_1) + ', pathItem=' + this.n1w_1 + ', method=' + this.o1w_1 + ', operation=' + this.p1w_1 + ', statusCode=' + new StatusCode_0(this.q1w_1) + ', response=' + this.r1w_1 + ')';
|
|
3201
3201
|
};
|
|
3202
3202
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
3203
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3204
|
-
result = imul(result, 31) + this.
|
|
3205
|
-
result = imul(result, 31) + this.
|
|
3206
|
-
result = imul(result, 31) + this.
|
|
3207
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.
|
|
3208
|
-
result = imul(result, 31) + hashCode(this.
|
|
3203
|
+
var result = Path__hashCode_impl_go73kd_0(this.m1w_1);
|
|
3204
|
+
result = imul(result, 31) + this.n1w_1.hashCode() | 0;
|
|
3205
|
+
result = imul(result, 31) + this.o1w_1.hashCode() | 0;
|
|
3206
|
+
result = imul(result, 31) + this.p1w_1.hashCode() | 0;
|
|
3207
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.q1w_1) | 0;
|
|
3208
|
+
result = imul(result, 31) + hashCode(this.r1w_1) | 0;
|
|
3209
3209
|
return result;
|
|
3210
3210
|
};
|
|
3211
3211
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -3214,24 +3214,24 @@
|
|
|
3214
3214
|
if (!(other instanceof FlattenResponse_0))
|
|
3215
3215
|
return false;
|
|
3216
3216
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
3217
|
-
if (!(this.
|
|
3217
|
+
if (!(this.m1w_1 === tmp0_other_with_cast.m1w_1))
|
|
3218
3218
|
return false;
|
|
3219
|
-
if (!this.
|
|
3219
|
+
if (!this.n1w_1.equals(tmp0_other_with_cast.n1w_1))
|
|
3220
3220
|
return false;
|
|
3221
|
-
if (!this.
|
|
3221
|
+
if (!this.o1w_1.equals(tmp0_other_with_cast.o1w_1))
|
|
3222
3222
|
return false;
|
|
3223
|
-
if (!this.
|
|
3223
|
+
if (!this.p1w_1.equals(tmp0_other_with_cast.p1w_1))
|
|
3224
3224
|
return false;
|
|
3225
|
-
if (!(this.
|
|
3225
|
+
if (!(this.q1w_1 === tmp0_other_with_cast.q1w_1))
|
|
3226
3226
|
return false;
|
|
3227
|
-
if (!equals(this.
|
|
3227
|
+
if (!equals(this.r1w_1, tmp0_other_with_cast.r1w_1))
|
|
3228
3228
|
return false;
|
|
3229
3229
|
return true;
|
|
3230
3230
|
};
|
|
3231
3231
|
function flatMapResponses_0(_this__u8e3s4, $this, f) {
|
|
3232
3232
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3233
3233
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3234
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
3234
|
+
var tmp0_flatMap = _this__u8e3s4.d1e_1;
|
|
3235
3235
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3236
3236
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
3237
3237
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -3240,7 +3240,7 @@
|
|
|
3240
3240
|
var element = tmp0_iterator.e();
|
|
3241
3241
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
3242
3242
|
// Inline function 'kotlin.collections.component1' call
|
|
3243
|
-
var path = element.v().
|
|
3243
|
+
var path = element.v().l1e_1;
|
|
3244
3244
|
// Inline function 'kotlin.collections.component2' call
|
|
3245
3245
|
var pathItem = element.w();
|
|
3246
3246
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -3257,7 +3257,7 @@
|
|
|
3257
3257
|
// Inline function 'kotlin.collections.component2' call
|
|
3258
3258
|
var operation = element_0.w();
|
|
3259
3259
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3260
|
-
var tmp0_safe_receiver = operation.
|
|
3260
|
+
var tmp0_safe_receiver = operation.l1f_1;
|
|
3261
3261
|
var tmp;
|
|
3262
3262
|
if (tmp0_safe_receiver == null) {
|
|
3263
3263
|
tmp = null;
|
|
@@ -3272,7 +3272,7 @@
|
|
|
3272
3272
|
var tmp$ret$9;
|
|
3273
3273
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
3274
3274
|
// Inline function 'kotlin.collections.component1' call
|
|
3275
|
-
var statusCode = item.v().
|
|
3275
|
+
var statusCode = item.v().o1i_1;
|
|
3276
3276
|
// Inline function 'kotlin.collections.component2' call
|
|
3277
3277
|
var response = item.w();
|
|
3278
3278
|
tmp$ret$9 = new FlattenResponse_0(path, pathItem, method, operation, statusCode, response);
|
|
@@ -3300,9 +3300,9 @@
|
|
|
3300
3300
|
}
|
|
3301
3301
|
function OpenApiParser$parseParameters$lambda_0(this$0) {
|
|
3302
3302
|
return function (req) {
|
|
3303
|
-
var parameters = plus(resolveParameters_2(req.
|
|
3304
|
-
var tmp0_elvis_lhs = toName_1(req.
|
|
3305
|
-
var name = tmp0_elvis_lhs == null ? toName_2(req.
|
|
3303
|
+
var parameters = plus(resolveParameters_2(req.j1w_1, this$0), resolveParameters_1(req.l1w_1, this$0));
|
|
3304
|
+
var tmp0_elvis_lhs = toName_1(req.l1w_1, this$0);
|
|
3305
|
+
var name = tmp0_elvis_lhs == null ? toName_2(req.i1w_1, this$0) + req.k1w_1.t4_1 : tmp0_elvis_lhs;
|
|
3306
3306
|
var tmp$ret$2;
|
|
3307
3307
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3308
3308
|
var tmp$ret$1;
|
|
@@ -3313,8 +3313,8 @@
|
|
|
3313
3313
|
var element = tmp0_iterator.e();
|
|
3314
3314
|
var tmp$ret$0;
|
|
3315
3315
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
3316
|
-
var tmp0_safe_receiver = element.
|
|
3317
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().
|
|
3316
|
+
var tmp0_safe_receiver = element.a1g_1;
|
|
3317
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().p1v([name, 'Parameter', element.e1g_1]));
|
|
3318
3318
|
tmp$ret$0 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
3319
3319
|
var list = tmp$ret$0;
|
|
3320
3320
|
addAll(tmp0_flatMapTo, list);
|
|
@@ -3326,15 +3326,15 @@
|
|
|
3326
3326
|
}
|
|
3327
3327
|
function OpenApiParser$parseRequestBody$lambda_0(this$0) {
|
|
3328
3328
|
return function (req) {
|
|
3329
|
-
var tmp0_elvis_lhs = toName_1(req.
|
|
3330
|
-
var name = tmp0_elvis_lhs == null ? toName_2(req.
|
|
3329
|
+
var tmp0_elvis_lhs = toName_1(req.l1w_1, this$0);
|
|
3330
|
+
var name = tmp0_elvis_lhs == null ? toName_2(req.i1w_1, this$0) + req.k1w_1.t4_1 : tmp0_elvis_lhs;
|
|
3331
3331
|
var tmp$ret$6;
|
|
3332
3332
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3333
3333
|
var tmp$ret$0;
|
|
3334
3334
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3335
|
-
var tmp1_safe_receiver = req.
|
|
3335
|
+
var tmp1_safe_receiver = req.l1w_1.k1f_1;
|
|
3336
3336
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_6(tmp1_safe_receiver, this$0);
|
|
3337
|
-
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
3337
|
+
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.k1g_1;
|
|
3338
3338
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
3339
3339
|
tmp$ret$0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
3340
3340
|
var tmp1_flatMap = tmp$ret$0;
|
|
@@ -3353,22 +3353,22 @@
|
|
|
3353
3353
|
// Inline function 'kotlin.collections.component2' call
|
|
3354
3354
|
tmp$ret$2 = element.w();
|
|
3355
3355
|
var mediaObject = tmp$ret$2;
|
|
3356
|
-
var schema = mediaObject.
|
|
3356
|
+
var schema = mediaObject.s1g_1;
|
|
3357
3357
|
var tmp;
|
|
3358
3358
|
if (schema instanceof SchemaObject_0) {
|
|
3359
|
-
var tmp0_subject = schema.
|
|
3360
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.
|
|
3359
|
+
var tmp0_subject = schema.k1h_1;
|
|
3360
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.u4_1;
|
|
3361
3361
|
var tmp_0;
|
|
3362
3362
|
switch (tmp0) {
|
|
3363
3363
|
case -1:
|
|
3364
3364
|
case 5:
|
|
3365
|
-
tmp_0 = flatten_1(schema, this$0, Common_getInstance().
|
|
3365
|
+
tmp_0 = flatten_1(schema, this$0, Common_getInstance().p1v([name, 'RequestBody']));
|
|
3366
3366
|
break;
|
|
3367
3367
|
case 4:
|
|
3368
3368
|
var tmp$ret$3;
|
|
3369
3369
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3370
|
-
var tmp1_safe_receiver_0 = schema.
|
|
3371
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
3370
|
+
var tmp1_safe_receiver_0 = schema.p1h_1;
|
|
3371
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().p1v([name, 'RequestBody']));
|
|
3372
3372
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
3373
3373
|
tmp$ret$3 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
3374
3374
|
|
|
@@ -3401,16 +3401,16 @@
|
|
|
3401
3401
|
}
|
|
3402
3402
|
function OpenApiParser$parseResponseBody$lambda_0(this$0) {
|
|
3403
3403
|
return function (res) {
|
|
3404
|
-
var tmp0_elvis_lhs = toName_1(res.
|
|
3405
|
-
var name = tmp0_elvis_lhs == null ? toName_2(res.
|
|
3406
|
-
var response = res.
|
|
3404
|
+
var tmp0_elvis_lhs = toName_1(res.p1w_1, this$0);
|
|
3405
|
+
var name = tmp0_elvis_lhs == null ? toName_2(res.m1w_1, this$0) + res.o1w_1.t4_1 : tmp0_elvis_lhs;
|
|
3406
|
+
var response = res.r1w_1;
|
|
3407
3407
|
var tmp;
|
|
3408
3408
|
if (response instanceof ResponseObject_0) {
|
|
3409
3409
|
var tmp$ret$7;
|
|
3410
3410
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3411
3411
|
var tmp$ret$0;
|
|
3412
3412
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3413
|
-
var tmp0_orEmpty = response.
|
|
3413
|
+
var tmp0_orEmpty = response.t1i_1;
|
|
3414
3414
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
3415
3415
|
tmp$ret$0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
3416
3416
|
var tmp1_flatMap = tmp$ret$0;
|
|
@@ -3427,28 +3427,28 @@
|
|
|
3427
3427
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
3428
3428
|
var tmp$ret$2;
|
|
3429
3429
|
// Inline function 'kotlin.collections.component1' call
|
|
3430
|
-
tmp$ret$2 = element.v().
|
|
3430
|
+
tmp$ret$2 = element.v().p1g_1;
|
|
3431
3431
|
var mediaType = tmp$ret$2;
|
|
3432
3432
|
var tmp$ret$3;
|
|
3433
3433
|
// Inline function 'kotlin.collections.component2' call
|
|
3434
3434
|
tmp$ret$3 = element.w();
|
|
3435
3435
|
var mediaObject = tmp$ret$3;
|
|
3436
|
-
var schema = mediaObject.
|
|
3436
|
+
var schema = mediaObject.s1g_1;
|
|
3437
3437
|
var tmp_0;
|
|
3438
3438
|
if (schema instanceof SchemaObject_0) {
|
|
3439
|
-
var tmp0_subject = schema.
|
|
3440
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.
|
|
3439
|
+
var tmp0_subject = schema.k1h_1;
|
|
3440
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.u4_1;
|
|
3441
3441
|
var tmp_1;
|
|
3442
3442
|
switch (tmp0) {
|
|
3443
3443
|
case -1:
|
|
3444
3444
|
case 5:
|
|
3445
|
-
tmp_1 = flatten_1(schema, this$0, Common_getInstance().
|
|
3445
|
+
tmp_1 = flatten_1(schema, this$0, Common_getInstance().p1v([name, _StatusCode___get_value__impl__we50mu_0(res.q1w_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
|
|
3446
3446
|
break;
|
|
3447
3447
|
case 4:
|
|
3448
3448
|
var tmp$ret$4;
|
|
3449
3449
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3450
|
-
var tmp1_safe_receiver = schema.
|
|
3451
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().
|
|
3450
|
+
var tmp1_safe_receiver = schema.p1h_1;
|
|
3451
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().p1v([name, _StatusCode___get_value__impl__we50mu_0(res.q1w_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
|
|
3452
3452
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
3453
3453
|
tmp$ret$4 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
3454
3454
|
|
|
@@ -3494,10 +3494,10 @@
|
|
|
3494
3494
|
tmp$ret$0 = it;
|
|
3495
3495
|
tmp$ret$1 = tmp$ret$0.substring(1, tmp0_substring);
|
|
3496
3496
|
|
|
3497
|
-
tmp = tmp_0.
|
|
3497
|
+
tmp = tmp_0.p1v([tmp$ret$1]);
|
|
3498
3498
|
break;
|
|
3499
3499
|
case false:
|
|
3500
|
-
tmp = Common_getInstance().
|
|
3500
|
+
tmp = Common_getInstance().p1v([it]);
|
|
3501
3501
|
break;
|
|
3502
3502
|
default:
|
|
3503
3503
|
noWhenBranchMatchedException();
|
|
@@ -3508,21 +3508,21 @@
|
|
|
3508
3508
|
}
|
|
3509
3509
|
function OpenApiParser_0(openApi) {
|
|
3510
3510
|
Companion_getInstance_1();
|
|
3511
|
-
this.
|
|
3511
|
+
this.h1w_1 = openApi;
|
|
3512
3512
|
}
|
|
3513
3513
|
function toMap_1(_this__u8e3s4) {
|
|
3514
3514
|
var tmp;
|
|
3515
3515
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3516
|
-
tmp = _this__u8e3s4.
|
|
3516
|
+
tmp = _this__u8e3s4.f1v(VOID, VOID, true);
|
|
3517
3517
|
} else {
|
|
3518
3518
|
if (_this__u8e3s4 instanceof Any) {
|
|
3519
|
-
tmp = _this__u8e3s4.
|
|
3519
|
+
tmp = _this__u8e3s4.a1v(VOID, true);
|
|
3520
3520
|
} else {
|
|
3521
3521
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3522
|
-
tmp = _this__u8e3s4.
|
|
3522
|
+
tmp = _this__u8e3s4.h1v(VOID, VOID, true);
|
|
3523
3523
|
} else {
|
|
3524
3524
|
if (_this__u8e3s4 instanceof Unit) {
|
|
3525
|
-
tmp = _this__u8e3s4.
|
|
3525
|
+
tmp = _this__u8e3s4.d1v(VOID, true);
|
|
3526
3526
|
} else {
|
|
3527
3527
|
noWhenBranchMatchedException();
|
|
3528
3528
|
}
|
|
@@ -3533,7 +3533,7 @@
|
|
|
3533
3533
|
}
|
|
3534
3534
|
function isPrimitive_0(_this__u8e3s4) {
|
|
3535
3535
|
var tmp;
|
|
3536
|
-
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.
|
|
3536
|
+
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.u4_1) {
|
|
3537
3537
|
case 0:
|
|
3538
3538
|
tmp = true;
|
|
3539
3539
|
break;
|
|
@@ -3564,16 +3564,16 @@
|
|
|
3564
3564
|
function toIterable_0(_this__u8e3s4) {
|
|
3565
3565
|
var tmp;
|
|
3566
3566
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3567
|
-
tmp = _this__u8e3s4.
|
|
3567
|
+
tmp = _this__u8e3s4.f1v(VOID, true);
|
|
3568
3568
|
} else {
|
|
3569
3569
|
if (_this__u8e3s4 instanceof Any) {
|
|
3570
|
-
tmp = _this__u8e3s4.
|
|
3570
|
+
tmp = _this__u8e3s4.a1v(true);
|
|
3571
3571
|
} else {
|
|
3572
3572
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3573
|
-
tmp = _this__u8e3s4.
|
|
3573
|
+
tmp = _this__u8e3s4.h1v(VOID, true);
|
|
3574
3574
|
} else {
|
|
3575
3575
|
if (_this__u8e3s4 instanceof Unit) {
|
|
3576
|
-
tmp = _this__u8e3s4.
|
|
3576
|
+
tmp = _this__u8e3s4.d1v(true);
|
|
3577
3577
|
} else {
|
|
3578
3578
|
noWhenBranchMatchedException();
|
|
3579
3579
|
}
|