@flock/wirespec 0.6.3 → 0.7.1
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 +309 -309
- package/kotlin/arrow-arrow-atomic.js +12 -12
- package/kotlin/arrow-arrow-continuations.js +1 -1
- package/kotlin/arrow-arrow-core.js +61 -61
- package/kotlin/kotlin-kotlin-stdlib-js-ir.js +276 -207
- package/kotlin/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin/kotlin-openapi-bindings.js +3505 -3507
- package/kotlin/kotlin-openapi-bindings.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1381 -1352
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1118 -1108
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/kotlin/wirespec-cli.js +103 -103
- package/kotlin/wirespec-core.js +1115 -986
- package/kotlin/wirespec-core.js.map +1 -1
- package/kotlin/wirespec-lib.js +55 -55
- package/kotlin/wirespec-openapi.js +1634 -1299
- 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
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
'use strict';
|
|
20
20
|
//region block: imports
|
|
21
21
|
var imul = Math.imul;
|
|
22
|
-
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
22
|
+
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.c1;
|
|
23
23
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
|
|
24
|
-
var split = kotlin_kotlin.$_$.
|
|
24
|
+
var split = kotlin_kotlin.$_$.z8;
|
|
25
25
|
var Unit_getInstance = kotlin_kotlin.$_$.i3;
|
|
26
26
|
var addAll = kotlin_kotlin.$_$.z3;
|
|
27
|
-
var VOID = kotlin_kotlin.$_$.
|
|
27
|
+
var VOID = kotlin_kotlin.$_$.bb;
|
|
28
28
|
var joinToString = kotlin_kotlin.$_$.a5;
|
|
29
29
|
var protoOf = kotlin_kotlin.$_$.s7;
|
|
30
30
|
var objectMeta = kotlin_kotlin.$_$.r7;
|
|
@@ -36,57 +36,61 @@
|
|
|
36
36
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.f;
|
|
37
37
|
var ParameterLocation_HEADER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s;
|
|
38
38
|
var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r;
|
|
39
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
40
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
41
|
-
var NotImplementedError = kotlin_kotlin.$_$.
|
|
39
|
+
var emptyList = kotlin_kotlin.$_$.q4;
|
|
40
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.wa;
|
|
41
|
+
var NotImplementedError = kotlin_kotlin.$_$.x9;
|
|
42
42
|
var SchemaObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g;
|
|
43
43
|
var ReferenceObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d;
|
|
44
44
|
var Content = kotlin_community_flock_wirespec_compiler_core.$_$.g;
|
|
45
45
|
var Request = kotlin_community_flock_wirespec_compiler_core.$_$.i;
|
|
46
46
|
var listOf = kotlin_kotlin.$_$.h5;
|
|
47
|
-
var emptyMap = kotlin_kotlin.$_$.
|
|
47
|
+
var emptyMap = kotlin_kotlin.$_$.r4;
|
|
48
48
|
var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b1;
|
|
49
49
|
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.j;
|
|
50
50
|
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.m;
|
|
51
|
-
var
|
|
52
|
-
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.t;
|
|
51
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
53
52
|
var ParameterObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b;
|
|
54
53
|
var Ref = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e;
|
|
55
54
|
var toString = kotlin_kotlin.$_$.x7;
|
|
56
55
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.e1;
|
|
57
|
-
var to = kotlin_kotlin.$_$.
|
|
56
|
+
var to = kotlin_kotlin.$_$.ab;
|
|
58
57
|
var BooleanObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a;
|
|
59
58
|
var ResponseObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f;
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
var
|
|
63
|
-
var
|
|
64
|
-
var
|
|
65
|
-
var
|
|
66
|
-
var
|
|
67
|
-
var
|
|
68
|
-
var classMeta = kotlin_kotlin.$_$.p6;
|
|
69
|
-
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.q;
|
|
59
|
+
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.u;
|
|
60
|
+
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.v;
|
|
61
|
+
var ensureNotNull = kotlin_kotlin.$_$.qa;
|
|
62
|
+
var toSet = kotlin_kotlin.$_$.a6;
|
|
63
|
+
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.n;
|
|
64
|
+
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.r;
|
|
65
|
+
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.s;
|
|
66
|
+
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.q;
|
|
70
67
|
var values = kotlin_community_flock_wirespec_compiler_core.$_$.h;
|
|
71
68
|
var mapCapacity = kotlin_kotlin.$_$.j5;
|
|
72
69
|
var coerceAtLeast = kotlin_kotlin.$_$.y7;
|
|
73
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.o;
|
|
70
|
+
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.o;
|
|
74
71
|
var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.z;
|
|
75
|
-
var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
76
|
-
var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
77
|
-
var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
72
|
+
var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.b1;
|
|
73
|
+
var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.a1;
|
|
74
|
+
var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.z;
|
|
75
|
+
var Identifier = kotlin_community_flock_wirespec_compiler_core.$_$.p;
|
|
76
|
+
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.t;
|
|
78
77
|
var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.y;
|
|
79
|
-
var drop = kotlin_kotlin.$_$.
|
|
78
|
+
var drop = kotlin_kotlin.$_$.p4;
|
|
80
79
|
var charSequenceLength = kotlin_kotlin.$_$.n6;
|
|
81
80
|
var charSequenceGet = kotlin_kotlin.$_$.m6;
|
|
82
|
-
var Char = kotlin_kotlin.$_$.
|
|
81
|
+
var Char = kotlin_kotlin.$_$.p9;
|
|
83
82
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.i1;
|
|
83
|
+
var equals = kotlin_kotlin.$_$.r6;
|
|
84
84
|
var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.k;
|
|
85
85
|
var Param = kotlin_community_flock_wirespec_compiler_core.$_$.l;
|
|
86
86
|
var Path = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c;
|
|
87
87
|
var Path__hashCode_impl_go73kd = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.x;
|
|
88
|
+
var getStringHashCode = kotlin_kotlin.$_$.w6;
|
|
89
|
+
var THROW_CCE = kotlin_kotlin.$_$.ba;
|
|
90
|
+
var classMeta = kotlin_kotlin.$_$.p6;
|
|
88
91
|
var StatusCode = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h;
|
|
89
92
|
var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a1;
|
|
93
|
+
var hashCode = kotlin_kotlin.$_$.x6;
|
|
90
94
|
var toMap = kotlin_kotlin.$_$.z5;
|
|
91
95
|
var Default_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j1;
|
|
92
96
|
var ParameterLocation_QUERY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.w;
|
|
@@ -103,6 +107,7 @@
|
|
|
103
107
|
var ResponseObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.o;
|
|
104
108
|
var BooleanObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i;
|
|
105
109
|
var _Ref___get_value__impl__kxavfe_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f1;
|
|
110
|
+
var getOrNull = kotlin_kotlin.$_$.w4;
|
|
106
111
|
var Path_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k;
|
|
107
112
|
var Path__hashCode_impl_go73kd_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d1;
|
|
108
113
|
var StatusCode_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.q;
|
|
@@ -111,23 +116,21 @@
|
|
|
111
116
|
//region block: pre-declaration
|
|
112
117
|
setMetadataFor(Common, 'Common', objectMeta);
|
|
113
118
|
setMetadataFor(Companion, 'Companion', objectMeta);
|
|
114
|
-
setMetadataFor(SimpleSchema, 'SimpleSchema', classMeta);
|
|
115
119
|
setMetadataFor(FlattenRequest, 'FlattenRequest', classMeta);
|
|
116
120
|
setMetadataFor(FlattenResponse, 'FlattenResponse', classMeta);
|
|
117
121
|
setMetadataFor(OpenApiParser, 'OpenApiParser', classMeta);
|
|
118
122
|
setMetadataFor(Companion_0, 'Companion', objectMeta);
|
|
119
|
-
setMetadataFor(SimpleSchema_0, 'SimpleSchema', classMeta);
|
|
120
123
|
setMetadataFor(FlattenRequest_0, 'FlattenRequest', classMeta);
|
|
121
124
|
setMetadataFor(FlattenResponse_0, 'FlattenResponse', classMeta);
|
|
122
125
|
setMetadataFor(OpenApiParser_0, 'OpenApiParser', classMeta);
|
|
123
126
|
//endregion
|
|
124
127
|
function Common$className$lambda(it) {
|
|
125
|
-
return Companion_getInstance().
|
|
128
|
+
return Companion_getInstance().qi(it);
|
|
126
129
|
}
|
|
127
130
|
function Common() {
|
|
128
131
|
Common_instance = this;
|
|
129
132
|
}
|
|
130
|
-
protoOf(Common).
|
|
133
|
+
protoOf(Common).g1t = function (arg) {
|
|
131
134
|
var tmp$ret$2;
|
|
132
135
|
// Inline function 'kotlin.collections.flatMap' call
|
|
133
136
|
var tmp$ret$1;
|
|
@@ -159,14 +162,14 @@
|
|
|
159
162
|
function Companion() {
|
|
160
163
|
Companion_instance = this;
|
|
161
164
|
}
|
|
162
|
-
protoOf(Companion).
|
|
165
|
+
protoOf(Companion).h1t = function (json) {
|
|
163
166
|
var tmp$ret$1;
|
|
164
167
|
// Inline function 'kotlin.let' call
|
|
165
|
-
var tmp0_let = Default_getInstance().
|
|
168
|
+
var tmp0_let = Default_getInstance().n1a(json);
|
|
166
169
|
// Inline function 'kotlin.contracts.contract' call
|
|
167
170
|
var tmp$ret$0;
|
|
168
171
|
// Inline function 'community.flock.wirespec.openapi.v2.Companion.parse.<anonymous>' call
|
|
169
|
-
tmp$ret$0 = (new OpenApiParser(tmp0_let)).
|
|
172
|
+
tmp$ret$0 = (new OpenApiParser(tmp0_let)).j1t();
|
|
170
173
|
tmp$ret$1 = tmp$ret$0;
|
|
171
174
|
return tmp$ret$1;
|
|
172
175
|
};
|
|
@@ -179,7 +182,7 @@
|
|
|
179
182
|
function parseEndpoints($this) {
|
|
180
183
|
var tmp$ret$48;
|
|
181
184
|
// Inline function 'kotlin.collections.flatMap' call
|
|
182
|
-
var tmp1_flatMap = $this.
|
|
185
|
+
var tmp1_flatMap = $this.i1t_1.x1a_1;
|
|
183
186
|
var tmp$ret$47;
|
|
184
187
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
185
188
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -193,7 +196,7 @@
|
|
|
193
196
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>' call
|
|
194
197
|
var tmp$ret$1;
|
|
195
198
|
// Inline function 'kotlin.collections.component1' call
|
|
196
|
-
tmp$ret$1 = element.v().
|
|
199
|
+
tmp$ret$1 = element.v().i1b_1;
|
|
197
200
|
var path = tmp$ret$1;
|
|
198
201
|
var tmp$ret$2;
|
|
199
202
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -236,7 +239,7 @@
|
|
|
236
239
|
var element_1 = tmp0_iterator_1.e();
|
|
237
240
|
var tmp$ret$6;
|
|
238
241
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
239
|
-
tmp$ret$6 = element_1.
|
|
242
|
+
tmp$ret$6 = element_1.s1c_1.equals(ParameterLocation_QUERY_getInstance());
|
|
240
243
|
if (tmp$ret$6) {
|
|
241
244
|
tmp0_filterTo.a(element_1);
|
|
242
245
|
}
|
|
@@ -252,7 +255,7 @@
|
|
|
252
255
|
var item = tmp0_iterator_2.e();
|
|
253
256
|
var tmp$ret$9;
|
|
254
257
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
255
|
-
tmp$ret$9 =
|
|
258
|
+
tmp$ret$9 = toField_0(item, $this, name);
|
|
256
259
|
tmp1_mapTo.a(tmp$ret$9);
|
|
257
260
|
}
|
|
258
261
|
tmp$ret$10 = tmp1_mapTo;
|
|
@@ -270,7 +273,7 @@
|
|
|
270
273
|
var element_2 = tmp0_iterator_3.e();
|
|
271
274
|
var tmp$ret$12;
|
|
272
275
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
273
|
-
tmp$ret$12 = element_2.
|
|
276
|
+
tmp$ret$12 = element_2.s1c_1.equals(ParameterLocation_HEADER_getInstance());
|
|
274
277
|
if (tmp$ret$12) {
|
|
275
278
|
tmp3_filterTo.a(element_2);
|
|
276
279
|
}
|
|
@@ -286,7 +289,7 @@
|
|
|
286
289
|
var item_0 = tmp0_iterator_4.e();
|
|
287
290
|
var tmp$ret$15;
|
|
288
291
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
289
|
-
tmp$ret$15 =
|
|
292
|
+
tmp$ret$15 = toField_0(item_0, $this, name);
|
|
290
293
|
tmp4_mapTo.a(tmp$ret$15);
|
|
291
294
|
}
|
|
292
295
|
tmp$ret$16 = tmp4_mapTo;
|
|
@@ -306,7 +309,7 @@
|
|
|
306
309
|
var element_3 = tmp0_iterator_5.e();
|
|
307
310
|
var tmp$ret$18;
|
|
308
311
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
309
|
-
tmp$ret$18 = element_3.
|
|
312
|
+
tmp$ret$18 = element_3.s1c_1.equals(ParameterLocation_BODY_getInstance());
|
|
310
313
|
if (tmp$ret$18) {
|
|
311
314
|
tmp6_filterTo.a(element_3);
|
|
312
315
|
}
|
|
@@ -326,8 +329,8 @@
|
|
|
326
329
|
// Inline function 'kotlin.collections.map' call
|
|
327
330
|
var tmp$ret$21;
|
|
328
331
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
329
|
-
var tmp0_elvis_lhs = $this.
|
|
330
|
-
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;
|
|
331
334
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
332
335
|
tmp$ret$21 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
333
336
|
var tmp2_map_0 = tmp$ret$21;
|
|
@@ -339,13 +342,13 @@
|
|
|
339
342
|
var item_1 = tmp0_iterator_7.e();
|
|
340
343
|
var tmp$ret$22;
|
|
341
344
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
342
|
-
var schema = element_4.
|
|
345
|
+
var schema = element_4.v1c_1;
|
|
343
346
|
var tmp;
|
|
344
347
|
if (schema instanceof ReferenceObject) {
|
|
345
348
|
tmp = toReference(schema, $this);
|
|
346
349
|
} else {
|
|
347
350
|
if (schema instanceof SchemaObject) {
|
|
348
|
-
tmp = toReference_0(schema, $this, Common_getInstance().
|
|
351
|
+
tmp = toReference_0(schema, $this, Common_getInstance().g1t([name, 'RequestBody']));
|
|
349
352
|
} else {
|
|
350
353
|
if (schema == null) {
|
|
351
354
|
throw new NotImplementedError();
|
|
@@ -355,7 +358,7 @@
|
|
|
355
358
|
}
|
|
356
359
|
}
|
|
357
360
|
var tmp_0 = tmp;
|
|
358
|
-
var tmp0_elvis_lhs_1 = element_4.
|
|
361
|
+
var tmp0_elvis_lhs_1 = element_4.u1c_1;
|
|
359
362
|
tmp$ret$22 = new Request(new Content(item_1, tmp_0, tmp0_elvis_lhs_1 == null ? false : tmp0_elvis_lhs_1));
|
|
360
363
|
tmp1_mapTo_0.a(tmp$ret$22);
|
|
361
364
|
}
|
|
@@ -383,7 +386,7 @@
|
|
|
383
386
|
// Inline function 'kotlin.collections.flatMap' call
|
|
384
387
|
var tmp$ret$30;
|
|
385
388
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
386
|
-
var tmp10_orEmpty = operation.
|
|
389
|
+
var tmp10_orEmpty = operation.j1c_1;
|
|
387
390
|
var tmp0_elvis_lhs_2 = tmp10_orEmpty;
|
|
388
391
|
tmp$ret$30 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
389
392
|
var tmp12_flatMap = tmp$ret$30;
|
|
@@ -400,7 +403,7 @@
|
|
|
400
403
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
401
404
|
var tmp$ret$32;
|
|
402
405
|
// Inline function 'kotlin.collections.component1' call
|
|
403
|
-
tmp$ret$32 = element_5.v().
|
|
406
|
+
tmp$ret$32 = element_5.v().b1f_1;
|
|
404
407
|
var status = tmp$ret$32;
|
|
405
408
|
var tmp$ret$33;
|
|
406
409
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -410,8 +413,8 @@
|
|
|
410
413
|
// Inline function 'kotlin.collections.map' call
|
|
411
414
|
var tmp$ret$34;
|
|
412
415
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
413
|
-
var tmp0_elvis_lhs_3 = $this.
|
|
414
|
-
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;
|
|
415
418
|
var tmp0_elvis_lhs_4 = tmp0_orEmpty_0;
|
|
416
419
|
tmp$ret$34 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
417
420
|
var tmp2_map_1 = tmp$ret$34;
|
|
@@ -424,7 +427,7 @@
|
|
|
424
427
|
var tmp$ret$37;
|
|
425
428
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
426
429
|
var tmp_2 = _StatusCode___get_value__impl__we50mu(status);
|
|
427
|
-
var tmp0_safe_receiver = resolve_1(res, $this).
|
|
430
|
+
var tmp0_safe_receiver = resolve_1(res, $this).f1f_1;
|
|
428
431
|
var tmp_3;
|
|
429
432
|
if (tmp0_safe_receiver == null) {
|
|
430
433
|
tmp_3 = null;
|
|
@@ -440,7 +443,7 @@
|
|
|
440
443
|
tmp_4 = toReference(tmp0_safe_receiver, $this);
|
|
441
444
|
} else {
|
|
442
445
|
if (tmp0_subject instanceof SchemaObject) {
|
|
443
|
-
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']));
|
|
444
447
|
} else {
|
|
445
448
|
noWhenBranchMatchedException();
|
|
446
449
|
}
|
|
@@ -476,69 +479,66 @@
|
|
|
476
479
|
return tmp$ret$48;
|
|
477
480
|
}
|
|
478
481
|
function parseRequestBody($this) {
|
|
479
|
-
return flatMapRequests($this.
|
|
482
|
+
return flatMapRequests($this.i1t_1, $this, OpenApiParser$parseRequestBody$lambda($this));
|
|
480
483
|
}
|
|
481
484
|
function parseResponseBody($this) {
|
|
482
|
-
return flatMapResponses($this.
|
|
485
|
+
return flatMapResponses($this.i1t_1, $this, OpenApiParser$parseResponseBody$lambda($this));
|
|
483
486
|
}
|
|
484
487
|
function parseDefinitions($this) {
|
|
485
|
-
var
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
488
|
+
var tmp$ret$8;
|
|
489
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
490
|
+
var tmp$ret$4;
|
|
491
|
+
// Inline function 'kotlin.collections.filter' call
|
|
492
|
+
var tmp$ret$0;
|
|
493
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
494
|
+
var tmp0_orEmpty = $this.i1t_1.y1a_1;
|
|
495
|
+
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
496
|
+
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
497
|
+
var tmp2_filter = tmp$ret$0;
|
|
498
|
+
var tmp$ret$3;
|
|
499
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
500
|
+
var tmp1_filterTo = LinkedHashMap_init_$Create$();
|
|
501
|
+
var tmp$ret$1;
|
|
502
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
503
|
+
tmp$ret$1 = tmp2_filter.u().c();
|
|
504
|
+
var tmp0_iterator = tmp$ret$1;
|
|
505
|
+
while (tmp0_iterator.d()) {
|
|
506
|
+
var element = tmp0_iterator.e();
|
|
492
507
|
var tmp$ret$2;
|
|
493
|
-
// Inline function '
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
tmp$ret$0 = tmp0_safe_receiver.u().c();
|
|
498
|
-
var tmp0_iterator = tmp$ret$0;
|
|
499
|
-
while (tmp0_iterator.d()) {
|
|
500
|
-
var element = tmp0_iterator.e();
|
|
501
|
-
var tmp$ret$1;
|
|
502
|
-
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
503
|
-
tmp$ret$1 = flatten(element.w(), $this, Common_getInstance().z1s([element.v()]));
|
|
504
|
-
var list = tmp$ret$1;
|
|
505
|
-
addAll(tmp0_flatMapTo, list);
|
|
508
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
509
|
+
tmp$ret$2 = element.w().x1e_1 == null;
|
|
510
|
+
if (tmp$ret$2) {
|
|
511
|
+
tmp1_filterTo.k3(element.v(), element.w());
|
|
506
512
|
}
|
|
507
|
-
tmp$ret$2 = tmp0_flatMapTo;
|
|
508
|
-
tmp$ret$3 = tmp$ret$2;
|
|
509
|
-
tmp = tmp$ret$3;
|
|
510
513
|
}
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
514
|
+
tmp$ret$3 = tmp1_filterTo;
|
|
515
|
+
tmp$ret$4 = tmp$ret$3;
|
|
516
|
+
var tmp4_flatMap = tmp$ret$4;
|
|
517
|
+
var tmp$ret$7;
|
|
518
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
519
|
+
var tmp3_flatMapTo = ArrayList_init_$Create$();
|
|
520
|
+
var tmp$ret$5;
|
|
521
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
522
|
+
tmp$ret$5 = tmp4_flatMap.u().c();
|
|
523
|
+
var tmp0_iterator_0 = tmp$ret$5;
|
|
524
|
+
while (tmp0_iterator_0.d()) {
|
|
525
|
+
var element_0 = tmp0_iterator_0.e();
|
|
516
526
|
var tmp$ret$6;
|
|
517
|
-
// Inline function '
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
var tmp0_iterator_0 = tmp1_safe_receiver.c();
|
|
522
|
-
while (tmp0_iterator_0.d()) {
|
|
523
|
-
var item = tmp0_iterator_0.e();
|
|
524
|
-
var tmp$ret$4;
|
|
525
|
-
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
526
|
-
tmp$ret$4 = new Type(item.d1t_1, new Shape(item.e1t_1));
|
|
527
|
-
tmp1_mapTo.a(tmp$ret$4);
|
|
528
|
-
}
|
|
529
|
-
tmp$ret$5 = tmp1_mapTo;
|
|
530
|
-
tmp$ret$6 = tmp$ret$5;
|
|
531
|
-
tmp_0 = tmp$ret$6;
|
|
527
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
528
|
+
tmp$ret$6 = flatten(element_0.w(), $this, Common_getInstance().g1t([element_0.v()]));
|
|
529
|
+
var list = tmp$ret$6;
|
|
530
|
+
addAll(tmp3_flatMapTo, list);
|
|
532
531
|
}
|
|
533
|
-
|
|
534
|
-
|
|
532
|
+
tmp$ret$7 = tmp3_flatMapTo;
|
|
533
|
+
tmp$ret$8 = tmp$ret$7;
|
|
534
|
+
return tmp$ret$8;
|
|
535
535
|
}
|
|
536
536
|
function resolveParameters(_this__u8e3s4, $this) {
|
|
537
537
|
var tmp$ret$3;
|
|
538
538
|
// Inline function 'kotlin.collections.map' call
|
|
539
539
|
var tmp$ret$0;
|
|
540
540
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
541
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
541
|
+
var tmp0_orEmpty = _this__u8e3s4.i1c_1;
|
|
542
542
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
543
543
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
544
544
|
var tmp2_map = tmp$ret$0;
|
|
@@ -573,7 +573,7 @@
|
|
|
573
573
|
// Inline function 'kotlin.collections.map' call
|
|
574
574
|
var tmp$ret$0;
|
|
575
575
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
576
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
576
|
+
var tmp0_orEmpty = _this__u8e3s4.x1b_1;
|
|
577
577
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
578
578
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
579
579
|
var tmp2_map = tmp$ret$0;
|
|
@@ -604,11 +604,11 @@
|
|
|
604
604
|
return tmp$ret$3;
|
|
605
605
|
}
|
|
606
606
|
function resolveParameterObject(_this__u8e3s4, $this) {
|
|
607
|
-
var tmp0_safe_receiver = $this.
|
|
607
|
+
var tmp0_safe_receiver = $this.i1t_1.z1a_1;
|
|
608
608
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
|
|
609
609
|
var tmp;
|
|
610
610
|
if (tmp1_elvis_lhs == null) {
|
|
611
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
611
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.r1d_1);
|
|
612
612
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
613
613
|
} else {
|
|
614
614
|
tmp = tmp1_elvis_lhs;
|
|
@@ -616,11 +616,11 @@
|
|
|
616
616
|
return tmp;
|
|
617
617
|
}
|
|
618
618
|
function resolveResponseObject(_this__u8e3s4, $this) {
|
|
619
|
-
var tmp0_safe_receiver = $this.
|
|
619
|
+
var tmp0_safe_receiver = $this.i1t_1.a1b_1;
|
|
620
620
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
|
|
621
621
|
var tmp;
|
|
622
622
|
if (tmp1_elvis_lhs == null) {
|
|
623
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
623
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.r1d_1);
|
|
624
624
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
625
625
|
} else {
|
|
626
626
|
tmp = tmp1_elvis_lhs;
|
|
@@ -628,7 +628,7 @@
|
|
|
628
628
|
return tmp;
|
|
629
629
|
}
|
|
630
630
|
function resolveSchemaObject(_this__u8e3s4, $this) {
|
|
631
|
-
var tmp0_safe_receiver = $this.
|
|
631
|
+
var tmp0_safe_receiver = $this.i1t_1.y1a_1;
|
|
632
632
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
|
|
633
633
|
var tmp;
|
|
634
634
|
if (tmp1_safe_receiver == null) {
|
|
@@ -646,7 +646,7 @@
|
|
|
646
646
|
var tmp2_elvis_lhs = tmp;
|
|
647
647
|
var tmp_0;
|
|
648
648
|
if (tmp2_elvis_lhs == null) {
|
|
649
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
649
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.r1d_1);
|
|
650
650
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
651
651
|
} else {
|
|
652
652
|
tmp_0 = tmp2_elvis_lhs;
|
|
@@ -714,160 +714,223 @@
|
|
|
714
714
|
return tmp;
|
|
715
715
|
}
|
|
716
716
|
function flatten(_this__u8e3s4, $this, name) {
|
|
717
|
-
var tmp0_subject = _this__u8e3s4.m1e_1;
|
|
718
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
719
717
|
var tmp;
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
718
|
+
if (!(_this__u8e3s4.x1e_1 == null)) {
|
|
719
|
+
var tmp0_subject = _this__u8e3s4.x1e_1;
|
|
720
|
+
var tmp_0;
|
|
721
|
+
if (tmp0_subject instanceof BooleanObject) {
|
|
722
|
+
tmp_0 = emptyList();
|
|
723
|
+
} else {
|
|
724
|
+
tmp_0 = flatten(resolve_0(ensureNotNull(_this__u8e3s4.x1e_1), $this), $this, name);
|
|
725
|
+
}
|
|
726
|
+
tmp = tmp_0;
|
|
727
|
+
} else if (!(_this__u8e3s4.v1e_1 == null)) {
|
|
728
|
+
var tmp$ret$3;
|
|
729
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
730
|
+
var tmp$ret$0;
|
|
731
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
732
|
+
var tmp0_orEmpty = _this__u8e3s4.v1e_1;
|
|
733
|
+
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
734
|
+
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
735
|
+
var tmp2_flatMap = tmp$ret$0;
|
|
736
|
+
var tmp$ret$2;
|
|
737
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
738
|
+
var tmp1_flatMapTo = ArrayList_init_$Create$();
|
|
739
|
+
var tmp0_iterator = tmp2_flatMap.c();
|
|
740
|
+
while (tmp0_iterator.d()) {
|
|
741
|
+
var element = tmp0_iterator.e();
|
|
742
|
+
var tmp$ret$1;
|
|
743
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
744
|
+
tmp$ret$1 = toField(resolve(element, $this), $this, name);
|
|
745
|
+
var list = tmp$ret$1;
|
|
746
|
+
addAll(tmp1_flatMapTo, list);
|
|
747
|
+
}
|
|
748
|
+
tmp$ret$2 = tmp1_flatMapTo;
|
|
749
|
+
tmp$ret$3 = tmp$ret$2;
|
|
750
|
+
var tmp_1 = listOf(new Type(name, new Shape(tmp$ret$3)));
|
|
751
|
+
var tmp$ret$13;
|
|
752
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
753
|
+
var tmp4_flatMap = ensureNotNull(_this__u8e3s4.v1e_1);
|
|
754
|
+
var tmp$ret$12;
|
|
755
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
756
|
+
var tmp3_flatMapTo = ArrayList_init_$Create$();
|
|
757
|
+
var tmp0_iterator_0 = tmp4_flatMap.c();
|
|
758
|
+
while (tmp0_iterator_0.d()) {
|
|
759
|
+
var element_0 = tmp0_iterator_0.e();
|
|
760
|
+
var tmp$ret$11;
|
|
761
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
762
|
+
var tmp0_subject_0 = element_0;
|
|
763
|
+
var tmp_2;
|
|
764
|
+
if (tmp0_subject_0 instanceof ReferenceObject) {
|
|
765
|
+
tmp_2 = emptyList();
|
|
727
766
|
} else {
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
var
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
tmp$ret$
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
var
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
767
|
+
if (tmp0_subject_0 instanceof SchemaObject) {
|
|
768
|
+
var tmp$ret$10;
|
|
769
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
770
|
+
var tmp$ret$4;
|
|
771
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
772
|
+
var tmp0_orEmpty_0 = element_0.w1e_1;
|
|
773
|
+
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
774
|
+
tmp$ret$4 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
775
|
+
var tmp2_flatMap_0 = tmp$ret$4;
|
|
776
|
+
var tmp$ret$9;
|
|
777
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
778
|
+
var tmp1_flatMapTo_0 = ArrayList_init_$Create$();
|
|
779
|
+
var tmp$ret$5;
|
|
780
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
781
|
+
tmp$ret$5 = tmp2_flatMap_0.u().c();
|
|
782
|
+
var tmp0_iterator_1 = tmp$ret$5;
|
|
783
|
+
while (tmp0_iterator_1.d()) {
|
|
784
|
+
var element_1 = tmp0_iterator_1.e();
|
|
785
|
+
var tmp$ret$8;
|
|
786
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>.<anonymous>' call
|
|
787
|
+
var tmp$ret$6;
|
|
788
|
+
// Inline function 'kotlin.collections.component1' call
|
|
789
|
+
tmp$ret$6 = element_1.v();
|
|
790
|
+
var key = tmp$ret$6;
|
|
791
|
+
var tmp$ret$7;
|
|
792
|
+
// Inline function 'kotlin.collections.component2' call
|
|
793
|
+
tmp$ret$7 = element_1.w();
|
|
794
|
+
var value = tmp$ret$7;
|
|
795
|
+
var tmp0_subject_1 = value;
|
|
796
|
+
var tmp_3;
|
|
797
|
+
if (tmp0_subject_1 instanceof ReferenceObject) {
|
|
798
|
+
tmp_3 = emptyList();
|
|
758
799
|
} else {
|
|
759
|
-
|
|
800
|
+
if (tmp0_subject_1 instanceof SchemaObject) {
|
|
801
|
+
tmp_3 = flatten(value, $this, Common_getInstance().g1t([name, key]));
|
|
802
|
+
} else {
|
|
803
|
+
noWhenBranchMatchedException();
|
|
804
|
+
}
|
|
760
805
|
}
|
|
806
|
+
tmp$ret$8 = tmp_3;
|
|
807
|
+
var list_0 = tmp$ret$8;
|
|
808
|
+
addAll(tmp1_flatMapTo_0, list_0);
|
|
761
809
|
}
|
|
762
|
-
tmp$ret$
|
|
763
|
-
|
|
764
|
-
|
|
810
|
+
tmp$ret$9 = tmp1_flatMapTo_0;
|
|
811
|
+
tmp$ret$10 = tmp$ret$9;
|
|
812
|
+
tmp_2 = tmp$ret$10;
|
|
813
|
+
} else {
|
|
814
|
+
noWhenBranchMatchedException();
|
|
765
815
|
}
|
|
766
|
-
tmp$ret$4 = tmp0_flatMapTo;
|
|
767
|
-
tmp$ret$5 = tmp$ret$4;
|
|
768
|
-
tmp_0 = tmp$ret$5;
|
|
769
816
|
}
|
|
770
|
-
|
|
771
|
-
var
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
817
|
+
tmp$ret$11 = tmp_2;
|
|
818
|
+
var list_1 = tmp$ret$11;
|
|
819
|
+
addAll(tmp3_flatMapTo, list_1);
|
|
820
|
+
}
|
|
821
|
+
tmp$ret$12 = tmp3_flatMapTo;
|
|
822
|
+
tmp$ret$13 = tmp$ret$12;
|
|
823
|
+
tmp = plus(tmp_1, tmp$ret$13);
|
|
824
|
+
} else if (!(_this__u8e3s4.s1e_1 == null)) {
|
|
825
|
+
var tmp$ret$18;
|
|
826
|
+
// Inline function 'kotlin.let' call
|
|
827
|
+
var tmp$ret$16;
|
|
828
|
+
// Inline function 'kotlin.collections.map' call
|
|
829
|
+
var tmp6_map = ensureNotNull(_this__u8e3s4.s1e_1);
|
|
830
|
+
var tmp$ret$15;
|
|
831
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
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();
|
|
836
|
+
var tmp$ret$14;
|
|
837
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
838
|
+
tmp$ret$14 = item.r13();
|
|
839
|
+
tmp5_mapTo.a(tmp$ret$14);
|
|
840
|
+
}
|
|
841
|
+
tmp$ret$15 = tmp5_mapTo;
|
|
842
|
+
tmp$ret$16 = tmp$ret$15;
|
|
843
|
+
var tmp7_let = toSet(tmp$ret$16);
|
|
844
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
845
|
+
var tmp$ret$17;
|
|
846
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
847
|
+
tmp$ret$17 = listOf(new Enum(name, tmp7_let));
|
|
848
|
+
tmp$ret$18 = tmp$ret$17;
|
|
849
|
+
tmp = tmp$ret$18;
|
|
850
|
+
} else {
|
|
851
|
+
var tmp1_subject = _this__u8e3s4.t1e_1;
|
|
852
|
+
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.q4_1;
|
|
853
|
+
var tmp_4;
|
|
854
|
+
switch (tmp0) {
|
|
855
|
+
case -1:
|
|
856
|
+
case 5:
|
|
857
|
+
var tmp2_safe_receiver = _this__u8e3s4.w1e_1;
|
|
858
|
+
var tmp_5;
|
|
859
|
+
if (tmp2_safe_receiver == null) {
|
|
860
|
+
tmp_5 = null;
|
|
780
861
|
} else {
|
|
781
|
-
var tmp$ret$
|
|
782
|
-
// Inline function 'kotlin.collections.
|
|
783
|
-
var tmp$ret$
|
|
784
|
-
// Inline function 'kotlin.collections.
|
|
785
|
-
var
|
|
786
|
-
var tmp$ret$
|
|
862
|
+
var tmp$ret$24;
|
|
863
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
864
|
+
var tmp$ret$23;
|
|
865
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
866
|
+
var tmp8_flatMapTo = ArrayList_init_$Create$();
|
|
867
|
+
var tmp$ret$19;
|
|
787
868
|
// Inline function 'kotlin.collections.iterator' call
|
|
788
|
-
tmp$ret$
|
|
789
|
-
var
|
|
790
|
-
while (
|
|
791
|
-
var
|
|
792
|
-
var tmp$ret$
|
|
869
|
+
tmp$ret$19 = tmp2_safe_receiver.u().c();
|
|
870
|
+
var tmp0_iterator_3 = tmp$ret$19;
|
|
871
|
+
while (tmp0_iterator_3.d()) {
|
|
872
|
+
var element_2 = tmp0_iterator_3.e();
|
|
873
|
+
var tmp$ret$22;
|
|
793
874
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
794
|
-
var tmp$ret$
|
|
875
|
+
var tmp$ret$20;
|
|
795
876
|
// Inline function 'kotlin.collections.component1' call
|
|
796
|
-
tmp$ret$
|
|
797
|
-
var key_0 = tmp$ret$
|
|
798
|
-
var tmp$ret$
|
|
877
|
+
tmp$ret$20 = element_2.v();
|
|
878
|
+
var key_0 = tmp$ret$20;
|
|
879
|
+
var tmp$ret$21;
|
|
799
880
|
// Inline function 'kotlin.collections.component2' call
|
|
800
|
-
tmp$ret$
|
|
801
|
-
var value_0 = tmp$ret$
|
|
802
|
-
var
|
|
803
|
-
var
|
|
804
|
-
if (
|
|
805
|
-
var
|
|
806
|
-
var
|
|
807
|
-
|
|
808
|
-
var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : contains(tmp1_safe_receiver_0, key_0);
|
|
809
|
-
tmp_4 = new Field(tmp_5, tmp_6, !(tmp2_elvis_lhs_0 == null ? false : tmp2_elvis_lhs_0));
|
|
881
|
+
tmp$ret$21 = element_2.w();
|
|
882
|
+
var value_0 = tmp$ret$21;
|
|
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;
|
|
887
|
+
var tmp0_0 = tmp1_subject_0 == null ? -1 : tmp1_subject_0.q4_1;
|
|
888
|
+
tmp_6 = tmp0_0 === 4 ? emptyList() : flatten(value_0, $this, Common_getInstance().g1t([name, key_0]));
|
|
810
889
|
} else {
|
|
811
|
-
if (
|
|
812
|
-
|
|
813
|
-
var tmp_8 = new Custom(getReference(value_0, $this), false);
|
|
814
|
-
var tmp3_safe_receiver = _this__u8e3s4.k1e_1;
|
|
815
|
-
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : contains(tmp3_safe_receiver, key_0);
|
|
816
|
-
tmp_4 = new Field(tmp_7, tmp_8, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
890
|
+
if (tmp0_subject_2 instanceof ReferenceObject) {
|
|
891
|
+
tmp_6 = emptyList();
|
|
817
892
|
} else {
|
|
818
893
|
noWhenBranchMatchedException();
|
|
819
894
|
}
|
|
820
895
|
}
|
|
821
|
-
tmp$ret$
|
|
822
|
-
|
|
896
|
+
tmp$ret$22 = tmp_6;
|
|
897
|
+
var list_2 = tmp$ret$22;
|
|
898
|
+
addAll(tmp8_flatMapTo, list_2);
|
|
823
899
|
}
|
|
824
|
-
tmp$ret$
|
|
825
|
-
tmp$ret$
|
|
826
|
-
|
|
900
|
+
tmp$ret$23 = tmp8_flatMapTo;
|
|
901
|
+
tmp$ret$24 = tmp$ret$23;
|
|
902
|
+
tmp_5 = tmp$ret$24;
|
|
827
903
|
}
|
|
828
|
-
var tmp5_elvis_lhs = tmp_3;
|
|
829
|
-
tmp_2 = listOf(new SimpleSchema(name, tmp5_elvis_lhs == null ? emptyList() : tmp5_elvis_lhs));
|
|
830
|
-
} else {
|
|
831
|
-
tmp_2 = emptyList();
|
|
832
|
-
}
|
|
833
904
|
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
// Inline function 'kotlin.let' call
|
|
845
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
846
|
-
var tmp$ret$12;
|
|
847
|
-
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
848
|
-
var tmp0_subject_2 = tmp6_safe_receiver;
|
|
849
|
-
var tmp_10;
|
|
850
|
-
if (tmp0_subject_2 instanceof ReferenceObject) {
|
|
851
|
-
tmp_10 = emptyList();
|
|
905
|
+
var tmp3_elvis_lhs = tmp_5;
|
|
906
|
+
var fields = tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs;
|
|
907
|
+
var schema = listOf(new Type(name, new Shape(toField(_this__u8e3s4, $this, name))));
|
|
908
|
+
tmp_4 = plus(schema, fields);
|
|
909
|
+
break;
|
|
910
|
+
case 4:
|
|
911
|
+
var it = _this__u8e3s4.u1e_1;
|
|
912
|
+
var tmp_7;
|
|
913
|
+
if (it instanceof ReferenceObject) {
|
|
914
|
+
tmp_7 = emptyList();
|
|
852
915
|
} else {
|
|
853
|
-
if (
|
|
854
|
-
|
|
855
|
-
tmp_10 = tmp1_safe_receiver_1 == null ? null : flatten_0(tmp1_safe_receiver_1, $this, Common_getInstance().z1s([name, 'array']));
|
|
916
|
+
if (it instanceof SchemaObject) {
|
|
917
|
+
tmp_7 = flatten(it, $this, Common_getInstance().g1t([name, 'Array']));
|
|
856
918
|
} else {
|
|
857
|
-
|
|
919
|
+
if (it == null) {
|
|
920
|
+
tmp_7 = emptyList();
|
|
921
|
+
} else {
|
|
922
|
+
noWhenBranchMatchedException();
|
|
923
|
+
}
|
|
858
924
|
}
|
|
859
925
|
}
|
|
860
|
-
tmp$ret$12 = tmp_10;
|
|
861
|
-
tmp$ret$13 = tmp$ret$12;
|
|
862
|
-
tmp_9 = tmp$ret$13;
|
|
863
|
-
}
|
|
864
926
|
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
927
|
+
tmp_4 = tmp_7;
|
|
928
|
+
break;
|
|
929
|
+
default:
|
|
930
|
+
tmp_4 = emptyList();
|
|
931
|
+
break;
|
|
932
|
+
}
|
|
933
|
+
tmp = tmp_4;
|
|
871
934
|
}
|
|
872
935
|
return tmp;
|
|
873
936
|
}
|
|
@@ -878,37 +941,13 @@
|
|
|
878
941
|
tmp = flatten(_this__u8e3s4, $this, name);
|
|
879
942
|
} else {
|
|
880
943
|
if (tmp0_subject instanceof ReferenceObject) {
|
|
881
|
-
tmp =
|
|
944
|
+
tmp = emptyList();
|
|
882
945
|
} else {
|
|
883
946
|
noWhenBranchMatchedException();
|
|
884
947
|
}
|
|
885
948
|
}
|
|
886
949
|
return tmp;
|
|
887
950
|
}
|
|
888
|
-
function SimpleSchema(name, properties) {
|
|
889
|
-
this.d1t_1 = name;
|
|
890
|
-
this.e1t_1 = properties;
|
|
891
|
-
}
|
|
892
|
-
protoOf(SimpleSchema).toString = function () {
|
|
893
|
-
return 'SimpleSchema(name=' + this.d1t_1 + ', properties=' + this.e1t_1 + ')';
|
|
894
|
-
};
|
|
895
|
-
protoOf(SimpleSchema).hashCode = function () {
|
|
896
|
-
var result = getStringHashCode(this.d1t_1);
|
|
897
|
-
result = imul(result, 31) + hashCode(this.e1t_1) | 0;
|
|
898
|
-
return result;
|
|
899
|
-
};
|
|
900
|
-
protoOf(SimpleSchema).equals = function (other) {
|
|
901
|
-
if (this === other)
|
|
902
|
-
return true;
|
|
903
|
-
if (!(other instanceof SimpleSchema))
|
|
904
|
-
return false;
|
|
905
|
-
var tmp0_other_with_cast = other instanceof SimpleSchema ? other : THROW_CCE();
|
|
906
|
-
if (!(this.d1t_1 === tmp0_other_with_cast.d1t_1))
|
|
907
|
-
return false;
|
|
908
|
-
if (!equals(this.e1t_1, tmp0_other_with_cast.e1t_1))
|
|
909
|
-
return false;
|
|
910
|
-
return true;
|
|
911
|
-
};
|
|
912
951
|
function toReference(_this__u8e3s4, $this) {
|
|
913
952
|
var tmp$ret$1;
|
|
914
953
|
// Inline function 'kotlin.let' call
|
|
@@ -918,134 +957,121 @@
|
|
|
918
957
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
|
|
919
958
|
var referencingObject = tmp0_let.i3();
|
|
920
959
|
var schema = tmp0_let.j3();
|
|
921
|
-
var additionalProperties = schema.q1e_1;
|
|
922
960
|
var tmp;
|
|
923
|
-
if (
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
if (additionalProperties instanceof
|
|
927
|
-
|
|
961
|
+
if (!(schema.x1e_1 == null)) {
|
|
962
|
+
var additionalProperties = ensureNotNull(schema.x1e_1);
|
|
963
|
+
var tmp_0;
|
|
964
|
+
if (additionalProperties instanceof BooleanObject) {
|
|
965
|
+
tmp_0 = new Any(false, true);
|
|
928
966
|
} else {
|
|
929
|
-
if (additionalProperties instanceof
|
|
930
|
-
|
|
967
|
+
if (additionalProperties instanceof ReferenceObject) {
|
|
968
|
+
tmp_0 = toMap_0(toReference(additionalProperties, $this));
|
|
931
969
|
} else {
|
|
932
|
-
if (additionalProperties
|
|
933
|
-
|
|
934
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
935
|
-
var tmp_0;
|
|
936
|
-
if (tmp0 === 4) {
|
|
937
|
-
var items = schema.n1e_1;
|
|
938
|
-
var tmp_1;
|
|
939
|
-
if (items instanceof ReferenceObject) {
|
|
940
|
-
tmp_1 = new Custom(Common_getInstance().z1s([getReference(items, $this)]), true);
|
|
941
|
-
} else {
|
|
942
|
-
if (items instanceof SchemaObject) {
|
|
943
|
-
tmp_1 = new Custom(Common_getInstance().z1s([getReference(referencingObject, $this), 'Array']), true);
|
|
944
|
-
} else {
|
|
945
|
-
if (items == null) {
|
|
946
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.k1d_1);
|
|
947
|
-
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
948
|
-
} else {
|
|
949
|
-
noWhenBranchMatchedException();
|
|
950
|
-
}
|
|
951
|
-
}
|
|
952
|
-
}
|
|
953
|
-
tmp_0 = tmp_1;
|
|
954
|
-
} else {
|
|
955
|
-
tmp_0 = new Custom(Common_getInstance().z1s([getReference(referencingObject, $this)]), false);
|
|
956
|
-
}
|
|
957
|
-
tmp = tmp_0;
|
|
970
|
+
if (additionalProperties instanceof SchemaObject) {
|
|
971
|
+
tmp_0 = toMap_0(toReference_0(additionalProperties, $this, getReference(_this__u8e3s4, $this)));
|
|
958
972
|
} else {
|
|
959
973
|
noWhenBranchMatchedException();
|
|
960
974
|
}
|
|
961
975
|
}
|
|
962
976
|
}
|
|
977
|
+
tmp = tmp_0;
|
|
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);
|
|
982
|
+
} else {
|
|
983
|
+
var tmp0_subject = schema.t1e_1;
|
|
984
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
985
|
+
var tmp_1;
|
|
986
|
+
if (tmp0 === 4) {
|
|
987
|
+
var items = schema.u1e_1;
|
|
988
|
+
var tmp_2;
|
|
989
|
+
if (items instanceof ReferenceObject) {
|
|
990
|
+
tmp_2 = new Custom(Common_getInstance().g1t([getReference(items, $this)]), true);
|
|
991
|
+
} else {
|
|
992
|
+
if (items instanceof SchemaObject) {
|
|
993
|
+
tmp_2 = new Custom(Common_getInstance().g1t([getReference(referencingObject, $this), 'Array']), true);
|
|
994
|
+
} else {
|
|
995
|
+
if (items == null) {
|
|
996
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.r1d_1);
|
|
997
|
+
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
998
|
+
} else {
|
|
999
|
+
noWhenBranchMatchedException();
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
tmp_1 = tmp_2;
|
|
1004
|
+
} else {
|
|
1005
|
+
tmp_1 = new Custom(Common_getInstance().g1t([getReference(referencingObject, $this)]), false);
|
|
1006
|
+
}
|
|
1007
|
+
tmp = tmp_1;
|
|
963
1008
|
}
|
|
964
1009
|
tmp$ret$0 = tmp;
|
|
965
1010
|
tmp$ret$1 = tmp$ret$0;
|
|
966
1011
|
return tmp$ret$1;
|
|
967
1012
|
}
|
|
968
1013
|
function toReference_0(_this__u8e3s4, $this, name) {
|
|
969
|
-
var type = _this__u8e3s4.m1e_1;
|
|
970
|
-
var tmp0 = type == null ? -1 : type.q4_1;
|
|
971
1014
|
var tmp;
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
break;
|
|
995
|
-
}
|
|
1015
|
+
if (!(_this__u8e3s4.s1e_1 == null)) {
|
|
1016
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.x1e_1 == null));
|
|
1017
|
+
} else {
|
|
1018
|
+
var type = _this__u8e3s4.t1e_1;
|
|
1019
|
+
var tmp0 = type == null ? -1 : type.q4_1;
|
|
1020
|
+
var tmp_0;
|
|
1021
|
+
switch (tmp0) {
|
|
1022
|
+
case 0:
|
|
1023
|
+
case 2:
|
|
1024
|
+
case 1:
|
|
1025
|
+
case 3:
|
|
1026
|
+
tmp_0 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.x1e_1 == null));
|
|
1027
|
+
break;
|
|
1028
|
+
case -1:
|
|
1029
|
+
case 5:
|
|
1030
|
+
var tmp_1;
|
|
1031
|
+
var tmp_2 = _this__u8e3s4.x1e_1;
|
|
1032
|
+
if (tmp_2 instanceof BooleanObject) {
|
|
1033
|
+
tmp_1 = new Any(false, !(_this__u8e3s4.x1e_1 == null));
|
|
1034
|
+
} else {
|
|
1035
|
+
tmp_1 = new Custom(name, false, !(_this__u8e3s4.x1e_1 == null));
|
|
1036
|
+
}
|
|
996
1037
|
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
case 1:
|
|
1008
|
-
case 2:
|
|
1009
|
-
case 3:
|
|
1010
|
-
tmp_0 = new Primitive(toPrimitive(t_0, $this), true);
|
|
1011
|
-
break;
|
|
1012
|
-
default:
|
|
1013
|
-
var it = _this__u8e3s4.n1e_1;
|
|
1014
|
-
var tmp_1;
|
|
1015
|
-
if (it instanceof ReferenceObject) {
|
|
1016
|
-
tmp_1 = toReference(it, $this).fl(VOID, true);
|
|
1038
|
+
tmp_0 = tmp_1;
|
|
1039
|
+
break;
|
|
1040
|
+
case 4:
|
|
1041
|
+
var it = _this__u8e3s4.u1e_1;
|
|
1042
|
+
var tmp_3;
|
|
1043
|
+
if (it instanceof ReferenceObject) {
|
|
1044
|
+
tmp_3 = toIterable(toReference(it, $this));
|
|
1045
|
+
} else {
|
|
1046
|
+
if (it instanceof SchemaObject) {
|
|
1047
|
+
tmp_3 = toIterable(toReference_0(it, $this, name));
|
|
1017
1048
|
} else {
|
|
1018
|
-
if (it
|
|
1019
|
-
|
|
1049
|
+
if (it == null) {
|
|
1050
|
+
var tmp0_error = 'When schema is of type array items cannot be null for name: ' + name;
|
|
1051
|
+
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
1020
1052
|
} else {
|
|
1021
|
-
|
|
1022
|
-
var tmp0_error = 'When schema is of type array items cannot be null for name: ' + name;
|
|
1023
|
-
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
1024
|
-
} else {
|
|
1025
|
-
noWhenBranchMatchedException();
|
|
1026
|
-
}
|
|
1053
|
+
noWhenBranchMatchedException();
|
|
1027
1054
|
}
|
|
1028
1055
|
}
|
|
1056
|
+
}
|
|
1029
1057
|
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
}
|
|
1042
|
-
return tmp;
|
|
1058
|
+
tmp_0 = tmp_3;
|
|
1059
|
+
break;
|
|
1060
|
+
case 6:
|
|
1061
|
+
throw new NotImplementedError('An operation is not implemented: Type file not implemented');
|
|
1062
|
+
default:
|
|
1063
|
+
noWhenBranchMatchedException();
|
|
1064
|
+
break;
|
|
1065
|
+
}
|
|
1066
|
+
tmp = tmp_0;
|
|
1067
|
+
}
|
|
1068
|
+
return tmp;
|
|
1043
1069
|
}
|
|
1044
1070
|
function toOperationList(_this__u8e3s4, $this) {
|
|
1045
1071
|
var tmp$ret$2;
|
|
1046
1072
|
// Inline function 'kotlin.collections.associateWith' call
|
|
1047
1073
|
var tmp0_associateWith = values();
|
|
1048
|
-
var result = LinkedHashMap_init_$Create$(coerceAtLeast(mapCapacity(tmp0_associateWith.length), 16));
|
|
1074
|
+
var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(tmp0_associateWith.length), 16));
|
|
1049
1075
|
var tmp$ret$1;
|
|
1050
1076
|
// Inline function 'kotlin.collections.associateWithTo' call
|
|
1051
1077
|
var indexedObject = tmp0_associateWith;
|
|
@@ -1061,28 +1087,28 @@
|
|
|
1061
1087
|
var tmp;
|
|
1062
1088
|
switch (tmp0) {
|
|
1063
1089
|
case 0:
|
|
1064
|
-
tmp = _this__u8e3s4.
|
|
1090
|
+
tmp = _this__u8e3s4.o1b_1;
|
|
1065
1091
|
break;
|
|
1066
1092
|
case 1:
|
|
1067
|
-
tmp = _this__u8e3s4.
|
|
1093
|
+
tmp = _this__u8e3s4.q1b_1;
|
|
1068
1094
|
break;
|
|
1069
1095
|
case 2:
|
|
1070
|
-
tmp = _this__u8e3s4.
|
|
1096
|
+
tmp = _this__u8e3s4.p1b_1;
|
|
1071
1097
|
break;
|
|
1072
1098
|
case 3:
|
|
1073
|
-
tmp = _this__u8e3s4.
|
|
1099
|
+
tmp = _this__u8e3s4.r1b_1;
|
|
1074
1100
|
break;
|
|
1075
1101
|
case 4:
|
|
1076
|
-
tmp = _this__u8e3s4.
|
|
1102
|
+
tmp = _this__u8e3s4.s1b_1;
|
|
1077
1103
|
break;
|
|
1078
1104
|
case 5:
|
|
1079
|
-
tmp = _this__u8e3s4.
|
|
1105
|
+
tmp = _this__u8e3s4.t1b_1;
|
|
1080
1106
|
break;
|
|
1081
1107
|
case 6:
|
|
1082
|
-
tmp = _this__u8e3s4.
|
|
1108
|
+
tmp = _this__u8e3s4.u1b_1;
|
|
1083
1109
|
break;
|
|
1084
1110
|
case 7:
|
|
1085
|
-
tmp = _this__u8e3s4.
|
|
1111
|
+
tmp = _this__u8e3s4.v1b_1;
|
|
1086
1112
|
break;
|
|
1087
1113
|
default:
|
|
1088
1114
|
noWhenBranchMatchedException();
|
|
@@ -1096,7 +1122,7 @@
|
|
|
1096
1122
|
return filterNotNullValues(tmp$ret$2);
|
|
1097
1123
|
}
|
|
1098
1124
|
function getReference(_this__u8e3s4, $this) {
|
|
1099
|
-
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
1125
|
+
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.r1d_1), ['/']).h(2);
|
|
1100
1126
|
}
|
|
1101
1127
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
1102
1128
|
var tmp0_subject = _this__u8e3s4;
|
|
@@ -1120,7 +1146,61 @@
|
|
|
1120
1146
|
}
|
|
1121
1147
|
return tmp;
|
|
1122
1148
|
}
|
|
1123
|
-
function toField(_this__u8e3s4, $this) {
|
|
1149
|
+
function toField(_this__u8e3s4, $this, name) {
|
|
1150
|
+
var tmp$ret$6;
|
|
1151
|
+
// Inline function 'kotlin.collections.map' call
|
|
1152
|
+
var tmp$ret$0;
|
|
1153
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
1154
|
+
var tmp0_orEmpty = _this__u8e3s4.w1e_1;
|
|
1155
|
+
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1156
|
+
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1157
|
+
var tmp2_map = tmp$ret$0;
|
|
1158
|
+
var tmp$ret$5;
|
|
1159
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
1160
|
+
var tmp1_mapTo = ArrayList_init_$Create$_0(tmp2_map.f());
|
|
1161
|
+
var tmp$ret$1;
|
|
1162
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
1163
|
+
tmp$ret$1 = tmp2_map.u().c();
|
|
1164
|
+
var tmp0_iterator = tmp$ret$1;
|
|
1165
|
+
while (tmp0_iterator.d()) {
|
|
1166
|
+
var item = tmp0_iterator.e();
|
|
1167
|
+
var tmp$ret$4;
|
|
1168
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1169
|
+
var tmp$ret$2;
|
|
1170
|
+
// Inline function 'kotlin.collections.component1' call
|
|
1171
|
+
tmp$ret$2 = item.v();
|
|
1172
|
+
var key = tmp$ret$2;
|
|
1173
|
+
var tmp$ret$3;
|
|
1174
|
+
// Inline function 'kotlin.collections.component2' call
|
|
1175
|
+
tmp$ret$3 = item.w();
|
|
1176
|
+
var value = tmp$ret$3;
|
|
1177
|
+
var tmp0_subject = value;
|
|
1178
|
+
var tmp;
|
|
1179
|
+
if (tmp0_subject instanceof SchemaObject) {
|
|
1180
|
+
var tmp_0 = new Identifier(key);
|
|
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);
|
|
1184
|
+
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
1185
|
+
} else {
|
|
1186
|
+
if (tmp0_subject instanceof ReferenceObject) {
|
|
1187
|
+
var tmp_2 = new Identifier(key);
|
|
1188
|
+
var tmp_3 = toReference(value, $this);
|
|
1189
|
+
var tmp3_safe_receiver = _this__u8e3s4.r1e_1;
|
|
1190
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.i1(key);
|
|
1191
|
+
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
1192
|
+
} else {
|
|
1193
|
+
noWhenBranchMatchedException();
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
tmp$ret$4 = tmp;
|
|
1197
|
+
tmp1_mapTo.a(tmp$ret$4);
|
|
1198
|
+
}
|
|
1199
|
+
tmp$ret$5 = tmp1_mapTo;
|
|
1200
|
+
tmp$ret$6 = tmp$ret$5;
|
|
1201
|
+
return tmp$ret$6;
|
|
1202
|
+
}
|
|
1203
|
+
function toField_0(_this__u8e3s4, $this, name) {
|
|
1124
1204
|
var tmp$ret$7;
|
|
1125
1205
|
// Inline function 'kotlin.let' call
|
|
1126
1206
|
var tmp$ret$5;
|
|
@@ -1129,63 +1209,69 @@
|
|
|
1129
1209
|
// Inline function 'kotlin.contracts.contract' call
|
|
1130
1210
|
var tmp$ret$4;
|
|
1131
1211
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1132
|
-
var type = tmp0_let.p1c_1;
|
|
1133
|
-
var tmp0 = type == null ? -1 : type.q4_1;
|
|
1134
1212
|
var tmp;
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
tmp$ret$1 = tmp$ret$0;
|
|
1148
|
-
|
|
1149
|
-
tmp = tmp$ret$1;
|
|
1150
|
-
break;
|
|
1151
|
-
case 4:
|
|
1152
|
-
var tmp0_safe_receiver = tmp0_let.q1c_1;
|
|
1153
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve(tmp0_safe_receiver, $this);
|
|
1154
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m1e_1;
|
|
1155
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toPrimitive(tmp2_safe_receiver, $this);
|
|
1156
|
-
var tmp_0;
|
|
1157
|
-
if (tmp3_safe_receiver == null) {
|
|
1158
|
-
tmp_0 = null;
|
|
1159
|
-
} else {
|
|
1160
|
-
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;
|
|
1161
1225
|
// Inline function 'kotlin.let' call
|
|
1226
|
+
var tmp0_let_0 = toPrimitive(type, $this);
|
|
1162
1227
|
// Inline function 'kotlin.contracts.contract' call
|
|
1163
|
-
var tmp$ret$
|
|
1228
|
+
var tmp$ret$0;
|
|
1164
1229
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>.<anonymous>' call
|
|
1165
|
-
tmp$ret$
|
|
1166
|
-
tmp$ret$
|
|
1167
|
-
tmp_0 = tmp$ret$3;
|
|
1168
|
-
}
|
|
1230
|
+
tmp$ret$0 = new Primitive(tmp0_let_0, false);
|
|
1231
|
+
tmp$ret$1 = tmp$ret$0;
|
|
1169
1232
|
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
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
|
+
}
|
|
1177
1253
|
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
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;
|
|
1189
1275
|
}
|
|
1190
1276
|
tmp$ret$4 = tmp;
|
|
1191
1277
|
tmp$ret$5 = tmp$ret$4;
|
|
@@ -1193,9 +1279,9 @@
|
|
|
1193
1279
|
// Inline function 'kotlin.contracts.contract' call
|
|
1194
1280
|
var tmp$ret$6;
|
|
1195
1281
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1196
|
-
var
|
|
1197
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1198
|
-
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));
|
|
1199
1285
|
tmp$ret$7 = tmp$ret$6;
|
|
1200
1286
|
return tmp$ret$7;
|
|
1201
1287
|
}
|
|
@@ -1247,7 +1333,7 @@
|
|
|
1247
1333
|
var element = tmp0_iterator_0.e();
|
|
1248
1334
|
var tmp$ret$3;
|
|
1249
1335
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1250
|
-
tmp$ret$3 = element.
|
|
1336
|
+
tmp$ret$3 = element.r1c_1 === param;
|
|
1251
1337
|
if (tmp$ret$3) {
|
|
1252
1338
|
tmp$ret$4 = element;
|
|
1253
1339
|
break $l$block;
|
|
@@ -1266,7 +1352,7 @@
|
|
|
1266
1352
|
// Inline function 'kotlin.contracts.contract' call
|
|
1267
1353
|
var tmp$ret$6;
|
|
1268
1354
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1269
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver.
|
|
1355
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver.w1c_1;
|
|
1270
1356
|
tmp$ret$6 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, $this);
|
|
1271
1357
|
tmp$ret$7 = tmp$ret$6;
|
|
1272
1358
|
tmp_2 = tmp$ret$7;
|
|
@@ -1306,7 +1392,7 @@
|
|
|
1306
1392
|
}
|
|
1307
1393
|
function toName(_this__u8e3s4, $this, segments, method) {
|
|
1308
1394
|
var tmp0_safe_receiver = _this__u8e3s4;
|
|
1309
|
-
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;
|
|
1310
1396
|
var tmp;
|
|
1311
1397
|
if (tmp1_safe_receiver == null) {
|
|
1312
1398
|
tmp = null;
|
|
@@ -1316,7 +1402,7 @@
|
|
|
1316
1402
|
// Inline function 'kotlin.contracts.contract' call
|
|
1317
1403
|
var tmp$ret$0;
|
|
1318
1404
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
1319
|
-
tmp$ret$0 = Common_getInstance().
|
|
1405
|
+
tmp$ret$0 = Common_getInstance().g1t([tmp1_safe_receiver]);
|
|
1320
1406
|
tmp$ret$1 = tmp$ret$0;
|
|
1321
1407
|
tmp = tmp$ret$1;
|
|
1322
1408
|
}
|
|
@@ -1338,21 +1424,21 @@
|
|
|
1338
1424
|
return tmp_0;
|
|
1339
1425
|
}
|
|
1340
1426
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
1341
|
-
this.
|
|
1342
|
-
this.
|
|
1343
|
-
this.
|
|
1344
|
-
this.
|
|
1345
|
-
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;
|
|
1346
1432
|
}
|
|
1347
1433
|
protoOf(FlattenRequest).toString = function () {
|
|
1348
|
-
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 + ')';
|
|
1349
1435
|
};
|
|
1350
1436
|
protoOf(FlattenRequest).hashCode = function () {
|
|
1351
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1352
|
-
result = imul(result, 31) + this.
|
|
1353
|
-
result = imul(result, 31) + this.
|
|
1354
|
-
result = imul(result, 31) + this.
|
|
1355
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1437
|
+
var result = Path__hashCode_impl_go73kd(this.k1t_1);
|
|
1438
|
+
result = imul(result, 31) + this.l1t_1.hashCode() | 0;
|
|
1439
|
+
result = imul(result, 31) + this.m1t_1.hashCode() | 0;
|
|
1440
|
+
result = imul(result, 31) + this.n1t_1.hashCode() | 0;
|
|
1441
|
+
result = imul(result, 31) + getStringHashCode(this.o1t_1) | 0;
|
|
1356
1442
|
return result;
|
|
1357
1443
|
};
|
|
1358
1444
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -1361,15 +1447,15 @@
|
|
|
1361
1447
|
if (!(other instanceof FlattenRequest))
|
|
1362
1448
|
return false;
|
|
1363
1449
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
1364
|
-
if (!(this.
|
|
1450
|
+
if (!(this.k1t_1 === tmp0_other_with_cast.k1t_1))
|
|
1365
1451
|
return false;
|
|
1366
|
-
if (!this.
|
|
1452
|
+
if (!this.l1t_1.equals(tmp0_other_with_cast.l1t_1))
|
|
1367
1453
|
return false;
|
|
1368
|
-
if (!this.
|
|
1454
|
+
if (!this.m1t_1.equals(tmp0_other_with_cast.m1t_1))
|
|
1369
1455
|
return false;
|
|
1370
|
-
if (!this.
|
|
1456
|
+
if (!this.n1t_1.equals(tmp0_other_with_cast.n1t_1))
|
|
1371
1457
|
return false;
|
|
1372
|
-
if (!(this.
|
|
1458
|
+
if (!(this.o1t_1 === tmp0_other_with_cast.o1t_1))
|
|
1373
1459
|
return false;
|
|
1374
1460
|
return true;
|
|
1375
1461
|
};
|
|
@@ -1378,7 +1464,7 @@
|
|
|
1378
1464
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1379
1465
|
var tmp$ret$15;
|
|
1380
1466
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1381
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
1467
|
+
var tmp1_flatMap = _this__u8e3s4.x1a_1;
|
|
1382
1468
|
var tmp$ret$14;
|
|
1383
1469
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1384
1470
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -1392,7 +1478,7 @@
|
|
|
1392
1478
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
1393
1479
|
var tmp$ret$1;
|
|
1394
1480
|
// Inline function 'kotlin.collections.component1' call
|
|
1395
|
-
tmp$ret$1 = element.v().
|
|
1481
|
+
tmp$ret$1 = element.v().i1b_1;
|
|
1396
1482
|
var path = tmp$ret$1;
|
|
1397
1483
|
var tmp$ret$2;
|
|
1398
1484
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1424,8 +1510,8 @@
|
|
|
1424
1510
|
// Inline function 'kotlin.collections.map' call
|
|
1425
1511
|
var tmp$ret$6;
|
|
1426
1512
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1427
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1428
|
-
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;
|
|
1429
1515
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
1430
1516
|
tmp$ret$6 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1431
1517
|
var tmp2_map = tmp$ret$6;
|
|
@@ -1472,25 +1558,25 @@
|
|
|
1472
1558
|
return tmp$ret$18;
|
|
1473
1559
|
}
|
|
1474
1560
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
1475
|
-
this.
|
|
1476
|
-
this.
|
|
1477
|
-
this.
|
|
1478
|
-
this.
|
|
1479
|
-
this.
|
|
1480
|
-
this.
|
|
1481
|
-
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;
|
|
1482
1568
|
}
|
|
1483
1569
|
protoOf(FlattenResponse).toString = function () {
|
|
1484
|
-
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 + ')';
|
|
1485
1571
|
};
|
|
1486
1572
|
protoOf(FlattenResponse).hashCode = function () {
|
|
1487
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1488
|
-
result = imul(result, 31) + this.
|
|
1489
|
-
result = imul(result, 31) + this.
|
|
1490
|
-
result = imul(result, 31) + this.
|
|
1491
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
1492
|
-
result = imul(result, 31) + hashCode(this.
|
|
1493
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1573
|
+
var result = Path__hashCode_impl_go73kd(this.p1t_1);
|
|
1574
|
+
result = imul(result, 31) + this.q1t_1.hashCode() | 0;
|
|
1575
|
+
result = imul(result, 31) + this.r1t_1.hashCode() | 0;
|
|
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;
|
|
1494
1580
|
return result;
|
|
1495
1581
|
};
|
|
1496
1582
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -1499,19 +1585,19 @@
|
|
|
1499
1585
|
if (!(other instanceof FlattenResponse))
|
|
1500
1586
|
return false;
|
|
1501
1587
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
1502
|
-
if (!(this.
|
|
1588
|
+
if (!(this.p1t_1 === tmp0_other_with_cast.p1t_1))
|
|
1503
1589
|
return false;
|
|
1504
|
-
if (!this.
|
|
1590
|
+
if (!this.q1t_1.equals(tmp0_other_with_cast.q1t_1))
|
|
1505
1591
|
return false;
|
|
1506
|
-
if (!this.
|
|
1592
|
+
if (!this.r1t_1.equals(tmp0_other_with_cast.r1t_1))
|
|
1507
1593
|
return false;
|
|
1508
|
-
if (!this.
|
|
1594
|
+
if (!this.s1t_1.equals(tmp0_other_with_cast.s1t_1))
|
|
1509
1595
|
return false;
|
|
1510
|
-
if (!(this.
|
|
1596
|
+
if (!(this.t1t_1 === tmp0_other_with_cast.t1t_1))
|
|
1511
1597
|
return false;
|
|
1512
|
-
if (!equals(this.
|
|
1598
|
+
if (!equals(this.u1t_1, tmp0_other_with_cast.u1t_1))
|
|
1513
1599
|
return false;
|
|
1514
|
-
if (!(this.
|
|
1600
|
+
if (!(this.v1t_1 === tmp0_other_with_cast.v1t_1))
|
|
1515
1601
|
return false;
|
|
1516
1602
|
return true;
|
|
1517
1603
|
};
|
|
@@ -1520,7 +1606,7 @@
|
|
|
1520
1606
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1521
1607
|
var tmp$ret$22;
|
|
1522
1608
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1523
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
1609
|
+
var tmp1_flatMap = _this__u8e3s4.x1a_1;
|
|
1524
1610
|
var tmp$ret$21;
|
|
1525
1611
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1526
1612
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -1534,7 +1620,7 @@
|
|
|
1534
1620
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
1535
1621
|
var tmp$ret$1;
|
|
1536
1622
|
// Inline function 'kotlin.collections.component1' call
|
|
1537
|
-
tmp$ret$1 = element.v().
|
|
1623
|
+
tmp$ret$1 = element.v().i1b_1;
|
|
1538
1624
|
var path = tmp$ret$1;
|
|
1539
1625
|
var tmp$ret$2;
|
|
1540
1626
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1566,7 +1652,7 @@
|
|
|
1566
1652
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1567
1653
|
var tmp$ret$6;
|
|
1568
1654
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1569
|
-
var tmp0_orEmpty = operation.
|
|
1655
|
+
var tmp0_orEmpty = operation.j1c_1;
|
|
1570
1656
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1571
1657
|
tmp$ret$6 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1572
1658
|
var tmp2_flatMap = tmp$ret$6;
|
|
@@ -1583,7 +1669,7 @@
|
|
|
1583
1669
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
1584
1670
|
var tmp$ret$8;
|
|
1585
1671
|
// Inline function 'kotlin.collections.component1' call
|
|
1586
|
-
tmp$ret$8 = element_1.v().
|
|
1672
|
+
tmp$ret$8 = element_1.v().b1f_1;
|
|
1587
1673
|
var statusCode = tmp$ret$8;
|
|
1588
1674
|
var tmp$ret$9;
|
|
1589
1675
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1593,8 +1679,8 @@
|
|
|
1593
1679
|
// Inline function 'kotlin.collections.map' call
|
|
1594
1680
|
var tmp$ret$10;
|
|
1595
1681
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1596
|
-
var tmp0_elvis_lhs_0 = _this__u8e3s4.
|
|
1597
|
-
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;
|
|
1598
1684
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
1599
1685
|
tmp$ret$10 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
1600
1686
|
var tmp2_map = tmp$ret$10;
|
|
@@ -1648,162 +1734,178 @@
|
|
|
1648
1734
|
}
|
|
1649
1735
|
function OpenApiParser$parseRequestBody$lambda(this$0) {
|
|
1650
1736
|
return function (req) {
|
|
1651
|
-
var
|
|
1652
|
-
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;
|
|
1653
1782
|
if (tmp0_safe_receiver == null) {
|
|
1654
|
-
|
|
1783
|
+
tmp_1 = null;
|
|
1655
1784
|
} else {
|
|
1656
|
-
var tmp$ret$
|
|
1785
|
+
var tmp$ret$8;
|
|
1657
1786
|
// Inline function 'kotlin.collections.map' call
|
|
1658
|
-
var tmp$ret$
|
|
1787
|
+
var tmp$ret$7;
|
|
1659
1788
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1660
|
-
var
|
|
1661
|
-
var
|
|
1662
|
-
while (
|
|
1663
|
-
var
|
|
1664
|
-
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;
|
|
1665
1794
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1666
|
-
tmp$ret$
|
|
1667
|
-
|
|
1795
|
+
tmp$ret$6 = resolve_2(item_0, this$0);
|
|
1796
|
+
tmp1_mapTo.a(tmp$ret$6);
|
|
1668
1797
|
}
|
|
1669
|
-
tmp$ret$
|
|
1670
|
-
tmp$ret$
|
|
1671
|
-
|
|
1798
|
+
tmp$ret$7 = tmp1_mapTo;
|
|
1799
|
+
tmp$ret$8 = tmp$ret$7;
|
|
1800
|
+
tmp_1 = tmp$ret$8;
|
|
1672
1801
|
}
|
|
1673
|
-
var tmp1_safe_receiver =
|
|
1674
|
-
var
|
|
1802
|
+
var tmp1_safe_receiver = tmp_1;
|
|
1803
|
+
var tmp_2;
|
|
1675
1804
|
if (tmp1_safe_receiver == null) {
|
|
1676
|
-
|
|
1805
|
+
tmp_2 = null;
|
|
1677
1806
|
} else {
|
|
1678
|
-
var tmp$ret$
|
|
1807
|
+
var tmp$ret$11;
|
|
1679
1808
|
// Inline function 'kotlin.collections.filter' call
|
|
1680
|
-
var tmp$ret$
|
|
1809
|
+
var tmp$ret$10;
|
|
1681
1810
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1682
|
-
var
|
|
1683
|
-
var
|
|
1684
|
-
while (
|
|
1685
|
-
var
|
|
1686
|
-
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;
|
|
1687
1816
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1688
|
-
tmp$ret$
|
|
1689
|
-
if (tmp$ret$
|
|
1690
|
-
|
|
1817
|
+
tmp$ret$9 = element_0.s1c_1.equals(ParameterLocation_BODY_getInstance());
|
|
1818
|
+
if (tmp$ret$9) {
|
|
1819
|
+
tmp2_filterTo.a(element_0);
|
|
1691
1820
|
}
|
|
1692
1821
|
}
|
|
1693
|
-
tmp$ret$
|
|
1694
|
-
tmp$ret$
|
|
1695
|
-
|
|
1822
|
+
tmp$ret$10 = tmp2_filterTo;
|
|
1823
|
+
tmp$ret$11 = tmp$ret$10;
|
|
1824
|
+
tmp_2 = tmp$ret$11;
|
|
1696
1825
|
}
|
|
1697
|
-
var tmp2_safe_receiver =
|
|
1698
|
-
var
|
|
1826
|
+
var tmp2_safe_receiver = tmp_2;
|
|
1827
|
+
var tmp_3;
|
|
1699
1828
|
if (tmp2_safe_receiver == null) {
|
|
1700
|
-
|
|
1829
|
+
tmp_3 = null;
|
|
1701
1830
|
} else {
|
|
1702
|
-
var tmp$ret$
|
|
1831
|
+
var tmp$ret$15;
|
|
1703
1832
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1704
|
-
var tmp$ret$
|
|
1833
|
+
var tmp$ret$14;
|
|
1705
1834
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1706
|
-
var
|
|
1707
|
-
var
|
|
1708
|
-
while (
|
|
1709
|
-
var
|
|
1710
|
-
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;
|
|
1711
1840
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1712
|
-
var
|
|
1713
|
-
var
|
|
1714
|
-
var name = toName(req.i1t_1, this$0, segments, req.h1t_1);
|
|
1715
|
-
var schema = element_0.o1c_1;
|
|
1716
|
-
var tmp_2;
|
|
1841
|
+
var schema = element_1.v1c_1;
|
|
1842
|
+
var tmp_4;
|
|
1717
1843
|
if (schema instanceof SchemaObject) {
|
|
1718
|
-
var tmp0_subject = schema.
|
|
1844
|
+
var tmp0_subject = schema.t1e_1;
|
|
1719
1845
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
1720
|
-
var
|
|
1846
|
+
var tmp_5;
|
|
1721
1847
|
switch (tmp0) {
|
|
1722
1848
|
case -1:
|
|
1723
1849
|
case 5:
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
var tmp$ret$
|
|
1728
|
-
// Inline function 'kotlin.collections.
|
|
1729
|
-
var
|
|
1730
|
-
var
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
var tmp$ret$6;
|
|
1734
|
-
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
1735
|
-
tmp$ret$6 = new Type(item_0.d1t_1, new Shape(item_0.e1t_1));
|
|
1736
|
-
tmp0_mapTo_0.a(tmp$ret$6);
|
|
1737
|
-
}
|
|
1738
|
-
tmp$ret$7 = tmp0_mapTo_0;
|
|
1739
|
-
tmp$ret$8 = tmp$ret$7;
|
|
1850
|
+
tmp_5 = flatten(schema, this$0, Common_getInstance().g1t([name, 'RequestBody']));
|
|
1851
|
+
break;
|
|
1852
|
+
case 4:
|
|
1853
|
+
var tmp$ret$12;
|
|
1854
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
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']));
|
|
1857
|
+
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1858
|
+
tmp$ret$12 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1740
1859
|
|
|
1741
|
-
|
|
1860
|
+
tmp_5 = tmp$ret$12;
|
|
1742
1861
|
break;
|
|
1743
1862
|
default:
|
|
1744
|
-
|
|
1863
|
+
tmp_5 = emptyList();
|
|
1745
1864
|
break;
|
|
1746
1865
|
}
|
|
1747
|
-
|
|
1866
|
+
tmp_4 = tmp_5;
|
|
1748
1867
|
} else {
|
|
1749
|
-
|
|
1750
|
-
tmp_2 = emptyList();
|
|
1751
|
-
} else {
|
|
1752
|
-
if (schema == null) {
|
|
1753
|
-
tmp_2 = emptyList();
|
|
1754
|
-
} else {
|
|
1755
|
-
noWhenBranchMatchedException();
|
|
1756
|
-
}
|
|
1757
|
-
}
|
|
1868
|
+
tmp_4 = emptyList();
|
|
1758
1869
|
}
|
|
1759
|
-
tmp$ret$
|
|
1760
|
-
var
|
|
1761
|
-
addAll(
|
|
1870
|
+
tmp$ret$13 = tmp_4;
|
|
1871
|
+
var list_0 = tmp$ret$13;
|
|
1872
|
+
addAll(tmp3_flatMapTo, list_0);
|
|
1762
1873
|
}
|
|
1763
|
-
tmp$ret$
|
|
1764
|
-
tmp$ret$
|
|
1765
|
-
|
|
1874
|
+
tmp$ret$14 = tmp3_flatMapTo;
|
|
1875
|
+
tmp$ret$15 = tmp$ret$14;
|
|
1876
|
+
tmp_3 = tmp$ret$15;
|
|
1766
1877
|
}
|
|
1767
|
-
var tmp3_elvis_lhs =
|
|
1768
|
-
|
|
1878
|
+
var tmp3_elvis_lhs = tmp_3;
|
|
1879
|
+
var types = tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs;
|
|
1880
|
+
return plus(enums, types);
|
|
1769
1881
|
};
|
|
1770
1882
|
}
|
|
1771
1883
|
function OpenApiParser$parseResponseBody$lambda(this$0) {
|
|
1772
1884
|
return function (res) {
|
|
1773
|
-
var response = resolve_1(res.
|
|
1774
|
-
var parameters = plus(resolveParameters_0(res.
|
|
1775
|
-
var segments = toSegments(res.
|
|
1776
|
-
var name = toName(res.
|
|
1777
|
-
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;
|
|
1778
1890
|
var tmp;
|
|
1779
1891
|
if (schema instanceof SchemaObject) {
|
|
1780
|
-
var tmp0_subject = schema.
|
|
1892
|
+
var tmp0_subject = schema.t1e_1;
|
|
1781
1893
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
1782
1894
|
var tmp_0;
|
|
1783
1895
|
switch (tmp0) {
|
|
1784
1896
|
case -1:
|
|
1785
1897
|
case 5:
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
var
|
|
1790
|
-
|
|
1791
|
-
var
|
|
1792
|
-
var
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
var tmp0_iterator = tmp1_map.c();
|
|
1796
|
-
while (tmp0_iterator.d()) {
|
|
1797
|
-
var item = tmp0_iterator.e();
|
|
1798
|
-
var tmp$ret$0;
|
|
1799
|
-
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
1800
|
-
tmp$ret$0 = new Type(item.d1t_1, new Shape(item.e1t_1));
|
|
1801
|
-
tmp0_mapTo.a(tmp$ret$0);
|
|
1802
|
-
}
|
|
1803
|
-
tmp$ret$1 = tmp0_mapTo;
|
|
1804
|
-
tmp$ret$2 = tmp$ret$1;
|
|
1898
|
+
tmp_0 = flatten(schema, this$0, Common_getInstance().g1t([name, _StatusCode___get_value__impl__we50mu(res.t1t_1), 'ResponseBody']));
|
|
1899
|
+
break;
|
|
1900
|
+
case 4:
|
|
1901
|
+
var tmp$ret$0;
|
|
1902
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
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']));
|
|
1905
|
+
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1906
|
+
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1805
1907
|
|
|
1806
|
-
tmp_0 = tmp$ret$
|
|
1908
|
+
tmp_0 = tmp$ret$0;
|
|
1807
1909
|
break;
|
|
1808
1910
|
default:
|
|
1809
1911
|
tmp_0 = emptyList();
|
|
@@ -1811,15 +1913,7 @@
|
|
|
1811
1913
|
}
|
|
1812
1914
|
tmp = tmp_0;
|
|
1813
1915
|
} else {
|
|
1814
|
-
|
|
1815
|
-
tmp = emptyList();
|
|
1816
|
-
} else {
|
|
1817
|
-
if (schema == null) {
|
|
1818
|
-
tmp = emptyList();
|
|
1819
|
-
} else {
|
|
1820
|
-
noWhenBranchMatchedException();
|
|
1821
|
-
}
|
|
1822
|
-
}
|
|
1916
|
+
tmp = emptyList();
|
|
1823
1917
|
}
|
|
1824
1918
|
return tmp;
|
|
1825
1919
|
};
|
|
@@ -1828,10 +1922,10 @@
|
|
|
1828
1922
|
var tmp0_subject = it;
|
|
1829
1923
|
var tmp;
|
|
1830
1924
|
if (tmp0_subject instanceof Literal) {
|
|
1831
|
-
tmp = Common_getInstance().
|
|
1925
|
+
tmp = Common_getInstance().g1t([it.sj_1]);
|
|
1832
1926
|
} else {
|
|
1833
1927
|
if (tmp0_subject instanceof Param) {
|
|
1834
|
-
tmp = Common_getInstance().
|
|
1928
|
+
tmp = Common_getInstance().g1t([it.ti_1.ej_1]);
|
|
1835
1929
|
} else {
|
|
1836
1930
|
noWhenBranchMatchedException();
|
|
1837
1931
|
}
|
|
@@ -1840,11 +1934,82 @@
|
|
|
1840
1934
|
}
|
|
1841
1935
|
function OpenApiParser(openApi) {
|
|
1842
1936
|
Companion_getInstance_0();
|
|
1843
|
-
this.
|
|
1937
|
+
this.i1t_1 = openApi;
|
|
1844
1938
|
}
|
|
1845
|
-
protoOf(OpenApiParser).
|
|
1939
|
+
protoOf(OpenApiParser).j1t = function () {
|
|
1846
1940
|
return plus(plus(plus(parseEndpoints(this), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
|
|
1847
1941
|
};
|
|
1942
|
+
function toMap_0(_this__u8e3s4) {
|
|
1943
|
+
var tmp0_subject = _this__u8e3s4;
|
|
1944
|
+
var tmp;
|
|
1945
|
+
if (tmp0_subject instanceof Custom) {
|
|
1946
|
+
tmp = _this__u8e3s4.kl(VOID, VOID, true);
|
|
1947
|
+
} else {
|
|
1948
|
+
if (tmp0_subject instanceof Any) {
|
|
1949
|
+
tmp = _this__u8e3s4.il(VOID, true);
|
|
1950
|
+
} else {
|
|
1951
|
+
if (tmp0_subject instanceof Primitive) {
|
|
1952
|
+
tmp = _this__u8e3s4.ml(VOID, VOID, true);
|
|
1953
|
+
} else {
|
|
1954
|
+
noWhenBranchMatchedException();
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
return tmp;
|
|
1959
|
+
}
|
|
1960
|
+
function isPrimitive(_this__u8e3s4) {
|
|
1961
|
+
var tmp0_subject = _this__u8e3s4;
|
|
1962
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
1963
|
+
var tmp;
|
|
1964
|
+
switch (tmp0) {
|
|
1965
|
+
case 0:
|
|
1966
|
+
tmp = true;
|
|
1967
|
+
break;
|
|
1968
|
+
case 1:
|
|
1969
|
+
tmp = true;
|
|
1970
|
+
break;
|
|
1971
|
+
case 2:
|
|
1972
|
+
tmp = true;
|
|
1973
|
+
break;
|
|
1974
|
+
case 3:
|
|
1975
|
+
tmp = true;
|
|
1976
|
+
break;
|
|
1977
|
+
case 4:
|
|
1978
|
+
tmp = false;
|
|
1979
|
+
break;
|
|
1980
|
+
case 5:
|
|
1981
|
+
tmp = false;
|
|
1982
|
+
break;
|
|
1983
|
+
case 6:
|
|
1984
|
+
tmp = false;
|
|
1985
|
+
break;
|
|
1986
|
+
case -1:
|
|
1987
|
+
tmp = false;
|
|
1988
|
+
break;
|
|
1989
|
+
default:
|
|
1990
|
+
noWhenBranchMatchedException();
|
|
1991
|
+
break;
|
|
1992
|
+
}
|
|
1993
|
+
return tmp;
|
|
1994
|
+
}
|
|
1995
|
+
function toIterable(_this__u8e3s4) {
|
|
1996
|
+
var tmp0_subject = _this__u8e3s4;
|
|
1997
|
+
var tmp;
|
|
1998
|
+
if (tmp0_subject instanceof Custom) {
|
|
1999
|
+
tmp = _this__u8e3s4.kl(VOID, true);
|
|
2000
|
+
} else {
|
|
2001
|
+
if (tmp0_subject instanceof Any) {
|
|
2002
|
+
tmp = _this__u8e3s4.il(true);
|
|
2003
|
+
} else {
|
|
2004
|
+
if (tmp0_subject instanceof Primitive) {
|
|
2005
|
+
tmp = _this__u8e3s4.ml(VOID, true);
|
|
2006
|
+
} else {
|
|
2007
|
+
noWhenBranchMatchedException();
|
|
2008
|
+
}
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
return tmp;
|
|
2012
|
+
}
|
|
1848
2013
|
function filterNotNullValues(_this__u8e3s4) {
|
|
1849
2014
|
var tmp$ret$8;
|
|
1850
2015
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -1902,10 +2067,10 @@
|
|
|
1902
2067
|
function Companion_0() {
|
|
1903
2068
|
Companion_instance_0 = this;
|
|
1904
2069
|
}
|
|
1905
|
-
protoOf(Companion_0).
|
|
2070
|
+
protoOf(Companion_0).h1t = function (json) {
|
|
1906
2071
|
var tmp$ret$1;
|
|
1907
2072
|
// Inline function 'kotlin.let' call
|
|
1908
|
-
var tmp0_let = Default_getInstance_0().
|
|
2073
|
+
var tmp0_let = Default_getInstance_0().n1a(json);
|
|
1909
2074
|
// Inline function 'kotlin.contracts.contract' call
|
|
1910
2075
|
var tmp$ret$0;
|
|
1911
2076
|
// Inline function 'community.flock.wirespec.openapi.v3.Companion.parse.<anonymous>' call
|
|
@@ -1920,13 +2085,13 @@
|
|
|
1920
2085
|
return Companion_instance_0;
|
|
1921
2086
|
}
|
|
1922
2087
|
function parse($this) {
|
|
1923
|
-
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));
|
|
1924
2089
|
}
|
|
1925
2090
|
function parseEndpoint($this) {
|
|
1926
|
-
var tmp$ret$51;
|
|
1927
|
-
// Inline function 'kotlin.collections.flatMap' call
|
|
1928
|
-
var tmp1_flatMap = $this.r1t_1.g1j_1;
|
|
1929
2091
|
var tmp$ret$50;
|
|
2092
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
2093
|
+
var tmp1_flatMap = $this.w1t_1.n1j_1;
|
|
2094
|
+
var tmp$ret$49;
|
|
1930
2095
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1931
2096
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1932
2097
|
var tmp$ret$0;
|
|
@@ -1935,20 +2100,20 @@
|
|
|
1935
2100
|
var tmp0_iterator = tmp$ret$0;
|
|
1936
2101
|
while (tmp0_iterator.d()) {
|
|
1937
2102
|
var element = tmp0_iterator.e();
|
|
1938
|
-
var tmp$ret$
|
|
2103
|
+
var tmp$ret$48;
|
|
1939
2104
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>' call
|
|
1940
2105
|
var tmp$ret$1;
|
|
1941
2106
|
// Inline function 'kotlin.collections.component1' call
|
|
1942
|
-
tmp$ret$1 = element.v().
|
|
2107
|
+
tmp$ret$1 = element.v().v1j_1;
|
|
1943
2108
|
var key = tmp$ret$1;
|
|
1944
2109
|
var tmp$ret$2;
|
|
1945
2110
|
// Inline function 'kotlin.collections.component2' call
|
|
1946
2111
|
tmp$ret$2 = element.w();
|
|
1947
2112
|
var path = tmp$ret$2;
|
|
1948
|
-
var tmp$ret$
|
|
2113
|
+
var tmp$ret$47;
|
|
1949
2114
|
// Inline function 'kotlin.collections.map' call
|
|
1950
2115
|
var tmp1_map = toOperationList_0(path, $this);
|
|
1951
|
-
var tmp$ret$
|
|
2116
|
+
var tmp$ret$46;
|
|
1952
2117
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1953
2118
|
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.f());
|
|
1954
2119
|
var tmp$ret$3;
|
|
@@ -1957,7 +2122,7 @@
|
|
|
1957
2122
|
var tmp0_iterator_0 = tmp$ret$3;
|
|
1958
2123
|
while (tmp0_iterator_0.d()) {
|
|
1959
2124
|
var item = tmp0_iterator_0.e();
|
|
1960
|
-
var tmp$ret$
|
|
2125
|
+
var tmp$ret$45;
|
|
1961
2126
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>' call
|
|
1962
2127
|
var tmp$ret$4;
|
|
1963
2128
|
// Inline function 'kotlin.collections.component1' call
|
|
@@ -1967,162 +2132,156 @@
|
|
|
1967
2132
|
// Inline function 'kotlin.collections.component2' call
|
|
1968
2133
|
tmp$ret$5 = item.w();
|
|
1969
2134
|
var operation = tmp$ret$5;
|
|
1970
|
-
var
|
|
1971
|
-
var tmp$ret$6;
|
|
1972
|
-
// Inline function 'kotlin.collections.orEmpty' call
|
|
1973
|
-
var tmp0_orEmpty = resolveParameters_1(operation, $this);
|
|
1974
|
-
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1975
|
-
tmp$ret$6 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1976
|
-
var parameters = plus(tmp, tmp$ret$6);
|
|
2135
|
+
var parameters = plus(resolveParameters_2(path, $this), resolveParameters_1(operation, $this));
|
|
1977
2136
|
var segments = toSegments_0(key, $this, parameters);
|
|
1978
2137
|
var name = toName_0(operation, $this, segments, method);
|
|
1979
|
-
var tmp$ret$
|
|
2138
|
+
var tmp$ret$11;
|
|
1980
2139
|
// Inline function 'kotlin.collections.map' call
|
|
1981
|
-
var tmp$ret$9;
|
|
1982
|
-
// Inline function 'kotlin.collections.filter' call
|
|
1983
2140
|
var tmp$ret$8;
|
|
2141
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2142
|
+
var tmp$ret$7;
|
|
1984
2143
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1985
|
-
var
|
|
2144
|
+
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
1986
2145
|
var tmp0_iterator_1 = parameters.c();
|
|
1987
2146
|
while (tmp0_iterator_1.d()) {
|
|
1988
2147
|
var element_0 = tmp0_iterator_1.e();
|
|
1989
|
-
var tmp$ret$
|
|
2148
|
+
var tmp$ret$6;
|
|
1990
2149
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1991
|
-
tmp$ret$
|
|
1992
|
-
if (tmp$ret$
|
|
1993
|
-
|
|
2150
|
+
tmp$ret$6 = element_0.p1l_1.equals(ParameterLocation_QUERY_getInstance_0());
|
|
2151
|
+
if (tmp$ret$6) {
|
|
2152
|
+
tmp0_filterTo.a(element_0);
|
|
1994
2153
|
}
|
|
1995
2154
|
}
|
|
1996
|
-
tmp$ret$
|
|
1997
|
-
tmp$ret$
|
|
1998
|
-
var
|
|
1999
|
-
var tmp$ret$
|
|
2155
|
+
tmp$ret$7 = tmp0_filterTo;
|
|
2156
|
+
tmp$ret$8 = tmp$ret$7;
|
|
2157
|
+
var tmp2_map = tmp$ret$8;
|
|
2158
|
+
var tmp$ret$10;
|
|
2000
2159
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2001
|
-
var
|
|
2002
|
-
var tmp0_iterator_2 =
|
|
2160
|
+
var tmp1_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp2_map, 10));
|
|
2161
|
+
var tmp0_iterator_2 = tmp2_map.c();
|
|
2003
2162
|
while (tmp0_iterator_2.d()) {
|
|
2004
2163
|
var item_0 = tmp0_iterator_2.e();
|
|
2005
|
-
var tmp$ret$
|
|
2164
|
+
var tmp$ret$9;
|
|
2006
2165
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2007
|
-
tmp$ret$
|
|
2008
|
-
|
|
2166
|
+
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().g1t([name, 'parameter']));
|
|
2167
|
+
tmp1_mapTo.a(tmp$ret$9);
|
|
2009
2168
|
}
|
|
2010
|
-
tmp$ret$
|
|
2011
|
-
tmp$ret$
|
|
2012
|
-
var query = tmp$ret$
|
|
2013
|
-
var tmp$ret$
|
|
2169
|
+
tmp$ret$10 = tmp1_mapTo;
|
|
2170
|
+
tmp$ret$11 = tmp$ret$10;
|
|
2171
|
+
var query = tmp$ret$11;
|
|
2172
|
+
var tmp$ret$17;
|
|
2014
2173
|
// Inline function 'kotlin.collections.map' call
|
|
2015
|
-
var tmp$ret$15;
|
|
2016
|
-
// Inline function 'kotlin.collections.filter' call
|
|
2017
2174
|
var tmp$ret$14;
|
|
2175
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2176
|
+
var tmp$ret$13;
|
|
2018
2177
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2019
|
-
var
|
|
2178
|
+
var tmp3_filterTo = ArrayList_init_$Create$();
|
|
2020
2179
|
var tmp0_iterator_3 = parameters.c();
|
|
2021
2180
|
while (tmp0_iterator_3.d()) {
|
|
2022
2181
|
var element_1 = tmp0_iterator_3.e();
|
|
2023
|
-
var tmp$ret$
|
|
2182
|
+
var tmp$ret$12;
|
|
2024
2183
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2025
|
-
tmp$ret$
|
|
2026
|
-
if (tmp$ret$
|
|
2027
|
-
|
|
2184
|
+
tmp$ret$12 = element_1.p1l_1.equals(ParameterLocation_HEADER_getInstance_0());
|
|
2185
|
+
if (tmp$ret$12) {
|
|
2186
|
+
tmp3_filterTo.a(element_1);
|
|
2028
2187
|
}
|
|
2029
2188
|
}
|
|
2030
|
-
tmp$ret$
|
|
2031
|
-
tmp$ret$
|
|
2032
|
-
var
|
|
2033
|
-
var tmp$ret$
|
|
2189
|
+
tmp$ret$13 = tmp3_filterTo;
|
|
2190
|
+
tmp$ret$14 = tmp$ret$13;
|
|
2191
|
+
var tmp5_map = tmp$ret$14;
|
|
2192
|
+
var tmp$ret$16;
|
|
2034
2193
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2035
|
-
var
|
|
2036
|
-
var tmp0_iterator_4 =
|
|
2194
|
+
var tmp4_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp5_map, 10));
|
|
2195
|
+
var tmp0_iterator_4 = tmp5_map.c();
|
|
2037
2196
|
while (tmp0_iterator_4.d()) {
|
|
2038
2197
|
var item_1 = tmp0_iterator_4.e();
|
|
2039
|
-
var tmp$ret$
|
|
2198
|
+
var tmp$ret$15;
|
|
2040
2199
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2041
|
-
tmp$ret$
|
|
2042
|
-
|
|
2200
|
+
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().g1t([name, 'parameter']));
|
|
2201
|
+
tmp4_mapTo.a(tmp$ret$15);
|
|
2043
2202
|
}
|
|
2044
|
-
tmp$ret$
|
|
2045
|
-
tmp$ret$
|
|
2046
|
-
var headers = tmp$ret$
|
|
2047
|
-
var tmp$ret$
|
|
2203
|
+
tmp$ret$16 = tmp4_mapTo;
|
|
2204
|
+
tmp$ret$17 = tmp$ret$16;
|
|
2205
|
+
var headers = tmp$ret$17;
|
|
2206
|
+
var tmp$ret$23;
|
|
2048
2207
|
// Inline function 'kotlin.collections.map' call
|
|
2049
|
-
var tmp$ret$21;
|
|
2050
|
-
// Inline function 'kotlin.collections.filter' call
|
|
2051
2208
|
var tmp$ret$20;
|
|
2209
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2210
|
+
var tmp$ret$19;
|
|
2052
2211
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2053
|
-
var
|
|
2212
|
+
var tmp6_filterTo = ArrayList_init_$Create$();
|
|
2054
2213
|
var tmp0_iterator_5 = parameters.c();
|
|
2055
2214
|
while (tmp0_iterator_5.d()) {
|
|
2056
2215
|
var element_2 = tmp0_iterator_5.e();
|
|
2057
|
-
var tmp$ret$
|
|
2216
|
+
var tmp$ret$18;
|
|
2058
2217
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2059
|
-
tmp$ret$
|
|
2060
|
-
if (tmp$ret$
|
|
2061
|
-
|
|
2218
|
+
tmp$ret$18 = element_2.p1l_1.equals(ParameterLocation_COOKIE_getInstance());
|
|
2219
|
+
if (tmp$ret$18) {
|
|
2220
|
+
tmp6_filterTo.a(element_2);
|
|
2062
2221
|
}
|
|
2063
2222
|
}
|
|
2064
|
-
tmp$ret$
|
|
2065
|
-
tmp$ret$
|
|
2066
|
-
var
|
|
2067
|
-
var tmp$ret$
|
|
2223
|
+
tmp$ret$19 = tmp6_filterTo;
|
|
2224
|
+
tmp$ret$20 = tmp$ret$19;
|
|
2225
|
+
var tmp8_map = tmp$ret$20;
|
|
2226
|
+
var tmp$ret$22;
|
|
2068
2227
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2069
|
-
var
|
|
2070
|
-
var tmp0_iterator_6 =
|
|
2228
|
+
var tmp7_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp8_map, 10));
|
|
2229
|
+
var tmp0_iterator_6 = tmp8_map.c();
|
|
2071
2230
|
while (tmp0_iterator_6.d()) {
|
|
2072
2231
|
var item_2 = tmp0_iterator_6.e();
|
|
2073
|
-
var tmp$ret$
|
|
2232
|
+
var tmp$ret$21;
|
|
2074
2233
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2075
|
-
tmp$ret$
|
|
2076
|
-
|
|
2234
|
+
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().g1t([name, 'parameter']));
|
|
2235
|
+
tmp7_mapTo.a(tmp$ret$21);
|
|
2077
2236
|
}
|
|
2078
|
-
tmp$ret$
|
|
2079
|
-
tmp$ret$
|
|
2080
|
-
var cookies = tmp$ret$
|
|
2081
|
-
var tmp0_safe_receiver = operation.
|
|
2237
|
+
tmp$ret$22 = tmp7_mapTo;
|
|
2238
|
+
tmp$ret$23 = tmp$ret$22;
|
|
2239
|
+
var cookies = tmp$ret$23;
|
|
2240
|
+
var tmp0_safe_receiver = operation.u1k_1;
|
|
2082
2241
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, $this);
|
|
2083
|
-
var
|
|
2242
|
+
var tmp;
|
|
2084
2243
|
if (tmp1_safe_receiver == null) {
|
|
2085
|
-
|
|
2244
|
+
tmp = null;
|
|
2086
2245
|
} else {
|
|
2087
|
-
var tmp$ret$
|
|
2246
|
+
var tmp$ret$31;
|
|
2088
2247
|
// Inline function 'kotlin.let' call
|
|
2089
2248
|
// Inline function 'kotlin.contracts.contract' call
|
|
2090
|
-
var tmp$ret$
|
|
2249
|
+
var tmp$ret$30;
|
|
2091
2250
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2092
|
-
var tmp0_safe_receiver_0 = tmp1_safe_receiver.
|
|
2093
|
-
var
|
|
2251
|
+
var tmp0_safe_receiver_0 = tmp1_safe_receiver.u1l_1;
|
|
2252
|
+
var tmp_0;
|
|
2094
2253
|
if (tmp0_safe_receiver_0 == null) {
|
|
2095
|
-
|
|
2254
|
+
tmp_0 = null;
|
|
2096
2255
|
} else {
|
|
2097
|
-
var tmp$ret$30;
|
|
2098
|
-
// Inline function 'kotlin.collections.map' call
|
|
2099
2256
|
var tmp$ret$29;
|
|
2257
|
+
// Inline function 'kotlin.collections.map' call
|
|
2258
|
+
var tmp$ret$28;
|
|
2100
2259
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2101
2260
|
var tmp0_mapTo_0 = ArrayList_init_$Create$_0(tmp0_safe_receiver_0.f());
|
|
2102
|
-
var tmp$ret$
|
|
2261
|
+
var tmp$ret$24;
|
|
2103
2262
|
// Inline function 'kotlin.collections.iterator' call
|
|
2104
|
-
tmp$ret$
|
|
2105
|
-
var tmp0_iterator_7 = tmp$ret$
|
|
2263
|
+
tmp$ret$24 = tmp0_safe_receiver_0.u().c();
|
|
2264
|
+
var tmp0_iterator_7 = tmp$ret$24;
|
|
2106
2265
|
while (tmp0_iterator_7.d()) {
|
|
2107
2266
|
var item_3 = tmp0_iterator_7.e();
|
|
2108
|
-
var tmp$ret$
|
|
2267
|
+
var tmp$ret$27;
|
|
2109
2268
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2110
|
-
var tmp$ret$
|
|
2269
|
+
var tmp$ret$25;
|
|
2111
2270
|
// Inline function 'kotlin.collections.component1' call
|
|
2112
|
-
tmp$ret$
|
|
2113
|
-
var mediaType = tmp$ret$
|
|
2114
|
-
var tmp$ret$
|
|
2271
|
+
tmp$ret$25 = item_3.v().y1l_1;
|
|
2272
|
+
var mediaType = tmp$ret$25;
|
|
2273
|
+
var tmp$ret$26;
|
|
2115
2274
|
// Inline function 'kotlin.collections.component2' call
|
|
2116
|
-
tmp$ret$
|
|
2117
|
-
var mediaObject = tmp$ret$
|
|
2118
|
-
var
|
|
2119
|
-
var schema = mediaObject.
|
|
2120
|
-
var
|
|
2275
|
+
tmp$ret$26 = item_3.w();
|
|
2276
|
+
var mediaObject = tmp$ret$26;
|
|
2277
|
+
var tmp_1 = _MediaType___get_value__impl__wy58mp(mediaType);
|
|
2278
|
+
var schema = mediaObject.b1m_1;
|
|
2279
|
+
var tmp_2;
|
|
2121
2280
|
if (schema instanceof ReferenceObject_0) {
|
|
2122
|
-
|
|
2281
|
+
tmp_2 = toReference_1(schema, $this);
|
|
2123
2282
|
} else {
|
|
2124
2283
|
if (schema instanceof SchemaObject_0) {
|
|
2125
|
-
|
|
2284
|
+
tmp_2 = toReference_2(schema, $this, Common_getInstance().g1t([name, 'RequestBody']));
|
|
2126
2285
|
} else {
|
|
2127
2286
|
if (schema == null) {
|
|
2128
2287
|
throw new NotImplementedError();
|
|
@@ -2131,83 +2290,83 @@
|
|
|
2131
2290
|
}
|
|
2132
2291
|
}
|
|
2133
2292
|
}
|
|
2134
|
-
var
|
|
2135
|
-
var
|
|
2136
|
-
tmp$ret$
|
|
2137
|
-
tmp0_mapTo_0.a(tmp$ret$
|
|
2293
|
+
var tmp_3 = tmp_2;
|
|
2294
|
+
var tmp0_elvis_lhs = tmp1_safe_receiver.v1l_1;
|
|
2295
|
+
tmp$ret$27 = new Request(new Content(tmp_1, tmp_3, tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
2296
|
+
tmp0_mapTo_0.a(tmp$ret$27);
|
|
2138
2297
|
}
|
|
2139
|
-
tmp$ret$
|
|
2140
|
-
tmp$ret$
|
|
2141
|
-
|
|
2298
|
+
tmp$ret$28 = tmp0_mapTo_0;
|
|
2299
|
+
tmp$ret$29 = tmp$ret$28;
|
|
2300
|
+
tmp_0 = tmp$ret$29;
|
|
2142
2301
|
}
|
|
2143
|
-
tmp$ret$
|
|
2144
|
-
tmp$ret$
|
|
2145
|
-
|
|
2302
|
+
tmp$ret$30 = tmp_0;
|
|
2303
|
+
tmp$ret$31 = tmp$ret$30;
|
|
2304
|
+
tmp = tmp$ret$31;
|
|
2146
2305
|
}
|
|
2147
|
-
var tmp2_elvis_lhs =
|
|
2306
|
+
var tmp2_elvis_lhs = tmp;
|
|
2148
2307
|
var requests = tmp2_elvis_lhs == null ? listOf(new Request(null)) : tmp2_elvis_lhs;
|
|
2149
|
-
var tmp$ret$
|
|
2308
|
+
var tmp$ret$44;
|
|
2150
2309
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2151
|
-
var tmp$ret$
|
|
2310
|
+
var tmp$ret$32;
|
|
2152
2311
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2153
|
-
var
|
|
2154
|
-
var
|
|
2155
|
-
tmp$ret$
|
|
2156
|
-
var
|
|
2157
|
-
var tmp$ret$
|
|
2312
|
+
var tmp9_orEmpty = operation.v1k_1;
|
|
2313
|
+
var tmp0_elvis_lhs_0 = tmp9_orEmpty;
|
|
2314
|
+
tmp$ret$32 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2315
|
+
var tmp11_flatMap = tmp$ret$32;
|
|
2316
|
+
var tmp$ret$43;
|
|
2158
2317
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2159
|
-
var
|
|
2160
|
-
var tmp$ret$
|
|
2318
|
+
var tmp10_flatMapTo = ArrayList_init_$Create$();
|
|
2319
|
+
var tmp$ret$33;
|
|
2161
2320
|
// Inline function 'kotlin.collections.iterator' call
|
|
2162
|
-
tmp$ret$
|
|
2163
|
-
var tmp0_iterator_8 = tmp$ret$
|
|
2321
|
+
tmp$ret$33 = tmp11_flatMap.u().c();
|
|
2322
|
+
var tmp0_iterator_8 = tmp$ret$33;
|
|
2164
2323
|
while (tmp0_iterator_8.d()) {
|
|
2165
2324
|
var element_3 = tmp0_iterator_8.e();
|
|
2166
|
-
var tmp$ret$
|
|
2325
|
+
var tmp$ret$42;
|
|
2167
2326
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2168
|
-
var tmp$ret$
|
|
2327
|
+
var tmp$ret$34;
|
|
2169
2328
|
// Inline function 'kotlin.collections.component1' call
|
|
2170
|
-
tmp$ret$
|
|
2171
|
-
var status = tmp$ret$
|
|
2172
|
-
var tmp$ret$
|
|
2329
|
+
tmp$ret$34 = element_3.v().x1n_1;
|
|
2330
|
+
var status = tmp$ret$34;
|
|
2331
|
+
var tmp$ret$35;
|
|
2173
2332
|
// Inline function 'kotlin.collections.component2' call
|
|
2174
|
-
tmp$ret$
|
|
2175
|
-
var res = tmp$ret$
|
|
2176
|
-
var tmp0_safe_receiver_1 = resolve_6(res, $this).
|
|
2177
|
-
var
|
|
2333
|
+
tmp$ret$35 = element_3.w();
|
|
2334
|
+
var res = tmp$ret$35;
|
|
2335
|
+
var tmp0_safe_receiver_1 = resolve_6(res, $this).c1o_1;
|
|
2336
|
+
var tmp_4;
|
|
2178
2337
|
if (tmp0_safe_receiver_1 == null) {
|
|
2179
|
-
|
|
2338
|
+
tmp_4 = null;
|
|
2180
2339
|
} else {
|
|
2181
|
-
var tmp$ret$42;
|
|
2182
|
-
// Inline function 'kotlin.collections.map' call
|
|
2183
2340
|
var tmp$ret$41;
|
|
2341
|
+
// Inline function 'kotlin.collections.map' call
|
|
2342
|
+
var tmp$ret$40;
|
|
2184
2343
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2185
2344
|
var tmp0_mapTo_1 = ArrayList_init_$Create$_0(tmp0_safe_receiver_1.f());
|
|
2186
|
-
var tmp$ret$
|
|
2345
|
+
var tmp$ret$36;
|
|
2187
2346
|
// Inline function 'kotlin.collections.iterator' call
|
|
2188
|
-
tmp$ret$
|
|
2189
|
-
var tmp0_iterator_9 = tmp$ret$
|
|
2347
|
+
tmp$ret$36 = tmp0_safe_receiver_1.u().c();
|
|
2348
|
+
var tmp0_iterator_9 = tmp$ret$36;
|
|
2190
2349
|
while (tmp0_iterator_9.d()) {
|
|
2191
2350
|
var item_4 = tmp0_iterator_9.e();
|
|
2192
|
-
var tmp$ret$
|
|
2351
|
+
var tmp$ret$39;
|
|
2193
2352
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2194
|
-
var tmp$ret$
|
|
2353
|
+
var tmp$ret$37;
|
|
2195
2354
|
// Inline function 'kotlin.collections.component1' call
|
|
2196
|
-
tmp$ret$
|
|
2197
|
-
var contentType = tmp$ret$
|
|
2198
|
-
var tmp$ret$
|
|
2355
|
+
tmp$ret$37 = item_4.v().y1l_1;
|
|
2356
|
+
var contentType = tmp$ret$37;
|
|
2357
|
+
var tmp$ret$38;
|
|
2199
2358
|
// Inline function 'kotlin.collections.component2' call
|
|
2200
|
-
tmp$ret$
|
|
2201
|
-
var media = tmp$ret$
|
|
2202
|
-
var
|
|
2203
|
-
var
|
|
2204
|
-
var schema_0 = media.
|
|
2205
|
-
var
|
|
2359
|
+
tmp$ret$38 = item_4.w();
|
|
2360
|
+
var media = tmp$ret$38;
|
|
2361
|
+
var tmp_5 = _StatusCode___get_value__impl__we50mu_0(status);
|
|
2362
|
+
var tmp_6 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
2363
|
+
var schema_0 = media.b1m_1;
|
|
2364
|
+
var tmp_7;
|
|
2206
2365
|
if (schema_0 instanceof ReferenceObject_0) {
|
|
2207
|
-
|
|
2366
|
+
tmp_7 = toReference_1(schema_0, $this);
|
|
2208
2367
|
} else {
|
|
2209
2368
|
if (schema_0 instanceof SchemaObject_0) {
|
|
2210
|
-
|
|
2369
|
+
tmp_7 = toReference_2(schema_0, $this, Common_getInstance().g1t([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
2211
2370
|
} else {
|
|
2212
2371
|
if (schema_0 == null) {
|
|
2213
2372
|
throw new NotImplementedError();
|
|
@@ -2216,96 +2375,103 @@
|
|
|
2216
2375
|
}
|
|
2217
2376
|
}
|
|
2218
2377
|
}
|
|
2219
|
-
var
|
|
2220
|
-
var tmp0_safe_receiver_2 = media.
|
|
2378
|
+
var tmp_8 = tmp_7;
|
|
2379
|
+
var tmp0_safe_receiver_2 = media.b1m_1;
|
|
2221
2380
|
var tmp1_safe_receiver_0 = tmp0_safe_receiver_2 == null ? null : resolve_3(tmp0_safe_receiver_2, $this);
|
|
2222
|
-
var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
2223
|
-
tmp$ret$
|
|
2224
|
-
tmp0_mapTo_1.a(tmp$ret$
|
|
2381
|
+
var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.k1m_1;
|
|
2382
|
+
tmp$ret$39 = new Response(tmp_5, new Content(tmp_6, tmp_8, tmp2_elvis_lhs_0 == null ? false : tmp2_elvis_lhs_0));
|
|
2383
|
+
tmp0_mapTo_1.a(tmp$ret$39);
|
|
2225
2384
|
}
|
|
2226
|
-
tmp$ret$
|
|
2227
|
-
tmp$ret$
|
|
2228
|
-
|
|
2385
|
+
tmp$ret$40 = tmp0_mapTo_1;
|
|
2386
|
+
tmp$ret$41 = tmp$ret$40;
|
|
2387
|
+
tmp_4 = tmp$ret$41;
|
|
2229
2388
|
}
|
|
2230
|
-
var tmp1_elvis_lhs =
|
|
2231
|
-
tmp$ret$
|
|
2232
|
-
var list = tmp$ret$
|
|
2233
|
-
addAll(
|
|
2389
|
+
var tmp1_elvis_lhs = tmp_4;
|
|
2390
|
+
tmp$ret$42 = tmp1_elvis_lhs == null ? listOf(new Response(_StatusCode___get_value__impl__we50mu_0(status), null)) : tmp1_elvis_lhs;
|
|
2391
|
+
var list = tmp$ret$42;
|
|
2392
|
+
addAll(tmp10_flatMapTo, list);
|
|
2234
2393
|
}
|
|
2235
|
-
tmp$ret$
|
|
2236
|
-
tmp$ret$
|
|
2237
|
-
var responses = tmp$ret$
|
|
2238
|
-
tmp$ret$
|
|
2239
|
-
tmp0_mapTo.a(tmp$ret$
|
|
2394
|
+
tmp$ret$43 = tmp10_flatMapTo;
|
|
2395
|
+
tmp$ret$44 = tmp$ret$43;
|
|
2396
|
+
var responses = tmp$ret$44;
|
|
2397
|
+
tmp$ret$45 = new Endpoint(name, method, segments, query, headers, cookies, requests, responses);
|
|
2398
|
+
tmp0_mapTo.a(tmp$ret$45);
|
|
2240
2399
|
}
|
|
2241
|
-
tmp$ret$
|
|
2400
|
+
tmp$ret$46 = tmp0_mapTo;
|
|
2401
|
+
tmp$ret$47 = tmp$ret$46;
|
|
2242
2402
|
tmp$ret$48 = tmp$ret$47;
|
|
2243
|
-
|
|
2244
|
-
var list_0 = tmp$ret$49;
|
|
2403
|
+
var list_0 = tmp$ret$48;
|
|
2245
2404
|
addAll(tmp0_flatMapTo, list_0);
|
|
2246
2405
|
}
|
|
2247
|
-
tmp$ret$
|
|
2248
|
-
tmp$ret$
|
|
2249
|
-
return tmp$ret$
|
|
2406
|
+
tmp$ret$49 = tmp0_flatMapTo;
|
|
2407
|
+
tmp$ret$50 = tmp$ret$49;
|
|
2408
|
+
return tmp$ret$50;
|
|
2409
|
+
}
|
|
2410
|
+
function parseParameters($this) {
|
|
2411
|
+
return flatMapRequests_0($this.w1t_1, $this, OpenApiParser$parseParameters$lambda($this));
|
|
2250
2412
|
}
|
|
2251
2413
|
function parseRequestBody_0($this) {
|
|
2252
|
-
return flatMapRequests_0($this.
|
|
2414
|
+
return flatMapRequests_0($this.w1t_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
|
|
2253
2415
|
}
|
|
2254
2416
|
function parseResponseBody_0($this) {
|
|
2255
|
-
return flatMapResponses_0($this.
|
|
2417
|
+
return flatMapResponses_0($this.w1t_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
|
|
2256
2418
|
}
|
|
2257
2419
|
function parseComponents($this) {
|
|
2258
|
-
var
|
|
2259
|
-
|
|
2260
|
-
var tmp;
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2420
|
+
var tmp$ret$8;
|
|
2421
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
2422
|
+
var tmp$ret$4;
|
|
2423
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2424
|
+
var tmp$ret$0;
|
|
2425
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
2426
|
+
var tmp0_safe_receiver = $this.w1t_1.o1j_1;
|
|
2427
|
+
var tmp0_orEmpty = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h1o_1;
|
|
2428
|
+
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
2429
|
+
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2430
|
+
var tmp2_filter = tmp$ret$0;
|
|
2431
|
+
var tmp$ret$3;
|
|
2432
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2433
|
+
var tmp1_filterTo = LinkedHashMap_init_$Create$();
|
|
2434
|
+
var tmp$ret$1;
|
|
2435
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
2436
|
+
tmp$ret$1 = tmp2_filter.u().c();
|
|
2437
|
+
var tmp0_iterator = tmp$ret$1;
|
|
2438
|
+
while (tmp0_iterator.d()) {
|
|
2439
|
+
var element = tmp0_iterator.e();
|
|
2266
2440
|
var tmp$ret$2;
|
|
2267
|
-
// Inline function '
|
|
2268
|
-
var
|
|
2269
|
-
var tmp
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
var list = tmp$ret$1;
|
|
2279
|
-
addAll(tmp0_flatMapTo, list);
|
|
2441
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2442
|
+
var s = element.w();
|
|
2443
|
+
var tmp;
|
|
2444
|
+
if (s instanceof SchemaObject_0) {
|
|
2445
|
+
tmp = s.a1n_1 == null;
|
|
2446
|
+
} else {
|
|
2447
|
+
tmp = false;
|
|
2448
|
+
}
|
|
2449
|
+
tmp$ret$2 = tmp;
|
|
2450
|
+
if (tmp$ret$2) {
|
|
2451
|
+
tmp1_filterTo.k3(element.v(), element.w());
|
|
2280
2452
|
}
|
|
2281
|
-
tmp$ret$2 = tmp0_flatMapTo;
|
|
2282
|
-
tmp$ret$3 = tmp$ret$2;
|
|
2283
|
-
tmp = tmp$ret$3;
|
|
2284
2453
|
}
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2454
|
+
tmp$ret$3 = tmp1_filterTo;
|
|
2455
|
+
tmp$ret$4 = tmp$ret$3;
|
|
2456
|
+
var tmp4_flatMap = tmp$ret$4;
|
|
2457
|
+
var tmp$ret$7;
|
|
2458
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2459
|
+
var tmp3_flatMapTo = ArrayList_init_$Create$();
|
|
2460
|
+
var tmp$ret$5;
|
|
2461
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
2462
|
+
tmp$ret$5 = tmp4_flatMap.u().c();
|
|
2463
|
+
var tmp0_iterator_0 = tmp$ret$5;
|
|
2464
|
+
while (tmp0_iterator_0.d()) {
|
|
2465
|
+
var element_0 = tmp0_iterator_0.e();
|
|
2290
2466
|
var tmp$ret$6;
|
|
2291
|
-
// Inline function '
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
var tmp0_iterator_0 = tmp2_safe_receiver.c();
|
|
2296
|
-
while (tmp0_iterator_0.d()) {
|
|
2297
|
-
var item = tmp0_iterator_0.e();
|
|
2298
|
-
var tmp$ret$4;
|
|
2299
|
-
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2300
|
-
tmp$ret$4 = new Type(item.s1t_1, new Shape(item.t1t_1));
|
|
2301
|
-
tmp1_mapTo.a(tmp$ret$4);
|
|
2302
|
-
}
|
|
2303
|
-
tmp$ret$5 = tmp1_mapTo;
|
|
2304
|
-
tmp$ret$6 = tmp$ret$5;
|
|
2305
|
-
tmp_0 = tmp$ret$6;
|
|
2467
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2468
|
+
tmp$ret$6 = flatten_2(element_0.w(), $this, Common_getInstance().g1t([element_0.v()]));
|
|
2469
|
+
var list = tmp$ret$6;
|
|
2470
|
+
addAll(tmp3_flatMapTo, list);
|
|
2306
2471
|
}
|
|
2307
|
-
|
|
2308
|
-
|
|
2472
|
+
tmp$ret$7 = tmp3_flatMapTo;
|
|
2473
|
+
tmp$ret$8 = tmp$ret$7;
|
|
2474
|
+
return tmp$ret$8;
|
|
2309
2475
|
}
|
|
2310
2476
|
function toSegments_0(_this__u8e3s4, $this, parameters) {
|
|
2311
2477
|
var tmp$ret$11;
|
|
@@ -2340,7 +2506,7 @@
|
|
|
2340
2506
|
var element = tmp0_iterator_0.e();
|
|
2341
2507
|
var tmp$ret$2;
|
|
2342
2508
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2343
|
-
tmp$ret$2 = element.
|
|
2509
|
+
tmp$ret$2 = element.o1l_1 === param;
|
|
2344
2510
|
if (tmp$ret$2) {
|
|
2345
2511
|
tmp$ret$3 = element;
|
|
2346
2512
|
break $l$block;
|
|
@@ -2350,7 +2516,7 @@
|
|
|
2350
2516
|
}
|
|
2351
2517
|
tmp$ret$4 = tmp$ret$3;
|
|
2352
2518
|
var tmp0_safe_receiver = tmp$ret$4;
|
|
2353
|
-
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;
|
|
2354
2520
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_3(tmp1_safe_receiver, $this);
|
|
2355
2521
|
var tmp_0;
|
|
2356
2522
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2361,7 +2527,7 @@
|
|
|
2361
2527
|
// Inline function 'kotlin.contracts.contract' call
|
|
2362
2528
|
var tmp$ret$5;
|
|
2363
2529
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2364
|
-
var tmp0_safe_receiver_0 = tmp2_safe_receiver.
|
|
2530
|
+
var tmp0_safe_receiver_0 = tmp2_safe_receiver.t1m_1;
|
|
2365
2531
|
tmp$ret$5 = tmp0_safe_receiver_0 == null ? null : toPrimitive_0(tmp0_safe_receiver_0, $this);
|
|
2366
2532
|
tmp$ret$6 = tmp$ret$5;
|
|
2367
2533
|
tmp_0 = tmp$ret$6;
|
|
@@ -2400,7 +2566,7 @@
|
|
|
2400
2566
|
return tmp$ret$11;
|
|
2401
2567
|
}
|
|
2402
2568
|
function toName_0(_this__u8e3s4, $this, segments, method) {
|
|
2403
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2569
|
+
var tmp0_safe_receiver = _this__u8e3s4.s1k_1;
|
|
2404
2570
|
var tmp;
|
|
2405
2571
|
if (tmp0_safe_receiver == null) {
|
|
2406
2572
|
tmp = null;
|
|
@@ -2410,7 +2576,7 @@
|
|
|
2410
2576
|
// Inline function 'kotlin.contracts.contract' call
|
|
2411
2577
|
var tmp$ret$0;
|
|
2412
2578
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
2413
|
-
tmp$ret$0 = Common_getInstance().
|
|
2579
|
+
tmp$ret$0 = Common_getInstance().g1t([tmp0_safe_receiver]);
|
|
2414
2580
|
tmp$ret$1 = tmp$ret$0;
|
|
2415
2581
|
tmp = tmp$ret$1;
|
|
2416
2582
|
}
|
|
@@ -2432,7 +2598,7 @@
|
|
|
2432
2598
|
return tmp_0;
|
|
2433
2599
|
}
|
|
2434
2600
|
function resolveParameters_1(_this__u8e3s4, $this) {
|
|
2435
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2601
|
+
var tmp0_safe_receiver = _this__u8e3s4.t1k_1;
|
|
2436
2602
|
var tmp;
|
|
2437
2603
|
if (tmp0_safe_receiver == null) {
|
|
2438
2604
|
tmp = null;
|
|
@@ -2480,7 +2646,7 @@
|
|
|
2480
2646
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2481
2647
|
}
|
|
2482
2648
|
function resolveParameters_2(_this__u8e3s4, $this) {
|
|
2483
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2649
|
+
var tmp0_safe_receiver = _this__u8e3s4.k1k_1;
|
|
2484
2650
|
var tmp;
|
|
2485
2651
|
if (tmp0_safe_receiver == null) {
|
|
2486
2652
|
tmp = null;
|
|
@@ -2528,8 +2694,8 @@
|
|
|
2528
2694
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2529
2695
|
}
|
|
2530
2696
|
function resolveParameterObject_0(_this__u8e3s4, $this) {
|
|
2531
|
-
var tmp0_safe_receiver = $this.
|
|
2532
|
-
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;
|
|
2533
2699
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2534
2700
|
var tmp;
|
|
2535
2701
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2558,8 +2724,8 @@
|
|
|
2558
2724
|
return tmp;
|
|
2559
2725
|
}
|
|
2560
2726
|
function resolveSchemaObject_0(_this__u8e3s4, $this) {
|
|
2561
|
-
var tmp0_safe_receiver = $this.
|
|
2562
|
-
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;
|
|
2563
2729
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2564
2730
|
var tmp;
|
|
2565
2731
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2588,7 +2754,7 @@
|
|
|
2588
2754
|
var tmp3_elvis_lhs = tmp;
|
|
2589
2755
|
var tmp_1;
|
|
2590
2756
|
if (tmp3_elvis_lhs == null) {
|
|
2591
|
-
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);
|
|
2592
2758
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2593
2759
|
} else {
|
|
2594
2760
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2596,8 +2762,8 @@
|
|
|
2596
2762
|
return tmp_1;
|
|
2597
2763
|
}
|
|
2598
2764
|
function resolveRequestBodyObject(_this__u8e3s4, $this) {
|
|
2599
|
-
var tmp0_safe_receiver = $this.
|
|
2600
|
-
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;
|
|
2601
2767
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2602
2768
|
var tmp;
|
|
2603
2769
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2626,7 +2792,7 @@
|
|
|
2626
2792
|
var tmp3_elvis_lhs = tmp;
|
|
2627
2793
|
var tmp_1;
|
|
2628
2794
|
if (tmp3_elvis_lhs == null) {
|
|
2629
|
-
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);
|
|
2630
2796
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2631
2797
|
} else {
|
|
2632
2798
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2634,8 +2800,8 @@
|
|
|
2634
2800
|
return tmp_1;
|
|
2635
2801
|
}
|
|
2636
2802
|
function resolveResponseObject_0(_this__u8e3s4, $this) {
|
|
2637
|
-
var tmp0_safe_receiver = $this.
|
|
2638
|
-
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;
|
|
2639
2805
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2640
2806
|
var tmp;
|
|
2641
2807
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2664,7 +2830,7 @@
|
|
|
2664
2830
|
var tmp3_elvis_lhs = tmp;
|
|
2665
2831
|
var tmp_1;
|
|
2666
2832
|
if (tmp3_elvis_lhs == null) {
|
|
2667
|
-
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);
|
|
2668
2834
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2669
2835
|
} else {
|
|
2670
2836
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2732,196 +2898,251 @@
|
|
|
2732
2898
|
return tmp;
|
|
2733
2899
|
}
|
|
2734
2900
|
function flatten_1(_this__u8e3s4, $this, name) {
|
|
2735
|
-
var tmp0_subject = _this__u8e3s4.m1m_1;
|
|
2736
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
2737
2901
|
var tmp;
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2902
|
+
if (!(_this__u8e3s4.a1n_1 == null)) {
|
|
2903
|
+
var tmp0_subject = _this__u8e3s4.a1n_1;
|
|
2904
|
+
var tmp_0;
|
|
2905
|
+
if (tmp0_subject instanceof BooleanObject_0) {
|
|
2906
|
+
tmp_0 = emptyList();
|
|
2907
|
+
} else {
|
|
2908
|
+
tmp_0 = flatten_1(resolve_4(ensureNotNull(_this__u8e3s4.a1n_1), $this), $this, name);
|
|
2909
|
+
}
|
|
2910
|
+
tmp = tmp_0;
|
|
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)) {
|
|
2914
|
+
throw new NotImplementedError('An operation is not implemented: anyOf is not implemented');
|
|
2915
|
+
} else if (!(_this__u8e3s4.u1m_1 == null)) {
|
|
2916
|
+
var tmp$ret$3;
|
|
2917
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
2918
|
+
var tmp$ret$0;
|
|
2919
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
2920
|
+
var tmp0_orEmpty = _this__u8e3s4.u1m_1;
|
|
2921
|
+
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
2922
|
+
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2923
|
+
var tmp2_flatMap = tmp$ret$0;
|
|
2924
|
+
var tmp$ret$2;
|
|
2925
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2926
|
+
var tmp1_flatMapTo = ArrayList_init_$Create$();
|
|
2927
|
+
var tmp0_iterator = tmp2_flatMap.c();
|
|
2928
|
+
while (tmp0_iterator.d()) {
|
|
2929
|
+
var element = tmp0_iterator.e();
|
|
2752
2930
|
var tmp$ret$1;
|
|
2753
|
-
// Inline function '
|
|
2754
|
-
tmp$ret$1 =
|
|
2755
|
-
var
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2931
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2932
|
+
tmp$ret$1 = toField_1(resolve_3(element, $this), $this, name);
|
|
2933
|
+
var list = tmp$ret$1;
|
|
2934
|
+
addAll(tmp1_flatMapTo, list);
|
|
2935
|
+
}
|
|
2936
|
+
tmp$ret$2 = tmp1_flatMapTo;
|
|
2937
|
+
tmp$ret$3 = tmp$ret$2;
|
|
2938
|
+
var tmp_1 = listOf(new Type(name, new Shape(tmp$ret$3)));
|
|
2939
|
+
var tmp$ret$13;
|
|
2940
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
2941
|
+
var tmp4_flatMap = ensureNotNull(_this__u8e3s4.u1m_1);
|
|
2942
|
+
var tmp$ret$12;
|
|
2943
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2944
|
+
var tmp3_flatMapTo = ArrayList_init_$Create$();
|
|
2945
|
+
var tmp0_iterator_0 = tmp4_flatMap.c();
|
|
2946
|
+
while (tmp0_iterator_0.d()) {
|
|
2947
|
+
var element_0 = tmp0_iterator_0.e();
|
|
2948
|
+
var tmp$ret$11;
|
|
2949
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2950
|
+
var tmp0_subject_0 = element_0;
|
|
2951
|
+
var tmp_2;
|
|
2952
|
+
if (tmp0_subject_0 instanceof ReferenceObject_0) {
|
|
2953
|
+
tmp_2 = emptyList();
|
|
2954
|
+
} else {
|
|
2770
2955
|
if (tmp0_subject_0 instanceof SchemaObject_0) {
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
tmp$ret$5 = tmp1_flatMapTo;
|
|
2784
|
-
tmp$ret$6 = tmp$ret$5;
|
|
2785
|
-
|
|
2786
|
-
var fields = tmp$ret$6;
|
|
2787
|
-
var tmp1_subject = _this__u8e3s4.t1m_1;
|
|
2788
|
-
var tmp_1;
|
|
2789
|
-
if (tmp1_subject == null) {
|
|
2790
|
-
var tmp2_safe_receiver = _this__u8e3s4.s1m_1;
|
|
2791
|
-
var tmp_2;
|
|
2792
|
-
if (tmp2_safe_receiver == null) {
|
|
2793
|
-
tmp_2 = null;
|
|
2794
|
-
} else {
|
|
2795
|
-
var tmp$ret$12;
|
|
2796
|
-
// Inline function 'kotlin.collections.map' call
|
|
2797
|
-
var tmp$ret$11;
|
|
2798
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
2799
|
-
var tmp3_mapTo = ArrayList_init_$Create$_0(tmp2_safe_receiver.f());
|
|
2800
|
-
var tmp$ret$7;
|
|
2956
|
+
var tmp$ret$10;
|
|
2957
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
2958
|
+
var tmp$ret$4;
|
|
2959
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
2960
|
+
var tmp0_orEmpty_0 = element_0.z1m_1;
|
|
2961
|
+
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
2962
|
+
tmp$ret$4 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2963
|
+
var tmp2_flatMap_0 = tmp$ret$4;
|
|
2964
|
+
var tmp$ret$9;
|
|
2965
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2966
|
+
var tmp1_flatMapTo_0 = ArrayList_init_$Create$();
|
|
2967
|
+
var tmp$ret$5;
|
|
2801
2968
|
// Inline function 'kotlin.collections.iterator' call
|
|
2802
|
-
tmp$ret$
|
|
2803
|
-
var
|
|
2804
|
-
while (
|
|
2805
|
-
var
|
|
2806
|
-
var tmp$ret$10;
|
|
2807
|
-
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2969
|
+
tmp$ret$5 = tmp2_flatMap_0.u().c();
|
|
2970
|
+
var tmp0_iterator_1 = tmp$ret$5;
|
|
2971
|
+
while (tmp0_iterator_1.d()) {
|
|
2972
|
+
var element_1 = tmp0_iterator_1.e();
|
|
2808
2973
|
var tmp$ret$8;
|
|
2974
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>.<anonymous>' call
|
|
2975
|
+
var tmp$ret$6;
|
|
2809
2976
|
// Inline function 'kotlin.collections.component1' call
|
|
2810
|
-
tmp$ret$
|
|
2811
|
-
var
|
|
2812
|
-
var tmp$ret$
|
|
2977
|
+
tmp$ret$6 = element_1.v();
|
|
2978
|
+
var key = tmp$ret$6;
|
|
2979
|
+
var tmp$ret$7;
|
|
2813
2980
|
// Inline function 'kotlin.collections.component2' call
|
|
2814
|
-
tmp$ret$
|
|
2815
|
-
var
|
|
2816
|
-
var tmp0_subject_1 =
|
|
2981
|
+
tmp$ret$7 = element_1.w();
|
|
2982
|
+
var value = tmp$ret$7;
|
|
2983
|
+
var tmp0_subject_1 = value;
|
|
2817
2984
|
var tmp_3;
|
|
2818
|
-
if (tmp0_subject_1 instanceof
|
|
2819
|
-
|
|
2820
|
-
var tmp_5 = toReference_2(value_0, $this, Common_getInstance().z1s([name, key_0]));
|
|
2821
|
-
var tmp1_safe_receiver = _this__u8e3s4.l1n_1;
|
|
2822
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : contains(tmp1_safe_receiver, key_0);
|
|
2823
|
-
tmp_3 = new Field(tmp_4, tmp_5, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
2985
|
+
if (tmp0_subject_1 instanceof ReferenceObject_0) {
|
|
2986
|
+
tmp_3 = emptyList();
|
|
2824
2987
|
} else {
|
|
2825
|
-
if (tmp0_subject_1 instanceof
|
|
2826
|
-
|
|
2827
|
-
var tmp_7 = toReference_1(value_0, $this);
|
|
2828
|
-
var tmp3_safe_receiver = _this__u8e3s4.l1n_1;
|
|
2829
|
-
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : contains(tmp3_safe_receiver, key_0);
|
|
2830
|
-
tmp_3 = new Field(tmp_6, tmp_7, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
2988
|
+
if (tmp0_subject_1 instanceof SchemaObject_0) {
|
|
2989
|
+
tmp_3 = flatten_1(value, $this, Common_getInstance().g1t([name, key]));
|
|
2831
2990
|
} else {
|
|
2832
2991
|
noWhenBranchMatchedException();
|
|
2833
2992
|
}
|
|
2834
2993
|
}
|
|
2835
|
-
tmp$ret$
|
|
2836
|
-
|
|
2994
|
+
tmp$ret$8 = tmp_3;
|
|
2995
|
+
var list_0 = tmp$ret$8;
|
|
2996
|
+
addAll(tmp1_flatMapTo_0, list_0);
|
|
2837
2997
|
}
|
|
2838
|
-
tmp$ret$
|
|
2839
|
-
tmp$ret$
|
|
2840
|
-
tmp_2 = tmp$ret$
|
|
2841
|
-
}
|
|
2842
|
-
var tmp3_elvis_lhs = tmp_2;
|
|
2843
|
-
tmp_1 = listOf(new SimpleSchema_0(name, tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs));
|
|
2844
|
-
} else {
|
|
2845
|
-
tmp_1 = emptyList();
|
|
2846
|
-
}
|
|
2847
|
-
|
|
2848
|
-
var schema = tmp_1;
|
|
2849
|
-
tmp = plus(schema, fields);
|
|
2850
|
-
break;
|
|
2851
|
-
case 4:
|
|
2852
|
-
var tmp4_safe_receiver = _this__u8e3s4.r1m_1;
|
|
2853
|
-
var tmp_8;
|
|
2854
|
-
if (tmp4_safe_receiver == null) {
|
|
2855
|
-
tmp_8 = null;
|
|
2856
|
-
} else {
|
|
2857
|
-
var tmp$ret$14;
|
|
2858
|
-
// Inline function 'kotlin.let' call
|
|
2859
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2860
|
-
var tmp$ret$13;
|
|
2861
|
-
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2862
|
-
var tmp0_subject_2 = tmp4_safe_receiver;
|
|
2863
|
-
var tmp_9;
|
|
2864
|
-
if (tmp0_subject_2 instanceof ReferenceObject_0) {
|
|
2865
|
-
tmp_9 = emptyList();
|
|
2998
|
+
tmp$ret$9 = tmp1_flatMapTo_0;
|
|
2999
|
+
tmp$ret$10 = tmp$ret$9;
|
|
3000
|
+
tmp_2 = tmp$ret$10;
|
|
2866
3001
|
} else {
|
|
2867
|
-
|
|
2868
|
-
tmp_9 = flatten_1(tmp4_safe_receiver, $this, Common_getInstance().z1s([name, 'array']));
|
|
2869
|
-
} else {
|
|
2870
|
-
noWhenBranchMatchedException();
|
|
2871
|
-
}
|
|
3002
|
+
noWhenBranchMatchedException();
|
|
2872
3003
|
}
|
|
2873
|
-
tmp$ret$13 = tmp_9;
|
|
2874
|
-
tmp$ret$14 = tmp$ret$13;
|
|
2875
|
-
tmp_8 = tmp$ret$14;
|
|
2876
3004
|
}
|
|
2877
|
-
|
|
2878
|
-
var
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
}
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
3005
|
+
tmp$ret$11 = tmp_2;
|
|
3006
|
+
var list_1 = tmp$ret$11;
|
|
3007
|
+
addAll(tmp3_flatMapTo, list_1);
|
|
3008
|
+
}
|
|
3009
|
+
tmp$ret$12 = tmp3_flatMapTo;
|
|
3010
|
+
tmp$ret$13 = tmp$ret$12;
|
|
3011
|
+
tmp = plus(tmp_1, tmp$ret$13);
|
|
3012
|
+
} else if (!(_this__u8e3s4.t1n_1 == null)) {
|
|
3013
|
+
var tmp$ret$18;
|
|
3014
|
+
// Inline function 'kotlin.let' call
|
|
3015
|
+
var tmp$ret$16;
|
|
3016
|
+
// Inline function 'kotlin.collections.map' call
|
|
3017
|
+
var tmp6_map = ensureNotNull(_this__u8e3s4.t1n_1);
|
|
3018
|
+
var tmp$ret$15;
|
|
3019
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
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();
|
|
3024
|
+
var tmp$ret$14;
|
|
3025
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
3026
|
+
tmp$ret$14 = item.r13();
|
|
3027
|
+
tmp5_mapTo.a(tmp$ret$14);
|
|
3028
|
+
}
|
|
3029
|
+
tmp$ret$15 = tmp5_mapTo;
|
|
3030
|
+
tmp$ret$16 = tmp$ret$15;
|
|
3031
|
+
var tmp7_let = toSet(tmp$ret$16);
|
|
3032
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
3033
|
+
var tmp$ret$17;
|
|
3034
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
3035
|
+
tmp$ret$17 = listOf(new Enum(name, tmp7_let));
|
|
3036
|
+
tmp$ret$18 = tmp$ret$17;
|
|
3037
|
+
tmp = tmp$ret$18;
|
|
3038
|
+
} else {
|
|
3039
|
+
var tmp1_subject = _this__u8e3s4.t1m_1;
|
|
3040
|
+
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.q4_1;
|
|
3041
|
+
var tmp_4;
|
|
3042
|
+
switch (tmp0) {
|
|
3043
|
+
case -1:
|
|
3044
|
+
case 5:
|
|
3045
|
+
var tmp$ret$25;
|
|
3046
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
3047
|
+
var tmp$ret$19;
|
|
3048
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
3049
|
+
var tmp8_orEmpty = _this__u8e3s4.z1m_1;
|
|
3050
|
+
var tmp0_elvis_lhs_1 = tmp8_orEmpty;
|
|
3051
|
+
tmp$ret$19 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
3052
|
+
var tmp10_flatMap = tmp$ret$19;
|
|
3053
|
+
var tmp$ret$24;
|
|
3054
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3055
|
+
var tmp9_flatMapTo = ArrayList_init_$Create$();
|
|
3056
|
+
var tmp$ret$20;
|
|
3057
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
3058
|
+
tmp$ret$20 = tmp10_flatMap.u().c();
|
|
3059
|
+
var tmp0_iterator_3 = tmp$ret$20;
|
|
3060
|
+
while (tmp0_iterator_3.d()) {
|
|
3061
|
+
var element_2 = tmp0_iterator_3.e();
|
|
3062
|
+
var tmp$ret$23;
|
|
3063
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
3064
|
+
var tmp$ret$21;
|
|
3065
|
+
// Inline function 'kotlin.collections.component1' call
|
|
3066
|
+
tmp$ret$21 = element_2.v();
|
|
3067
|
+
var key_0 = tmp$ret$21;
|
|
3068
|
+
var tmp$ret$22;
|
|
3069
|
+
// Inline function 'kotlin.collections.component2' call
|
|
3070
|
+
tmp$ret$22 = element_2.w();
|
|
3071
|
+
var value_0 = tmp$ret$22;
|
|
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]));
|
|
3076
|
+
} else {
|
|
3077
|
+
if (tmp0_subject_2 instanceof ReferenceObject_0) {
|
|
3078
|
+
tmp_5 = emptyList();
|
|
3079
|
+
} else {
|
|
3080
|
+
noWhenBranchMatchedException();
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3083
|
+
tmp$ret$23 = tmp_5;
|
|
3084
|
+
var list_2 = tmp$ret$23;
|
|
3085
|
+
addAll(tmp9_flatMapTo, list_2);
|
|
3086
|
+
}
|
|
3087
|
+
tmp$ret$24 = tmp9_flatMapTo;
|
|
3088
|
+
tmp$ret$25 = tmp$ret$24;
|
|
3089
|
+
|
|
3090
|
+
var fields = tmp$ret$25;
|
|
3091
|
+
var schema = listOf(new Type(name, new Shape(toField_1(_this__u8e3s4, $this, name))));
|
|
3092
|
+
tmp_4 = plus(schema, fields);
|
|
3093
|
+
break;
|
|
3094
|
+
case 4:
|
|
3095
|
+
var tmp2_safe_receiver = _this__u8e3s4.y1m_1;
|
|
3096
|
+
var tmp_6;
|
|
3097
|
+
if (tmp2_safe_receiver == null) {
|
|
3098
|
+
tmp_6 = null;
|
|
3099
|
+
} else {
|
|
3100
|
+
var tmp$ret$27;
|
|
3101
|
+
// Inline function 'kotlin.let' call
|
|
3102
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
3103
|
+
var tmp$ret$26;
|
|
3104
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
3105
|
+
var tmp0_subject_3 = tmp2_safe_receiver;
|
|
3106
|
+
var tmp_7;
|
|
3107
|
+
if (tmp0_subject_3 instanceof ReferenceObject_0) {
|
|
3108
|
+
tmp_7 = emptyList();
|
|
3109
|
+
} else {
|
|
3110
|
+
if (tmp0_subject_3 instanceof SchemaObject_0) {
|
|
3111
|
+
tmp_7 = flatten_1(tmp2_safe_receiver, $this, Common_getInstance().g1t([name, 'array']));
|
|
3112
|
+
} else {
|
|
3113
|
+
noWhenBranchMatchedException();
|
|
3114
|
+
}
|
|
3115
|
+
}
|
|
3116
|
+
tmp$ret$26 = tmp_7;
|
|
3117
|
+
tmp$ret$27 = tmp$ret$26;
|
|
3118
|
+
tmp_6 = tmp$ret$27;
|
|
3119
|
+
}
|
|
3120
|
+
|
|
3121
|
+
var tmp3_elvis_lhs = tmp_6;
|
|
3122
|
+
tmp_4 = tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs;
|
|
3123
|
+
break;
|
|
3124
|
+
default:
|
|
3125
|
+
tmp_4 = emptyList();
|
|
3126
|
+
break;
|
|
3127
|
+
}
|
|
3128
|
+
tmp = tmp_4;
|
|
3129
|
+
}
|
|
3130
|
+
return tmp;
|
|
3131
|
+
}
|
|
3132
|
+
function flatten_2(_this__u8e3s4, $this, name) {
|
|
2888
3133
|
var tmp0_subject = _this__u8e3s4;
|
|
2889
3134
|
var tmp;
|
|
2890
|
-
if (tmp0_subject instanceof
|
|
2891
|
-
tmp =
|
|
3135
|
+
if (tmp0_subject instanceof ReferenceObject_0) {
|
|
3136
|
+
tmp = emptyList();
|
|
2892
3137
|
} else {
|
|
2893
|
-
if (tmp0_subject instanceof
|
|
2894
|
-
tmp = flatten_1(
|
|
3138
|
+
if (tmp0_subject instanceof SchemaObject_0) {
|
|
3139
|
+
tmp = flatten_1(_this__u8e3s4, $this, name);
|
|
2895
3140
|
} else {
|
|
2896
3141
|
noWhenBranchMatchedException();
|
|
2897
3142
|
}
|
|
2898
3143
|
}
|
|
2899
3144
|
return tmp;
|
|
2900
3145
|
}
|
|
2901
|
-
function SimpleSchema_0(name, properties) {
|
|
2902
|
-
this.s1t_1 = name;
|
|
2903
|
-
this.t1t_1 = properties;
|
|
2904
|
-
}
|
|
2905
|
-
protoOf(SimpleSchema_0).toString = function () {
|
|
2906
|
-
return 'SimpleSchema(name=' + this.s1t_1 + ', properties=' + this.t1t_1 + ')';
|
|
2907
|
-
};
|
|
2908
|
-
protoOf(SimpleSchema_0).hashCode = function () {
|
|
2909
|
-
var result = getStringHashCode(this.s1t_1);
|
|
2910
|
-
result = imul(result, 31) + hashCode(this.t1t_1) | 0;
|
|
2911
|
-
return result;
|
|
2912
|
-
};
|
|
2913
|
-
protoOf(SimpleSchema_0).equals = function (other) {
|
|
2914
|
-
if (this === other)
|
|
2915
|
-
return true;
|
|
2916
|
-
if (!(other instanceof SimpleSchema_0))
|
|
2917
|
-
return false;
|
|
2918
|
-
var tmp0_other_with_cast = other instanceof SimpleSchema_0 ? other : THROW_CCE();
|
|
2919
|
-
if (!(this.s1t_1 === tmp0_other_with_cast.s1t_1))
|
|
2920
|
-
return false;
|
|
2921
|
-
if (!equals(this.t1t_1, tmp0_other_with_cast.t1t_1))
|
|
2922
|
-
return false;
|
|
2923
|
-
return true;
|
|
2924
|
-
};
|
|
2925
3146
|
function toReference_1(_this__u8e3s4, $this) {
|
|
2926
3147
|
var tmp$ret$1;
|
|
2927
3148
|
// Inline function 'kotlin.let' call
|
|
@@ -2931,123 +3152,128 @@
|
|
|
2931
3152
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toReference.<anonymous>' call
|
|
2932
3153
|
var referencingObject = tmp0_let.i3();
|
|
2933
3154
|
var schema = tmp0_let.j3();
|
|
2934
|
-
var additionalProperties = schema.t1m_1;
|
|
2935
3155
|
var tmp;
|
|
2936
|
-
if (
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
if (additionalProperties instanceof
|
|
2940
|
-
|
|
3156
|
+
if (!(schema.a1n_1 == null)) {
|
|
3157
|
+
var additionalProperties = ensureNotNull(schema.a1n_1);
|
|
3158
|
+
var tmp_0;
|
|
3159
|
+
if (additionalProperties instanceof BooleanObject_0) {
|
|
3160
|
+
tmp_0 = new Any(false, true);
|
|
2941
3161
|
} else {
|
|
2942
|
-
if (additionalProperties instanceof
|
|
2943
|
-
|
|
3162
|
+
if (additionalProperties instanceof ReferenceObject_0) {
|
|
3163
|
+
tmp_0 = toMap_1(toReference_1(additionalProperties, $this));
|
|
2944
3164
|
} else {
|
|
2945
|
-
if (additionalProperties
|
|
2946
|
-
|
|
2947
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
2948
|
-
var tmp_0;
|
|
2949
|
-
if (tmp0 === 4) {
|
|
2950
|
-
var items = schema.r1m_1;
|
|
2951
|
-
var tmp_1;
|
|
2952
|
-
if (items instanceof ReferenceObject_0) {
|
|
2953
|
-
tmp_1 = new Custom(Common_getInstance().z1s([getReference_0(items, $this)]), true);
|
|
2954
|
-
} else {
|
|
2955
|
-
if (items instanceof SchemaObject_0) {
|
|
2956
|
-
tmp_1 = new Custom(Common_getInstance().z1s([getReference_0(referencingObject, $this), 'Array']), true);
|
|
2957
|
-
} else {
|
|
2958
|
-
if (items == null) {
|
|
2959
|
-
var tmp0_error = 'When schema is of type array items cannot be null for name: ' + new Ref_0(_this__u8e3s4.a1m_1);
|
|
2960
|
-
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2961
|
-
} else {
|
|
2962
|
-
noWhenBranchMatchedException();
|
|
2963
|
-
}
|
|
2964
|
-
}
|
|
2965
|
-
}
|
|
2966
|
-
tmp_0 = tmp_1;
|
|
2967
|
-
} else {
|
|
2968
|
-
tmp_0 = new Custom(Common_getInstance().z1s([getReference_0(referencingObject, $this)]), false);
|
|
2969
|
-
}
|
|
2970
|
-
tmp = tmp_0;
|
|
3165
|
+
if (additionalProperties instanceof SchemaObject_0) {
|
|
3166
|
+
tmp_0 = toMap_1(toReference_2(additionalProperties, $this, getReference_0(_this__u8e3s4, $this)));
|
|
2971
3167
|
} else {
|
|
2972
3168
|
noWhenBranchMatchedException();
|
|
2973
3169
|
}
|
|
2974
3170
|
}
|
|
2975
3171
|
}
|
|
3172
|
+
tmp = tmp_0;
|
|
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);
|
|
3177
|
+
} else {
|
|
3178
|
+
var tmp0_subject = schema.t1m_1;
|
|
3179
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
3180
|
+
var tmp_1;
|
|
3181
|
+
if (tmp0 === 4) {
|
|
3182
|
+
var items = schema.y1m_1;
|
|
3183
|
+
var tmp_2;
|
|
3184
|
+
if (items instanceof ReferenceObject_0) {
|
|
3185
|
+
tmp_2 = new Custom(Common_getInstance().g1t([getReference_0(items, $this)]), true);
|
|
3186
|
+
} else {
|
|
3187
|
+
if (items instanceof SchemaObject_0) {
|
|
3188
|
+
tmp_2 = new Custom(Common_getInstance().g1t([getReference_0(referencingObject, $this), 'Array']), true);
|
|
3189
|
+
} else {
|
|
3190
|
+
if (items == null) {
|
|
3191
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.h1m_1);
|
|
3192
|
+
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
3193
|
+
} else {
|
|
3194
|
+
noWhenBranchMatchedException();
|
|
3195
|
+
}
|
|
3196
|
+
}
|
|
3197
|
+
}
|
|
3198
|
+
tmp_1 = tmp_2;
|
|
3199
|
+
} else {
|
|
3200
|
+
tmp_1 = new Custom(Common_getInstance().g1t([getReference_0(referencingObject, $this)]), false);
|
|
3201
|
+
}
|
|
3202
|
+
tmp = tmp_1;
|
|
2976
3203
|
}
|
|
2977
3204
|
tmp$ret$0 = tmp;
|
|
2978
3205
|
tmp$ret$1 = tmp$ret$0;
|
|
2979
3206
|
return tmp$ret$1;
|
|
2980
3207
|
}
|
|
2981
3208
|
function toReference_2(_this__u8e3s4, $this, name) {
|
|
2982
|
-
var type = _this__u8e3s4.m1m_1;
|
|
2983
|
-
var tmp0 = type == null ? -1 : type.q4_1;
|
|
2984
3209
|
var tmp;
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
case 0:
|
|
3000
|
-
case 2:
|
|
3001
|
-
case 1:
|
|
3002
|
-
case 3:
|
|
3003
|
-
tmp = new Primitive(toPrimitive_0(additionalPropertiesType, $this), false, !(_this__u8e3s4.t1m_1 == null));
|
|
3004
|
-
break;
|
|
3005
|
-
default:
|
|
3006
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.t1m_1 == null));
|
|
3007
|
-
break;
|
|
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
|
+
}
|
|
3008
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));
|
|
3229
|
+
} else {
|
|
3230
|
+
var type = _this__u8e3s4.t1m_1;
|
|
3231
|
+
var tmp0 = type == null ? -1 : type.q4_1;
|
|
3232
|
+
var tmp_1;
|
|
3233
|
+
switch (tmp0) {
|
|
3234
|
+
case 0:
|
|
3235
|
+
case 1:
|
|
3236
|
+
case 2:
|
|
3237
|
+
case 3:
|
|
3238
|
+
tmp_1 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.a1n_1 == null));
|
|
3239
|
+
break;
|
|
3240
|
+
case -1:
|
|
3241
|
+
case 5:
|
|
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));
|
|
3246
|
+
} else {
|
|
3247
|
+
tmp_2 = new Custom(name, false, !(_this__u8e3s4.a1n_1 == null));
|
|
3248
|
+
}
|
|
3009
3249
|
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
case 2:
|
|
3021
|
-
case 3:
|
|
3022
|
-
tmp_0 = new Primitive(toPrimitive_0(type_0, $this), true);
|
|
3023
|
-
break;
|
|
3024
|
-
default:
|
|
3025
|
-
var it = _this__u8e3s4.r1m_1;
|
|
3026
|
-
var tmp_1;
|
|
3027
|
-
if (it instanceof ReferenceObject_0) {
|
|
3028
|
-
tmp_1 = toReference_1(it, $this).fl(VOID, true);
|
|
3250
|
+
tmp_1 = tmp_2;
|
|
3251
|
+
break;
|
|
3252
|
+
case 4:
|
|
3253
|
+
var it = _this__u8e3s4.y1m_1;
|
|
3254
|
+
var tmp_4;
|
|
3255
|
+
if (it instanceof ReferenceObject_0) {
|
|
3256
|
+
tmp_4 = toIterable_0(toReference_1(it, $this));
|
|
3257
|
+
} else {
|
|
3258
|
+
if (it instanceof SchemaObject_0) {
|
|
3259
|
+
tmp_4 = toIterable_0(toReference_2(it, $this, name));
|
|
3029
3260
|
} else {
|
|
3030
|
-
if (it
|
|
3031
|
-
|
|
3261
|
+
if (it == null) {
|
|
3262
|
+
var tmp0_error = 'When schema is of type array items cannot be null for name: ' + name;
|
|
3263
|
+
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
3032
3264
|
} else {
|
|
3033
|
-
|
|
3034
|
-
var tmp0_error = 'When schema is of type array items cannot be null for name: ' + name;
|
|
3035
|
-
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
3036
|
-
} else {
|
|
3037
|
-
noWhenBranchMatchedException();
|
|
3038
|
-
}
|
|
3265
|
+
noWhenBranchMatchedException();
|
|
3039
3266
|
}
|
|
3040
3267
|
}
|
|
3268
|
+
}
|
|
3041
3269
|
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
noWhenBranchMatchedException();
|
|
3050
|
-
break;
|
|
3270
|
+
tmp_1 = tmp_4;
|
|
3271
|
+
break;
|
|
3272
|
+
default:
|
|
3273
|
+
noWhenBranchMatchedException();
|
|
3274
|
+
break;
|
|
3275
|
+
}
|
|
3276
|
+
tmp = tmp_1;
|
|
3051
3277
|
}
|
|
3052
3278
|
return tmp;
|
|
3053
3279
|
}
|
|
@@ -3055,7 +3281,7 @@
|
|
|
3055
3281
|
var tmp$ret$2;
|
|
3056
3282
|
// Inline function 'kotlin.collections.associateWith' call
|
|
3057
3283
|
var tmp0_associateWith = values();
|
|
3058
|
-
var result = LinkedHashMap_init_$Create$(coerceAtLeast(mapCapacity(tmp0_associateWith.length), 16));
|
|
3284
|
+
var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(tmp0_associateWith.length), 16));
|
|
3059
3285
|
var tmp$ret$1;
|
|
3060
3286
|
// Inline function 'kotlin.collections.associateWithTo' call
|
|
3061
3287
|
var indexedObject = tmp0_associateWith;
|
|
@@ -3071,28 +3297,28 @@
|
|
|
3071
3297
|
var tmp;
|
|
3072
3298
|
switch (tmp0) {
|
|
3073
3299
|
case 0:
|
|
3074
|
-
tmp = _this__u8e3s4.
|
|
3300
|
+
tmp = _this__u8e3s4.b1k_1;
|
|
3075
3301
|
break;
|
|
3076
3302
|
case 1:
|
|
3077
|
-
tmp = _this__u8e3s4.
|
|
3303
|
+
tmp = _this__u8e3s4.d1k_1;
|
|
3078
3304
|
break;
|
|
3079
3305
|
case 2:
|
|
3080
|
-
tmp = _this__u8e3s4.
|
|
3306
|
+
tmp = _this__u8e3s4.c1k_1;
|
|
3081
3307
|
break;
|
|
3082
3308
|
case 3:
|
|
3083
|
-
tmp = _this__u8e3s4.
|
|
3309
|
+
tmp = _this__u8e3s4.e1k_1;
|
|
3084
3310
|
break;
|
|
3085
3311
|
case 4:
|
|
3086
|
-
tmp = _this__u8e3s4.
|
|
3312
|
+
tmp = _this__u8e3s4.f1k_1;
|
|
3087
3313
|
break;
|
|
3088
3314
|
case 5:
|
|
3089
|
-
tmp = _this__u8e3s4.
|
|
3315
|
+
tmp = _this__u8e3s4.g1k_1;
|
|
3090
3316
|
break;
|
|
3091
3317
|
case 6:
|
|
3092
|
-
tmp = _this__u8e3s4.
|
|
3318
|
+
tmp = _this__u8e3s4.h1k_1;
|
|
3093
3319
|
break;
|
|
3094
3320
|
case 7:
|
|
3095
|
-
tmp = _this__u8e3s4.
|
|
3321
|
+
tmp = _this__u8e3s4.i1k_1;
|
|
3096
3322
|
break;
|
|
3097
3323
|
default:
|
|
3098
3324
|
noWhenBranchMatchedException();
|
|
@@ -3106,7 +3332,15 @@
|
|
|
3106
3332
|
return filterNotNullValues_0(tmp$ret$2);
|
|
3107
3333
|
}
|
|
3108
3334
|
function getReference_0(_this__u8e3s4, $this) {
|
|
3109
|
-
|
|
3335
|
+
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.h1m_1), ['/']), 3);
|
|
3336
|
+
var tmp;
|
|
3337
|
+
if (tmp0_elvis_lhs == null) {
|
|
3338
|
+
var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.h1m_1);
|
|
3339
|
+
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
3340
|
+
} else {
|
|
3341
|
+
tmp = tmp0_elvis_lhs;
|
|
3342
|
+
}
|
|
3343
|
+
return tmp;
|
|
3110
3344
|
}
|
|
3111
3345
|
function toPrimitive_0(_this__u8e3s4, $this) {
|
|
3112
3346
|
var tmp0_subject = _this__u8e3s4;
|
|
@@ -3130,40 +3364,72 @@
|
|
|
3130
3364
|
}
|
|
3131
3365
|
return tmp;
|
|
3132
3366
|
}
|
|
3133
|
-
function
|
|
3367
|
+
function toField_1(_this__u8e3s4, $this, name) {
|
|
3368
|
+
var tmp$ret$6;
|
|
3369
|
+
// Inline function 'kotlin.collections.map' call
|
|
3370
|
+
var tmp$ret$0;
|
|
3371
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
3372
|
+
var tmp0_orEmpty = _this__u8e3s4.z1m_1;
|
|
3373
|
+
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3374
|
+
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3375
|
+
var tmp2_map = tmp$ret$0;
|
|
3376
|
+
var tmp$ret$5;
|
|
3377
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
3378
|
+
var tmp1_mapTo = ArrayList_init_$Create$_0(tmp2_map.f());
|
|
3379
|
+
var tmp$ret$1;
|
|
3380
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
3381
|
+
tmp$ret$1 = tmp2_map.u().c();
|
|
3382
|
+
var tmp0_iterator = tmp$ret$1;
|
|
3383
|
+
while (tmp0_iterator.d()) {
|
|
3384
|
+
var item = tmp0_iterator.e();
|
|
3385
|
+
var tmp$ret$4;
|
|
3386
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3387
|
+
var tmp$ret$2;
|
|
3388
|
+
// Inline function 'kotlin.collections.component1' call
|
|
3389
|
+
tmp$ret$2 = item.v();
|
|
3390
|
+
var key = tmp$ret$2;
|
|
3391
|
+
var tmp$ret$3;
|
|
3392
|
+
// Inline function 'kotlin.collections.component2' call
|
|
3393
|
+
tmp$ret$3 = item.w();
|
|
3394
|
+
var value = tmp$ret$3;
|
|
3395
|
+
var tmp0_subject = value;
|
|
3396
|
+
var tmp;
|
|
3397
|
+
if (tmp0_subject instanceof SchemaObject_0) {
|
|
3398
|
+
var tmp_0 = new Identifier(key);
|
|
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);
|
|
3402
|
+
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
3403
|
+
} else {
|
|
3404
|
+
if (tmp0_subject instanceof ReferenceObject_0) {
|
|
3405
|
+
var tmp_2 = new Identifier(key);
|
|
3406
|
+
var tmp_3 = new Custom(getReference_0(value, $this), false);
|
|
3407
|
+
var tmp3_safe_receiver = _this__u8e3s4.s1n_1;
|
|
3408
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.i1(key);
|
|
3409
|
+
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
3410
|
+
} else {
|
|
3411
|
+
noWhenBranchMatchedException();
|
|
3412
|
+
}
|
|
3413
|
+
}
|
|
3414
|
+
tmp$ret$4 = tmp;
|
|
3415
|
+
tmp1_mapTo.a(tmp$ret$4);
|
|
3416
|
+
}
|
|
3417
|
+
tmp$ret$5 = tmp1_mapTo;
|
|
3418
|
+
tmp$ret$6 = tmp$ret$5;
|
|
3419
|
+
return tmp$ret$6;
|
|
3420
|
+
}
|
|
3421
|
+
function toField_2(_this__u8e3s4, $this, name) {
|
|
3134
3422
|
var tmp$ret$1;
|
|
3135
3423
|
// Inline function 'kotlin.let' call
|
|
3136
|
-
var
|
|
3424
|
+
var s = _this__u8e3s4.k1l_1;
|
|
3137
3425
|
var tmp;
|
|
3138
|
-
if (
|
|
3139
|
-
|
|
3140
|
-
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);
|
|
3141
3428
|
} else {
|
|
3142
|
-
if (
|
|
3143
|
-
|
|
3144
|
-
var type = (tmp_1 instanceof SchemaObject_0 ? tmp_1 : THROW_CCE()).m1m_1;
|
|
3145
|
-
var tmp0 = type == null ? -1 : type.q4_1;
|
|
3146
|
-
var tmp_2;
|
|
3147
|
-
switch (tmp0) {
|
|
3148
|
-
case 0:
|
|
3149
|
-
case 2:
|
|
3150
|
-
case 1:
|
|
3151
|
-
case 3:
|
|
3152
|
-
tmp_2 = new Primitive(toPrimitive_0(type, $this), false);
|
|
3153
|
-
break;
|
|
3154
|
-
case 4:
|
|
3155
|
-
throw new NotImplementedError();
|
|
3156
|
-
case 5:
|
|
3157
|
-
throw new NotImplementedError();
|
|
3158
|
-
case -1:
|
|
3159
|
-
throw new NotImplementedError();
|
|
3160
|
-
default:
|
|
3161
|
-
noWhenBranchMatchedException();
|
|
3162
|
-
break;
|
|
3163
|
-
}
|
|
3164
|
-
tmp = tmp_2;
|
|
3429
|
+
if (s instanceof SchemaObject_0) {
|
|
3430
|
+
tmp = toReference_2(s, $this, name);
|
|
3165
3431
|
} else {
|
|
3166
|
-
if (
|
|
3432
|
+
if (s == null) {
|
|
3167
3433
|
throw new NotImplementedError();
|
|
3168
3434
|
} else {
|
|
3169
3435
|
noWhenBranchMatchedException();
|
|
@@ -3174,26 +3440,26 @@
|
|
|
3174
3440
|
// Inline function 'kotlin.contracts.contract' call
|
|
3175
3441
|
var tmp$ret$0;
|
|
3176
3442
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3177
|
-
var
|
|
3178
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
3179
|
-
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));
|
|
3180
3446
|
tmp$ret$1 = tmp$ret$0;
|
|
3181
3447
|
return tmp$ret$1;
|
|
3182
3448
|
}
|
|
3183
3449
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
3184
|
-
this.
|
|
3185
|
-
this.
|
|
3186
|
-
this.
|
|
3187
|
-
this.
|
|
3450
|
+
this.x1t_1 = path;
|
|
3451
|
+
this.y1t_1 = pathItem;
|
|
3452
|
+
this.z1t_1 = method;
|
|
3453
|
+
this.a1u_1 = operation;
|
|
3188
3454
|
}
|
|
3189
3455
|
protoOf(FlattenRequest_0).toString = function () {
|
|
3190
|
-
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 + ')';
|
|
3191
3457
|
};
|
|
3192
3458
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
3193
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3194
|
-
result = imul(result, 31) + this.
|
|
3195
|
-
result = imul(result, 31) + this.
|
|
3196
|
-
result = imul(result, 31) + this.
|
|
3459
|
+
var result = Path__hashCode_impl_go73kd_0(this.x1t_1);
|
|
3460
|
+
result = imul(result, 31) + this.y1t_1.hashCode() | 0;
|
|
3461
|
+
result = imul(result, 31) + this.z1t_1.hashCode() | 0;
|
|
3462
|
+
result = imul(result, 31) + this.a1u_1.hashCode() | 0;
|
|
3197
3463
|
return result;
|
|
3198
3464
|
};
|
|
3199
3465
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -3202,13 +3468,13 @@
|
|
|
3202
3468
|
if (!(other instanceof FlattenRequest_0))
|
|
3203
3469
|
return false;
|
|
3204
3470
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
3205
|
-
if (!(this.
|
|
3471
|
+
if (!(this.x1t_1 === tmp0_other_with_cast.x1t_1))
|
|
3206
3472
|
return false;
|
|
3207
|
-
if (!this.
|
|
3473
|
+
if (!this.y1t_1.equals(tmp0_other_with_cast.y1t_1))
|
|
3208
3474
|
return false;
|
|
3209
|
-
if (!this.
|
|
3475
|
+
if (!this.z1t_1.equals(tmp0_other_with_cast.z1t_1))
|
|
3210
3476
|
return false;
|
|
3211
|
-
if (!this.
|
|
3477
|
+
if (!this.a1u_1.equals(tmp0_other_with_cast.a1u_1))
|
|
3212
3478
|
return false;
|
|
3213
3479
|
return true;
|
|
3214
3480
|
};
|
|
@@ -3217,7 +3483,7 @@
|
|
|
3217
3483
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3218
3484
|
var tmp$ret$11;
|
|
3219
3485
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3220
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
3486
|
+
var tmp1_flatMap = _this__u8e3s4.n1j_1;
|
|
3221
3487
|
var tmp$ret$10;
|
|
3222
3488
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3223
3489
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -3231,7 +3497,7 @@
|
|
|
3231
3497
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
3232
3498
|
var tmp$ret$1;
|
|
3233
3499
|
// Inline function 'kotlin.collections.component1' call
|
|
3234
|
-
tmp$ret$1 = element.v().
|
|
3500
|
+
tmp$ret$1 = element.v().v1j_1;
|
|
3235
3501
|
var path = tmp$ret$1;
|
|
3236
3502
|
var tmp$ret$2;
|
|
3237
3503
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3288,23 +3554,23 @@
|
|
|
3288
3554
|
return tmp$ret$14;
|
|
3289
3555
|
}
|
|
3290
3556
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
3291
|
-
this.
|
|
3292
|
-
this.
|
|
3293
|
-
this.
|
|
3294
|
-
this.
|
|
3295
|
-
this.
|
|
3296
|
-
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;
|
|
3297
3563
|
}
|
|
3298
3564
|
protoOf(FlattenResponse_0).toString = function () {
|
|
3299
|
-
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 + ')';
|
|
3300
3566
|
};
|
|
3301
3567
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
3302
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3303
|
-
result = imul(result, 31) + this.
|
|
3304
|
-
result = imul(result, 31) + this.
|
|
3305
|
-
result = imul(result, 31) + this.
|
|
3306
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.
|
|
3307
|
-
result = imul(result, 31) + hashCode(this.
|
|
3568
|
+
var result = Path__hashCode_impl_go73kd_0(this.b1u_1);
|
|
3569
|
+
result = imul(result, 31) + this.c1u_1.hashCode() | 0;
|
|
3570
|
+
result = imul(result, 31) + this.d1u_1.hashCode() | 0;
|
|
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;
|
|
3308
3574
|
return result;
|
|
3309
3575
|
};
|
|
3310
3576
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -3313,17 +3579,17 @@
|
|
|
3313
3579
|
if (!(other instanceof FlattenResponse_0))
|
|
3314
3580
|
return false;
|
|
3315
3581
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
3316
|
-
if (!(this.
|
|
3582
|
+
if (!(this.b1u_1 === tmp0_other_with_cast.b1u_1))
|
|
3317
3583
|
return false;
|
|
3318
|
-
if (!this.
|
|
3584
|
+
if (!this.c1u_1.equals(tmp0_other_with_cast.c1u_1))
|
|
3319
3585
|
return false;
|
|
3320
|
-
if (!this.
|
|
3586
|
+
if (!this.d1u_1.equals(tmp0_other_with_cast.d1u_1))
|
|
3321
3587
|
return false;
|
|
3322
|
-
if (!this.
|
|
3588
|
+
if (!this.e1u_1.equals(tmp0_other_with_cast.e1u_1))
|
|
3323
3589
|
return false;
|
|
3324
|
-
if (!(this.
|
|
3590
|
+
if (!(this.f1u_1 === tmp0_other_with_cast.f1u_1))
|
|
3325
3591
|
return false;
|
|
3326
|
-
if (!equals(this.
|
|
3592
|
+
if (!equals(this.g1u_1, tmp0_other_with_cast.g1u_1))
|
|
3327
3593
|
return false;
|
|
3328
3594
|
return true;
|
|
3329
3595
|
};
|
|
@@ -3332,7 +3598,7 @@
|
|
|
3332
3598
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3333
3599
|
var tmp$ret$18;
|
|
3334
3600
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3335
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
3601
|
+
var tmp1_flatMap = _this__u8e3s4.n1j_1;
|
|
3336
3602
|
var tmp$ret$17;
|
|
3337
3603
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3338
3604
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -3346,7 +3612,7 @@
|
|
|
3346
3612
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
3347
3613
|
var tmp$ret$1;
|
|
3348
3614
|
// Inline function 'kotlin.collections.component1' call
|
|
3349
|
-
tmp$ret$1 = element.v().
|
|
3615
|
+
tmp$ret$1 = element.v().v1j_1;
|
|
3350
3616
|
var path = tmp$ret$1;
|
|
3351
3617
|
var tmp$ret$2;
|
|
3352
3618
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3376,7 +3642,7 @@
|
|
|
3376
3642
|
var operation = tmp$ret$5;
|
|
3377
3643
|
var tmp$ret$12;
|
|
3378
3644
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3379
|
-
var tmp0_safe_receiver = operation.
|
|
3645
|
+
var tmp0_safe_receiver = operation.v1k_1;
|
|
3380
3646
|
var tmp;
|
|
3381
3647
|
if (tmp0_safe_receiver == null) {
|
|
3382
3648
|
tmp = null;
|
|
@@ -3396,7 +3662,7 @@
|
|
|
3396
3662
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
3397
3663
|
var tmp$ret$7;
|
|
3398
3664
|
// Inline function 'kotlin.collections.component1' call
|
|
3399
|
-
tmp$ret$7 = item.v().
|
|
3665
|
+
tmp$ret$7 = item.v().x1n_1;
|
|
3400
3666
|
var statusCode = tmp$ret$7;
|
|
3401
3667
|
var tmp$ret$8;
|
|
3402
3668
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3441,22 +3707,48 @@
|
|
|
3441
3707
|
tmp$ret$21 = tmp$ret$20;
|
|
3442
3708
|
return tmp$ret$21;
|
|
3443
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
|
+
}
|
|
3444
3736
|
function OpenApiParser$parseRequestBody$lambda_0(this$0) {
|
|
3445
3737
|
return function (req) {
|
|
3446
|
-
var parameters = plus(resolveParameters_2(req.
|
|
3447
|
-
var segments = toSegments_0(req.
|
|
3448
|
-
var name = toName_0(req.
|
|
3449
|
-
var tmp$ret$
|
|
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);
|
|
3741
|
+
var tmp$ret$6;
|
|
3450
3742
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3451
3743
|
var tmp$ret$0;
|
|
3452
3744
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3453
|
-
var tmp0_safe_receiver = req.
|
|
3745
|
+
var tmp0_safe_receiver = req.a1u_1.u1k_1;
|
|
3454
3746
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, this$0);
|
|
3455
|
-
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;
|
|
3456
3748
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3457
3749
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3458
3750
|
var tmp2_flatMap = tmp$ret$0;
|
|
3459
|
-
var tmp$ret$
|
|
3751
|
+
var tmp$ret$5;
|
|
3460
3752
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3461
3753
|
var tmp1_flatMapTo = ArrayList_init_$Create$();
|
|
3462
3754
|
var tmp$ret$1;
|
|
@@ -3465,39 +3757,32 @@
|
|
|
3465
3757
|
var tmp0_iterator = tmp$ret$1;
|
|
3466
3758
|
while (tmp0_iterator.d()) {
|
|
3467
3759
|
var element = tmp0_iterator.e();
|
|
3468
|
-
var tmp$ret$
|
|
3760
|
+
var tmp$ret$4;
|
|
3469
3761
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
3470
3762
|
var tmp$ret$2;
|
|
3471
3763
|
// Inline function 'kotlin.collections.component2' call
|
|
3472
3764
|
tmp$ret$2 = element.w();
|
|
3473
3765
|
var mediaObject = tmp$ret$2;
|
|
3474
|
-
var schema = mediaObject.
|
|
3766
|
+
var schema = mediaObject.b1m_1;
|
|
3475
3767
|
var tmp;
|
|
3476
3768
|
if (schema instanceof SchemaObject_0) {
|
|
3477
|
-
var tmp0_subject = schema.
|
|
3769
|
+
var tmp0_subject = schema.t1m_1;
|
|
3478
3770
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
3479
3771
|
var tmp_0;
|
|
3480
3772
|
switch (tmp0) {
|
|
3481
3773
|
case -1:
|
|
3482
3774
|
case 5:
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
var tmp$ret$
|
|
3487
|
-
// Inline function 'kotlin.collections.
|
|
3488
|
-
var
|
|
3489
|
-
var
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
var tmp$ret$3;
|
|
3493
|
-
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
3494
|
-
tmp$ret$3 = new Type(item.s1t_1, new Shape(item.t1t_1));
|
|
3495
|
-
tmp0_mapTo.a(tmp$ret$3);
|
|
3496
|
-
}
|
|
3497
|
-
tmp$ret$4 = tmp0_mapTo;
|
|
3498
|
-
tmp$ret$5 = tmp$ret$4;
|
|
3775
|
+
tmp_0 = flatten_1(schema, this$0, Common_getInstance().g1t([name, 'RequestBody']));
|
|
3776
|
+
break;
|
|
3777
|
+
case 4:
|
|
3778
|
+
var tmp$ret$3;
|
|
3779
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
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']));
|
|
3782
|
+
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
3783
|
+
tmp$ret$3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
3499
3784
|
|
|
3500
|
-
tmp_0 = tmp$ret$
|
|
3785
|
+
tmp_0 = tmp$ret$3;
|
|
3501
3786
|
break;
|
|
3502
3787
|
default:
|
|
3503
3788
|
tmp_0 = emptyList();
|
|
@@ -3515,103 +3800,85 @@
|
|
|
3515
3800
|
}
|
|
3516
3801
|
}
|
|
3517
3802
|
}
|
|
3518
|
-
tmp$ret$
|
|
3519
|
-
var list = tmp$ret$
|
|
3803
|
+
tmp$ret$4 = tmp;
|
|
3804
|
+
var list = tmp$ret$4;
|
|
3520
3805
|
addAll(tmp1_flatMapTo, list);
|
|
3521
3806
|
}
|
|
3522
|
-
tmp$ret$
|
|
3523
|
-
tmp$ret$
|
|
3524
|
-
return tmp$ret$
|
|
3807
|
+
tmp$ret$5 = tmp1_flatMapTo;
|
|
3808
|
+
tmp$ret$6 = tmp$ret$5;
|
|
3809
|
+
return tmp$ret$6;
|
|
3525
3810
|
};
|
|
3526
3811
|
}
|
|
3527
3812
|
function OpenApiParser$parseResponseBody$lambda_0(this$0) {
|
|
3528
3813
|
return function (res) {
|
|
3529
|
-
var parameters = plus(resolveParameters_2(res.
|
|
3530
|
-
var segments = toSegments_0(res.
|
|
3531
|
-
var name = toName_0(res.
|
|
3532
|
-
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;
|
|
3533
3818
|
var tmp;
|
|
3534
|
-
if (response instanceof
|
|
3535
|
-
tmp
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
var
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
var
|
|
3562
|
-
var
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
var tmp$ret$4;
|
|
3577
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3578
|
-
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
3579
|
-
var tmp0_iterator_0 = tmp1_map.c();
|
|
3580
|
-
while (tmp0_iterator_0.d()) {
|
|
3581
|
-
var item = tmp0_iterator_0.e();
|
|
3582
|
-
var tmp$ret$3;
|
|
3583
|
-
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseResponseBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
3584
|
-
tmp$ret$3 = new Type(item.s1t_1, new Shape(item.t1t_1));
|
|
3585
|
-
tmp0_mapTo.a(tmp$ret$3);
|
|
3586
|
-
}
|
|
3587
|
-
tmp$ret$4 = tmp0_mapTo;
|
|
3588
|
-
tmp$ret$5 = tmp$ret$4;
|
|
3819
|
+
if (response instanceof ResponseObject_0) {
|
|
3820
|
+
var tmp$ret$6;
|
|
3821
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
3822
|
+
var tmp$ret$0;
|
|
3823
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
3824
|
+
var tmp0_orEmpty = response.c1o_1;
|
|
3825
|
+
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3826
|
+
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3827
|
+
var tmp2_flatMap = tmp$ret$0;
|
|
3828
|
+
var tmp$ret$5;
|
|
3829
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3830
|
+
var tmp1_flatMapTo = ArrayList_init_$Create$();
|
|
3831
|
+
var tmp$ret$1;
|
|
3832
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
3833
|
+
tmp$ret$1 = tmp2_flatMap.u().c();
|
|
3834
|
+
var tmp0_iterator = tmp$ret$1;
|
|
3835
|
+
while (tmp0_iterator.d()) {
|
|
3836
|
+
var element = tmp0_iterator.e();
|
|
3837
|
+
var tmp$ret$4;
|
|
3838
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
3839
|
+
var tmp$ret$2;
|
|
3840
|
+
// Inline function 'kotlin.collections.component2' call
|
|
3841
|
+
tmp$ret$2 = element.w();
|
|
3842
|
+
var mediaObject = tmp$ret$2;
|
|
3843
|
+
var schema = mediaObject.b1m_1;
|
|
3844
|
+
var tmp_0;
|
|
3845
|
+
if (schema instanceof SchemaObject_0) {
|
|
3846
|
+
var tmp0_subject = schema.t1m_1;
|
|
3847
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
3848
|
+
var tmp_1;
|
|
3849
|
+
switch (tmp0) {
|
|
3850
|
+
case -1:
|
|
3851
|
+
case 5:
|
|
3852
|
+
tmp_1 = flatten_1(schema, this$0, Common_getInstance().g1t([name, _StatusCode___get_value__impl__we50mu_0(res.f1u_1), 'ResponseBody']));
|
|
3853
|
+
break;
|
|
3854
|
+
case 4:
|
|
3855
|
+
var tmp$ret$3;
|
|
3856
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
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']));
|
|
3859
|
+
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
3860
|
+
tmp$ret$3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
3589
3861
|
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
}
|
|
3596
|
-
tmp_0 = tmp_1;
|
|
3597
|
-
} else {
|
|
3598
|
-
if (schema instanceof ReferenceObject_0) {
|
|
3599
|
-
tmp_0 = emptyList();
|
|
3600
|
-
} else {
|
|
3601
|
-
if (schema == null) {
|
|
3602
|
-
tmp_0 = emptyList();
|
|
3603
|
-
} else {
|
|
3604
|
-
noWhenBranchMatchedException();
|
|
3605
|
-
}
|
|
3606
|
-
}
|
|
3862
|
+
tmp_1 = tmp$ret$3;
|
|
3863
|
+
break;
|
|
3864
|
+
default:
|
|
3865
|
+
tmp_1 = emptyList();
|
|
3866
|
+
break;
|
|
3607
3867
|
}
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3868
|
+
tmp_0 = tmp_1;
|
|
3869
|
+
} else {
|
|
3870
|
+
tmp_0 = emptyList();
|
|
3611
3871
|
}
|
|
3612
|
-
tmp$ret$
|
|
3613
|
-
|
|
3614
|
-
|
|
3872
|
+
tmp$ret$4 = tmp_0;
|
|
3873
|
+
var list = tmp$ret$4;
|
|
3874
|
+
addAll(tmp1_flatMapTo, list);
|
|
3875
|
+
}
|
|
3876
|
+
tmp$ret$5 = tmp1_flatMapTo;
|
|
3877
|
+
tmp$ret$6 = tmp$ret$5;
|
|
3878
|
+
tmp = tmp$ret$6;
|
|
3879
|
+
} else {
|
|
3880
|
+
if (response instanceof ReferenceObject_0) {
|
|
3881
|
+
tmp = emptyList();
|
|
3615
3882
|
} else {
|
|
3616
3883
|
noWhenBranchMatchedException();
|
|
3617
3884
|
}
|
|
@@ -3623,10 +3890,10 @@
|
|
|
3623
3890
|
var tmp0_subject = it;
|
|
3624
3891
|
var tmp;
|
|
3625
3892
|
if (tmp0_subject instanceof Literal) {
|
|
3626
|
-
tmp = Common_getInstance().
|
|
3893
|
+
tmp = Common_getInstance().g1t([it.sj_1]);
|
|
3627
3894
|
} else {
|
|
3628
3895
|
if (tmp0_subject instanceof Param) {
|
|
3629
|
-
tmp = Common_getInstance().
|
|
3896
|
+
tmp = Common_getInstance().g1t([it.ti_1.ej_1]);
|
|
3630
3897
|
} else {
|
|
3631
3898
|
noWhenBranchMatchedException();
|
|
3632
3899
|
}
|
|
@@ -3635,7 +3902,75 @@
|
|
|
3635
3902
|
}
|
|
3636
3903
|
function OpenApiParser_0(openApi) {
|
|
3637
3904
|
Companion_getInstance_1();
|
|
3638
|
-
this.
|
|
3905
|
+
this.w1t_1 = openApi;
|
|
3906
|
+
}
|
|
3907
|
+
function toMap_1(_this__u8e3s4) {
|
|
3908
|
+
var tmp0_subject = _this__u8e3s4;
|
|
3909
|
+
var tmp;
|
|
3910
|
+
if (tmp0_subject instanceof Custom) {
|
|
3911
|
+
tmp = _this__u8e3s4.kl(VOID, VOID, true);
|
|
3912
|
+
} else {
|
|
3913
|
+
if (tmp0_subject instanceof Any) {
|
|
3914
|
+
tmp = _this__u8e3s4.il(VOID, true);
|
|
3915
|
+
} else {
|
|
3916
|
+
if (tmp0_subject instanceof Primitive) {
|
|
3917
|
+
tmp = _this__u8e3s4.ml(VOID, VOID, true);
|
|
3918
|
+
} else {
|
|
3919
|
+
noWhenBranchMatchedException();
|
|
3920
|
+
}
|
|
3921
|
+
}
|
|
3922
|
+
}
|
|
3923
|
+
return tmp;
|
|
3924
|
+
}
|
|
3925
|
+
function isPrimitive_0(_this__u8e3s4) {
|
|
3926
|
+
var tmp0_subject = _this__u8e3s4;
|
|
3927
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
3928
|
+
var tmp;
|
|
3929
|
+
switch (tmp0) {
|
|
3930
|
+
case 0:
|
|
3931
|
+
tmp = true;
|
|
3932
|
+
break;
|
|
3933
|
+
case 1:
|
|
3934
|
+
tmp = true;
|
|
3935
|
+
break;
|
|
3936
|
+
case 2:
|
|
3937
|
+
tmp = true;
|
|
3938
|
+
break;
|
|
3939
|
+
case 3:
|
|
3940
|
+
tmp = true;
|
|
3941
|
+
break;
|
|
3942
|
+
case 4:
|
|
3943
|
+
tmp = false;
|
|
3944
|
+
break;
|
|
3945
|
+
case 5:
|
|
3946
|
+
tmp = false;
|
|
3947
|
+
break;
|
|
3948
|
+
case -1:
|
|
3949
|
+
tmp = false;
|
|
3950
|
+
break;
|
|
3951
|
+
default:
|
|
3952
|
+
noWhenBranchMatchedException();
|
|
3953
|
+
break;
|
|
3954
|
+
}
|
|
3955
|
+
return tmp;
|
|
3956
|
+
}
|
|
3957
|
+
function toIterable_0(_this__u8e3s4) {
|
|
3958
|
+
var tmp0_subject = _this__u8e3s4;
|
|
3959
|
+
var tmp;
|
|
3960
|
+
if (tmp0_subject instanceof Custom) {
|
|
3961
|
+
tmp = _this__u8e3s4.kl(VOID, true);
|
|
3962
|
+
} else {
|
|
3963
|
+
if (tmp0_subject instanceof Any) {
|
|
3964
|
+
tmp = _this__u8e3s4.il(true);
|
|
3965
|
+
} else {
|
|
3966
|
+
if (tmp0_subject instanceof Primitive) {
|
|
3967
|
+
tmp = _this__u8e3s4.ml(VOID, true);
|
|
3968
|
+
} else {
|
|
3969
|
+
noWhenBranchMatchedException();
|
|
3970
|
+
}
|
|
3971
|
+
}
|
|
3972
|
+
}
|
|
3973
|
+
return tmp;
|
|
3639
3974
|
}
|
|
3640
3975
|
function filterNotNullValues_0(_this__u8e3s4) {
|
|
3641
3976
|
var tmp$ret$8;
|