@flock/wirespec 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js +335 -335
- package/kotlin/arrow-arrow-atomic.js +15 -15
- package/kotlin/arrow-arrow-continuations.js +3 -3
- package/kotlin/arrow-arrow-core.js +74 -74
- package/kotlin/kotlin-kotlin-stdlib-js-ir.js +330 -276
- package/kotlin/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin/kotlin-openapi-bindings.js +3264 -3266
- package/kotlin/kotlin-openapi-bindings.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1329 -1330
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1186 -1185
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/kotlin/wirespec-cli.js +129 -129
- package/kotlin/wirespec-core.js +974 -916
- package/kotlin/wirespec-core.js.map +1 -1
- package/kotlin/wirespec-lib.js +58 -58
- package/kotlin/wirespec-openapi.js +637 -609
- package/kotlin/wirespec-openapi.js.map +1 -1
- package/package.json +1 -1
- package/sync-hashes/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.hash +1 -1
- package/sync-hashes/arrow-arrow-atomic.js.hash +1 -1
- package/sync-hashes/arrow-arrow-continuations.js.hash +1 -1
- package/sync-hashes/arrow-arrow-core.js.hash +1 -1
- package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.hash +1 -1
- package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.map.hash +1 -1
- package/sync-hashes/kotlin-openapi-bindings.js.hash +1 -1
- package/sync-hashes/kotlin-openapi-bindings.js.map.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map.hash +1 -1
- package/sync-hashes/wirespec-cli.js.hash +1 -1
- package/sync-hashes/wirespec-core.js.hash +1 -1
- package/sync-hashes/wirespec-core.js.map.hash +1 -1
- package/sync-hashes/wirespec-lib.js.hash +1 -1
- package/sync-hashes/wirespec-openapi.js.hash +1 -1
- package/sync-hashes/wirespec-openapi.js.map.hash +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (root, factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './wirespec-core.js', './kotlin-kotlin-stdlib-js-ir.js', './kotlin-openapi-bindings.js'
|
|
3
|
+
define(['exports', './wirespec-core.js', './kotlin-kotlin-stdlib-js-ir.js', './kotlin-openapi-bindings.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./wirespec-core.js'), require('./kotlin-kotlin-stdlib-js-ir.js'), require('./kotlin-openapi-bindings.js')
|
|
5
|
+
factory(module.exports, require('./wirespec-core.js'), require('./kotlin-kotlin-stdlib-js-ir.js'), require('./kotlin-openapi-bindings.js'));
|
|
6
6
|
else {
|
|
7
7
|
if (typeof this['wirespec-core'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module 'wirespec-openapi'. Its dependency 'wirespec-core' was not found. Please, check whether 'wirespec-core' is loaded prior to 'wirespec-openapi'.");
|
|
@@ -13,92 +13,85 @@
|
|
|
13
13
|
if (typeof this['kotlin-openapi-bindings'] === 'undefined') {
|
|
14
14
|
throw new Error("Error loading module 'wirespec-openapi'. Its dependency 'kotlin-openapi-bindings' was not found. Please, check whether 'kotlin-openapi-bindings' is loaded prior to 'wirespec-openapi'.");
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
throw new Error("Error loading module 'wirespec-openapi'. Its dependency 'kotlinx-serialization-kotlinx-serialization-json-js-ir' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-json-js-ir' is loaded prior to 'wirespec-openapi'.");
|
|
18
|
-
}
|
|
19
|
-
root['wirespec-openapi'] = factory(typeof this['wirespec-openapi'] === 'undefined' ? {} : this['wirespec-openapi'], this['wirespec-core'], this['kotlin-kotlin-stdlib-js-ir'], this['kotlin-openapi-bindings'], this['kotlinx-serialization-kotlinx-serialization-json-js-ir']);
|
|
16
|
+
root['wirespec-openapi'] = factory(typeof this['wirespec-openapi'] === 'undefined' ? {} : this['wirespec-openapi'], this['wirespec-core'], this['kotlin-kotlin-stdlib-js-ir'], this['kotlin-openapi-bindings']);
|
|
20
17
|
}
|
|
21
|
-
}(this, function (_, kotlin_community_flock_wirespec_compiler_core, kotlin_kotlin, kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings
|
|
18
|
+
}(this, function (_, kotlin_community_flock_wirespec_compiler_core, kotlin_kotlin, kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings) {
|
|
22
19
|
'use strict';
|
|
23
20
|
//region block: imports
|
|
24
21
|
var imul = Math.imul;
|
|
25
22
|
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.c1;
|
|
26
23
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
|
|
27
|
-
var split = kotlin_kotlin.$_$.
|
|
24
|
+
var split = kotlin_kotlin.$_$.z8;
|
|
28
25
|
var Unit_getInstance = kotlin_kotlin.$_$.i3;
|
|
29
26
|
var addAll = kotlin_kotlin.$_$.z3;
|
|
30
|
-
var VOID = kotlin_kotlin.$_$.
|
|
31
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
32
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
33
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
34
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
27
|
+
var VOID = kotlin_kotlin.$_$.bb;
|
|
28
|
+
var joinToString = kotlin_kotlin.$_$.a5;
|
|
29
|
+
var protoOf = kotlin_kotlin.$_$.s7;
|
|
30
|
+
var objectMeta = kotlin_kotlin.$_$.r7;
|
|
31
|
+
var setMetadataFor = kotlin_kotlin.$_$.t7;
|
|
35
32
|
var Default_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i1;
|
|
36
|
-
var plus = kotlin_kotlin.$_$.
|
|
33
|
+
var plus = kotlin_kotlin.$_$.o5;
|
|
37
34
|
var ParameterLocation_QUERY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.t;
|
|
38
35
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.c4;
|
|
39
36
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.f;
|
|
40
37
|
var ParameterLocation_HEADER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s;
|
|
41
38
|
var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r;
|
|
42
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
43
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
44
|
-
var NotImplementedError = kotlin_kotlin.$_$.
|
|
39
|
+
var emptyList = kotlin_kotlin.$_$.q4;
|
|
40
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.wa;
|
|
41
|
+
var NotImplementedError = kotlin_kotlin.$_$.x9;
|
|
45
42
|
var SchemaObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g;
|
|
46
43
|
var ReferenceObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d;
|
|
47
44
|
var Content = kotlin_community_flock_wirespec_compiler_core.$_$.g;
|
|
48
45
|
var Request = kotlin_community_flock_wirespec_compiler_core.$_$.i;
|
|
49
|
-
var listOf = kotlin_kotlin.$_$.
|
|
50
|
-
var emptyMap = kotlin_kotlin.$_$.
|
|
46
|
+
var listOf = kotlin_kotlin.$_$.h5;
|
|
47
|
+
var emptyMap = kotlin_kotlin.$_$.r4;
|
|
51
48
|
var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b1;
|
|
52
49
|
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.j;
|
|
53
50
|
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.m;
|
|
54
51
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
55
52
|
var ParameterObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b;
|
|
56
53
|
var Ref = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e;
|
|
57
|
-
var toString = kotlin_kotlin.$_$.
|
|
54
|
+
var toString = kotlin_kotlin.$_$.x7;
|
|
58
55
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.e1;
|
|
59
|
-
var to = kotlin_kotlin.$_$.
|
|
56
|
+
var to = kotlin_kotlin.$_$.ab;
|
|
60
57
|
var BooleanObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a;
|
|
61
58
|
var ResponseObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f;
|
|
62
59
|
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.u;
|
|
63
60
|
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.v;
|
|
64
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
65
|
-
var
|
|
66
|
-
var JsonArray = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
|
|
67
|
-
var JsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.f;
|
|
68
|
-
var toSet = kotlin_kotlin.$_$.b6;
|
|
61
|
+
var ensureNotNull = kotlin_kotlin.$_$.qa;
|
|
62
|
+
var toSet = kotlin_kotlin.$_$.a6;
|
|
69
63
|
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.n;
|
|
70
64
|
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.r;
|
|
71
65
|
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.s;
|
|
72
66
|
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.q;
|
|
73
67
|
var values = kotlin_community_flock_wirespec_compiler_core.$_$.h;
|
|
74
|
-
var mapCapacity = kotlin_kotlin.$_$.
|
|
75
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
68
|
+
var mapCapacity = kotlin_kotlin.$_$.j5;
|
|
69
|
+
var coerceAtLeast = kotlin_kotlin.$_$.y7;
|
|
76
70
|
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.o;
|
|
77
71
|
var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.z;
|
|
78
72
|
var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.b1;
|
|
79
73
|
var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.a1;
|
|
80
74
|
var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.z;
|
|
81
75
|
var Identifier = kotlin_community_flock_wirespec_compiler_core.$_$.p;
|
|
82
|
-
var contains = kotlin_kotlin.$_$.d4;
|
|
83
76
|
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.t;
|
|
84
77
|
var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.y;
|
|
85
|
-
var drop = kotlin_kotlin.$_$.
|
|
86
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
87
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
88
|
-
var Char = kotlin_kotlin.$_$.
|
|
78
|
+
var drop = kotlin_kotlin.$_$.p4;
|
|
79
|
+
var charSequenceLength = kotlin_kotlin.$_$.n6;
|
|
80
|
+
var charSequenceGet = kotlin_kotlin.$_$.m6;
|
|
81
|
+
var Char = kotlin_kotlin.$_$.p9;
|
|
89
82
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.i1;
|
|
90
|
-
var equals = kotlin_kotlin.$_$.
|
|
83
|
+
var equals = kotlin_kotlin.$_$.r6;
|
|
91
84
|
var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.k;
|
|
92
85
|
var Param = kotlin_community_flock_wirespec_compiler_core.$_$.l;
|
|
93
86
|
var Path = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c;
|
|
94
87
|
var Path__hashCode_impl_go73kd = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.x;
|
|
95
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
96
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
97
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
88
|
+
var getStringHashCode = kotlin_kotlin.$_$.w6;
|
|
89
|
+
var THROW_CCE = kotlin_kotlin.$_$.ba;
|
|
90
|
+
var classMeta = kotlin_kotlin.$_$.p6;
|
|
98
91
|
var StatusCode = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h;
|
|
99
92
|
var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a1;
|
|
100
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
101
|
-
var toMap = kotlin_kotlin.$_$.
|
|
93
|
+
var hashCode = kotlin_kotlin.$_$.x6;
|
|
94
|
+
var toMap = kotlin_kotlin.$_$.z5;
|
|
102
95
|
var Default_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j1;
|
|
103
96
|
var ParameterLocation_QUERY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.w;
|
|
104
97
|
var ParameterLocation_HEADER_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.v;
|
|
@@ -114,7 +107,7 @@
|
|
|
114
107
|
var ResponseObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.o;
|
|
115
108
|
var BooleanObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i;
|
|
116
109
|
var _Ref___get_value__impl__kxavfe_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f1;
|
|
117
|
-
var getOrNull = kotlin_kotlin.$_$.
|
|
110
|
+
var getOrNull = kotlin_kotlin.$_$.w4;
|
|
118
111
|
var Path_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k;
|
|
119
112
|
var Path__hashCode_impl_go73kd_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d1;
|
|
120
113
|
var StatusCode_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.q;
|
|
@@ -132,12 +125,12 @@
|
|
|
132
125
|
setMetadataFor(OpenApiParser_0, 'OpenApiParser', classMeta);
|
|
133
126
|
//endregion
|
|
134
127
|
function Common$className$lambda(it) {
|
|
135
|
-
return Companion_getInstance().
|
|
128
|
+
return Companion_getInstance().qi(it);
|
|
136
129
|
}
|
|
137
130
|
function Common() {
|
|
138
131
|
Common_instance = this;
|
|
139
132
|
}
|
|
140
|
-
protoOf(Common).
|
|
133
|
+
protoOf(Common).g1t = function (arg) {
|
|
141
134
|
var tmp$ret$2;
|
|
142
135
|
// Inline function 'kotlin.collections.flatMap' call
|
|
143
136
|
var tmp$ret$1;
|
|
@@ -169,14 +162,14 @@
|
|
|
169
162
|
function Companion() {
|
|
170
163
|
Companion_instance = this;
|
|
171
164
|
}
|
|
172
|
-
protoOf(Companion).
|
|
165
|
+
protoOf(Companion).h1t = function (json) {
|
|
173
166
|
var tmp$ret$1;
|
|
174
167
|
// Inline function 'kotlin.let' call
|
|
175
|
-
var tmp0_let = Default_getInstance().
|
|
168
|
+
var tmp0_let = Default_getInstance().n1a(json);
|
|
176
169
|
// Inline function 'kotlin.contracts.contract' call
|
|
177
170
|
var tmp$ret$0;
|
|
178
171
|
// Inline function 'community.flock.wirespec.openapi.v2.Companion.parse.<anonymous>' call
|
|
179
|
-
tmp$ret$0 = (new OpenApiParser(tmp0_let)).
|
|
172
|
+
tmp$ret$0 = (new OpenApiParser(tmp0_let)).j1t();
|
|
180
173
|
tmp$ret$1 = tmp$ret$0;
|
|
181
174
|
return tmp$ret$1;
|
|
182
175
|
};
|
|
@@ -189,7 +182,7 @@
|
|
|
189
182
|
function parseEndpoints($this) {
|
|
190
183
|
var tmp$ret$48;
|
|
191
184
|
// Inline function 'kotlin.collections.flatMap' call
|
|
192
|
-
var tmp1_flatMap = $this.
|
|
185
|
+
var tmp1_flatMap = $this.i1t_1.x1a_1;
|
|
193
186
|
var tmp$ret$47;
|
|
194
187
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
195
188
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -203,7 +196,7 @@
|
|
|
203
196
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>' call
|
|
204
197
|
var tmp$ret$1;
|
|
205
198
|
// Inline function 'kotlin.collections.component1' call
|
|
206
|
-
tmp$ret$1 = element.v().
|
|
199
|
+
tmp$ret$1 = element.v().i1b_1;
|
|
207
200
|
var path = tmp$ret$1;
|
|
208
201
|
var tmp$ret$2;
|
|
209
202
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -246,7 +239,7 @@
|
|
|
246
239
|
var element_1 = tmp0_iterator_1.e();
|
|
247
240
|
var tmp$ret$6;
|
|
248
241
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
249
|
-
tmp$ret$6 = element_1.
|
|
242
|
+
tmp$ret$6 = element_1.s1c_1.equals(ParameterLocation_QUERY_getInstance());
|
|
250
243
|
if (tmp$ret$6) {
|
|
251
244
|
tmp0_filterTo.a(element_1);
|
|
252
245
|
}
|
|
@@ -262,7 +255,7 @@
|
|
|
262
255
|
var item = tmp0_iterator_2.e();
|
|
263
256
|
var tmp$ret$9;
|
|
264
257
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
265
|
-
tmp$ret$9 = toField_0(item, $this);
|
|
258
|
+
tmp$ret$9 = toField_0(item, $this, name);
|
|
266
259
|
tmp1_mapTo.a(tmp$ret$9);
|
|
267
260
|
}
|
|
268
261
|
tmp$ret$10 = tmp1_mapTo;
|
|
@@ -280,7 +273,7 @@
|
|
|
280
273
|
var element_2 = tmp0_iterator_3.e();
|
|
281
274
|
var tmp$ret$12;
|
|
282
275
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
283
|
-
tmp$ret$12 = element_2.
|
|
276
|
+
tmp$ret$12 = element_2.s1c_1.equals(ParameterLocation_HEADER_getInstance());
|
|
284
277
|
if (tmp$ret$12) {
|
|
285
278
|
tmp3_filterTo.a(element_2);
|
|
286
279
|
}
|
|
@@ -296,7 +289,7 @@
|
|
|
296
289
|
var item_0 = tmp0_iterator_4.e();
|
|
297
290
|
var tmp$ret$15;
|
|
298
291
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
299
|
-
tmp$ret$15 = toField_0(item_0, $this);
|
|
292
|
+
tmp$ret$15 = toField_0(item_0, $this, name);
|
|
300
293
|
tmp4_mapTo.a(tmp$ret$15);
|
|
301
294
|
}
|
|
302
295
|
tmp$ret$16 = tmp4_mapTo;
|
|
@@ -316,7 +309,7 @@
|
|
|
316
309
|
var element_3 = tmp0_iterator_5.e();
|
|
317
310
|
var tmp$ret$18;
|
|
318
311
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
319
|
-
tmp$ret$18 = element_3.
|
|
312
|
+
tmp$ret$18 = element_3.s1c_1.equals(ParameterLocation_BODY_getInstance());
|
|
320
313
|
if (tmp$ret$18) {
|
|
321
314
|
tmp6_filterTo.a(element_3);
|
|
322
315
|
}
|
|
@@ -336,8 +329,8 @@
|
|
|
336
329
|
// Inline function 'kotlin.collections.map' call
|
|
337
330
|
var tmp$ret$21;
|
|
338
331
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
339
|
-
var tmp0_elvis_lhs = $this.
|
|
340
|
-
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.
|
|
332
|
+
var tmp0_elvis_lhs = $this.i1t_1.v1a_1;
|
|
333
|
+
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.g1c_1 : tmp0_elvis_lhs;
|
|
341
334
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
342
335
|
tmp$ret$21 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
343
336
|
var tmp2_map_0 = tmp$ret$21;
|
|
@@ -349,13 +342,13 @@
|
|
|
349
342
|
var item_1 = tmp0_iterator_7.e();
|
|
350
343
|
var tmp$ret$22;
|
|
351
344
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
352
|
-
var schema = element_4.
|
|
345
|
+
var schema = element_4.v1c_1;
|
|
353
346
|
var tmp;
|
|
354
347
|
if (schema instanceof ReferenceObject) {
|
|
355
348
|
tmp = toReference(schema, $this);
|
|
356
349
|
} else {
|
|
357
350
|
if (schema instanceof SchemaObject) {
|
|
358
|
-
tmp = toReference_0(schema, $this, Common_getInstance().
|
|
351
|
+
tmp = toReference_0(schema, $this, Common_getInstance().g1t([name, 'RequestBody']));
|
|
359
352
|
} else {
|
|
360
353
|
if (schema == null) {
|
|
361
354
|
throw new NotImplementedError();
|
|
@@ -365,7 +358,7 @@
|
|
|
365
358
|
}
|
|
366
359
|
}
|
|
367
360
|
var tmp_0 = tmp;
|
|
368
|
-
var tmp0_elvis_lhs_1 = element_4.
|
|
361
|
+
var tmp0_elvis_lhs_1 = element_4.u1c_1;
|
|
369
362
|
tmp$ret$22 = new Request(new Content(item_1, tmp_0, tmp0_elvis_lhs_1 == null ? false : tmp0_elvis_lhs_1));
|
|
370
363
|
tmp1_mapTo_0.a(tmp$ret$22);
|
|
371
364
|
}
|
|
@@ -393,7 +386,7 @@
|
|
|
393
386
|
// Inline function 'kotlin.collections.flatMap' call
|
|
394
387
|
var tmp$ret$30;
|
|
395
388
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
396
|
-
var tmp10_orEmpty = operation.
|
|
389
|
+
var tmp10_orEmpty = operation.j1c_1;
|
|
397
390
|
var tmp0_elvis_lhs_2 = tmp10_orEmpty;
|
|
398
391
|
tmp$ret$30 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
399
392
|
var tmp12_flatMap = tmp$ret$30;
|
|
@@ -410,7 +403,7 @@
|
|
|
410
403
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
411
404
|
var tmp$ret$32;
|
|
412
405
|
// Inline function 'kotlin.collections.component1' call
|
|
413
|
-
tmp$ret$32 = element_5.v().
|
|
406
|
+
tmp$ret$32 = element_5.v().b1f_1;
|
|
414
407
|
var status = tmp$ret$32;
|
|
415
408
|
var tmp$ret$33;
|
|
416
409
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -420,8 +413,8 @@
|
|
|
420
413
|
// Inline function 'kotlin.collections.map' call
|
|
421
414
|
var tmp$ret$34;
|
|
422
415
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
423
|
-
var tmp0_elvis_lhs_3 = $this.
|
|
424
|
-
var tmp0_orEmpty_0 = tmp0_elvis_lhs_3 == null ? operation.
|
|
416
|
+
var tmp0_elvis_lhs_3 = $this.i1t_1.w1a_1;
|
|
417
|
+
var tmp0_orEmpty_0 = tmp0_elvis_lhs_3 == null ? operation.h1c_1 : tmp0_elvis_lhs_3;
|
|
425
418
|
var tmp0_elvis_lhs_4 = tmp0_orEmpty_0;
|
|
426
419
|
tmp$ret$34 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
427
420
|
var tmp2_map_1 = tmp$ret$34;
|
|
@@ -434,7 +427,7 @@
|
|
|
434
427
|
var tmp$ret$37;
|
|
435
428
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
436
429
|
var tmp_2 = _StatusCode___get_value__impl__we50mu(status);
|
|
437
|
-
var tmp0_safe_receiver = resolve_1(res, $this).
|
|
430
|
+
var tmp0_safe_receiver = resolve_1(res, $this).f1f_1;
|
|
438
431
|
var tmp_3;
|
|
439
432
|
if (tmp0_safe_receiver == null) {
|
|
440
433
|
tmp_3 = null;
|
|
@@ -450,7 +443,7 @@
|
|
|
450
443
|
tmp_4 = toReference(tmp0_safe_receiver, $this);
|
|
451
444
|
} else {
|
|
452
445
|
if (tmp0_subject instanceof SchemaObject) {
|
|
453
|
-
tmp_4 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().
|
|
446
|
+
tmp_4 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().g1t([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']));
|
|
454
447
|
} else {
|
|
455
448
|
noWhenBranchMatchedException();
|
|
456
449
|
}
|
|
@@ -486,10 +479,10 @@
|
|
|
486
479
|
return tmp$ret$48;
|
|
487
480
|
}
|
|
488
481
|
function parseRequestBody($this) {
|
|
489
|
-
return flatMapRequests($this.
|
|
482
|
+
return flatMapRequests($this.i1t_1, $this, OpenApiParser$parseRequestBody$lambda($this));
|
|
490
483
|
}
|
|
491
484
|
function parseResponseBody($this) {
|
|
492
|
-
return flatMapResponses($this.
|
|
485
|
+
return flatMapResponses($this.i1t_1, $this, OpenApiParser$parseResponseBody$lambda($this));
|
|
493
486
|
}
|
|
494
487
|
function parseDefinitions($this) {
|
|
495
488
|
var tmp$ret$8;
|
|
@@ -498,7 +491,7 @@
|
|
|
498
491
|
// Inline function 'kotlin.collections.filter' call
|
|
499
492
|
var tmp$ret$0;
|
|
500
493
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
501
|
-
var tmp0_orEmpty = $this.
|
|
494
|
+
var tmp0_orEmpty = $this.i1t_1.y1a_1;
|
|
502
495
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
503
496
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
504
497
|
var tmp2_filter = tmp$ret$0;
|
|
@@ -513,7 +506,7 @@
|
|
|
513
506
|
var element = tmp0_iterator.e();
|
|
514
507
|
var tmp$ret$2;
|
|
515
508
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
516
|
-
tmp$ret$2 = element.w().
|
|
509
|
+
tmp$ret$2 = element.w().x1e_1 == null;
|
|
517
510
|
if (tmp$ret$2) {
|
|
518
511
|
tmp1_filterTo.k3(element.v(), element.w());
|
|
519
512
|
}
|
|
@@ -532,7 +525,7 @@
|
|
|
532
525
|
var element_0 = tmp0_iterator_0.e();
|
|
533
526
|
var tmp$ret$6;
|
|
534
527
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
535
|
-
tmp$ret$6 = flatten(element_0.w(), $this, Common_getInstance().
|
|
528
|
+
tmp$ret$6 = flatten(element_0.w(), $this, Common_getInstance().g1t([element_0.v()]));
|
|
536
529
|
var list = tmp$ret$6;
|
|
537
530
|
addAll(tmp3_flatMapTo, list);
|
|
538
531
|
}
|
|
@@ -545,7 +538,7 @@
|
|
|
545
538
|
// Inline function 'kotlin.collections.map' call
|
|
546
539
|
var tmp$ret$0;
|
|
547
540
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
548
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
541
|
+
var tmp0_orEmpty = _this__u8e3s4.i1c_1;
|
|
549
542
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
550
543
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
551
544
|
var tmp2_map = tmp$ret$0;
|
|
@@ -580,7 +573,7 @@
|
|
|
580
573
|
// Inline function 'kotlin.collections.map' call
|
|
581
574
|
var tmp$ret$0;
|
|
582
575
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
583
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
576
|
+
var tmp0_orEmpty = _this__u8e3s4.x1b_1;
|
|
584
577
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
585
578
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
586
579
|
var tmp2_map = tmp$ret$0;
|
|
@@ -611,11 +604,11 @@
|
|
|
611
604
|
return tmp$ret$3;
|
|
612
605
|
}
|
|
613
606
|
function resolveParameterObject(_this__u8e3s4, $this) {
|
|
614
|
-
var tmp0_safe_receiver = $this.
|
|
607
|
+
var tmp0_safe_receiver = $this.i1t_1.z1a_1;
|
|
615
608
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
|
|
616
609
|
var tmp;
|
|
617
610
|
if (tmp1_elvis_lhs == null) {
|
|
618
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
611
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.r1d_1);
|
|
619
612
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
620
613
|
} else {
|
|
621
614
|
tmp = tmp1_elvis_lhs;
|
|
@@ -623,11 +616,11 @@
|
|
|
623
616
|
return tmp;
|
|
624
617
|
}
|
|
625
618
|
function resolveResponseObject(_this__u8e3s4, $this) {
|
|
626
|
-
var tmp0_safe_receiver = $this.
|
|
619
|
+
var tmp0_safe_receiver = $this.i1t_1.a1b_1;
|
|
627
620
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
|
|
628
621
|
var tmp;
|
|
629
622
|
if (tmp1_elvis_lhs == null) {
|
|
630
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
623
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.r1d_1);
|
|
631
624
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
632
625
|
} else {
|
|
633
626
|
tmp = tmp1_elvis_lhs;
|
|
@@ -635,7 +628,7 @@
|
|
|
635
628
|
return tmp;
|
|
636
629
|
}
|
|
637
630
|
function resolveSchemaObject(_this__u8e3s4, $this) {
|
|
638
|
-
var tmp0_safe_receiver = $this.
|
|
631
|
+
var tmp0_safe_receiver = $this.i1t_1.y1a_1;
|
|
639
632
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
|
|
640
633
|
var tmp;
|
|
641
634
|
if (tmp1_safe_receiver == null) {
|
|
@@ -653,7 +646,7 @@
|
|
|
653
646
|
var tmp2_elvis_lhs = tmp;
|
|
654
647
|
var tmp_0;
|
|
655
648
|
if (tmp2_elvis_lhs == null) {
|
|
656
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
649
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.r1d_1);
|
|
657
650
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
658
651
|
} else {
|
|
659
652
|
tmp_0 = tmp2_elvis_lhs;
|
|
@@ -722,21 +715,21 @@
|
|
|
722
715
|
}
|
|
723
716
|
function flatten(_this__u8e3s4, $this, name) {
|
|
724
717
|
var tmp;
|
|
725
|
-
if (!(_this__u8e3s4.
|
|
726
|
-
var tmp0_subject = _this__u8e3s4.
|
|
718
|
+
if (!(_this__u8e3s4.x1e_1 == null)) {
|
|
719
|
+
var tmp0_subject = _this__u8e3s4.x1e_1;
|
|
727
720
|
var tmp_0;
|
|
728
721
|
if (tmp0_subject instanceof BooleanObject) {
|
|
729
722
|
tmp_0 = emptyList();
|
|
730
723
|
} else {
|
|
731
|
-
tmp_0 = flatten(resolve_0(ensureNotNull(_this__u8e3s4.
|
|
724
|
+
tmp_0 = flatten(resolve_0(ensureNotNull(_this__u8e3s4.x1e_1), $this), $this, name);
|
|
732
725
|
}
|
|
733
726
|
tmp = tmp_0;
|
|
734
|
-
} else if (!(_this__u8e3s4.
|
|
727
|
+
} else if (!(_this__u8e3s4.v1e_1 == null)) {
|
|
735
728
|
var tmp$ret$3;
|
|
736
729
|
// Inline function 'kotlin.collections.flatMap' call
|
|
737
730
|
var tmp$ret$0;
|
|
738
731
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
739
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
732
|
+
var tmp0_orEmpty = _this__u8e3s4.v1e_1;
|
|
740
733
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
741
734
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
742
735
|
var tmp2_flatMap = tmp$ret$0;
|
|
@@ -757,7 +750,7 @@
|
|
|
757
750
|
var tmp_1 = listOf(new Type(name, new Shape(tmp$ret$3)));
|
|
758
751
|
var tmp$ret$13;
|
|
759
752
|
// Inline function 'kotlin.collections.flatMap' call
|
|
760
|
-
var tmp4_flatMap = ensureNotNull(_this__u8e3s4.
|
|
753
|
+
var tmp4_flatMap = ensureNotNull(_this__u8e3s4.v1e_1);
|
|
761
754
|
var tmp$ret$12;
|
|
762
755
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
763
756
|
var tmp3_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -776,7 +769,7 @@
|
|
|
776
769
|
// Inline function 'kotlin.collections.flatMap' call
|
|
777
770
|
var tmp$ret$4;
|
|
778
771
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
779
|
-
var tmp0_orEmpty_0 = element_0.
|
|
772
|
+
var tmp0_orEmpty_0 = element_0.w1e_1;
|
|
780
773
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
781
774
|
tmp$ret$4 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
782
775
|
var tmp2_flatMap_0 = tmp$ret$4;
|
|
@@ -805,7 +798,7 @@
|
|
|
805
798
|
tmp_3 = emptyList();
|
|
806
799
|
} else {
|
|
807
800
|
if (tmp0_subject_1 instanceof SchemaObject) {
|
|
808
|
-
tmp_3 = flatten(value, $this, Common_getInstance().
|
|
801
|
+
tmp_3 = flatten(value, $this, Common_getInstance().g1t([name, key]));
|
|
809
802
|
} else {
|
|
810
803
|
noWhenBranchMatchedException();
|
|
811
804
|
}
|
|
@@ -828,39 +821,21 @@
|
|
|
828
821
|
tmp$ret$12 = tmp3_flatMapTo;
|
|
829
822
|
tmp$ret$13 = tmp$ret$12;
|
|
830
823
|
tmp = plus(tmp_1, tmp$ret$13);
|
|
831
|
-
} else if (!(_this__u8e3s4.
|
|
824
|
+
} else if (!(_this__u8e3s4.s1e_1 == null)) {
|
|
832
825
|
var tmp$ret$18;
|
|
833
826
|
// Inline function 'kotlin.let' call
|
|
834
827
|
var tmp$ret$16;
|
|
835
828
|
// Inline function 'kotlin.collections.map' call
|
|
836
|
-
var tmp6_map = ensureNotNull(_this__u8e3s4.
|
|
829
|
+
var tmp6_map = ensureNotNull(_this__u8e3s4.s1e_1);
|
|
837
830
|
var tmp$ret$15;
|
|
838
831
|
// Inline function 'kotlin.collections.mapTo' call
|
|
839
|
-
var tmp5_mapTo = ArrayList_init_$Create$_0(tmp6_map
|
|
840
|
-
var
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
while (inductionVariable < last) {
|
|
844
|
-
var item = indexedObject[inductionVariable];
|
|
845
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
832
|
+
var tmp5_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp6_map, 10));
|
|
833
|
+
var tmp0_iterator_2 = tmp6_map.c();
|
|
834
|
+
while (tmp0_iterator_2.d()) {
|
|
835
|
+
var item = tmp0_iterator_2.e();
|
|
846
836
|
var tmp$ret$14;
|
|
847
837
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
848
|
-
|
|
849
|
-
var tmp_4;
|
|
850
|
-
if (tmp0_subject_2 instanceof JsonPrimitive) {
|
|
851
|
-
tmp_4 = item.q13();
|
|
852
|
-
} else {
|
|
853
|
-
if (tmp0_subject_2 instanceof JsonArray) {
|
|
854
|
-
throw new NotImplementedError();
|
|
855
|
-
} else {
|
|
856
|
-
if (tmp0_subject_2 instanceof JsonObject) {
|
|
857
|
-
throw new NotImplementedError();
|
|
858
|
-
} else {
|
|
859
|
-
noWhenBranchMatchedException();
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
tmp$ret$14 = tmp_4;
|
|
838
|
+
tmp$ret$14 = item.r13();
|
|
864
839
|
tmp5_mapTo.a(tmp$ret$14);
|
|
865
840
|
}
|
|
866
841
|
tmp$ret$15 = tmp5_mapTo;
|
|
@@ -873,16 +848,16 @@
|
|
|
873
848
|
tmp$ret$18 = tmp$ret$17;
|
|
874
849
|
tmp = tmp$ret$18;
|
|
875
850
|
} else {
|
|
876
|
-
var tmp1_subject = _this__u8e3s4.
|
|
851
|
+
var tmp1_subject = _this__u8e3s4.t1e_1;
|
|
877
852
|
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.q4_1;
|
|
878
|
-
var
|
|
853
|
+
var tmp_4;
|
|
879
854
|
switch (tmp0) {
|
|
880
855
|
case -1:
|
|
881
856
|
case 5:
|
|
882
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
883
|
-
var
|
|
857
|
+
var tmp2_safe_receiver = _this__u8e3s4.w1e_1;
|
|
858
|
+
var tmp_5;
|
|
884
859
|
if (tmp2_safe_receiver == null) {
|
|
885
|
-
|
|
860
|
+
tmp_5 = null;
|
|
886
861
|
} else {
|
|
887
862
|
var tmp$ret$24;
|
|
888
863
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -892,9 +867,9 @@
|
|
|
892
867
|
var tmp$ret$19;
|
|
893
868
|
// Inline function 'kotlin.collections.iterator' call
|
|
894
869
|
tmp$ret$19 = tmp2_safe_receiver.u().c();
|
|
895
|
-
var
|
|
896
|
-
while (
|
|
897
|
-
var element_2 =
|
|
870
|
+
var tmp0_iterator_3 = tmp$ret$19;
|
|
871
|
+
while (tmp0_iterator_3.d()) {
|
|
872
|
+
var element_2 = tmp0_iterator_3.e();
|
|
898
873
|
var tmp$ret$22;
|
|
899
874
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
900
875
|
var tmp$ret$20;
|
|
@@ -905,57 +880,57 @@
|
|
|
905
880
|
// Inline function 'kotlin.collections.component2' call
|
|
906
881
|
tmp$ret$21 = element_2.w();
|
|
907
882
|
var value_0 = tmp$ret$21;
|
|
908
|
-
var
|
|
909
|
-
var
|
|
910
|
-
if (
|
|
911
|
-
var tmp1_subject_0 = value_0.
|
|
883
|
+
var tmp0_subject_2 = value_0;
|
|
884
|
+
var tmp_6;
|
|
885
|
+
if (tmp0_subject_2 instanceof SchemaObject) {
|
|
886
|
+
var tmp1_subject_0 = value_0.t1e_1;
|
|
912
887
|
var tmp0_0 = tmp1_subject_0 == null ? -1 : tmp1_subject_0.q4_1;
|
|
913
|
-
|
|
888
|
+
tmp_6 = tmp0_0 === 4 ? emptyList() : flatten(value_0, $this, Common_getInstance().g1t([name, key_0]));
|
|
914
889
|
} else {
|
|
915
|
-
if (
|
|
916
|
-
|
|
890
|
+
if (tmp0_subject_2 instanceof ReferenceObject) {
|
|
891
|
+
tmp_6 = emptyList();
|
|
917
892
|
} else {
|
|
918
893
|
noWhenBranchMatchedException();
|
|
919
894
|
}
|
|
920
895
|
}
|
|
921
|
-
tmp$ret$22 =
|
|
896
|
+
tmp$ret$22 = tmp_6;
|
|
922
897
|
var list_2 = tmp$ret$22;
|
|
923
898
|
addAll(tmp8_flatMapTo, list_2);
|
|
924
899
|
}
|
|
925
900
|
tmp$ret$23 = tmp8_flatMapTo;
|
|
926
901
|
tmp$ret$24 = tmp$ret$23;
|
|
927
|
-
|
|
902
|
+
tmp_5 = tmp$ret$24;
|
|
928
903
|
}
|
|
929
904
|
|
|
930
|
-
var tmp3_elvis_lhs =
|
|
905
|
+
var tmp3_elvis_lhs = tmp_5;
|
|
931
906
|
var fields = tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs;
|
|
932
907
|
var schema = listOf(new Type(name, new Shape(toField(_this__u8e3s4, $this, name))));
|
|
933
|
-
|
|
908
|
+
tmp_4 = plus(schema, fields);
|
|
934
909
|
break;
|
|
935
910
|
case 4:
|
|
936
|
-
var it = _this__u8e3s4.
|
|
937
|
-
var
|
|
911
|
+
var it = _this__u8e3s4.u1e_1;
|
|
912
|
+
var tmp_7;
|
|
938
913
|
if (it instanceof ReferenceObject) {
|
|
939
|
-
|
|
914
|
+
tmp_7 = emptyList();
|
|
940
915
|
} else {
|
|
941
916
|
if (it instanceof SchemaObject) {
|
|
942
|
-
|
|
917
|
+
tmp_7 = flatten(it, $this, Common_getInstance().g1t([name, 'Array']));
|
|
943
918
|
} else {
|
|
944
919
|
if (it == null) {
|
|
945
|
-
|
|
920
|
+
tmp_7 = emptyList();
|
|
946
921
|
} else {
|
|
947
922
|
noWhenBranchMatchedException();
|
|
948
923
|
}
|
|
949
924
|
}
|
|
950
925
|
}
|
|
951
926
|
|
|
952
|
-
|
|
927
|
+
tmp_4 = tmp_7;
|
|
953
928
|
break;
|
|
954
929
|
default:
|
|
955
|
-
|
|
930
|
+
tmp_4 = emptyList();
|
|
956
931
|
break;
|
|
957
932
|
}
|
|
958
|
-
tmp =
|
|
933
|
+
tmp = tmp_4;
|
|
959
934
|
}
|
|
960
935
|
return tmp;
|
|
961
936
|
}
|
|
@@ -983,8 +958,8 @@
|
|
|
983
958
|
var referencingObject = tmp0_let.i3();
|
|
984
959
|
var schema = tmp0_let.j3();
|
|
985
960
|
var tmp;
|
|
986
|
-
if (!(schema.
|
|
987
|
-
var additionalProperties = ensureNotNull(schema.
|
|
961
|
+
if (!(schema.x1e_1 == null)) {
|
|
962
|
+
var additionalProperties = ensureNotNull(schema.x1e_1);
|
|
988
963
|
var tmp_0;
|
|
989
964
|
if (additionalProperties instanceof BooleanObject) {
|
|
990
965
|
tmp_0 = new Any(false, true);
|
|
@@ -993,32 +968,32 @@
|
|
|
993
968
|
tmp_0 = toMap_0(toReference(additionalProperties, $this));
|
|
994
969
|
} else {
|
|
995
970
|
if (additionalProperties instanceof SchemaObject) {
|
|
996
|
-
tmp_0 =
|
|
971
|
+
tmp_0 = toMap_0(toReference_0(additionalProperties, $this, getReference(_this__u8e3s4, $this)));
|
|
997
972
|
} else {
|
|
998
973
|
noWhenBranchMatchedException();
|
|
999
974
|
}
|
|
1000
975
|
}
|
|
1001
976
|
}
|
|
1002
977
|
tmp = tmp_0;
|
|
1003
|
-
} else if (!(schema.
|
|
1004
|
-
tmp = new Custom(Common_getInstance().
|
|
1005
|
-
} else if (isPrimitive(schema.
|
|
1006
|
-
tmp = new Primitive(toPrimitive(ensureNotNull(schema.
|
|
978
|
+
} else if (!(schema.s1e_1 == null)) {
|
|
979
|
+
tmp = new Custom(Common_getInstance().g1t([getReference(referencingObject, $this)]), false, false);
|
|
980
|
+
} else if (isPrimitive(schema.t1e_1)) {
|
|
981
|
+
tmp = new Primitive(toPrimitive(ensureNotNull(schema.t1e_1), $this), false, false);
|
|
1007
982
|
} else {
|
|
1008
|
-
var tmp0_subject = schema.
|
|
983
|
+
var tmp0_subject = schema.t1e_1;
|
|
1009
984
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
1010
985
|
var tmp_1;
|
|
1011
986
|
if (tmp0 === 4) {
|
|
1012
|
-
var items = schema.
|
|
987
|
+
var items = schema.u1e_1;
|
|
1013
988
|
var tmp_2;
|
|
1014
989
|
if (items instanceof ReferenceObject) {
|
|
1015
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
990
|
+
tmp_2 = new Custom(Common_getInstance().g1t([getReference(items, $this)]), true);
|
|
1016
991
|
} else {
|
|
1017
992
|
if (items instanceof SchemaObject) {
|
|
1018
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
993
|
+
tmp_2 = new Custom(Common_getInstance().g1t([getReference(referencingObject, $this), 'Array']), true);
|
|
1019
994
|
} else {
|
|
1020
995
|
if (items == null) {
|
|
1021
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.
|
|
996
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.r1d_1);
|
|
1022
997
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
1023
998
|
} else {
|
|
1024
999
|
noWhenBranchMatchedException();
|
|
@@ -1027,7 +1002,7 @@
|
|
|
1027
1002
|
}
|
|
1028
1003
|
tmp_1 = tmp_2;
|
|
1029
1004
|
} else {
|
|
1030
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
1005
|
+
tmp_1 = new Custom(Common_getInstance().g1t([getReference(referencingObject, $this)]), false);
|
|
1031
1006
|
}
|
|
1032
1007
|
tmp = tmp_1;
|
|
1033
1008
|
}
|
|
@@ -1037,10 +1012,10 @@
|
|
|
1037
1012
|
}
|
|
1038
1013
|
function toReference_0(_this__u8e3s4, $this, name) {
|
|
1039
1014
|
var tmp;
|
|
1040
|
-
if (!(_this__u8e3s4.
|
|
1041
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
1015
|
+
if (!(_this__u8e3s4.s1e_1 == null)) {
|
|
1016
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.x1e_1 == null));
|
|
1042
1017
|
} else {
|
|
1043
|
-
var type = _this__u8e3s4.
|
|
1018
|
+
var type = _this__u8e3s4.t1e_1;
|
|
1044
1019
|
var tmp0 = type == null ? -1 : type.q4_1;
|
|
1045
1020
|
var tmp_0;
|
|
1046
1021
|
switch (tmp0) {
|
|
@@ -1048,22 +1023,22 @@
|
|
|
1048
1023
|
case 2:
|
|
1049
1024
|
case 1:
|
|
1050
1025
|
case 3:
|
|
1051
|
-
tmp_0 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.
|
|
1026
|
+
tmp_0 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.x1e_1 == null));
|
|
1052
1027
|
break;
|
|
1053
1028
|
case -1:
|
|
1054
1029
|
case 5:
|
|
1055
1030
|
var tmp_1;
|
|
1056
|
-
var tmp_2 = _this__u8e3s4.
|
|
1031
|
+
var tmp_2 = _this__u8e3s4.x1e_1;
|
|
1057
1032
|
if (tmp_2 instanceof BooleanObject) {
|
|
1058
|
-
tmp_1 = new Any(false, !(_this__u8e3s4.
|
|
1033
|
+
tmp_1 = new Any(false, !(_this__u8e3s4.x1e_1 == null));
|
|
1059
1034
|
} else {
|
|
1060
|
-
tmp_1 = new Custom(name, false, !(_this__u8e3s4.
|
|
1035
|
+
tmp_1 = new Custom(name, false, !(_this__u8e3s4.x1e_1 == null));
|
|
1061
1036
|
}
|
|
1062
1037
|
|
|
1063
1038
|
tmp_0 = tmp_1;
|
|
1064
1039
|
break;
|
|
1065
1040
|
case 4:
|
|
1066
|
-
var it = _this__u8e3s4.
|
|
1041
|
+
var it = _this__u8e3s4.u1e_1;
|
|
1067
1042
|
var tmp_3;
|
|
1068
1043
|
if (it instanceof ReferenceObject) {
|
|
1069
1044
|
tmp_3 = toIterable(toReference(it, $this));
|
|
@@ -1112,28 +1087,28 @@
|
|
|
1112
1087
|
var tmp;
|
|
1113
1088
|
switch (tmp0) {
|
|
1114
1089
|
case 0:
|
|
1115
|
-
tmp = _this__u8e3s4.
|
|
1090
|
+
tmp = _this__u8e3s4.o1b_1;
|
|
1116
1091
|
break;
|
|
1117
1092
|
case 1:
|
|
1118
|
-
tmp = _this__u8e3s4.
|
|
1093
|
+
tmp = _this__u8e3s4.q1b_1;
|
|
1119
1094
|
break;
|
|
1120
1095
|
case 2:
|
|
1121
|
-
tmp = _this__u8e3s4.
|
|
1096
|
+
tmp = _this__u8e3s4.p1b_1;
|
|
1122
1097
|
break;
|
|
1123
1098
|
case 3:
|
|
1124
|
-
tmp = _this__u8e3s4.
|
|
1099
|
+
tmp = _this__u8e3s4.r1b_1;
|
|
1125
1100
|
break;
|
|
1126
1101
|
case 4:
|
|
1127
|
-
tmp = _this__u8e3s4.
|
|
1102
|
+
tmp = _this__u8e3s4.s1b_1;
|
|
1128
1103
|
break;
|
|
1129
1104
|
case 5:
|
|
1130
|
-
tmp = _this__u8e3s4.
|
|
1105
|
+
tmp = _this__u8e3s4.t1b_1;
|
|
1131
1106
|
break;
|
|
1132
1107
|
case 6:
|
|
1133
|
-
tmp = _this__u8e3s4.
|
|
1108
|
+
tmp = _this__u8e3s4.u1b_1;
|
|
1134
1109
|
break;
|
|
1135
1110
|
case 7:
|
|
1136
|
-
tmp = _this__u8e3s4.
|
|
1111
|
+
tmp = _this__u8e3s4.v1b_1;
|
|
1137
1112
|
break;
|
|
1138
1113
|
default:
|
|
1139
1114
|
noWhenBranchMatchedException();
|
|
@@ -1147,7 +1122,7 @@
|
|
|
1147
1122
|
return filterNotNullValues(tmp$ret$2);
|
|
1148
1123
|
}
|
|
1149
1124
|
function getReference(_this__u8e3s4, $this) {
|
|
1150
|
-
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
1125
|
+
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.r1d_1), ['/']).h(2);
|
|
1151
1126
|
}
|
|
1152
1127
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
1153
1128
|
var tmp0_subject = _this__u8e3s4;
|
|
@@ -1176,7 +1151,7 @@
|
|
|
1176
1151
|
// Inline function 'kotlin.collections.map' call
|
|
1177
1152
|
var tmp$ret$0;
|
|
1178
1153
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1179
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
1154
|
+
var tmp0_orEmpty = _this__u8e3s4.w1e_1;
|
|
1180
1155
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1181
1156
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1182
1157
|
var tmp2_map = tmp$ret$0;
|
|
@@ -1203,16 +1178,16 @@
|
|
|
1203
1178
|
var tmp;
|
|
1204
1179
|
if (tmp0_subject instanceof SchemaObject) {
|
|
1205
1180
|
var tmp_0 = new Identifier(key);
|
|
1206
|
-
var tmp_1 = toReference_0(value, $this, Common_getInstance().
|
|
1207
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
1208
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null :
|
|
1181
|
+
var tmp_1 = toReference_0(value, $this, Common_getInstance().g1t([name, key]));
|
|
1182
|
+
var tmp1_safe_receiver = _this__u8e3s4.r1e_1;
|
|
1183
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.i1(key);
|
|
1209
1184
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
1210
1185
|
} else {
|
|
1211
1186
|
if (tmp0_subject instanceof ReferenceObject) {
|
|
1212
1187
|
var tmp_2 = new Identifier(key);
|
|
1213
1188
|
var tmp_3 = toReference(value, $this);
|
|
1214
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
1215
|
-
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null :
|
|
1189
|
+
var tmp3_safe_receiver = _this__u8e3s4.r1e_1;
|
|
1190
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.i1(key);
|
|
1216
1191
|
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
1217
1192
|
} else {
|
|
1218
1193
|
noWhenBranchMatchedException();
|
|
@@ -1225,7 +1200,7 @@
|
|
|
1225
1200
|
tmp$ret$6 = tmp$ret$5;
|
|
1226
1201
|
return tmp$ret$6;
|
|
1227
1202
|
}
|
|
1228
|
-
function toField_0(_this__u8e3s4, $this) {
|
|
1203
|
+
function toField_0(_this__u8e3s4, $this, name) {
|
|
1229
1204
|
var tmp$ret$7;
|
|
1230
1205
|
// Inline function 'kotlin.let' call
|
|
1231
1206
|
var tmp$ret$5;
|
|
@@ -1234,63 +1209,69 @@
|
|
|
1234
1209
|
// Inline function 'kotlin.contracts.contract' call
|
|
1235
1210
|
var tmp$ret$4;
|
|
1236
1211
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1237
|
-
var type = tmp0_let.v1c_1;
|
|
1238
|
-
var tmp0 = type == null ? -1 : type.q4_1;
|
|
1239
1212
|
var tmp;
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
tmp$ret$1 = tmp$ret$0;
|
|
1253
|
-
|
|
1254
|
-
tmp = tmp$ret$1;
|
|
1255
|
-
break;
|
|
1256
|
-
case 4:
|
|
1257
|
-
var tmp0_safe_receiver = tmp0_let.w1c_1;
|
|
1258
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve(tmp0_safe_receiver, $this);
|
|
1259
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s1e_1;
|
|
1260
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toPrimitive(tmp2_safe_receiver, $this);
|
|
1261
|
-
var tmp_0;
|
|
1262
|
-
if (tmp3_safe_receiver == null) {
|
|
1263
|
-
tmp_0 = null;
|
|
1264
|
-
} else {
|
|
1265
|
-
var tmp$ret$3;
|
|
1213
|
+
if (!(_this__u8e3s4.m1d_1 == null)) {
|
|
1214
|
+
tmp = new Custom(name + 'Parameter' + tmp0_let.r1c_1, false);
|
|
1215
|
+
} else {
|
|
1216
|
+
var type = tmp0_let.w1c_1;
|
|
1217
|
+
var tmp0 = type == null ? -1 : type.q4_1;
|
|
1218
|
+
var tmp_0;
|
|
1219
|
+
switch (tmp0) {
|
|
1220
|
+
case 0:
|
|
1221
|
+
case 1:
|
|
1222
|
+
case 2:
|
|
1223
|
+
case 3:
|
|
1224
|
+
var tmp$ret$1;
|
|
1266
1225
|
// Inline function 'kotlin.let' call
|
|
1226
|
+
var tmp0_let_0 = toPrimitive(type, $this);
|
|
1267
1227
|
// Inline function 'kotlin.contracts.contract' call
|
|
1268
|
-
var tmp$ret$
|
|
1228
|
+
var tmp$ret$0;
|
|
1269
1229
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>.<anonymous>' call
|
|
1270
|
-
tmp$ret$
|
|
1271
|
-
tmp$ret$
|
|
1272
|
-
tmp_0 = tmp$ret$3;
|
|
1273
|
-
}
|
|
1230
|
+
tmp$ret$0 = new Primitive(tmp0_let_0, false);
|
|
1231
|
+
tmp$ret$1 = tmp$ret$0;
|
|
1274
1232
|
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1233
|
+
tmp_0 = tmp$ret$1;
|
|
1234
|
+
break;
|
|
1235
|
+
case 4:
|
|
1236
|
+
var tmp0_safe_receiver = tmp0_let.x1c_1;
|
|
1237
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve(tmp0_safe_receiver, $this);
|
|
1238
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t1e_1;
|
|
1239
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toPrimitive(tmp2_safe_receiver, $this);
|
|
1240
|
+
var tmp_1;
|
|
1241
|
+
if (tmp3_safe_receiver == null) {
|
|
1242
|
+
tmp_1 = null;
|
|
1243
|
+
} else {
|
|
1244
|
+
var tmp$ret$3;
|
|
1245
|
+
// Inline function 'kotlin.let' call
|
|
1246
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
1247
|
+
var tmp$ret$2;
|
|
1248
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>.<anonymous>' call
|
|
1249
|
+
tmp$ret$2 = new Primitive(tmp3_safe_receiver, true);
|
|
1250
|
+
tmp$ret$3 = tmp$ret$2;
|
|
1251
|
+
tmp_1 = tmp$ret$3;
|
|
1252
|
+
}
|
|
1282
1253
|
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1254
|
+
var tmp4_elvis_lhs = tmp_1;
|
|
1255
|
+
var tmp_2;
|
|
1256
|
+
if (tmp4_elvis_lhs == null) {
|
|
1257
|
+
throw new NotImplementedError();
|
|
1258
|
+
} else {
|
|
1259
|
+
tmp_2 = tmp4_elvis_lhs;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
tmp_0 = tmp_2;
|
|
1263
|
+
break;
|
|
1264
|
+
case 5:
|
|
1265
|
+
throw new NotImplementedError();
|
|
1266
|
+
case 6:
|
|
1267
|
+
throw new NotImplementedError();
|
|
1268
|
+
case -1:
|
|
1269
|
+
throw new NotImplementedError();
|
|
1270
|
+
default:
|
|
1271
|
+
noWhenBranchMatchedException();
|
|
1272
|
+
break;
|
|
1273
|
+
}
|
|
1274
|
+
tmp = tmp_0;
|
|
1294
1275
|
}
|
|
1295
1276
|
tmp$ret$4 = tmp;
|
|
1296
1277
|
tmp$ret$5 = tmp$ret$4;
|
|
@@ -1298,9 +1279,9 @@
|
|
|
1298
1279
|
// Inline function 'kotlin.contracts.contract' call
|
|
1299
1280
|
var tmp$ret$6;
|
|
1300
1281
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1301
|
-
var
|
|
1302
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1303
|
-
tmp$ret$6 = new Field(
|
|
1282
|
+
var tmp_3 = new Identifier(_this__u8e3s4.r1c_1);
|
|
1283
|
+
var tmp0_elvis_lhs = _this__u8e3s4.u1c_1;
|
|
1284
|
+
tmp$ret$6 = new Field(tmp_3, tmp1_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
1304
1285
|
tmp$ret$7 = tmp$ret$6;
|
|
1305
1286
|
return tmp$ret$7;
|
|
1306
1287
|
}
|
|
@@ -1352,7 +1333,7 @@
|
|
|
1352
1333
|
var element = tmp0_iterator_0.e();
|
|
1353
1334
|
var tmp$ret$3;
|
|
1354
1335
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1355
|
-
tmp$ret$3 = element.
|
|
1336
|
+
tmp$ret$3 = element.r1c_1 === param;
|
|
1356
1337
|
if (tmp$ret$3) {
|
|
1357
1338
|
tmp$ret$4 = element;
|
|
1358
1339
|
break $l$block;
|
|
@@ -1371,7 +1352,7 @@
|
|
|
1371
1352
|
// Inline function 'kotlin.contracts.contract' call
|
|
1372
1353
|
var tmp$ret$6;
|
|
1373
1354
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1374
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver.
|
|
1355
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver.w1c_1;
|
|
1375
1356
|
tmp$ret$6 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, $this);
|
|
1376
1357
|
tmp$ret$7 = tmp$ret$6;
|
|
1377
1358
|
tmp_2 = tmp$ret$7;
|
|
@@ -1411,7 +1392,7 @@
|
|
|
1411
1392
|
}
|
|
1412
1393
|
function toName(_this__u8e3s4, $this, segments, method) {
|
|
1413
1394
|
var tmp0_safe_receiver = _this__u8e3s4;
|
|
1414
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1395
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f1c_1;
|
|
1415
1396
|
var tmp;
|
|
1416
1397
|
if (tmp1_safe_receiver == null) {
|
|
1417
1398
|
tmp = null;
|
|
@@ -1421,7 +1402,7 @@
|
|
|
1421
1402
|
// Inline function 'kotlin.contracts.contract' call
|
|
1422
1403
|
var tmp$ret$0;
|
|
1423
1404
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
1424
|
-
tmp$ret$0 = Common_getInstance().
|
|
1405
|
+
tmp$ret$0 = Common_getInstance().g1t([tmp1_safe_receiver]);
|
|
1425
1406
|
tmp$ret$1 = tmp$ret$0;
|
|
1426
1407
|
tmp = tmp$ret$1;
|
|
1427
1408
|
}
|
|
@@ -1443,21 +1424,21 @@
|
|
|
1443
1424
|
return tmp_0;
|
|
1444
1425
|
}
|
|
1445
1426
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
1446
|
-
this.
|
|
1447
|
-
this.
|
|
1448
|
-
this.
|
|
1449
|
-
this.
|
|
1450
|
-
this.
|
|
1427
|
+
this.k1t_1 = path;
|
|
1428
|
+
this.l1t_1 = pathItem;
|
|
1429
|
+
this.m1t_1 = method;
|
|
1430
|
+
this.n1t_1 = operation;
|
|
1431
|
+
this.o1t_1 = type;
|
|
1451
1432
|
}
|
|
1452
1433
|
protoOf(FlattenRequest).toString = function () {
|
|
1453
|
-
return 'FlattenRequest(path=' + new Path(this.
|
|
1434
|
+
return 'FlattenRequest(path=' + new Path(this.k1t_1) + ', pathItem=' + this.l1t_1 + ', method=' + this.m1t_1 + ', operation=' + this.n1t_1 + ', type=' + this.o1t_1 + ')';
|
|
1454
1435
|
};
|
|
1455
1436
|
protoOf(FlattenRequest).hashCode = function () {
|
|
1456
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1457
|
-
result = imul(result, 31) + this.k1t_1.hashCode() | 0;
|
|
1437
|
+
var result = Path__hashCode_impl_go73kd(this.k1t_1);
|
|
1458
1438
|
result = imul(result, 31) + this.l1t_1.hashCode() | 0;
|
|
1459
1439
|
result = imul(result, 31) + this.m1t_1.hashCode() | 0;
|
|
1460
|
-
result = imul(result, 31) +
|
|
1440
|
+
result = imul(result, 31) + this.n1t_1.hashCode() | 0;
|
|
1441
|
+
result = imul(result, 31) + getStringHashCode(this.o1t_1) | 0;
|
|
1461
1442
|
return result;
|
|
1462
1443
|
};
|
|
1463
1444
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -1466,15 +1447,15 @@
|
|
|
1466
1447
|
if (!(other instanceof FlattenRequest))
|
|
1467
1448
|
return false;
|
|
1468
1449
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
1469
|
-
if (!(this.
|
|
1470
|
-
return false;
|
|
1471
|
-
if (!this.k1t_1.equals(tmp0_other_with_cast.k1t_1))
|
|
1450
|
+
if (!(this.k1t_1 === tmp0_other_with_cast.k1t_1))
|
|
1472
1451
|
return false;
|
|
1473
1452
|
if (!this.l1t_1.equals(tmp0_other_with_cast.l1t_1))
|
|
1474
1453
|
return false;
|
|
1475
1454
|
if (!this.m1t_1.equals(tmp0_other_with_cast.m1t_1))
|
|
1476
1455
|
return false;
|
|
1477
|
-
if (!
|
|
1456
|
+
if (!this.n1t_1.equals(tmp0_other_with_cast.n1t_1))
|
|
1457
|
+
return false;
|
|
1458
|
+
if (!(this.o1t_1 === tmp0_other_with_cast.o1t_1))
|
|
1478
1459
|
return false;
|
|
1479
1460
|
return true;
|
|
1480
1461
|
};
|
|
@@ -1483,7 +1464,7 @@
|
|
|
1483
1464
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1484
1465
|
var tmp$ret$15;
|
|
1485
1466
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1486
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
1467
|
+
var tmp1_flatMap = _this__u8e3s4.x1a_1;
|
|
1487
1468
|
var tmp$ret$14;
|
|
1488
1469
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1489
1470
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -1497,7 +1478,7 @@
|
|
|
1497
1478
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
1498
1479
|
var tmp$ret$1;
|
|
1499
1480
|
// Inline function 'kotlin.collections.component1' call
|
|
1500
|
-
tmp$ret$1 = element.v().
|
|
1481
|
+
tmp$ret$1 = element.v().i1b_1;
|
|
1501
1482
|
var path = tmp$ret$1;
|
|
1502
1483
|
var tmp$ret$2;
|
|
1503
1484
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1529,8 +1510,8 @@
|
|
|
1529
1510
|
// Inline function 'kotlin.collections.map' call
|
|
1530
1511
|
var tmp$ret$6;
|
|
1531
1512
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1532
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1533
|
-
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.
|
|
1513
|
+
var tmp0_elvis_lhs = _this__u8e3s4.v1a_1;
|
|
1514
|
+
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.g1c_1 : tmp0_elvis_lhs;
|
|
1534
1515
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
1535
1516
|
tmp$ret$6 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1536
1517
|
var tmp2_map = tmp$ret$6;
|
|
@@ -1577,25 +1558,25 @@
|
|
|
1577
1558
|
return tmp$ret$18;
|
|
1578
1559
|
}
|
|
1579
1560
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
1580
|
-
this.
|
|
1581
|
-
this.
|
|
1582
|
-
this.
|
|
1583
|
-
this.
|
|
1584
|
-
this.
|
|
1585
|
-
this.
|
|
1586
|
-
this.
|
|
1561
|
+
this.p1t_1 = path;
|
|
1562
|
+
this.q1t_1 = pathItem;
|
|
1563
|
+
this.r1t_1 = method;
|
|
1564
|
+
this.s1t_1 = operation;
|
|
1565
|
+
this.t1t_1 = statusCode;
|
|
1566
|
+
this.u1t_1 = response;
|
|
1567
|
+
this.v1t_1 = type;
|
|
1587
1568
|
}
|
|
1588
1569
|
protoOf(FlattenResponse).toString = function () {
|
|
1589
|
-
return 'FlattenResponse(path=' + new Path(this.
|
|
1570
|
+
return 'FlattenResponse(path=' + new Path(this.p1t_1) + ', pathItem=' + this.q1t_1 + ', method=' + this.r1t_1 + ', operation=' + this.s1t_1 + ', statusCode=' + new StatusCode(this.t1t_1) + ', response=' + this.u1t_1 + ', type=' + this.v1t_1 + ')';
|
|
1590
1571
|
};
|
|
1591
1572
|
protoOf(FlattenResponse).hashCode = function () {
|
|
1592
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1593
|
-
result = imul(result, 31) + this.p1t_1.hashCode() | 0;
|
|
1573
|
+
var result = Path__hashCode_impl_go73kd(this.p1t_1);
|
|
1594
1574
|
result = imul(result, 31) + this.q1t_1.hashCode() | 0;
|
|
1595
1575
|
result = imul(result, 31) + this.r1t_1.hashCode() | 0;
|
|
1596
|
-
result = imul(result, 31) +
|
|
1597
|
-
result = imul(result, 31) +
|
|
1598
|
-
result = imul(result, 31) +
|
|
1576
|
+
result = imul(result, 31) + this.s1t_1.hashCode() | 0;
|
|
1577
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.t1t_1) | 0;
|
|
1578
|
+
result = imul(result, 31) + hashCode(this.u1t_1) | 0;
|
|
1579
|
+
result = imul(result, 31) + getStringHashCode(this.v1t_1) | 0;
|
|
1599
1580
|
return result;
|
|
1600
1581
|
};
|
|
1601
1582
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -1604,19 +1585,19 @@
|
|
|
1604
1585
|
if (!(other instanceof FlattenResponse))
|
|
1605
1586
|
return false;
|
|
1606
1587
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
1607
|
-
if (!(this.
|
|
1608
|
-
return false;
|
|
1609
|
-
if (!this.p1t_1.equals(tmp0_other_with_cast.p1t_1))
|
|
1588
|
+
if (!(this.p1t_1 === tmp0_other_with_cast.p1t_1))
|
|
1610
1589
|
return false;
|
|
1611
1590
|
if (!this.q1t_1.equals(tmp0_other_with_cast.q1t_1))
|
|
1612
1591
|
return false;
|
|
1613
1592
|
if (!this.r1t_1.equals(tmp0_other_with_cast.r1t_1))
|
|
1614
1593
|
return false;
|
|
1615
|
-
if (!
|
|
1594
|
+
if (!this.s1t_1.equals(tmp0_other_with_cast.s1t_1))
|
|
1616
1595
|
return false;
|
|
1617
|
-
if (!
|
|
1596
|
+
if (!(this.t1t_1 === tmp0_other_with_cast.t1t_1))
|
|
1618
1597
|
return false;
|
|
1619
|
-
if (!(this.u1t_1
|
|
1598
|
+
if (!equals(this.u1t_1, tmp0_other_with_cast.u1t_1))
|
|
1599
|
+
return false;
|
|
1600
|
+
if (!(this.v1t_1 === tmp0_other_with_cast.v1t_1))
|
|
1620
1601
|
return false;
|
|
1621
1602
|
return true;
|
|
1622
1603
|
};
|
|
@@ -1625,7 +1606,7 @@
|
|
|
1625
1606
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1626
1607
|
var tmp$ret$22;
|
|
1627
1608
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1628
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
1609
|
+
var tmp1_flatMap = _this__u8e3s4.x1a_1;
|
|
1629
1610
|
var tmp$ret$21;
|
|
1630
1611
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1631
1612
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -1639,7 +1620,7 @@
|
|
|
1639
1620
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
1640
1621
|
var tmp$ret$1;
|
|
1641
1622
|
// Inline function 'kotlin.collections.component1' call
|
|
1642
|
-
tmp$ret$1 = element.v().
|
|
1623
|
+
tmp$ret$1 = element.v().i1b_1;
|
|
1643
1624
|
var path = tmp$ret$1;
|
|
1644
1625
|
var tmp$ret$2;
|
|
1645
1626
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1671,7 +1652,7 @@
|
|
|
1671
1652
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1672
1653
|
var tmp$ret$6;
|
|
1673
1654
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1674
|
-
var tmp0_orEmpty = operation.
|
|
1655
|
+
var tmp0_orEmpty = operation.j1c_1;
|
|
1675
1656
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1676
1657
|
tmp$ret$6 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1677
1658
|
var tmp2_flatMap = tmp$ret$6;
|
|
@@ -1688,7 +1669,7 @@
|
|
|
1688
1669
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
1689
1670
|
var tmp$ret$8;
|
|
1690
1671
|
// Inline function 'kotlin.collections.component1' call
|
|
1691
|
-
tmp$ret$8 = element_1.v().
|
|
1672
|
+
tmp$ret$8 = element_1.v().b1f_1;
|
|
1692
1673
|
var statusCode = tmp$ret$8;
|
|
1693
1674
|
var tmp$ret$9;
|
|
1694
1675
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1698,8 +1679,8 @@
|
|
|
1698
1679
|
// Inline function 'kotlin.collections.map' call
|
|
1699
1680
|
var tmp$ret$10;
|
|
1700
1681
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1701
|
-
var tmp0_elvis_lhs_0 = _this__u8e3s4.
|
|
1702
|
-
var tmp0_orEmpty_0 = tmp0_elvis_lhs_0 == null ? operation.
|
|
1682
|
+
var tmp0_elvis_lhs_0 = _this__u8e3s4.w1a_1;
|
|
1683
|
+
var tmp0_orEmpty_0 = tmp0_elvis_lhs_0 == null ? operation.h1c_1 : tmp0_elvis_lhs_0;
|
|
1703
1684
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
1704
1685
|
tmp$ret$10 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
1705
1686
|
var tmp2_map = tmp$ret$10;
|
|
@@ -1753,133 +1734,174 @@
|
|
|
1753
1734
|
}
|
|
1754
1735
|
function OpenApiParser$parseRequestBody$lambda(this$0) {
|
|
1755
1736
|
return function (req) {
|
|
1756
|
-
var
|
|
1757
|
-
var
|
|
1737
|
+
var parameters = plus(resolveParameters_0(req.l1t_1, this$0), resolveParameters(req.n1t_1, this$0));
|
|
1738
|
+
var segments = toSegments(req.k1t_1, this$0, parameters);
|
|
1739
|
+
var name = toName(req.n1t_1, this$0, segments, req.m1t_1);
|
|
1740
|
+
var tmp$ret$5;
|
|
1741
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
1742
|
+
var tmp$ret$4;
|
|
1743
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1744
|
+
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1745
|
+
var tmp0_iterator = parameters.c();
|
|
1746
|
+
while (tmp0_iterator.d()) {
|
|
1747
|
+
var element = tmp0_iterator.e();
|
|
1748
|
+
var tmp$ret$3;
|
|
1749
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1750
|
+
var tmp;
|
|
1751
|
+
if (!(element.m1d_1 == null)) {
|
|
1752
|
+
var tmp_0 = name + 'Parameter' + element.r1c_1;
|
|
1753
|
+
var tmp$ret$2;
|
|
1754
|
+
// Inline function 'kotlin.collections.map' call
|
|
1755
|
+
var tmp1_map = ensureNotNull(element.m1d_1);
|
|
1756
|
+
var tmp$ret$1;
|
|
1757
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
1758
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
1759
|
+
var tmp0_iterator_0 = tmp1_map.c();
|
|
1760
|
+
while (tmp0_iterator_0.d()) {
|
|
1761
|
+
var item = tmp0_iterator_0.e();
|
|
1762
|
+
var tmp$ret$0;
|
|
1763
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
1764
|
+
tmp$ret$0 = item.r13();
|
|
1765
|
+
tmp0_mapTo.a(tmp$ret$0);
|
|
1766
|
+
}
|
|
1767
|
+
tmp$ret$1 = tmp0_mapTo;
|
|
1768
|
+
tmp$ret$2 = tmp$ret$1;
|
|
1769
|
+
tmp = listOf(new Enum(tmp_0, toSet(tmp$ret$2)));
|
|
1770
|
+
} else {
|
|
1771
|
+
tmp = emptyList();
|
|
1772
|
+
}
|
|
1773
|
+
tmp$ret$3 = tmp;
|
|
1774
|
+
var list = tmp$ret$3;
|
|
1775
|
+
addAll(tmp0_flatMapTo, list);
|
|
1776
|
+
}
|
|
1777
|
+
tmp$ret$4 = tmp0_flatMapTo;
|
|
1778
|
+
tmp$ret$5 = tmp$ret$4;
|
|
1779
|
+
var enums = tmp$ret$5;
|
|
1780
|
+
var tmp0_safe_receiver = req.n1t_1.i1c_1;
|
|
1781
|
+
var tmp_1;
|
|
1758
1782
|
if (tmp0_safe_receiver == null) {
|
|
1759
|
-
|
|
1783
|
+
tmp_1 = null;
|
|
1760
1784
|
} else {
|
|
1761
|
-
var tmp$ret$
|
|
1785
|
+
var tmp$ret$8;
|
|
1762
1786
|
// Inline function 'kotlin.collections.map' call
|
|
1763
|
-
var tmp$ret$
|
|
1787
|
+
var tmp$ret$7;
|
|
1764
1788
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1765
|
-
var
|
|
1766
|
-
var
|
|
1767
|
-
while (
|
|
1768
|
-
var
|
|
1769
|
-
var tmp$ret$
|
|
1789
|
+
var tmp1_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_safe_receiver, 10));
|
|
1790
|
+
var tmp0_iterator_1 = tmp0_safe_receiver.c();
|
|
1791
|
+
while (tmp0_iterator_1.d()) {
|
|
1792
|
+
var item_0 = tmp0_iterator_1.e();
|
|
1793
|
+
var tmp$ret$6;
|
|
1770
1794
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1771
|
-
tmp$ret$
|
|
1772
|
-
|
|
1795
|
+
tmp$ret$6 = resolve_2(item_0, this$0);
|
|
1796
|
+
tmp1_mapTo.a(tmp$ret$6);
|
|
1773
1797
|
}
|
|
1774
|
-
tmp$ret$
|
|
1775
|
-
tmp$ret$
|
|
1776
|
-
|
|
1798
|
+
tmp$ret$7 = tmp1_mapTo;
|
|
1799
|
+
tmp$ret$8 = tmp$ret$7;
|
|
1800
|
+
tmp_1 = tmp$ret$8;
|
|
1777
1801
|
}
|
|
1778
|
-
var tmp1_safe_receiver =
|
|
1779
|
-
var
|
|
1802
|
+
var tmp1_safe_receiver = tmp_1;
|
|
1803
|
+
var tmp_2;
|
|
1780
1804
|
if (tmp1_safe_receiver == null) {
|
|
1781
|
-
|
|
1805
|
+
tmp_2 = null;
|
|
1782
1806
|
} else {
|
|
1783
|
-
var tmp$ret$
|
|
1807
|
+
var tmp$ret$11;
|
|
1784
1808
|
// Inline function 'kotlin.collections.filter' call
|
|
1785
|
-
var tmp$ret$
|
|
1809
|
+
var tmp$ret$10;
|
|
1786
1810
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1787
|
-
var
|
|
1788
|
-
var
|
|
1789
|
-
while (
|
|
1790
|
-
var
|
|
1791
|
-
var tmp$ret$
|
|
1811
|
+
var tmp2_filterTo = ArrayList_init_$Create$();
|
|
1812
|
+
var tmp0_iterator_2 = tmp1_safe_receiver.c();
|
|
1813
|
+
while (tmp0_iterator_2.d()) {
|
|
1814
|
+
var element_0 = tmp0_iterator_2.e();
|
|
1815
|
+
var tmp$ret$9;
|
|
1792
1816
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1793
|
-
tmp$ret$
|
|
1794
|
-
if (tmp$ret$
|
|
1795
|
-
|
|
1817
|
+
tmp$ret$9 = element_0.s1c_1.equals(ParameterLocation_BODY_getInstance());
|
|
1818
|
+
if (tmp$ret$9) {
|
|
1819
|
+
tmp2_filterTo.a(element_0);
|
|
1796
1820
|
}
|
|
1797
1821
|
}
|
|
1798
|
-
tmp$ret$
|
|
1799
|
-
tmp$ret$
|
|
1800
|
-
|
|
1822
|
+
tmp$ret$10 = tmp2_filterTo;
|
|
1823
|
+
tmp$ret$11 = tmp$ret$10;
|
|
1824
|
+
tmp_2 = tmp$ret$11;
|
|
1801
1825
|
}
|
|
1802
|
-
var tmp2_safe_receiver =
|
|
1803
|
-
var
|
|
1826
|
+
var tmp2_safe_receiver = tmp_2;
|
|
1827
|
+
var tmp_3;
|
|
1804
1828
|
if (tmp2_safe_receiver == null) {
|
|
1805
|
-
|
|
1829
|
+
tmp_3 = null;
|
|
1806
1830
|
} else {
|
|
1807
|
-
var tmp$ret$
|
|
1831
|
+
var tmp$ret$15;
|
|
1808
1832
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1809
|
-
var tmp$ret$
|
|
1833
|
+
var tmp$ret$14;
|
|
1810
1834
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1811
|
-
var
|
|
1812
|
-
var
|
|
1813
|
-
while (
|
|
1814
|
-
var
|
|
1815
|
-
var tmp$ret$
|
|
1835
|
+
var tmp3_flatMapTo = ArrayList_init_$Create$();
|
|
1836
|
+
var tmp0_iterator_3 = tmp2_safe_receiver.c();
|
|
1837
|
+
while (tmp0_iterator_3.d()) {
|
|
1838
|
+
var element_1 = tmp0_iterator_3.e();
|
|
1839
|
+
var tmp$ret$13;
|
|
1816
1840
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1817
|
-
var
|
|
1818
|
-
var
|
|
1819
|
-
var name = toName(req.m1t_1, this$0, segments, req.l1t_1);
|
|
1820
|
-
var schema = element_0.u1c_1;
|
|
1821
|
-
var tmp_2;
|
|
1841
|
+
var schema = element_1.v1c_1;
|
|
1842
|
+
var tmp_4;
|
|
1822
1843
|
if (schema instanceof SchemaObject) {
|
|
1823
|
-
var tmp0_subject = schema.
|
|
1844
|
+
var tmp0_subject = schema.t1e_1;
|
|
1824
1845
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
1825
|
-
var
|
|
1846
|
+
var tmp_5;
|
|
1826
1847
|
switch (tmp0) {
|
|
1827
1848
|
case -1:
|
|
1828
1849
|
case 5:
|
|
1829
|
-
|
|
1850
|
+
tmp_5 = flatten(schema, this$0, Common_getInstance().g1t([name, 'RequestBody']));
|
|
1830
1851
|
break;
|
|
1831
1852
|
case 4:
|
|
1832
|
-
var tmp$ret$
|
|
1853
|
+
var tmp$ret$12;
|
|
1833
1854
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1834
|
-
var tmp1_safe_receiver_0 = schema.
|
|
1835
|
-
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
1855
|
+
var tmp1_safe_receiver_0 = schema.u1e_1;
|
|
1856
|
+
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().g1t([name, 'RequestBody']));
|
|
1836
1857
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1837
|
-
tmp$ret$
|
|
1858
|
+
tmp$ret$12 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1838
1859
|
|
|
1839
|
-
|
|
1860
|
+
tmp_5 = tmp$ret$12;
|
|
1840
1861
|
break;
|
|
1841
1862
|
default:
|
|
1842
|
-
|
|
1863
|
+
tmp_5 = emptyList();
|
|
1843
1864
|
break;
|
|
1844
1865
|
}
|
|
1845
|
-
|
|
1866
|
+
tmp_4 = tmp_5;
|
|
1846
1867
|
} else {
|
|
1847
|
-
|
|
1868
|
+
tmp_4 = emptyList();
|
|
1848
1869
|
}
|
|
1849
|
-
tmp$ret$
|
|
1850
|
-
var
|
|
1851
|
-
addAll(
|
|
1870
|
+
tmp$ret$13 = tmp_4;
|
|
1871
|
+
var list_0 = tmp$ret$13;
|
|
1872
|
+
addAll(tmp3_flatMapTo, list_0);
|
|
1852
1873
|
}
|
|
1853
|
-
tmp$ret$
|
|
1854
|
-
tmp$ret$
|
|
1855
|
-
|
|
1874
|
+
tmp$ret$14 = tmp3_flatMapTo;
|
|
1875
|
+
tmp$ret$15 = tmp$ret$14;
|
|
1876
|
+
tmp_3 = tmp$ret$15;
|
|
1856
1877
|
}
|
|
1857
|
-
var tmp3_elvis_lhs =
|
|
1858
|
-
|
|
1878
|
+
var tmp3_elvis_lhs = tmp_3;
|
|
1879
|
+
var types = tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs;
|
|
1880
|
+
return plus(enums, types);
|
|
1859
1881
|
};
|
|
1860
1882
|
}
|
|
1861
1883
|
function OpenApiParser$parseResponseBody$lambda(this$0) {
|
|
1862
1884
|
return function (res) {
|
|
1863
|
-
var response = resolve_1(res.
|
|
1864
|
-
var parameters = plus(resolveParameters_0(res.
|
|
1865
|
-
var segments = toSegments(res.
|
|
1866
|
-
var name = toName(res.
|
|
1867
|
-
var schema = response.
|
|
1885
|
+
var response = resolve_1(res.u1t_1, this$0);
|
|
1886
|
+
var parameters = plus(resolveParameters_0(res.q1t_1, this$0), resolveParameters(res.s1t_1, this$0));
|
|
1887
|
+
var segments = toSegments(res.p1t_1, this$0, parameters);
|
|
1888
|
+
var name = toName(res.s1t_1, this$0, segments, res.r1t_1);
|
|
1889
|
+
var schema = response.f1f_1;
|
|
1868
1890
|
var tmp;
|
|
1869
1891
|
if (schema instanceof SchemaObject) {
|
|
1870
|
-
var tmp0_subject = schema.
|
|
1892
|
+
var tmp0_subject = schema.t1e_1;
|
|
1871
1893
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
1872
1894
|
var tmp_0;
|
|
1873
1895
|
switch (tmp0) {
|
|
1874
1896
|
case -1:
|
|
1875
1897
|
case 5:
|
|
1876
|
-
tmp_0 = flatten(schema, this$0, Common_getInstance().
|
|
1898
|
+
tmp_0 = flatten(schema, this$0, Common_getInstance().g1t([name, _StatusCode___get_value__impl__we50mu(res.t1t_1), 'ResponseBody']));
|
|
1877
1899
|
break;
|
|
1878
1900
|
case 4:
|
|
1879
1901
|
var tmp$ret$0;
|
|
1880
1902
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1881
|
-
var tmp1_safe_receiver = schema.
|
|
1882
|
-
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : flatten_0(tmp1_safe_receiver, this$0, Common_getInstance().
|
|
1903
|
+
var tmp1_safe_receiver = schema.u1e_1;
|
|
1904
|
+
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : flatten_0(tmp1_safe_receiver, this$0, Common_getInstance().g1t([name, _StatusCode___get_value__impl__we50mu(res.t1t_1), 'ResponseBody']));
|
|
1883
1905
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1884
1906
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1885
1907
|
|
|
@@ -1900,10 +1922,10 @@
|
|
|
1900
1922
|
var tmp0_subject = it;
|
|
1901
1923
|
var tmp;
|
|
1902
1924
|
if (tmp0_subject instanceof Literal) {
|
|
1903
|
-
tmp = Common_getInstance().
|
|
1925
|
+
tmp = Common_getInstance().g1t([it.sj_1]);
|
|
1904
1926
|
} else {
|
|
1905
1927
|
if (tmp0_subject instanceof Param) {
|
|
1906
|
-
tmp = Common_getInstance().
|
|
1928
|
+
tmp = Common_getInstance().g1t([it.ti_1.ej_1]);
|
|
1907
1929
|
} else {
|
|
1908
1930
|
noWhenBranchMatchedException();
|
|
1909
1931
|
}
|
|
@@ -1912,22 +1934,22 @@
|
|
|
1912
1934
|
}
|
|
1913
1935
|
function OpenApiParser(openApi) {
|
|
1914
1936
|
Companion_getInstance_0();
|
|
1915
|
-
this.
|
|
1937
|
+
this.i1t_1 = openApi;
|
|
1916
1938
|
}
|
|
1917
|
-
protoOf(OpenApiParser).
|
|
1939
|
+
protoOf(OpenApiParser).j1t = function () {
|
|
1918
1940
|
return plus(plus(plus(parseEndpoints(this), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
|
|
1919
1941
|
};
|
|
1920
1942
|
function toMap_0(_this__u8e3s4) {
|
|
1921
1943
|
var tmp0_subject = _this__u8e3s4;
|
|
1922
1944
|
var tmp;
|
|
1923
1945
|
if (tmp0_subject instanceof Custom) {
|
|
1924
|
-
tmp = _this__u8e3s4.
|
|
1946
|
+
tmp = _this__u8e3s4.kl(VOID, VOID, true);
|
|
1925
1947
|
} else {
|
|
1926
1948
|
if (tmp0_subject instanceof Any) {
|
|
1927
|
-
tmp = _this__u8e3s4.
|
|
1949
|
+
tmp = _this__u8e3s4.il(VOID, true);
|
|
1928
1950
|
} else {
|
|
1929
1951
|
if (tmp0_subject instanceof Primitive) {
|
|
1930
|
-
tmp = _this__u8e3s4.
|
|
1952
|
+
tmp = _this__u8e3s4.ml(VOID, VOID, true);
|
|
1931
1953
|
} else {
|
|
1932
1954
|
noWhenBranchMatchedException();
|
|
1933
1955
|
}
|
|
@@ -1974,13 +1996,13 @@
|
|
|
1974
1996
|
var tmp0_subject = _this__u8e3s4;
|
|
1975
1997
|
var tmp;
|
|
1976
1998
|
if (tmp0_subject instanceof Custom) {
|
|
1977
|
-
tmp = _this__u8e3s4.
|
|
1999
|
+
tmp = _this__u8e3s4.kl(VOID, true);
|
|
1978
2000
|
} else {
|
|
1979
2001
|
if (tmp0_subject instanceof Any) {
|
|
1980
|
-
tmp = _this__u8e3s4.
|
|
2002
|
+
tmp = _this__u8e3s4.il(true);
|
|
1981
2003
|
} else {
|
|
1982
2004
|
if (tmp0_subject instanceof Primitive) {
|
|
1983
|
-
tmp = _this__u8e3s4.
|
|
2005
|
+
tmp = _this__u8e3s4.ml(VOID, true);
|
|
1984
2006
|
} else {
|
|
1985
2007
|
noWhenBranchMatchedException();
|
|
1986
2008
|
}
|
|
@@ -2045,10 +2067,10 @@
|
|
|
2045
2067
|
function Companion_0() {
|
|
2046
2068
|
Companion_instance_0 = this;
|
|
2047
2069
|
}
|
|
2048
|
-
protoOf(Companion_0).
|
|
2070
|
+
protoOf(Companion_0).h1t = function (json) {
|
|
2049
2071
|
var tmp$ret$1;
|
|
2050
2072
|
// Inline function 'kotlin.let' call
|
|
2051
|
-
var tmp0_let = Default_getInstance_0().
|
|
2073
|
+
var tmp0_let = Default_getInstance_0().n1a(json);
|
|
2052
2074
|
// Inline function 'kotlin.contracts.contract' call
|
|
2053
2075
|
var tmp$ret$0;
|
|
2054
2076
|
// Inline function 'community.flock.wirespec.openapi.v3.Companion.parse.<anonymous>' call
|
|
@@ -2063,12 +2085,12 @@
|
|
|
2063
2085
|
return Companion_instance_0;
|
|
2064
2086
|
}
|
|
2065
2087
|
function parse($this) {
|
|
2066
|
-
return plus(plus(plus(parseEndpoint($this), parseRequestBody_0($this)), parseResponseBody_0($this)), parseComponents($this));
|
|
2088
|
+
return plus(plus(plus(plus(parseEndpoint($this), parseParameters($this)), parseRequestBody_0($this)), parseResponseBody_0($this)), parseComponents($this));
|
|
2067
2089
|
}
|
|
2068
2090
|
function parseEndpoint($this) {
|
|
2069
2091
|
var tmp$ret$50;
|
|
2070
2092
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2071
|
-
var tmp1_flatMap = $this.
|
|
2093
|
+
var tmp1_flatMap = $this.w1t_1.n1j_1;
|
|
2072
2094
|
var tmp$ret$49;
|
|
2073
2095
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2074
2096
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -2082,7 +2104,7 @@
|
|
|
2082
2104
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>' call
|
|
2083
2105
|
var tmp$ret$1;
|
|
2084
2106
|
// Inline function 'kotlin.collections.component1' call
|
|
2085
|
-
tmp$ret$1 = element.v().
|
|
2107
|
+
tmp$ret$1 = element.v().v1j_1;
|
|
2086
2108
|
var key = tmp$ret$1;
|
|
2087
2109
|
var tmp$ret$2;
|
|
2088
2110
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -2125,7 +2147,7 @@
|
|
|
2125
2147
|
var element_0 = tmp0_iterator_1.e();
|
|
2126
2148
|
var tmp$ret$6;
|
|
2127
2149
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2128
|
-
tmp$ret$6 = element_0.
|
|
2150
|
+
tmp$ret$6 = element_0.p1l_1.equals(ParameterLocation_QUERY_getInstance_0());
|
|
2129
2151
|
if (tmp$ret$6) {
|
|
2130
2152
|
tmp0_filterTo.a(element_0);
|
|
2131
2153
|
}
|
|
@@ -2141,7 +2163,7 @@
|
|
|
2141
2163
|
var item_0 = tmp0_iterator_2.e();
|
|
2142
2164
|
var tmp$ret$9;
|
|
2143
2165
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2144
|
-
tmp$ret$9 = toField_2(item_0, $this);
|
|
2166
|
+
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().g1t([name, 'parameter']));
|
|
2145
2167
|
tmp1_mapTo.a(tmp$ret$9);
|
|
2146
2168
|
}
|
|
2147
2169
|
tmp$ret$10 = tmp1_mapTo;
|
|
@@ -2159,7 +2181,7 @@
|
|
|
2159
2181
|
var element_1 = tmp0_iterator_3.e();
|
|
2160
2182
|
var tmp$ret$12;
|
|
2161
2183
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2162
|
-
tmp$ret$12 = element_1.
|
|
2184
|
+
tmp$ret$12 = element_1.p1l_1.equals(ParameterLocation_HEADER_getInstance_0());
|
|
2163
2185
|
if (tmp$ret$12) {
|
|
2164
2186
|
tmp3_filterTo.a(element_1);
|
|
2165
2187
|
}
|
|
@@ -2175,7 +2197,7 @@
|
|
|
2175
2197
|
var item_1 = tmp0_iterator_4.e();
|
|
2176
2198
|
var tmp$ret$15;
|
|
2177
2199
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2178
|
-
tmp$ret$15 = toField_2(item_1, $this);
|
|
2200
|
+
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().g1t([name, 'parameter']));
|
|
2179
2201
|
tmp4_mapTo.a(tmp$ret$15);
|
|
2180
2202
|
}
|
|
2181
2203
|
tmp$ret$16 = tmp4_mapTo;
|
|
@@ -2193,7 +2215,7 @@
|
|
|
2193
2215
|
var element_2 = tmp0_iterator_5.e();
|
|
2194
2216
|
var tmp$ret$18;
|
|
2195
2217
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2196
|
-
tmp$ret$18 = element_2.
|
|
2218
|
+
tmp$ret$18 = element_2.p1l_1.equals(ParameterLocation_COOKIE_getInstance());
|
|
2197
2219
|
if (tmp$ret$18) {
|
|
2198
2220
|
tmp6_filterTo.a(element_2);
|
|
2199
2221
|
}
|
|
@@ -2209,13 +2231,13 @@
|
|
|
2209
2231
|
var item_2 = tmp0_iterator_6.e();
|
|
2210
2232
|
var tmp$ret$21;
|
|
2211
2233
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2212
|
-
tmp$ret$21 = toField_2(item_2, $this);
|
|
2234
|
+
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().g1t([name, 'parameter']));
|
|
2213
2235
|
tmp7_mapTo.a(tmp$ret$21);
|
|
2214
2236
|
}
|
|
2215
2237
|
tmp$ret$22 = tmp7_mapTo;
|
|
2216
2238
|
tmp$ret$23 = tmp$ret$22;
|
|
2217
2239
|
var cookies = tmp$ret$23;
|
|
2218
|
-
var tmp0_safe_receiver = operation.
|
|
2240
|
+
var tmp0_safe_receiver = operation.u1k_1;
|
|
2219
2241
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, $this);
|
|
2220
2242
|
var tmp;
|
|
2221
2243
|
if (tmp1_safe_receiver == null) {
|
|
@@ -2226,7 +2248,7 @@
|
|
|
2226
2248
|
// Inline function 'kotlin.contracts.contract' call
|
|
2227
2249
|
var tmp$ret$30;
|
|
2228
2250
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2229
|
-
var tmp0_safe_receiver_0 = tmp1_safe_receiver.
|
|
2251
|
+
var tmp0_safe_receiver_0 = tmp1_safe_receiver.u1l_1;
|
|
2230
2252
|
var tmp_0;
|
|
2231
2253
|
if (tmp0_safe_receiver_0 == null) {
|
|
2232
2254
|
tmp_0 = null;
|
|
@@ -2246,20 +2268,20 @@
|
|
|
2246
2268
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2247
2269
|
var tmp$ret$25;
|
|
2248
2270
|
// Inline function 'kotlin.collections.component1' call
|
|
2249
|
-
tmp$ret$25 = item_3.v().
|
|
2271
|
+
tmp$ret$25 = item_3.v().y1l_1;
|
|
2250
2272
|
var mediaType = tmp$ret$25;
|
|
2251
2273
|
var tmp$ret$26;
|
|
2252
2274
|
// Inline function 'kotlin.collections.component2' call
|
|
2253
2275
|
tmp$ret$26 = item_3.w();
|
|
2254
2276
|
var mediaObject = tmp$ret$26;
|
|
2255
2277
|
var tmp_1 = _MediaType___get_value__impl__wy58mp(mediaType);
|
|
2256
|
-
var schema = mediaObject.
|
|
2278
|
+
var schema = mediaObject.b1m_1;
|
|
2257
2279
|
var tmp_2;
|
|
2258
2280
|
if (schema instanceof ReferenceObject_0) {
|
|
2259
2281
|
tmp_2 = toReference_1(schema, $this);
|
|
2260
2282
|
} else {
|
|
2261
2283
|
if (schema instanceof SchemaObject_0) {
|
|
2262
|
-
tmp_2 = toReference_2(schema, $this, Common_getInstance().
|
|
2284
|
+
tmp_2 = toReference_2(schema, $this, Common_getInstance().g1t([name, 'RequestBody']));
|
|
2263
2285
|
} else {
|
|
2264
2286
|
if (schema == null) {
|
|
2265
2287
|
throw new NotImplementedError();
|
|
@@ -2269,7 +2291,7 @@
|
|
|
2269
2291
|
}
|
|
2270
2292
|
}
|
|
2271
2293
|
var tmp_3 = tmp_2;
|
|
2272
|
-
var tmp0_elvis_lhs = tmp1_safe_receiver.
|
|
2294
|
+
var tmp0_elvis_lhs = tmp1_safe_receiver.v1l_1;
|
|
2273
2295
|
tmp$ret$27 = new Request(new Content(tmp_1, tmp_3, tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
2274
2296
|
tmp0_mapTo_0.a(tmp$ret$27);
|
|
2275
2297
|
}
|
|
@@ -2287,7 +2309,7 @@
|
|
|
2287
2309
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2288
2310
|
var tmp$ret$32;
|
|
2289
2311
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2290
|
-
var tmp9_orEmpty = operation.
|
|
2312
|
+
var tmp9_orEmpty = operation.v1k_1;
|
|
2291
2313
|
var tmp0_elvis_lhs_0 = tmp9_orEmpty;
|
|
2292
2314
|
tmp$ret$32 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2293
2315
|
var tmp11_flatMap = tmp$ret$32;
|
|
@@ -2304,13 +2326,13 @@
|
|
|
2304
2326
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2305
2327
|
var tmp$ret$34;
|
|
2306
2328
|
// Inline function 'kotlin.collections.component1' call
|
|
2307
|
-
tmp$ret$34 = element_3.v().
|
|
2329
|
+
tmp$ret$34 = element_3.v().x1n_1;
|
|
2308
2330
|
var status = tmp$ret$34;
|
|
2309
2331
|
var tmp$ret$35;
|
|
2310
2332
|
// Inline function 'kotlin.collections.component2' call
|
|
2311
2333
|
tmp$ret$35 = element_3.w();
|
|
2312
2334
|
var res = tmp$ret$35;
|
|
2313
|
-
var tmp0_safe_receiver_1 = resolve_6(res, $this).
|
|
2335
|
+
var tmp0_safe_receiver_1 = resolve_6(res, $this).c1o_1;
|
|
2314
2336
|
var tmp_4;
|
|
2315
2337
|
if (tmp0_safe_receiver_1 == null) {
|
|
2316
2338
|
tmp_4 = null;
|
|
@@ -2330,7 +2352,7 @@
|
|
|
2330
2352
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2331
2353
|
var tmp$ret$37;
|
|
2332
2354
|
// Inline function 'kotlin.collections.component1' call
|
|
2333
|
-
tmp$ret$37 = item_4.v().
|
|
2355
|
+
tmp$ret$37 = item_4.v().y1l_1;
|
|
2334
2356
|
var contentType = tmp$ret$37;
|
|
2335
2357
|
var tmp$ret$38;
|
|
2336
2358
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -2338,13 +2360,13 @@
|
|
|
2338
2360
|
var media = tmp$ret$38;
|
|
2339
2361
|
var tmp_5 = _StatusCode___get_value__impl__we50mu_0(status);
|
|
2340
2362
|
var tmp_6 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
2341
|
-
var schema_0 = media.
|
|
2363
|
+
var schema_0 = media.b1m_1;
|
|
2342
2364
|
var tmp_7;
|
|
2343
2365
|
if (schema_0 instanceof ReferenceObject_0) {
|
|
2344
2366
|
tmp_7 = toReference_1(schema_0, $this);
|
|
2345
2367
|
} else {
|
|
2346
2368
|
if (schema_0 instanceof SchemaObject_0) {
|
|
2347
|
-
tmp_7 = toReference_2(schema_0, $this, Common_getInstance().
|
|
2369
|
+
tmp_7 = toReference_2(schema_0, $this, Common_getInstance().g1t([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
2348
2370
|
} else {
|
|
2349
2371
|
if (schema_0 == null) {
|
|
2350
2372
|
throw new NotImplementedError();
|
|
@@ -2354,9 +2376,9 @@
|
|
|
2354
2376
|
}
|
|
2355
2377
|
}
|
|
2356
2378
|
var tmp_8 = tmp_7;
|
|
2357
|
-
var tmp0_safe_receiver_2 = media.
|
|
2379
|
+
var tmp0_safe_receiver_2 = media.b1m_1;
|
|
2358
2380
|
var tmp1_safe_receiver_0 = tmp0_safe_receiver_2 == null ? null : resolve_3(tmp0_safe_receiver_2, $this);
|
|
2359
|
-
var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
2381
|
+
var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.k1m_1;
|
|
2360
2382
|
tmp$ret$39 = new Response(tmp_5, new Content(tmp_6, tmp_8, tmp2_elvis_lhs_0 == null ? false : tmp2_elvis_lhs_0));
|
|
2361
2383
|
tmp0_mapTo_1.a(tmp$ret$39);
|
|
2362
2384
|
}
|
|
@@ -2385,11 +2407,14 @@
|
|
|
2385
2407
|
tmp$ret$50 = tmp$ret$49;
|
|
2386
2408
|
return tmp$ret$50;
|
|
2387
2409
|
}
|
|
2410
|
+
function parseParameters($this) {
|
|
2411
|
+
return flatMapRequests_0($this.w1t_1, $this, OpenApiParser$parseParameters$lambda($this));
|
|
2412
|
+
}
|
|
2388
2413
|
function parseRequestBody_0($this) {
|
|
2389
|
-
return flatMapRequests_0($this.
|
|
2414
|
+
return flatMapRequests_0($this.w1t_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
|
|
2390
2415
|
}
|
|
2391
2416
|
function parseResponseBody_0($this) {
|
|
2392
|
-
return flatMapResponses_0($this.
|
|
2417
|
+
return flatMapResponses_0($this.w1t_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
|
|
2393
2418
|
}
|
|
2394
2419
|
function parseComponents($this) {
|
|
2395
2420
|
var tmp$ret$8;
|
|
@@ -2398,8 +2423,8 @@
|
|
|
2398
2423
|
// Inline function 'kotlin.collections.filter' call
|
|
2399
2424
|
var tmp$ret$0;
|
|
2400
2425
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2401
|
-
var tmp0_safe_receiver = $this.
|
|
2402
|
-
var tmp0_orEmpty = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2426
|
+
var tmp0_safe_receiver = $this.w1t_1.o1j_1;
|
|
2427
|
+
var tmp0_orEmpty = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h1o_1;
|
|
2403
2428
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
2404
2429
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2405
2430
|
var tmp2_filter = tmp$ret$0;
|
|
@@ -2417,7 +2442,7 @@
|
|
|
2417
2442
|
var s = element.w();
|
|
2418
2443
|
var tmp;
|
|
2419
2444
|
if (s instanceof SchemaObject_0) {
|
|
2420
|
-
tmp = s.
|
|
2445
|
+
tmp = s.a1n_1 == null;
|
|
2421
2446
|
} else {
|
|
2422
2447
|
tmp = false;
|
|
2423
2448
|
}
|
|
@@ -2440,7 +2465,7 @@
|
|
|
2440
2465
|
var element_0 = tmp0_iterator_0.e();
|
|
2441
2466
|
var tmp$ret$6;
|
|
2442
2467
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2443
|
-
tmp$ret$6 = flatten_2(element_0.w(), $this, Common_getInstance().
|
|
2468
|
+
tmp$ret$6 = flatten_2(element_0.w(), $this, Common_getInstance().g1t([element_0.v()]));
|
|
2444
2469
|
var list = tmp$ret$6;
|
|
2445
2470
|
addAll(tmp3_flatMapTo, list);
|
|
2446
2471
|
}
|
|
@@ -2481,7 +2506,7 @@
|
|
|
2481
2506
|
var element = tmp0_iterator_0.e();
|
|
2482
2507
|
var tmp$ret$2;
|
|
2483
2508
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2484
|
-
tmp$ret$2 = element.
|
|
2509
|
+
tmp$ret$2 = element.o1l_1 === param;
|
|
2485
2510
|
if (tmp$ret$2) {
|
|
2486
2511
|
tmp$ret$3 = element;
|
|
2487
2512
|
break $l$block;
|
|
@@ -2491,7 +2516,7 @@
|
|
|
2491
2516
|
}
|
|
2492
2517
|
tmp$ret$4 = tmp$ret$3;
|
|
2493
2518
|
var tmp0_safe_receiver = tmp$ret$4;
|
|
2494
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2519
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k1l_1;
|
|
2495
2520
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_3(tmp1_safe_receiver, $this);
|
|
2496
2521
|
var tmp_0;
|
|
2497
2522
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2502,7 +2527,7 @@
|
|
|
2502
2527
|
// Inline function 'kotlin.contracts.contract' call
|
|
2503
2528
|
var tmp$ret$5;
|
|
2504
2529
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2505
|
-
var tmp0_safe_receiver_0 = tmp2_safe_receiver.
|
|
2530
|
+
var tmp0_safe_receiver_0 = tmp2_safe_receiver.t1m_1;
|
|
2506
2531
|
tmp$ret$5 = tmp0_safe_receiver_0 == null ? null : toPrimitive_0(tmp0_safe_receiver_0, $this);
|
|
2507
2532
|
tmp$ret$6 = tmp$ret$5;
|
|
2508
2533
|
tmp_0 = tmp$ret$6;
|
|
@@ -2541,7 +2566,7 @@
|
|
|
2541
2566
|
return tmp$ret$11;
|
|
2542
2567
|
}
|
|
2543
2568
|
function toName_0(_this__u8e3s4, $this, segments, method) {
|
|
2544
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2569
|
+
var tmp0_safe_receiver = _this__u8e3s4.s1k_1;
|
|
2545
2570
|
var tmp;
|
|
2546
2571
|
if (tmp0_safe_receiver == null) {
|
|
2547
2572
|
tmp = null;
|
|
@@ -2551,7 +2576,7 @@
|
|
|
2551
2576
|
// Inline function 'kotlin.contracts.contract' call
|
|
2552
2577
|
var tmp$ret$0;
|
|
2553
2578
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
2554
|
-
tmp$ret$0 = Common_getInstance().
|
|
2579
|
+
tmp$ret$0 = Common_getInstance().g1t([tmp0_safe_receiver]);
|
|
2555
2580
|
tmp$ret$1 = tmp$ret$0;
|
|
2556
2581
|
tmp = tmp$ret$1;
|
|
2557
2582
|
}
|
|
@@ -2573,7 +2598,7 @@
|
|
|
2573
2598
|
return tmp_0;
|
|
2574
2599
|
}
|
|
2575
2600
|
function resolveParameters_1(_this__u8e3s4, $this) {
|
|
2576
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2601
|
+
var tmp0_safe_receiver = _this__u8e3s4.t1k_1;
|
|
2577
2602
|
var tmp;
|
|
2578
2603
|
if (tmp0_safe_receiver == null) {
|
|
2579
2604
|
tmp = null;
|
|
@@ -2621,7 +2646,7 @@
|
|
|
2621
2646
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2622
2647
|
}
|
|
2623
2648
|
function resolveParameters_2(_this__u8e3s4, $this) {
|
|
2624
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2649
|
+
var tmp0_safe_receiver = _this__u8e3s4.k1k_1;
|
|
2625
2650
|
var tmp;
|
|
2626
2651
|
if (tmp0_safe_receiver == null) {
|
|
2627
2652
|
tmp = null;
|
|
@@ -2669,8 +2694,8 @@
|
|
|
2669
2694
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2670
2695
|
}
|
|
2671
2696
|
function resolveParameterObject_0(_this__u8e3s4, $this) {
|
|
2672
|
-
var tmp0_safe_receiver = $this.
|
|
2673
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2697
|
+
var tmp0_safe_receiver = $this.w1t_1.o1j_1;
|
|
2698
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j1o_1;
|
|
2674
2699
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2675
2700
|
var tmp;
|
|
2676
2701
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2699,8 +2724,8 @@
|
|
|
2699
2724
|
return tmp;
|
|
2700
2725
|
}
|
|
2701
2726
|
function resolveSchemaObject_0(_this__u8e3s4, $this) {
|
|
2702
|
-
var tmp0_safe_receiver = $this.
|
|
2703
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2727
|
+
var tmp0_safe_receiver = $this.w1t_1.o1j_1;
|
|
2728
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h1o_1;
|
|
2704
2729
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2705
2730
|
var tmp;
|
|
2706
2731
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2729,7 +2754,7 @@
|
|
|
2729
2754
|
var tmp3_elvis_lhs = tmp;
|
|
2730
2755
|
var tmp_1;
|
|
2731
2756
|
if (tmp3_elvis_lhs == null) {
|
|
2732
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2757
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.h1m_1);
|
|
2733
2758
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2734
2759
|
} else {
|
|
2735
2760
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2737,8 +2762,8 @@
|
|
|
2737
2762
|
return tmp_1;
|
|
2738
2763
|
}
|
|
2739
2764
|
function resolveRequestBodyObject(_this__u8e3s4, $this) {
|
|
2740
|
-
var tmp0_safe_receiver = $this.
|
|
2741
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2765
|
+
var tmp0_safe_receiver = $this.w1t_1.o1j_1;
|
|
2766
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l1o_1;
|
|
2742
2767
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2743
2768
|
var tmp;
|
|
2744
2769
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2767,7 +2792,7 @@
|
|
|
2767
2792
|
var tmp3_elvis_lhs = tmp;
|
|
2768
2793
|
var tmp_1;
|
|
2769
2794
|
if (tmp3_elvis_lhs == null) {
|
|
2770
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2795
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.h1m_1);
|
|
2771
2796
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2772
2797
|
} else {
|
|
2773
2798
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2775,8 +2800,8 @@
|
|
|
2775
2800
|
return tmp_1;
|
|
2776
2801
|
}
|
|
2777
2802
|
function resolveResponseObject_0(_this__u8e3s4, $this) {
|
|
2778
|
-
var tmp0_safe_receiver = $this.
|
|
2779
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2803
|
+
var tmp0_safe_receiver = $this.w1t_1.o1j_1;
|
|
2804
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i1o_1;
|
|
2780
2805
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2781
2806
|
var tmp;
|
|
2782
2807
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2805,7 +2830,7 @@
|
|
|
2805
2830
|
var tmp3_elvis_lhs = tmp;
|
|
2806
2831
|
var tmp_1;
|
|
2807
2832
|
if (tmp3_elvis_lhs == null) {
|
|
2808
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2833
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.h1m_1);
|
|
2809
2834
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2810
2835
|
} else {
|
|
2811
2836
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2874,25 +2899,25 @@
|
|
|
2874
2899
|
}
|
|
2875
2900
|
function flatten_1(_this__u8e3s4, $this, name) {
|
|
2876
2901
|
var tmp;
|
|
2877
|
-
if (!(_this__u8e3s4.
|
|
2878
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2902
|
+
if (!(_this__u8e3s4.a1n_1 == null)) {
|
|
2903
|
+
var tmp0_subject = _this__u8e3s4.a1n_1;
|
|
2879
2904
|
var tmp_0;
|
|
2880
2905
|
if (tmp0_subject instanceof BooleanObject_0) {
|
|
2881
2906
|
tmp_0 = emptyList();
|
|
2882
2907
|
} else {
|
|
2883
|
-
tmp_0 = flatten_1(resolve_4(ensureNotNull(_this__u8e3s4.
|
|
2908
|
+
tmp_0 = flatten_1(resolve_4(ensureNotNull(_this__u8e3s4.a1n_1), $this), $this, name);
|
|
2884
2909
|
}
|
|
2885
2910
|
tmp = tmp_0;
|
|
2886
|
-
} else if (!(_this__u8e3s4.u1m_1 == null)) {
|
|
2887
|
-
throw new NotImplementedError('An operation is not implemented: oneOf is not implemented');
|
|
2888
2911
|
} else if (!(_this__u8e3s4.v1m_1 == null)) {
|
|
2912
|
+
throw new NotImplementedError('An operation is not implemented: oneOf is not implemented');
|
|
2913
|
+
} else if (!(_this__u8e3s4.w1m_1 == null)) {
|
|
2889
2914
|
throw new NotImplementedError('An operation is not implemented: anyOf is not implemented');
|
|
2890
|
-
} else if (!(_this__u8e3s4.
|
|
2915
|
+
} else if (!(_this__u8e3s4.u1m_1 == null)) {
|
|
2891
2916
|
var tmp$ret$3;
|
|
2892
2917
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2893
2918
|
var tmp$ret$0;
|
|
2894
2919
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2895
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
2920
|
+
var tmp0_orEmpty = _this__u8e3s4.u1m_1;
|
|
2896
2921
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
2897
2922
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2898
2923
|
var tmp2_flatMap = tmp$ret$0;
|
|
@@ -2913,7 +2938,7 @@
|
|
|
2913
2938
|
var tmp_1 = listOf(new Type(name, new Shape(tmp$ret$3)));
|
|
2914
2939
|
var tmp$ret$13;
|
|
2915
2940
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2916
|
-
var tmp4_flatMap = ensureNotNull(_this__u8e3s4.
|
|
2941
|
+
var tmp4_flatMap = ensureNotNull(_this__u8e3s4.u1m_1);
|
|
2917
2942
|
var tmp$ret$12;
|
|
2918
2943
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2919
2944
|
var tmp3_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -2932,7 +2957,7 @@
|
|
|
2932
2957
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2933
2958
|
var tmp$ret$4;
|
|
2934
2959
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2935
|
-
var tmp0_orEmpty_0 = element_0.
|
|
2960
|
+
var tmp0_orEmpty_0 = element_0.z1m_1;
|
|
2936
2961
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
2937
2962
|
tmp$ret$4 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2938
2963
|
var tmp2_flatMap_0 = tmp$ret$4;
|
|
@@ -2961,7 +2986,7 @@
|
|
|
2961
2986
|
tmp_3 = emptyList();
|
|
2962
2987
|
} else {
|
|
2963
2988
|
if (tmp0_subject_1 instanceof SchemaObject_0) {
|
|
2964
|
-
tmp_3 = flatten_1(value, $this, Common_getInstance().
|
|
2989
|
+
tmp_3 = flatten_1(value, $this, Common_getInstance().g1t([name, key]));
|
|
2965
2990
|
} else {
|
|
2966
2991
|
noWhenBranchMatchedException();
|
|
2967
2992
|
}
|
|
@@ -2984,39 +3009,21 @@
|
|
|
2984
3009
|
tmp$ret$12 = tmp3_flatMapTo;
|
|
2985
3010
|
tmp$ret$13 = tmp$ret$12;
|
|
2986
3011
|
tmp = plus(tmp_1, tmp$ret$13);
|
|
2987
|
-
} else if (!(_this__u8e3s4.
|
|
3012
|
+
} else if (!(_this__u8e3s4.t1n_1 == null)) {
|
|
2988
3013
|
var tmp$ret$18;
|
|
2989
3014
|
// Inline function 'kotlin.let' call
|
|
2990
3015
|
var tmp$ret$16;
|
|
2991
3016
|
// Inline function 'kotlin.collections.map' call
|
|
2992
|
-
var tmp6_map = ensureNotNull(_this__u8e3s4.
|
|
3017
|
+
var tmp6_map = ensureNotNull(_this__u8e3s4.t1n_1);
|
|
2993
3018
|
var tmp$ret$15;
|
|
2994
3019
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2995
|
-
var tmp5_mapTo = ArrayList_init_$Create$_0(tmp6_map
|
|
2996
|
-
var
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
while (inductionVariable < last) {
|
|
3000
|
-
var item = indexedObject[inductionVariable];
|
|
3001
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
3020
|
+
var tmp5_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp6_map, 10));
|
|
3021
|
+
var tmp0_iterator_2 = tmp6_map.c();
|
|
3022
|
+
while (tmp0_iterator_2.d()) {
|
|
3023
|
+
var item = tmp0_iterator_2.e();
|
|
3002
3024
|
var tmp$ret$14;
|
|
3003
3025
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
3004
|
-
|
|
3005
|
-
var tmp_4;
|
|
3006
|
-
if (tmp0_subject_2 instanceof JsonPrimitive) {
|
|
3007
|
-
tmp_4 = item.q13();
|
|
3008
|
-
} else {
|
|
3009
|
-
if (tmp0_subject_2 instanceof JsonArray) {
|
|
3010
|
-
throw new NotImplementedError();
|
|
3011
|
-
} else {
|
|
3012
|
-
if (tmp0_subject_2 instanceof JsonObject) {
|
|
3013
|
-
throw new NotImplementedError();
|
|
3014
|
-
} else {
|
|
3015
|
-
noWhenBranchMatchedException();
|
|
3016
|
-
}
|
|
3017
|
-
}
|
|
3018
|
-
}
|
|
3019
|
-
tmp$ret$14 = tmp_4;
|
|
3026
|
+
tmp$ret$14 = item.r13();
|
|
3020
3027
|
tmp5_mapTo.a(tmp$ret$14);
|
|
3021
3028
|
}
|
|
3022
3029
|
tmp$ret$15 = tmp5_mapTo;
|
|
@@ -3029,9 +3036,9 @@
|
|
|
3029
3036
|
tmp$ret$18 = tmp$ret$17;
|
|
3030
3037
|
tmp = tmp$ret$18;
|
|
3031
3038
|
} else {
|
|
3032
|
-
var tmp1_subject = _this__u8e3s4.
|
|
3039
|
+
var tmp1_subject = _this__u8e3s4.t1m_1;
|
|
3033
3040
|
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.q4_1;
|
|
3034
|
-
var
|
|
3041
|
+
var tmp_4;
|
|
3035
3042
|
switch (tmp0) {
|
|
3036
3043
|
case -1:
|
|
3037
3044
|
case 5:
|
|
@@ -3039,7 +3046,7 @@
|
|
|
3039
3046
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3040
3047
|
var tmp$ret$19;
|
|
3041
3048
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3042
|
-
var tmp8_orEmpty = _this__u8e3s4.
|
|
3049
|
+
var tmp8_orEmpty = _this__u8e3s4.z1m_1;
|
|
3043
3050
|
var tmp0_elvis_lhs_1 = tmp8_orEmpty;
|
|
3044
3051
|
tmp$ret$19 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
3045
3052
|
var tmp10_flatMap = tmp$ret$19;
|
|
@@ -3049,9 +3056,9 @@
|
|
|
3049
3056
|
var tmp$ret$20;
|
|
3050
3057
|
// Inline function 'kotlin.collections.iterator' call
|
|
3051
3058
|
tmp$ret$20 = tmp10_flatMap.u().c();
|
|
3052
|
-
var
|
|
3053
|
-
while (
|
|
3054
|
-
var element_2 =
|
|
3059
|
+
var tmp0_iterator_3 = tmp$ret$20;
|
|
3060
|
+
while (tmp0_iterator_3.d()) {
|
|
3061
|
+
var element_2 = tmp0_iterator_3.e();
|
|
3055
3062
|
var tmp$ret$23;
|
|
3056
3063
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
3057
3064
|
var tmp$ret$21;
|
|
@@ -3062,18 +3069,18 @@
|
|
|
3062
3069
|
// Inline function 'kotlin.collections.component2' call
|
|
3063
3070
|
tmp$ret$22 = element_2.w();
|
|
3064
3071
|
var value_0 = tmp$ret$22;
|
|
3065
|
-
var
|
|
3066
|
-
var
|
|
3067
|
-
if (
|
|
3068
|
-
|
|
3072
|
+
var tmp0_subject_2 = value_0;
|
|
3073
|
+
var tmp_5;
|
|
3074
|
+
if (tmp0_subject_2 instanceof SchemaObject_0) {
|
|
3075
|
+
tmp_5 = flatten_1(value_0, $this, Common_getInstance().g1t([name, key_0]));
|
|
3069
3076
|
} else {
|
|
3070
|
-
if (
|
|
3071
|
-
|
|
3077
|
+
if (tmp0_subject_2 instanceof ReferenceObject_0) {
|
|
3078
|
+
tmp_5 = emptyList();
|
|
3072
3079
|
} else {
|
|
3073
3080
|
noWhenBranchMatchedException();
|
|
3074
3081
|
}
|
|
3075
3082
|
}
|
|
3076
|
-
tmp$ret$23 =
|
|
3083
|
+
tmp$ret$23 = tmp_5;
|
|
3077
3084
|
var list_2 = tmp$ret$23;
|
|
3078
3085
|
addAll(tmp9_flatMapTo, list_2);
|
|
3079
3086
|
}
|
|
@@ -3082,43 +3089,43 @@
|
|
|
3082
3089
|
|
|
3083
3090
|
var fields = tmp$ret$25;
|
|
3084
3091
|
var schema = listOf(new Type(name, new Shape(toField_1(_this__u8e3s4, $this, name))));
|
|
3085
|
-
|
|
3092
|
+
tmp_4 = plus(schema, fields);
|
|
3086
3093
|
break;
|
|
3087
3094
|
case 4:
|
|
3088
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
3089
|
-
var
|
|
3095
|
+
var tmp2_safe_receiver = _this__u8e3s4.y1m_1;
|
|
3096
|
+
var tmp_6;
|
|
3090
3097
|
if (tmp2_safe_receiver == null) {
|
|
3091
|
-
|
|
3098
|
+
tmp_6 = null;
|
|
3092
3099
|
} else {
|
|
3093
3100
|
var tmp$ret$27;
|
|
3094
3101
|
// Inline function 'kotlin.let' call
|
|
3095
3102
|
// Inline function 'kotlin.contracts.contract' call
|
|
3096
3103
|
var tmp$ret$26;
|
|
3097
3104
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
3098
|
-
var
|
|
3099
|
-
var
|
|
3100
|
-
if (
|
|
3101
|
-
|
|
3105
|
+
var tmp0_subject_3 = tmp2_safe_receiver;
|
|
3106
|
+
var tmp_7;
|
|
3107
|
+
if (tmp0_subject_3 instanceof ReferenceObject_0) {
|
|
3108
|
+
tmp_7 = emptyList();
|
|
3102
3109
|
} else {
|
|
3103
|
-
if (
|
|
3104
|
-
|
|
3110
|
+
if (tmp0_subject_3 instanceof SchemaObject_0) {
|
|
3111
|
+
tmp_7 = flatten_1(tmp2_safe_receiver, $this, Common_getInstance().g1t([name, 'array']));
|
|
3105
3112
|
} else {
|
|
3106
3113
|
noWhenBranchMatchedException();
|
|
3107
3114
|
}
|
|
3108
3115
|
}
|
|
3109
|
-
tmp$ret$26 =
|
|
3116
|
+
tmp$ret$26 = tmp_7;
|
|
3110
3117
|
tmp$ret$27 = tmp$ret$26;
|
|
3111
|
-
|
|
3118
|
+
tmp_6 = tmp$ret$27;
|
|
3112
3119
|
}
|
|
3113
3120
|
|
|
3114
|
-
var tmp3_elvis_lhs =
|
|
3115
|
-
|
|
3121
|
+
var tmp3_elvis_lhs = tmp_6;
|
|
3122
|
+
tmp_4 = tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs;
|
|
3116
3123
|
break;
|
|
3117
3124
|
default:
|
|
3118
|
-
|
|
3125
|
+
tmp_4 = emptyList();
|
|
3119
3126
|
break;
|
|
3120
3127
|
}
|
|
3121
|
-
tmp =
|
|
3128
|
+
tmp = tmp_4;
|
|
3122
3129
|
}
|
|
3123
3130
|
return tmp;
|
|
3124
3131
|
}
|
|
@@ -3146,8 +3153,8 @@
|
|
|
3146
3153
|
var referencingObject = tmp0_let.i3();
|
|
3147
3154
|
var schema = tmp0_let.j3();
|
|
3148
3155
|
var tmp;
|
|
3149
|
-
if (!(schema.
|
|
3150
|
-
var additionalProperties = ensureNotNull(schema.
|
|
3156
|
+
if (!(schema.a1n_1 == null)) {
|
|
3157
|
+
var additionalProperties = ensureNotNull(schema.a1n_1);
|
|
3151
3158
|
var tmp_0;
|
|
3152
3159
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
3153
3160
|
tmp_0 = new Any(false, true);
|
|
@@ -3156,32 +3163,32 @@
|
|
|
3156
3163
|
tmp_0 = toMap_1(toReference_1(additionalProperties, $this));
|
|
3157
3164
|
} else {
|
|
3158
3165
|
if (additionalProperties instanceof SchemaObject_0) {
|
|
3159
|
-
tmp_0 =
|
|
3166
|
+
tmp_0 = toMap_1(toReference_2(additionalProperties, $this, getReference_0(_this__u8e3s4, $this)));
|
|
3160
3167
|
} else {
|
|
3161
3168
|
noWhenBranchMatchedException();
|
|
3162
3169
|
}
|
|
3163
3170
|
}
|
|
3164
3171
|
}
|
|
3165
3172
|
tmp = tmp_0;
|
|
3166
|
-
} else if (!(schema.
|
|
3167
|
-
tmp = new Custom(Common_getInstance().
|
|
3168
|
-
} else if (isPrimitive_0(schema.
|
|
3169
|
-
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.
|
|
3173
|
+
} else if (!(schema.t1n_1 == null)) {
|
|
3174
|
+
tmp = new Custom(Common_getInstance().g1t([getReference_0(referencingObject, $this)]), false, false);
|
|
3175
|
+
} else if (isPrimitive_0(schema.t1m_1)) {
|
|
3176
|
+
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.t1m_1), $this), false, false);
|
|
3170
3177
|
} else {
|
|
3171
|
-
var tmp0_subject = schema.
|
|
3178
|
+
var tmp0_subject = schema.t1m_1;
|
|
3172
3179
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
3173
3180
|
var tmp_1;
|
|
3174
3181
|
if (tmp0 === 4) {
|
|
3175
|
-
var items = schema.
|
|
3182
|
+
var items = schema.y1m_1;
|
|
3176
3183
|
var tmp_2;
|
|
3177
3184
|
if (items instanceof ReferenceObject_0) {
|
|
3178
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
3185
|
+
tmp_2 = new Custom(Common_getInstance().g1t([getReference_0(items, $this)]), true);
|
|
3179
3186
|
} else {
|
|
3180
3187
|
if (items instanceof SchemaObject_0) {
|
|
3181
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
3188
|
+
tmp_2 = new Custom(Common_getInstance().g1t([getReference_0(referencingObject, $this), 'Array']), true);
|
|
3182
3189
|
} else {
|
|
3183
3190
|
if (items == null) {
|
|
3184
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.
|
|
3191
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.h1m_1);
|
|
3185
3192
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
3186
3193
|
} else {
|
|
3187
3194
|
noWhenBranchMatchedException();
|
|
@@ -3190,7 +3197,7 @@
|
|
|
3190
3197
|
}
|
|
3191
3198
|
tmp_1 = tmp_2;
|
|
3192
3199
|
} else {
|
|
3193
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
3200
|
+
tmp_1 = new Custom(Common_getInstance().g1t([getReference_0(referencingObject, $this)]), false);
|
|
3194
3201
|
}
|
|
3195
3202
|
tmp = tmp_1;
|
|
3196
3203
|
}
|
|
@@ -3200,39 +3207,56 @@
|
|
|
3200
3207
|
}
|
|
3201
3208
|
function toReference_2(_this__u8e3s4, $this, name) {
|
|
3202
3209
|
var tmp;
|
|
3203
|
-
if (!(_this__u8e3s4.
|
|
3204
|
-
|
|
3210
|
+
if (!(_this__u8e3s4.a1n_1 == null)) {
|
|
3211
|
+
var additionalProperties = ensureNotNull(_this__u8e3s4.a1n_1);
|
|
3212
|
+
var tmp_0;
|
|
3213
|
+
if (additionalProperties instanceof BooleanObject_0) {
|
|
3214
|
+
tmp_0 = new Any(false, true);
|
|
3215
|
+
} else {
|
|
3216
|
+
if (additionalProperties instanceof ReferenceObject_0) {
|
|
3217
|
+
tmp_0 = toMap_1(toReference_1(additionalProperties, $this));
|
|
3218
|
+
} else {
|
|
3219
|
+
if (additionalProperties instanceof SchemaObject_0) {
|
|
3220
|
+
tmp_0 = toMap_1(toReference_2(additionalProperties, $this, name));
|
|
3221
|
+
} else {
|
|
3222
|
+
noWhenBranchMatchedException();
|
|
3223
|
+
}
|
|
3224
|
+
}
|
|
3225
|
+
}
|
|
3226
|
+
tmp = tmp_0;
|
|
3227
|
+
} else if (!(_this__u8e3s4.t1n_1 == null)) {
|
|
3228
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.a1n_1 == null));
|
|
3205
3229
|
} else {
|
|
3206
|
-
var type = _this__u8e3s4.
|
|
3230
|
+
var type = _this__u8e3s4.t1m_1;
|
|
3207
3231
|
var tmp0 = type == null ? -1 : type.q4_1;
|
|
3208
|
-
var
|
|
3232
|
+
var tmp_1;
|
|
3209
3233
|
switch (tmp0) {
|
|
3210
3234
|
case 0:
|
|
3211
3235
|
case 1:
|
|
3212
3236
|
case 2:
|
|
3213
3237
|
case 3:
|
|
3214
|
-
|
|
3238
|
+
tmp_1 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.a1n_1 == null));
|
|
3215
3239
|
break;
|
|
3216
3240
|
case -1:
|
|
3217
3241
|
case 5:
|
|
3218
|
-
var
|
|
3219
|
-
var
|
|
3220
|
-
if (
|
|
3221
|
-
|
|
3242
|
+
var tmp_2;
|
|
3243
|
+
var tmp_3 = _this__u8e3s4.a1n_1;
|
|
3244
|
+
if (tmp_3 instanceof BooleanObject_0) {
|
|
3245
|
+
tmp_2 = new Any(false, !(_this__u8e3s4.a1n_1 == null));
|
|
3222
3246
|
} else {
|
|
3223
|
-
|
|
3247
|
+
tmp_2 = new Custom(name, false, !(_this__u8e3s4.a1n_1 == null));
|
|
3224
3248
|
}
|
|
3225
3249
|
|
|
3226
|
-
|
|
3250
|
+
tmp_1 = tmp_2;
|
|
3227
3251
|
break;
|
|
3228
3252
|
case 4:
|
|
3229
|
-
var it = _this__u8e3s4.
|
|
3230
|
-
var
|
|
3253
|
+
var it = _this__u8e3s4.y1m_1;
|
|
3254
|
+
var tmp_4;
|
|
3231
3255
|
if (it instanceof ReferenceObject_0) {
|
|
3232
|
-
|
|
3256
|
+
tmp_4 = toIterable_0(toReference_1(it, $this));
|
|
3233
3257
|
} else {
|
|
3234
3258
|
if (it instanceof SchemaObject_0) {
|
|
3235
|
-
|
|
3259
|
+
tmp_4 = toIterable_0(toReference_2(it, $this, name));
|
|
3236
3260
|
} else {
|
|
3237
3261
|
if (it == null) {
|
|
3238
3262
|
var tmp0_error = 'When schema is of type array items cannot be null for name: ' + name;
|
|
@@ -3243,13 +3267,13 @@
|
|
|
3243
3267
|
}
|
|
3244
3268
|
}
|
|
3245
3269
|
|
|
3246
|
-
|
|
3270
|
+
tmp_1 = tmp_4;
|
|
3247
3271
|
break;
|
|
3248
3272
|
default:
|
|
3249
3273
|
noWhenBranchMatchedException();
|
|
3250
3274
|
break;
|
|
3251
3275
|
}
|
|
3252
|
-
tmp =
|
|
3276
|
+
tmp = tmp_1;
|
|
3253
3277
|
}
|
|
3254
3278
|
return tmp;
|
|
3255
3279
|
}
|
|
@@ -3273,28 +3297,28 @@
|
|
|
3273
3297
|
var tmp;
|
|
3274
3298
|
switch (tmp0) {
|
|
3275
3299
|
case 0:
|
|
3276
|
-
tmp = _this__u8e3s4.
|
|
3300
|
+
tmp = _this__u8e3s4.b1k_1;
|
|
3277
3301
|
break;
|
|
3278
3302
|
case 1:
|
|
3279
|
-
tmp = _this__u8e3s4.
|
|
3303
|
+
tmp = _this__u8e3s4.d1k_1;
|
|
3280
3304
|
break;
|
|
3281
3305
|
case 2:
|
|
3282
|
-
tmp = _this__u8e3s4.
|
|
3306
|
+
tmp = _this__u8e3s4.c1k_1;
|
|
3283
3307
|
break;
|
|
3284
3308
|
case 3:
|
|
3285
|
-
tmp = _this__u8e3s4.
|
|
3309
|
+
tmp = _this__u8e3s4.e1k_1;
|
|
3286
3310
|
break;
|
|
3287
3311
|
case 4:
|
|
3288
|
-
tmp = _this__u8e3s4.
|
|
3312
|
+
tmp = _this__u8e3s4.f1k_1;
|
|
3289
3313
|
break;
|
|
3290
3314
|
case 5:
|
|
3291
|
-
tmp = _this__u8e3s4.
|
|
3315
|
+
tmp = _this__u8e3s4.g1k_1;
|
|
3292
3316
|
break;
|
|
3293
3317
|
case 6:
|
|
3294
|
-
tmp = _this__u8e3s4.
|
|
3318
|
+
tmp = _this__u8e3s4.h1k_1;
|
|
3295
3319
|
break;
|
|
3296
3320
|
case 7:
|
|
3297
|
-
tmp = _this__u8e3s4.
|
|
3321
|
+
tmp = _this__u8e3s4.i1k_1;
|
|
3298
3322
|
break;
|
|
3299
3323
|
default:
|
|
3300
3324
|
noWhenBranchMatchedException();
|
|
@@ -3308,10 +3332,10 @@
|
|
|
3308
3332
|
return filterNotNullValues_0(tmp$ret$2);
|
|
3309
3333
|
}
|
|
3310
3334
|
function getReference_0(_this__u8e3s4, $this) {
|
|
3311
|
-
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
3335
|
+
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.h1m_1), ['/']), 3);
|
|
3312
3336
|
var tmp;
|
|
3313
3337
|
if (tmp0_elvis_lhs == null) {
|
|
3314
|
-
var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
3338
|
+
var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.h1m_1);
|
|
3315
3339
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
3316
3340
|
} else {
|
|
3317
3341
|
tmp = tmp0_elvis_lhs;
|
|
@@ -3345,7 +3369,7 @@
|
|
|
3345
3369
|
// Inline function 'kotlin.collections.map' call
|
|
3346
3370
|
var tmp$ret$0;
|
|
3347
3371
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3348
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
3372
|
+
var tmp0_orEmpty = _this__u8e3s4.z1m_1;
|
|
3349
3373
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3350
3374
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3351
3375
|
var tmp2_map = tmp$ret$0;
|
|
@@ -3372,16 +3396,16 @@
|
|
|
3372
3396
|
var tmp;
|
|
3373
3397
|
if (tmp0_subject instanceof SchemaObject_0) {
|
|
3374
3398
|
var tmp_0 = new Identifier(key);
|
|
3375
|
-
var tmp_1 = toReference_2(value, $this, Common_getInstance().
|
|
3376
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
3377
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null :
|
|
3399
|
+
var tmp_1 = toReference_2(value, $this, Common_getInstance().g1t([name, key]));
|
|
3400
|
+
var tmp1_safe_receiver = _this__u8e3s4.s1n_1;
|
|
3401
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.i1(key);
|
|
3378
3402
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
3379
3403
|
} else {
|
|
3380
3404
|
if (tmp0_subject instanceof ReferenceObject_0) {
|
|
3381
3405
|
var tmp_2 = new Identifier(key);
|
|
3382
3406
|
var tmp_3 = new Custom(getReference_0(value, $this), false);
|
|
3383
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
3384
|
-
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null :
|
|
3407
|
+
var tmp3_safe_receiver = _this__u8e3s4.s1n_1;
|
|
3408
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.i1(key);
|
|
3385
3409
|
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
3386
3410
|
} else {
|
|
3387
3411
|
noWhenBranchMatchedException();
|
|
@@ -3394,40 +3418,18 @@
|
|
|
3394
3418
|
tmp$ret$6 = tmp$ret$5;
|
|
3395
3419
|
return tmp$ret$6;
|
|
3396
3420
|
}
|
|
3397
|
-
function toField_2(_this__u8e3s4, $this) {
|
|
3421
|
+
function toField_2(_this__u8e3s4, $this, name) {
|
|
3398
3422
|
var tmp$ret$1;
|
|
3399
3423
|
// Inline function 'kotlin.let' call
|
|
3400
|
-
var
|
|
3424
|
+
var s = _this__u8e3s4.k1l_1;
|
|
3401
3425
|
var tmp;
|
|
3402
|
-
if (
|
|
3403
|
-
|
|
3404
|
-
tmp = new Custom(getReference_0(tmp_0 instanceof ReferenceObject_0 ? tmp_0 : THROW_CCE(), $this), false);
|
|
3426
|
+
if (s instanceof ReferenceObject_0) {
|
|
3427
|
+
tmp = toReference_1(s, $this);
|
|
3405
3428
|
} else {
|
|
3406
|
-
if (
|
|
3407
|
-
|
|
3408
|
-
var type = (tmp_1 instanceof SchemaObject_0 ? tmp_1 : THROW_CCE()).s1m_1;
|
|
3409
|
-
var tmp0 = type == null ? -1 : type.q4_1;
|
|
3410
|
-
var tmp_2;
|
|
3411
|
-
switch (tmp0) {
|
|
3412
|
-
case 0:
|
|
3413
|
-
case 2:
|
|
3414
|
-
case 1:
|
|
3415
|
-
case 3:
|
|
3416
|
-
tmp_2 = new Primitive(toPrimitive_0(type, $this), false);
|
|
3417
|
-
break;
|
|
3418
|
-
case 4:
|
|
3419
|
-
throw new NotImplementedError();
|
|
3420
|
-
case 5:
|
|
3421
|
-
throw new NotImplementedError();
|
|
3422
|
-
case -1:
|
|
3423
|
-
throw new NotImplementedError();
|
|
3424
|
-
default:
|
|
3425
|
-
noWhenBranchMatchedException();
|
|
3426
|
-
break;
|
|
3427
|
-
}
|
|
3428
|
-
tmp = tmp_2;
|
|
3429
|
+
if (s instanceof SchemaObject_0) {
|
|
3430
|
+
tmp = toReference_2(s, $this, name);
|
|
3429
3431
|
} else {
|
|
3430
|
-
if (
|
|
3432
|
+
if (s == null) {
|
|
3431
3433
|
throw new NotImplementedError();
|
|
3432
3434
|
} else {
|
|
3433
3435
|
noWhenBranchMatchedException();
|
|
@@ -3438,26 +3440,26 @@
|
|
|
3438
3440
|
// Inline function 'kotlin.contracts.contract' call
|
|
3439
3441
|
var tmp$ret$0;
|
|
3440
3442
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3441
|
-
var
|
|
3442
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
3443
|
-
tmp$ret$0 = new Field(
|
|
3443
|
+
var tmp_0 = new Identifier(_this__u8e3s4.o1l_1);
|
|
3444
|
+
var tmp0_elvis_lhs = _this__u8e3s4.e1l_1;
|
|
3445
|
+
tmp$ret$0 = new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
3444
3446
|
tmp$ret$1 = tmp$ret$0;
|
|
3445
3447
|
return tmp$ret$1;
|
|
3446
3448
|
}
|
|
3447
3449
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
3448
|
-
this.
|
|
3449
|
-
this.
|
|
3450
|
-
this.
|
|
3451
|
-
this.
|
|
3450
|
+
this.x1t_1 = path;
|
|
3451
|
+
this.y1t_1 = pathItem;
|
|
3452
|
+
this.z1t_1 = method;
|
|
3453
|
+
this.a1u_1 = operation;
|
|
3452
3454
|
}
|
|
3453
3455
|
protoOf(FlattenRequest_0).toString = function () {
|
|
3454
|
-
return 'FlattenRequest(path=' + new Path_0(this.
|
|
3456
|
+
return 'FlattenRequest(path=' + new Path_0(this.x1t_1) + ', pathItem=' + this.y1t_1 + ', method=' + this.z1t_1 + ', operation=' + this.a1u_1 + ')';
|
|
3455
3457
|
};
|
|
3456
3458
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
3457
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3458
|
-
result = imul(result, 31) + this.x1t_1.hashCode() | 0;
|
|
3459
|
+
var result = Path__hashCode_impl_go73kd_0(this.x1t_1);
|
|
3459
3460
|
result = imul(result, 31) + this.y1t_1.hashCode() | 0;
|
|
3460
3461
|
result = imul(result, 31) + this.z1t_1.hashCode() | 0;
|
|
3462
|
+
result = imul(result, 31) + this.a1u_1.hashCode() | 0;
|
|
3461
3463
|
return result;
|
|
3462
3464
|
};
|
|
3463
3465
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -3466,14 +3468,14 @@
|
|
|
3466
3468
|
if (!(other instanceof FlattenRequest_0))
|
|
3467
3469
|
return false;
|
|
3468
3470
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
3469
|
-
if (!(this.
|
|
3470
|
-
return false;
|
|
3471
|
-
if (!this.x1t_1.equals(tmp0_other_with_cast.x1t_1))
|
|
3471
|
+
if (!(this.x1t_1 === tmp0_other_with_cast.x1t_1))
|
|
3472
3472
|
return false;
|
|
3473
3473
|
if (!this.y1t_1.equals(tmp0_other_with_cast.y1t_1))
|
|
3474
3474
|
return false;
|
|
3475
3475
|
if (!this.z1t_1.equals(tmp0_other_with_cast.z1t_1))
|
|
3476
3476
|
return false;
|
|
3477
|
+
if (!this.a1u_1.equals(tmp0_other_with_cast.a1u_1))
|
|
3478
|
+
return false;
|
|
3477
3479
|
return true;
|
|
3478
3480
|
};
|
|
3479
3481
|
function flatMapRequests_0(_this__u8e3s4, $this, f) {
|
|
@@ -3481,7 +3483,7 @@
|
|
|
3481
3483
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3482
3484
|
var tmp$ret$11;
|
|
3483
3485
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3484
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
3486
|
+
var tmp1_flatMap = _this__u8e3s4.n1j_1;
|
|
3485
3487
|
var tmp$ret$10;
|
|
3486
3488
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3487
3489
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -3495,7 +3497,7 @@
|
|
|
3495
3497
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
3496
3498
|
var tmp$ret$1;
|
|
3497
3499
|
// Inline function 'kotlin.collections.component1' call
|
|
3498
|
-
tmp$ret$1 = element.v().
|
|
3500
|
+
tmp$ret$1 = element.v().v1j_1;
|
|
3499
3501
|
var path = tmp$ret$1;
|
|
3500
3502
|
var tmp$ret$2;
|
|
3501
3503
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3552,23 +3554,23 @@
|
|
|
3552
3554
|
return tmp$ret$14;
|
|
3553
3555
|
}
|
|
3554
3556
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
3555
|
-
this.
|
|
3556
|
-
this.
|
|
3557
|
-
this.
|
|
3558
|
-
this.
|
|
3559
|
-
this.
|
|
3560
|
-
this.
|
|
3557
|
+
this.b1u_1 = path;
|
|
3558
|
+
this.c1u_1 = pathItem;
|
|
3559
|
+
this.d1u_1 = method;
|
|
3560
|
+
this.e1u_1 = operation;
|
|
3561
|
+
this.f1u_1 = statusCode;
|
|
3562
|
+
this.g1u_1 = response;
|
|
3561
3563
|
}
|
|
3562
3564
|
protoOf(FlattenResponse_0).toString = function () {
|
|
3563
|
-
return 'FlattenResponse(path=' + new Path_0(this.
|
|
3565
|
+
return 'FlattenResponse(path=' + new Path_0(this.b1u_1) + ', pathItem=' + this.c1u_1 + ', method=' + this.d1u_1 + ', operation=' + this.e1u_1 + ', statusCode=' + new StatusCode_0(this.f1u_1) + ', response=' + this.g1u_1 + ')';
|
|
3564
3566
|
};
|
|
3565
3567
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
3566
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3567
|
-
result = imul(result, 31) + this.b1u_1.hashCode() | 0;
|
|
3568
|
+
var result = Path__hashCode_impl_go73kd_0(this.b1u_1);
|
|
3568
3569
|
result = imul(result, 31) + this.c1u_1.hashCode() | 0;
|
|
3569
3570
|
result = imul(result, 31) + this.d1u_1.hashCode() | 0;
|
|
3570
|
-
result = imul(result, 31) +
|
|
3571
|
-
result = imul(result, 31) +
|
|
3571
|
+
result = imul(result, 31) + this.e1u_1.hashCode() | 0;
|
|
3572
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.f1u_1) | 0;
|
|
3573
|
+
result = imul(result, 31) + hashCode(this.g1u_1) | 0;
|
|
3572
3574
|
return result;
|
|
3573
3575
|
};
|
|
3574
3576
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -3577,17 +3579,17 @@
|
|
|
3577
3579
|
if (!(other instanceof FlattenResponse_0))
|
|
3578
3580
|
return false;
|
|
3579
3581
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
3580
|
-
if (!(this.
|
|
3581
|
-
return false;
|
|
3582
|
-
if (!this.b1u_1.equals(tmp0_other_with_cast.b1u_1))
|
|
3582
|
+
if (!(this.b1u_1 === tmp0_other_with_cast.b1u_1))
|
|
3583
3583
|
return false;
|
|
3584
3584
|
if (!this.c1u_1.equals(tmp0_other_with_cast.c1u_1))
|
|
3585
3585
|
return false;
|
|
3586
3586
|
if (!this.d1u_1.equals(tmp0_other_with_cast.d1u_1))
|
|
3587
3587
|
return false;
|
|
3588
|
-
if (!
|
|
3588
|
+
if (!this.e1u_1.equals(tmp0_other_with_cast.e1u_1))
|
|
3589
|
+
return false;
|
|
3590
|
+
if (!(this.f1u_1 === tmp0_other_with_cast.f1u_1))
|
|
3589
3591
|
return false;
|
|
3590
|
-
if (!equals(this.
|
|
3592
|
+
if (!equals(this.g1u_1, tmp0_other_with_cast.g1u_1))
|
|
3591
3593
|
return false;
|
|
3592
3594
|
return true;
|
|
3593
3595
|
};
|
|
@@ -3596,7 +3598,7 @@
|
|
|
3596
3598
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3597
3599
|
var tmp$ret$18;
|
|
3598
3600
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3599
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
3601
|
+
var tmp1_flatMap = _this__u8e3s4.n1j_1;
|
|
3600
3602
|
var tmp$ret$17;
|
|
3601
3603
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3602
3604
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -3610,7 +3612,7 @@
|
|
|
3610
3612
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
3611
3613
|
var tmp$ret$1;
|
|
3612
3614
|
// Inline function 'kotlin.collections.component1' call
|
|
3613
|
-
tmp$ret$1 = element.v().
|
|
3615
|
+
tmp$ret$1 = element.v().v1j_1;
|
|
3614
3616
|
var path = tmp$ret$1;
|
|
3615
3617
|
var tmp$ret$2;
|
|
3616
3618
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3640,7 +3642,7 @@
|
|
|
3640
3642
|
var operation = tmp$ret$5;
|
|
3641
3643
|
var tmp$ret$12;
|
|
3642
3644
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3643
|
-
var tmp0_safe_receiver = operation.
|
|
3645
|
+
var tmp0_safe_receiver = operation.v1k_1;
|
|
3644
3646
|
var tmp;
|
|
3645
3647
|
if (tmp0_safe_receiver == null) {
|
|
3646
3648
|
tmp = null;
|
|
@@ -3660,7 +3662,7 @@
|
|
|
3660
3662
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
3661
3663
|
var tmp$ret$7;
|
|
3662
3664
|
// Inline function 'kotlin.collections.component1' call
|
|
3663
|
-
tmp$ret$7 = item.v().
|
|
3665
|
+
tmp$ret$7 = item.v().x1n_1;
|
|
3664
3666
|
var statusCode = tmp$ret$7;
|
|
3665
3667
|
var tmp$ret$8;
|
|
3666
3668
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3705,18 +3707,44 @@
|
|
|
3705
3707
|
tmp$ret$21 = tmp$ret$20;
|
|
3706
3708
|
return tmp$ret$21;
|
|
3707
3709
|
}
|
|
3710
|
+
function OpenApiParser$parseParameters$lambda(this$0) {
|
|
3711
|
+
return function (req) {
|
|
3712
|
+
var parameters = plus(resolveParameters_2(req.y1t_1, this$0), resolveParameters_1(req.a1u_1, this$0));
|
|
3713
|
+
var segments = toSegments_0(req.x1t_1, this$0, parameters);
|
|
3714
|
+
var name = toName_0(req.a1u_1, this$0, segments, req.z1t_1);
|
|
3715
|
+
var tmp$ret$2;
|
|
3716
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
3717
|
+
var tmp$ret$1;
|
|
3718
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3719
|
+
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
3720
|
+
var tmp0_iterator = parameters.c();
|
|
3721
|
+
while (tmp0_iterator.d()) {
|
|
3722
|
+
var element = tmp0_iterator.e();
|
|
3723
|
+
var tmp$ret$0;
|
|
3724
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
3725
|
+
var tmp0_safe_receiver = element.k1l_1;
|
|
3726
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().g1t([name, 'Parameter']));
|
|
3727
|
+
tmp$ret$0 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
3728
|
+
var list = tmp$ret$0;
|
|
3729
|
+
addAll(tmp0_flatMapTo, list);
|
|
3730
|
+
}
|
|
3731
|
+
tmp$ret$1 = tmp0_flatMapTo;
|
|
3732
|
+
tmp$ret$2 = tmp$ret$1;
|
|
3733
|
+
return tmp$ret$2;
|
|
3734
|
+
};
|
|
3735
|
+
}
|
|
3708
3736
|
function OpenApiParser$parseRequestBody$lambda_0(this$0) {
|
|
3709
3737
|
return function (req) {
|
|
3710
|
-
var parameters = plus(resolveParameters_2(req.
|
|
3711
|
-
var segments = toSegments_0(req.
|
|
3712
|
-
var name = toName_0(req.
|
|
3738
|
+
var parameters = plus(resolveParameters_2(req.y1t_1, this$0), resolveParameters_1(req.a1u_1, this$0));
|
|
3739
|
+
var segments = toSegments_0(req.x1t_1, this$0, parameters);
|
|
3740
|
+
var name = toName_0(req.a1u_1, this$0, segments, req.z1t_1);
|
|
3713
3741
|
var tmp$ret$6;
|
|
3714
3742
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3715
3743
|
var tmp$ret$0;
|
|
3716
3744
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3717
|
-
var tmp0_safe_receiver = req.
|
|
3745
|
+
var tmp0_safe_receiver = req.a1u_1.u1k_1;
|
|
3718
3746
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, this$0);
|
|
3719
|
-
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
3747
|
+
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u1l_1;
|
|
3720
3748
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3721
3749
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3722
3750
|
var tmp2_flatMap = tmp$ret$0;
|
|
@@ -3735,22 +3763,22 @@
|
|
|
3735
3763
|
// Inline function 'kotlin.collections.component2' call
|
|
3736
3764
|
tmp$ret$2 = element.w();
|
|
3737
3765
|
var mediaObject = tmp$ret$2;
|
|
3738
|
-
var schema = mediaObject.
|
|
3766
|
+
var schema = mediaObject.b1m_1;
|
|
3739
3767
|
var tmp;
|
|
3740
3768
|
if (schema instanceof SchemaObject_0) {
|
|
3741
|
-
var tmp0_subject = schema.
|
|
3769
|
+
var tmp0_subject = schema.t1m_1;
|
|
3742
3770
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
3743
3771
|
var tmp_0;
|
|
3744
3772
|
switch (tmp0) {
|
|
3745
3773
|
case -1:
|
|
3746
3774
|
case 5:
|
|
3747
|
-
tmp_0 = flatten_1(schema, this$0, Common_getInstance().
|
|
3775
|
+
tmp_0 = flatten_1(schema, this$0, Common_getInstance().g1t([name, 'RequestBody']));
|
|
3748
3776
|
break;
|
|
3749
3777
|
case 4:
|
|
3750
3778
|
var tmp$ret$3;
|
|
3751
3779
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3752
|
-
var tmp1_safe_receiver_0 = schema.
|
|
3753
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
3780
|
+
var tmp1_safe_receiver_0 = schema.y1m_1;
|
|
3781
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().g1t([name, 'RequestBody']));
|
|
3754
3782
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
3755
3783
|
tmp$ret$3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
3756
3784
|
|
|
@@ -3783,17 +3811,17 @@
|
|
|
3783
3811
|
}
|
|
3784
3812
|
function OpenApiParser$parseResponseBody$lambda_0(this$0) {
|
|
3785
3813
|
return function (res) {
|
|
3786
|
-
var parameters = plus(resolveParameters_2(res.
|
|
3787
|
-
var segments = toSegments_0(res.
|
|
3788
|
-
var name = toName_0(res.
|
|
3789
|
-
var response = res.
|
|
3814
|
+
var parameters = plus(resolveParameters_2(res.c1u_1, this$0), resolveParameters_1(res.e1u_1, this$0));
|
|
3815
|
+
var segments = toSegments_0(res.b1u_1, this$0, parameters);
|
|
3816
|
+
var name = toName_0(res.e1u_1, this$0, segments, res.d1u_1);
|
|
3817
|
+
var response = res.g1u_1;
|
|
3790
3818
|
var tmp;
|
|
3791
3819
|
if (response instanceof ResponseObject_0) {
|
|
3792
3820
|
var tmp$ret$6;
|
|
3793
3821
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3794
3822
|
var tmp$ret$0;
|
|
3795
3823
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3796
|
-
var tmp0_orEmpty = response.
|
|
3824
|
+
var tmp0_orEmpty = response.c1o_1;
|
|
3797
3825
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3798
3826
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3799
3827
|
var tmp2_flatMap = tmp$ret$0;
|
|
@@ -3812,22 +3840,22 @@
|
|
|
3812
3840
|
// Inline function 'kotlin.collections.component2' call
|
|
3813
3841
|
tmp$ret$2 = element.w();
|
|
3814
3842
|
var mediaObject = tmp$ret$2;
|
|
3815
|
-
var schema = mediaObject.
|
|
3843
|
+
var schema = mediaObject.b1m_1;
|
|
3816
3844
|
var tmp_0;
|
|
3817
3845
|
if (schema instanceof SchemaObject_0) {
|
|
3818
|
-
var tmp0_subject = schema.
|
|
3846
|
+
var tmp0_subject = schema.t1m_1;
|
|
3819
3847
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
3820
3848
|
var tmp_1;
|
|
3821
3849
|
switch (tmp0) {
|
|
3822
3850
|
case -1:
|
|
3823
3851
|
case 5:
|
|
3824
|
-
tmp_1 = flatten_1(schema, this$0, Common_getInstance().
|
|
3852
|
+
tmp_1 = flatten_1(schema, this$0, Common_getInstance().g1t([name, _StatusCode___get_value__impl__we50mu_0(res.f1u_1), 'ResponseBody']));
|
|
3825
3853
|
break;
|
|
3826
3854
|
case 4:
|
|
3827
3855
|
var tmp$ret$3;
|
|
3828
3856
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3829
|
-
var tmp1_safe_receiver = schema.
|
|
3830
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().
|
|
3857
|
+
var tmp1_safe_receiver = schema.y1m_1;
|
|
3858
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().g1t([name, _StatusCode___get_value__impl__we50mu_0(res.f1u_1), 'ResponseBody']));
|
|
3831
3859
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
3832
3860
|
tmp$ret$3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
3833
3861
|
|
|
@@ -3862,10 +3890,10 @@
|
|
|
3862
3890
|
var tmp0_subject = it;
|
|
3863
3891
|
var tmp;
|
|
3864
3892
|
if (tmp0_subject instanceof Literal) {
|
|
3865
|
-
tmp = Common_getInstance().
|
|
3893
|
+
tmp = Common_getInstance().g1t([it.sj_1]);
|
|
3866
3894
|
} else {
|
|
3867
3895
|
if (tmp0_subject instanceof Param) {
|
|
3868
|
-
tmp = Common_getInstance().
|
|
3896
|
+
tmp = Common_getInstance().g1t([it.ti_1.ej_1]);
|
|
3869
3897
|
} else {
|
|
3870
3898
|
noWhenBranchMatchedException();
|
|
3871
3899
|
}
|
|
@@ -3874,19 +3902,19 @@
|
|
|
3874
3902
|
}
|
|
3875
3903
|
function OpenApiParser_0(openApi) {
|
|
3876
3904
|
Companion_getInstance_1();
|
|
3877
|
-
this.
|
|
3905
|
+
this.w1t_1 = openApi;
|
|
3878
3906
|
}
|
|
3879
3907
|
function toMap_1(_this__u8e3s4) {
|
|
3880
3908
|
var tmp0_subject = _this__u8e3s4;
|
|
3881
3909
|
var tmp;
|
|
3882
3910
|
if (tmp0_subject instanceof Custom) {
|
|
3883
|
-
tmp = _this__u8e3s4.
|
|
3911
|
+
tmp = _this__u8e3s4.kl(VOID, VOID, true);
|
|
3884
3912
|
} else {
|
|
3885
3913
|
if (tmp0_subject instanceof Any) {
|
|
3886
|
-
tmp = _this__u8e3s4.
|
|
3914
|
+
tmp = _this__u8e3s4.il(VOID, true);
|
|
3887
3915
|
} else {
|
|
3888
3916
|
if (tmp0_subject instanceof Primitive) {
|
|
3889
|
-
tmp = _this__u8e3s4.
|
|
3917
|
+
tmp = _this__u8e3s4.ml(VOID, VOID, true);
|
|
3890
3918
|
} else {
|
|
3891
3919
|
noWhenBranchMatchedException();
|
|
3892
3920
|
}
|
|
@@ -3930,13 +3958,13 @@
|
|
|
3930
3958
|
var tmp0_subject = _this__u8e3s4;
|
|
3931
3959
|
var tmp;
|
|
3932
3960
|
if (tmp0_subject instanceof Custom) {
|
|
3933
|
-
tmp = _this__u8e3s4.
|
|
3961
|
+
tmp = _this__u8e3s4.kl(VOID, true);
|
|
3934
3962
|
} else {
|
|
3935
3963
|
if (tmp0_subject instanceof Any) {
|
|
3936
|
-
tmp = _this__u8e3s4.
|
|
3964
|
+
tmp = _this__u8e3s4.il(true);
|
|
3937
3965
|
} else {
|
|
3938
3966
|
if (tmp0_subject instanceof Primitive) {
|
|
3939
|
-
tmp = _this__u8e3s4.
|
|
3967
|
+
tmp = _this__u8e3s4.ml(VOID, true);
|
|
3940
3968
|
} else {
|
|
3941
3969
|
noWhenBranchMatchedException();
|
|
3942
3970
|
}
|