@flock/wirespec 0.6.3 → 0.7.0
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 +336 -336
- package/kotlin/arrow-arrow-atomic.js +4 -4
- package/kotlin/arrow-arrow-continuations.js +3 -3
- package/kotlin/arrow-arrow-core.js +17 -17
- package/kotlin/kotlin-kotlin-stdlib-js-ir.js +195 -180
- package/kotlin/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin/kotlin-openapi-bindings.js +3461 -3461
- package/kotlin/kotlin-openapi-bindings.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1406 -1376
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1155 -1146
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/kotlin/wirespec-cli.js +124 -124
- package/kotlin/wirespec-core.js +376 -305
- package/kotlin/wirespec-core.js.map +1 -1
- package/kotlin/wirespec-lib.js +53 -53
- package/kotlin/wirespec-openapi.js +1489 -1182
- package/kotlin/wirespec-openapi.js.map +1 -1
- package/package.json +1 -1
- package/sync-hashes/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.hash +1 -1
- package/sync-hashes/arrow-arrow-atomic.js.hash +1 -1
- package/sync-hashes/arrow-arrow-continuations.js.hash +1 -1
- package/sync-hashes/arrow-arrow-core.js.hash +1 -1
- package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.hash +1 -1
- package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.map.hash +1 -1
- package/sync-hashes/kotlin-openapi-bindings.js.hash +1 -1
- package/sync-hashes/kotlin-openapi-bindings.js.map.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map.hash +1 -1
- package/sync-hashes/wirespec-cli.js.hash +1 -1
- package/sync-hashes/wirespec-core.js.hash +1 -1
- package/sync-hashes/wirespec-core.js.map.hash +1 -1
- package/sync-hashes/wirespec-lib.js.hash +1 -1
- package/sync-hashes/wirespec-openapi.js.hash +1 -1
- package/sync-hashes/wirespec-openapi.js.map.hash +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (root, factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './wirespec-core.js', './kotlin-kotlin-stdlib-js-ir.js', './kotlin-openapi-bindings.js'], factory);
|
|
3
|
+
define(['exports', './wirespec-core.js', './kotlin-kotlin-stdlib-js-ir.js', './kotlin-openapi-bindings.js', './kotlinx-serialization-kotlinx-serialization-json-js-ir.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./wirespec-core.js'), require('./kotlin-kotlin-stdlib-js-ir.js'), require('./kotlin-openapi-bindings.js'));
|
|
5
|
+
factory(module.exports, require('./wirespec-core.js'), require('./kotlin-kotlin-stdlib-js-ir.js'), require('./kotlin-openapi-bindings.js'), require('./kotlinx-serialization-kotlinx-serialization-json-js-ir.js'));
|
|
6
6
|
else {
|
|
7
7
|
if (typeof this['wirespec-core'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module 'wirespec-openapi'. Its dependency 'wirespec-core' was not found. Please, check whether 'wirespec-core' is loaded prior to 'wirespec-openapi'.");
|
|
@@ -13,81 +13,92 @@
|
|
|
13
13
|
if (typeof this['kotlin-openapi-bindings'] === 'undefined') {
|
|
14
14
|
throw new Error("Error loading module 'wirespec-openapi'. Its dependency 'kotlin-openapi-bindings' was not found. Please, check whether 'kotlin-openapi-bindings' is loaded prior to 'wirespec-openapi'.");
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
if (typeof this['kotlinx-serialization-kotlinx-serialization-json-js-ir'] === 'undefined') {
|
|
17
|
+
throw new Error("Error loading module 'wirespec-openapi'. Its dependency 'kotlinx-serialization-kotlinx-serialization-json-js-ir' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-json-js-ir' is loaded prior to 'wirespec-openapi'.");
|
|
18
|
+
}
|
|
19
|
+
root['wirespec-openapi'] = factory(typeof this['wirespec-openapi'] === 'undefined' ? {} : this['wirespec-openapi'], this['wirespec-core'], this['kotlin-kotlin-stdlib-js-ir'], this['kotlin-openapi-bindings'], this['kotlinx-serialization-kotlinx-serialization-json-js-ir']);
|
|
17
20
|
}
|
|
18
|
-
}(this, function (_, kotlin_community_flock_wirespec_compiler_core, kotlin_kotlin, kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings) {
|
|
21
|
+
}(this, function (_, kotlin_community_flock_wirespec_compiler_core, kotlin_kotlin, kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json) {
|
|
19
22
|
'use strict';
|
|
20
23
|
//region block: imports
|
|
21
24
|
var imul = Math.imul;
|
|
22
|
-
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
25
|
+
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.c1;
|
|
23
26
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
|
|
24
|
-
var split = kotlin_kotlin.$_$.
|
|
27
|
+
var split = kotlin_kotlin.$_$.x8;
|
|
25
28
|
var Unit_getInstance = kotlin_kotlin.$_$.i3;
|
|
26
29
|
var addAll = kotlin_kotlin.$_$.z3;
|
|
27
|
-
var VOID = kotlin_kotlin.$_$.
|
|
28
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
29
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
30
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
31
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
30
|
+
var VOID = kotlin_kotlin.$_$.za;
|
|
31
|
+
var joinToString = kotlin_kotlin.$_$.b5;
|
|
32
|
+
var protoOf = kotlin_kotlin.$_$.t7;
|
|
33
|
+
var objectMeta = kotlin_kotlin.$_$.s7;
|
|
34
|
+
var setMetadataFor = kotlin_kotlin.$_$.u7;
|
|
32
35
|
var Default_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i1;
|
|
33
|
-
var plus = kotlin_kotlin.$_$.
|
|
36
|
+
var plus = kotlin_kotlin.$_$.p5;
|
|
34
37
|
var ParameterLocation_QUERY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.t;
|
|
35
38
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.c4;
|
|
36
39
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.f;
|
|
37
40
|
var ParameterLocation_HEADER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s;
|
|
38
41
|
var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r;
|
|
39
42
|
var emptyList = kotlin_kotlin.$_$.r4;
|
|
40
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
41
|
-
var NotImplementedError = kotlin_kotlin.$_$.
|
|
43
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ua;
|
|
44
|
+
var NotImplementedError = kotlin_kotlin.$_$.v9;
|
|
42
45
|
var SchemaObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g;
|
|
43
46
|
var ReferenceObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d;
|
|
44
47
|
var Content = kotlin_community_flock_wirespec_compiler_core.$_$.g;
|
|
45
48
|
var Request = kotlin_community_flock_wirespec_compiler_core.$_$.i;
|
|
46
|
-
var listOf = kotlin_kotlin.$_$.
|
|
49
|
+
var listOf = kotlin_kotlin.$_$.i5;
|
|
47
50
|
var emptyMap = kotlin_kotlin.$_$.s4;
|
|
48
51
|
var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b1;
|
|
49
52
|
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.j;
|
|
50
53
|
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.m;
|
|
51
|
-
var
|
|
52
|
-
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.t;
|
|
54
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
53
55
|
var ParameterObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b;
|
|
54
56
|
var Ref = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e;
|
|
55
|
-
var toString = kotlin_kotlin.$_$.
|
|
57
|
+
var toString = kotlin_kotlin.$_$.y7;
|
|
56
58
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.e1;
|
|
57
|
-
var to = kotlin_kotlin.$_$.
|
|
59
|
+
var to = kotlin_kotlin.$_$.ya;
|
|
58
60
|
var BooleanObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a;
|
|
59
61
|
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
|
|
69
|
-
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
62
|
+
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.u;
|
|
63
|
+
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.v;
|
|
64
|
+
var ensureNotNull = kotlin_kotlin.$_$.oa;
|
|
65
|
+
var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.e;
|
|
66
|
+
var JsonArray = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
|
|
67
|
+
var JsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.f;
|
|
68
|
+
var toSet = kotlin_kotlin.$_$.b6;
|
|
69
|
+
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.n;
|
|
70
|
+
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.r;
|
|
71
|
+
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.s;
|
|
72
|
+
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.q;
|
|
70
73
|
var values = kotlin_community_flock_wirespec_compiler_core.$_$.h;
|
|
71
|
-
var mapCapacity = kotlin_kotlin.$_$.
|
|
72
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
73
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.o;
|
|
74
|
+
var mapCapacity = kotlin_kotlin.$_$.k5;
|
|
75
|
+
var coerceAtLeast = kotlin_kotlin.$_$.z7;
|
|
76
|
+
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.o;
|
|
74
77
|
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.$_$.
|
|
78
|
+
var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.b1;
|
|
79
|
+
var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.a1;
|
|
80
|
+
var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.z;
|
|
81
|
+
var Identifier = kotlin_community_flock_wirespec_compiler_core.$_$.p;
|
|
82
|
+
var contains = kotlin_kotlin.$_$.d4;
|
|
83
|
+
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.t;
|
|
78
84
|
var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.y;
|
|
79
85
|
var drop = kotlin_kotlin.$_$.q4;
|
|
80
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
81
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
82
|
-
var Char = kotlin_kotlin.$_$.
|
|
86
|
+
var charSequenceLength = kotlin_kotlin.$_$.o6;
|
|
87
|
+
var charSequenceGet = kotlin_kotlin.$_$.n6;
|
|
88
|
+
var Char = kotlin_kotlin.$_$.n9;
|
|
83
89
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.i1;
|
|
90
|
+
var equals = kotlin_kotlin.$_$.s6;
|
|
84
91
|
var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.k;
|
|
85
92
|
var Param = kotlin_community_flock_wirespec_compiler_core.$_$.l;
|
|
86
93
|
var Path = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c;
|
|
87
94
|
var Path__hashCode_impl_go73kd = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.x;
|
|
95
|
+
var getStringHashCode = kotlin_kotlin.$_$.x6;
|
|
96
|
+
var THROW_CCE = kotlin_kotlin.$_$.z9;
|
|
97
|
+
var classMeta = kotlin_kotlin.$_$.q6;
|
|
88
98
|
var StatusCode = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h;
|
|
89
99
|
var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a1;
|
|
90
|
-
var
|
|
100
|
+
var hashCode = kotlin_kotlin.$_$.y6;
|
|
101
|
+
var toMap = kotlin_kotlin.$_$.a6;
|
|
91
102
|
var Default_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j1;
|
|
92
103
|
var ParameterLocation_QUERY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.w;
|
|
93
104
|
var ParameterLocation_HEADER_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.v;
|
|
@@ -103,6 +114,7 @@
|
|
|
103
114
|
var ResponseObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.o;
|
|
104
115
|
var BooleanObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i;
|
|
105
116
|
var _Ref___get_value__impl__kxavfe_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f1;
|
|
117
|
+
var getOrNull = kotlin_kotlin.$_$.x4;
|
|
106
118
|
var Path_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k;
|
|
107
119
|
var Path__hashCode_impl_go73kd_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d1;
|
|
108
120
|
var StatusCode_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.q;
|
|
@@ -111,12 +123,10 @@
|
|
|
111
123
|
//region block: pre-declaration
|
|
112
124
|
setMetadataFor(Common, 'Common', objectMeta);
|
|
113
125
|
setMetadataFor(Companion, 'Companion', objectMeta);
|
|
114
|
-
setMetadataFor(SimpleSchema, 'SimpleSchema', classMeta);
|
|
115
126
|
setMetadataFor(FlattenRequest, 'FlattenRequest', classMeta);
|
|
116
127
|
setMetadataFor(FlattenResponse, 'FlattenResponse', classMeta);
|
|
117
128
|
setMetadataFor(OpenApiParser, 'OpenApiParser', classMeta);
|
|
118
129
|
setMetadataFor(Companion_0, 'Companion', objectMeta);
|
|
119
|
-
setMetadataFor(SimpleSchema_0, 'SimpleSchema', classMeta);
|
|
120
130
|
setMetadataFor(FlattenRequest_0, 'FlattenRequest', classMeta);
|
|
121
131
|
setMetadataFor(FlattenResponse_0, 'FlattenResponse', classMeta);
|
|
122
132
|
setMetadataFor(OpenApiParser_0, 'OpenApiParser', classMeta);
|
|
@@ -127,7 +137,7 @@
|
|
|
127
137
|
function Common() {
|
|
128
138
|
Common_instance = this;
|
|
129
139
|
}
|
|
130
|
-
protoOf(Common).
|
|
140
|
+
protoOf(Common).f1t = function (arg) {
|
|
131
141
|
var tmp$ret$2;
|
|
132
142
|
// Inline function 'kotlin.collections.flatMap' call
|
|
133
143
|
var tmp$ret$1;
|
|
@@ -159,14 +169,14 @@
|
|
|
159
169
|
function Companion() {
|
|
160
170
|
Companion_instance = this;
|
|
161
171
|
}
|
|
162
|
-
protoOf(Companion).
|
|
172
|
+
protoOf(Companion).g1t = function (json) {
|
|
163
173
|
var tmp$ret$1;
|
|
164
174
|
// Inline function 'kotlin.let' call
|
|
165
|
-
var tmp0_let = Default_getInstance().
|
|
175
|
+
var tmp0_let = Default_getInstance().m1a(json);
|
|
166
176
|
// Inline function 'kotlin.contracts.contract' call
|
|
167
177
|
var tmp$ret$0;
|
|
168
178
|
// Inline function 'community.flock.wirespec.openapi.v2.Companion.parse.<anonymous>' call
|
|
169
|
-
tmp$ret$0 = (new OpenApiParser(tmp0_let)).
|
|
179
|
+
tmp$ret$0 = (new OpenApiParser(tmp0_let)).i1t();
|
|
170
180
|
tmp$ret$1 = tmp$ret$0;
|
|
171
181
|
return tmp$ret$1;
|
|
172
182
|
};
|
|
@@ -179,7 +189,7 @@
|
|
|
179
189
|
function parseEndpoints($this) {
|
|
180
190
|
var tmp$ret$48;
|
|
181
191
|
// Inline function 'kotlin.collections.flatMap' call
|
|
182
|
-
var tmp1_flatMap = $this.
|
|
192
|
+
var tmp1_flatMap = $this.h1t_1.w1a_1;
|
|
183
193
|
var tmp$ret$47;
|
|
184
194
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
185
195
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -193,7 +203,7 @@
|
|
|
193
203
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>' call
|
|
194
204
|
var tmp$ret$1;
|
|
195
205
|
// Inline function 'kotlin.collections.component1' call
|
|
196
|
-
tmp$ret$1 = element.v().
|
|
206
|
+
tmp$ret$1 = element.v().h1b_1;
|
|
197
207
|
var path = tmp$ret$1;
|
|
198
208
|
var tmp$ret$2;
|
|
199
209
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -236,7 +246,7 @@
|
|
|
236
246
|
var element_1 = tmp0_iterator_1.e();
|
|
237
247
|
var tmp$ret$6;
|
|
238
248
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
239
|
-
tmp$ret$6 = element_1.
|
|
249
|
+
tmp$ret$6 = element_1.r1c_1.equals(ParameterLocation_QUERY_getInstance());
|
|
240
250
|
if (tmp$ret$6) {
|
|
241
251
|
tmp0_filterTo.a(element_1);
|
|
242
252
|
}
|
|
@@ -252,7 +262,7 @@
|
|
|
252
262
|
var item = tmp0_iterator_2.e();
|
|
253
263
|
var tmp$ret$9;
|
|
254
264
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
255
|
-
tmp$ret$9 =
|
|
265
|
+
tmp$ret$9 = toField_0(item, $this);
|
|
256
266
|
tmp1_mapTo.a(tmp$ret$9);
|
|
257
267
|
}
|
|
258
268
|
tmp$ret$10 = tmp1_mapTo;
|
|
@@ -270,7 +280,7 @@
|
|
|
270
280
|
var element_2 = tmp0_iterator_3.e();
|
|
271
281
|
var tmp$ret$12;
|
|
272
282
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
273
|
-
tmp$ret$12 = element_2.
|
|
283
|
+
tmp$ret$12 = element_2.r1c_1.equals(ParameterLocation_HEADER_getInstance());
|
|
274
284
|
if (tmp$ret$12) {
|
|
275
285
|
tmp3_filterTo.a(element_2);
|
|
276
286
|
}
|
|
@@ -286,7 +296,7 @@
|
|
|
286
296
|
var item_0 = tmp0_iterator_4.e();
|
|
287
297
|
var tmp$ret$15;
|
|
288
298
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
289
|
-
tmp$ret$15 =
|
|
299
|
+
tmp$ret$15 = toField_0(item_0, $this);
|
|
290
300
|
tmp4_mapTo.a(tmp$ret$15);
|
|
291
301
|
}
|
|
292
302
|
tmp$ret$16 = tmp4_mapTo;
|
|
@@ -306,7 +316,7 @@
|
|
|
306
316
|
var element_3 = tmp0_iterator_5.e();
|
|
307
317
|
var tmp$ret$18;
|
|
308
318
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
309
|
-
tmp$ret$18 = element_3.
|
|
319
|
+
tmp$ret$18 = element_3.r1c_1.equals(ParameterLocation_BODY_getInstance());
|
|
310
320
|
if (tmp$ret$18) {
|
|
311
321
|
tmp6_filterTo.a(element_3);
|
|
312
322
|
}
|
|
@@ -326,8 +336,8 @@
|
|
|
326
336
|
// Inline function 'kotlin.collections.map' call
|
|
327
337
|
var tmp$ret$21;
|
|
328
338
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
329
|
-
var tmp0_elvis_lhs = $this.
|
|
330
|
-
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.
|
|
339
|
+
var tmp0_elvis_lhs = $this.h1t_1.u1a_1;
|
|
340
|
+
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.f1c_1 : tmp0_elvis_lhs;
|
|
331
341
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
332
342
|
tmp$ret$21 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
333
343
|
var tmp2_map_0 = tmp$ret$21;
|
|
@@ -339,13 +349,13 @@
|
|
|
339
349
|
var item_1 = tmp0_iterator_7.e();
|
|
340
350
|
var tmp$ret$22;
|
|
341
351
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
342
|
-
var schema = element_4.
|
|
352
|
+
var schema = element_4.u1c_1;
|
|
343
353
|
var tmp;
|
|
344
354
|
if (schema instanceof ReferenceObject) {
|
|
345
355
|
tmp = toReference(schema, $this);
|
|
346
356
|
} else {
|
|
347
357
|
if (schema instanceof SchemaObject) {
|
|
348
|
-
tmp = toReference_0(schema, $this, Common_getInstance().
|
|
358
|
+
tmp = toReference_0(schema, $this, Common_getInstance().f1t([name, 'RequestBody']));
|
|
349
359
|
} else {
|
|
350
360
|
if (schema == null) {
|
|
351
361
|
throw new NotImplementedError();
|
|
@@ -355,7 +365,7 @@
|
|
|
355
365
|
}
|
|
356
366
|
}
|
|
357
367
|
var tmp_0 = tmp;
|
|
358
|
-
var tmp0_elvis_lhs_1 = element_4.
|
|
368
|
+
var tmp0_elvis_lhs_1 = element_4.t1c_1;
|
|
359
369
|
tmp$ret$22 = new Request(new Content(item_1, tmp_0, tmp0_elvis_lhs_1 == null ? false : tmp0_elvis_lhs_1));
|
|
360
370
|
tmp1_mapTo_0.a(tmp$ret$22);
|
|
361
371
|
}
|
|
@@ -383,7 +393,7 @@
|
|
|
383
393
|
// Inline function 'kotlin.collections.flatMap' call
|
|
384
394
|
var tmp$ret$30;
|
|
385
395
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
386
|
-
var tmp10_orEmpty = operation.
|
|
396
|
+
var tmp10_orEmpty = operation.i1c_1;
|
|
387
397
|
var tmp0_elvis_lhs_2 = tmp10_orEmpty;
|
|
388
398
|
tmp$ret$30 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
389
399
|
var tmp12_flatMap = tmp$ret$30;
|
|
@@ -400,7 +410,7 @@
|
|
|
400
410
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
401
411
|
var tmp$ret$32;
|
|
402
412
|
// Inline function 'kotlin.collections.component1' call
|
|
403
|
-
tmp$ret$32 = element_5.v().
|
|
413
|
+
tmp$ret$32 = element_5.v().a1f_1;
|
|
404
414
|
var status = tmp$ret$32;
|
|
405
415
|
var tmp$ret$33;
|
|
406
416
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -410,8 +420,8 @@
|
|
|
410
420
|
// Inline function 'kotlin.collections.map' call
|
|
411
421
|
var tmp$ret$34;
|
|
412
422
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
413
|
-
var tmp0_elvis_lhs_3 = $this.
|
|
414
|
-
var tmp0_orEmpty_0 = tmp0_elvis_lhs_3 == null ? operation.
|
|
423
|
+
var tmp0_elvis_lhs_3 = $this.h1t_1.v1a_1;
|
|
424
|
+
var tmp0_orEmpty_0 = tmp0_elvis_lhs_3 == null ? operation.g1c_1 : tmp0_elvis_lhs_3;
|
|
415
425
|
var tmp0_elvis_lhs_4 = tmp0_orEmpty_0;
|
|
416
426
|
tmp$ret$34 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
417
427
|
var tmp2_map_1 = tmp$ret$34;
|
|
@@ -424,7 +434,7 @@
|
|
|
424
434
|
var tmp$ret$37;
|
|
425
435
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
426
436
|
var tmp_2 = _StatusCode___get_value__impl__we50mu(status);
|
|
427
|
-
var tmp0_safe_receiver = resolve_1(res, $this).
|
|
437
|
+
var tmp0_safe_receiver = resolve_1(res, $this).e1f_1;
|
|
428
438
|
var tmp_3;
|
|
429
439
|
if (tmp0_safe_receiver == null) {
|
|
430
440
|
tmp_3 = null;
|
|
@@ -440,7 +450,7 @@
|
|
|
440
450
|
tmp_4 = toReference(tmp0_safe_receiver, $this);
|
|
441
451
|
} else {
|
|
442
452
|
if (tmp0_subject instanceof SchemaObject) {
|
|
443
|
-
tmp_4 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().
|
|
453
|
+
tmp_4 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().f1t([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']));
|
|
444
454
|
} else {
|
|
445
455
|
noWhenBranchMatchedException();
|
|
446
456
|
}
|
|
@@ -476,69 +486,66 @@
|
|
|
476
486
|
return tmp$ret$48;
|
|
477
487
|
}
|
|
478
488
|
function parseRequestBody($this) {
|
|
479
|
-
return flatMapRequests($this.
|
|
489
|
+
return flatMapRequests($this.h1t_1, $this, OpenApiParser$parseRequestBody$lambda($this));
|
|
480
490
|
}
|
|
481
491
|
function parseResponseBody($this) {
|
|
482
|
-
return flatMapResponses($this.
|
|
492
|
+
return flatMapResponses($this.h1t_1, $this, OpenApiParser$parseResponseBody$lambda($this));
|
|
483
493
|
}
|
|
484
494
|
function parseDefinitions($this) {
|
|
485
|
-
var
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
495
|
+
var tmp$ret$8;
|
|
496
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
497
|
+
var tmp$ret$4;
|
|
498
|
+
// Inline function 'kotlin.collections.filter' call
|
|
499
|
+
var tmp$ret$0;
|
|
500
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
501
|
+
var tmp0_orEmpty = $this.h1t_1.x1a_1;
|
|
502
|
+
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
503
|
+
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
504
|
+
var tmp2_filter = tmp$ret$0;
|
|
505
|
+
var tmp$ret$3;
|
|
506
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
507
|
+
var tmp1_filterTo = LinkedHashMap_init_$Create$();
|
|
508
|
+
var tmp$ret$1;
|
|
509
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
510
|
+
tmp$ret$1 = tmp2_filter.u().c();
|
|
511
|
+
var tmp0_iterator = tmp$ret$1;
|
|
512
|
+
while (tmp0_iterator.d()) {
|
|
513
|
+
var element = tmp0_iterator.e();
|
|
492
514
|
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);
|
|
515
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
516
|
+
tmp$ret$2 = element.w().w1e_1 == null;
|
|
517
|
+
if (tmp$ret$2) {
|
|
518
|
+
tmp1_filterTo.k3(element.v(), element.w());
|
|
506
519
|
}
|
|
507
|
-
tmp$ret$2 = tmp0_flatMapTo;
|
|
508
|
-
tmp$ret$3 = tmp$ret$2;
|
|
509
|
-
tmp = tmp$ret$3;
|
|
510
520
|
}
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
521
|
+
tmp$ret$3 = tmp1_filterTo;
|
|
522
|
+
tmp$ret$4 = tmp$ret$3;
|
|
523
|
+
var tmp4_flatMap = tmp$ret$4;
|
|
524
|
+
var tmp$ret$7;
|
|
525
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
526
|
+
var tmp3_flatMapTo = ArrayList_init_$Create$();
|
|
527
|
+
var tmp$ret$5;
|
|
528
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
529
|
+
tmp$ret$5 = tmp4_flatMap.u().c();
|
|
530
|
+
var tmp0_iterator_0 = tmp$ret$5;
|
|
531
|
+
while (tmp0_iterator_0.d()) {
|
|
532
|
+
var element_0 = tmp0_iterator_0.e();
|
|
516
533
|
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;
|
|
534
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
535
|
+
tmp$ret$6 = flatten(element_0.w(), $this, Common_getInstance().f1t([element_0.v()]));
|
|
536
|
+
var list = tmp$ret$6;
|
|
537
|
+
addAll(tmp3_flatMapTo, list);
|
|
532
538
|
}
|
|
533
|
-
|
|
534
|
-
|
|
539
|
+
tmp$ret$7 = tmp3_flatMapTo;
|
|
540
|
+
tmp$ret$8 = tmp$ret$7;
|
|
541
|
+
return tmp$ret$8;
|
|
535
542
|
}
|
|
536
543
|
function resolveParameters(_this__u8e3s4, $this) {
|
|
537
544
|
var tmp$ret$3;
|
|
538
545
|
// Inline function 'kotlin.collections.map' call
|
|
539
546
|
var tmp$ret$0;
|
|
540
547
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
541
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
548
|
+
var tmp0_orEmpty = _this__u8e3s4.h1c_1;
|
|
542
549
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
543
550
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
544
551
|
var tmp2_map = tmp$ret$0;
|
|
@@ -573,7 +580,7 @@
|
|
|
573
580
|
// Inline function 'kotlin.collections.map' call
|
|
574
581
|
var tmp$ret$0;
|
|
575
582
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
576
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
583
|
+
var tmp0_orEmpty = _this__u8e3s4.w1b_1;
|
|
577
584
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
578
585
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
579
586
|
var tmp2_map = tmp$ret$0;
|
|
@@ -604,11 +611,11 @@
|
|
|
604
611
|
return tmp$ret$3;
|
|
605
612
|
}
|
|
606
613
|
function resolveParameterObject(_this__u8e3s4, $this) {
|
|
607
|
-
var tmp0_safe_receiver = $this.
|
|
614
|
+
var tmp0_safe_receiver = $this.h1t_1.y1a_1;
|
|
608
615
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
|
|
609
616
|
var tmp;
|
|
610
617
|
if (tmp1_elvis_lhs == null) {
|
|
611
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
618
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.q1d_1);
|
|
612
619
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
613
620
|
} else {
|
|
614
621
|
tmp = tmp1_elvis_lhs;
|
|
@@ -616,11 +623,11 @@
|
|
|
616
623
|
return tmp;
|
|
617
624
|
}
|
|
618
625
|
function resolveResponseObject(_this__u8e3s4, $this) {
|
|
619
|
-
var tmp0_safe_receiver = $this.
|
|
626
|
+
var tmp0_safe_receiver = $this.h1t_1.z1a_1;
|
|
620
627
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
|
|
621
628
|
var tmp;
|
|
622
629
|
if (tmp1_elvis_lhs == null) {
|
|
623
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
630
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.q1d_1);
|
|
624
631
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
625
632
|
} else {
|
|
626
633
|
tmp = tmp1_elvis_lhs;
|
|
@@ -628,7 +635,7 @@
|
|
|
628
635
|
return tmp;
|
|
629
636
|
}
|
|
630
637
|
function resolveSchemaObject(_this__u8e3s4, $this) {
|
|
631
|
-
var tmp0_safe_receiver = $this.
|
|
638
|
+
var tmp0_safe_receiver = $this.h1t_1.x1a_1;
|
|
632
639
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
|
|
633
640
|
var tmp;
|
|
634
641
|
if (tmp1_safe_receiver == null) {
|
|
@@ -646,7 +653,7 @@
|
|
|
646
653
|
var tmp2_elvis_lhs = tmp;
|
|
647
654
|
var tmp_0;
|
|
648
655
|
if (tmp2_elvis_lhs == null) {
|
|
649
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
656
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.q1d_1);
|
|
650
657
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
651
658
|
} else {
|
|
652
659
|
tmp_0 = tmp2_elvis_lhs;
|
|
@@ -714,160 +721,241 @@
|
|
|
714
721
|
return tmp;
|
|
715
722
|
}
|
|
716
723
|
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
724
|
var tmp;
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
725
|
+
if (!(_this__u8e3s4.w1e_1 == null)) {
|
|
726
|
+
var tmp0_subject = _this__u8e3s4.w1e_1;
|
|
727
|
+
var tmp_0;
|
|
728
|
+
if (tmp0_subject instanceof BooleanObject) {
|
|
729
|
+
tmp_0 = emptyList();
|
|
730
|
+
} else {
|
|
731
|
+
tmp_0 = flatten(resolve_0(ensureNotNull(_this__u8e3s4.w1e_1), $this), $this, name);
|
|
732
|
+
}
|
|
733
|
+
tmp = tmp_0;
|
|
734
|
+
} else if (!(_this__u8e3s4.u1e_1 == null)) {
|
|
735
|
+
var tmp$ret$3;
|
|
736
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
737
|
+
var tmp$ret$0;
|
|
738
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
739
|
+
var tmp0_orEmpty = _this__u8e3s4.u1e_1;
|
|
740
|
+
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
741
|
+
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
742
|
+
var tmp2_flatMap = tmp$ret$0;
|
|
743
|
+
var tmp$ret$2;
|
|
744
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
745
|
+
var tmp1_flatMapTo = ArrayList_init_$Create$();
|
|
746
|
+
var tmp0_iterator = tmp2_flatMap.c();
|
|
747
|
+
while (tmp0_iterator.d()) {
|
|
748
|
+
var element = tmp0_iterator.e();
|
|
749
|
+
var tmp$ret$1;
|
|
750
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
751
|
+
tmp$ret$1 = toField(resolve(element, $this), $this, name);
|
|
752
|
+
var list = tmp$ret$1;
|
|
753
|
+
addAll(tmp1_flatMapTo, list);
|
|
754
|
+
}
|
|
755
|
+
tmp$ret$2 = tmp1_flatMapTo;
|
|
756
|
+
tmp$ret$3 = tmp$ret$2;
|
|
757
|
+
var tmp_1 = listOf(new Type(name, new Shape(tmp$ret$3)));
|
|
758
|
+
var tmp$ret$13;
|
|
759
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
760
|
+
var tmp4_flatMap = ensureNotNull(_this__u8e3s4.u1e_1);
|
|
761
|
+
var tmp$ret$12;
|
|
762
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
763
|
+
var tmp3_flatMapTo = ArrayList_init_$Create$();
|
|
764
|
+
var tmp0_iterator_0 = tmp4_flatMap.c();
|
|
765
|
+
while (tmp0_iterator_0.d()) {
|
|
766
|
+
var element_0 = tmp0_iterator_0.e();
|
|
767
|
+
var tmp$ret$11;
|
|
768
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
769
|
+
var tmp0_subject_0 = element_0;
|
|
770
|
+
var tmp_2;
|
|
771
|
+
if (tmp0_subject_0 instanceof ReferenceObject) {
|
|
772
|
+
tmp_2 = emptyList();
|
|
727
773
|
} 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
|
-
|
|
774
|
+
if (tmp0_subject_0 instanceof SchemaObject) {
|
|
775
|
+
var tmp$ret$10;
|
|
776
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
777
|
+
var tmp$ret$4;
|
|
778
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
779
|
+
var tmp0_orEmpty_0 = element_0.v1e_1;
|
|
780
|
+
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
781
|
+
tmp$ret$4 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
782
|
+
var tmp2_flatMap_0 = tmp$ret$4;
|
|
783
|
+
var tmp$ret$9;
|
|
784
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
785
|
+
var tmp1_flatMapTo_0 = ArrayList_init_$Create$();
|
|
786
|
+
var tmp$ret$5;
|
|
787
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
788
|
+
tmp$ret$5 = tmp2_flatMap_0.u().c();
|
|
789
|
+
var tmp0_iterator_1 = tmp$ret$5;
|
|
790
|
+
while (tmp0_iterator_1.d()) {
|
|
791
|
+
var element_1 = tmp0_iterator_1.e();
|
|
792
|
+
var tmp$ret$8;
|
|
793
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>.<anonymous>' call
|
|
794
|
+
var tmp$ret$6;
|
|
795
|
+
// Inline function 'kotlin.collections.component1' call
|
|
796
|
+
tmp$ret$6 = element_1.v();
|
|
797
|
+
var key = tmp$ret$6;
|
|
798
|
+
var tmp$ret$7;
|
|
799
|
+
// Inline function 'kotlin.collections.component2' call
|
|
800
|
+
tmp$ret$7 = element_1.w();
|
|
801
|
+
var value = tmp$ret$7;
|
|
802
|
+
var tmp0_subject_1 = value;
|
|
803
|
+
var tmp_3;
|
|
804
|
+
if (tmp0_subject_1 instanceof ReferenceObject) {
|
|
805
|
+
tmp_3 = emptyList();
|
|
758
806
|
} else {
|
|
759
|
-
|
|
807
|
+
if (tmp0_subject_1 instanceof SchemaObject) {
|
|
808
|
+
tmp_3 = flatten(value, $this, Common_getInstance().f1t([name, key]));
|
|
809
|
+
} else {
|
|
810
|
+
noWhenBranchMatchedException();
|
|
811
|
+
}
|
|
760
812
|
}
|
|
813
|
+
tmp$ret$8 = tmp_3;
|
|
814
|
+
var list_0 = tmp$ret$8;
|
|
815
|
+
addAll(tmp1_flatMapTo_0, list_0);
|
|
761
816
|
}
|
|
762
|
-
tmp$ret$
|
|
763
|
-
|
|
764
|
-
|
|
817
|
+
tmp$ret$9 = tmp1_flatMapTo_0;
|
|
818
|
+
tmp$ret$10 = tmp$ret$9;
|
|
819
|
+
tmp_2 = tmp$ret$10;
|
|
820
|
+
} else {
|
|
821
|
+
noWhenBranchMatchedException();
|
|
765
822
|
}
|
|
766
|
-
tmp$ret$4 = tmp0_flatMapTo;
|
|
767
|
-
tmp$ret$5 = tmp$ret$4;
|
|
768
|
-
tmp_0 = tmp$ret$5;
|
|
769
823
|
}
|
|
770
|
-
|
|
771
|
-
var
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
824
|
+
tmp$ret$11 = tmp_2;
|
|
825
|
+
var list_1 = tmp$ret$11;
|
|
826
|
+
addAll(tmp3_flatMapTo, list_1);
|
|
827
|
+
}
|
|
828
|
+
tmp$ret$12 = tmp3_flatMapTo;
|
|
829
|
+
tmp$ret$13 = tmp$ret$12;
|
|
830
|
+
tmp = plus(tmp_1, tmp$ret$13);
|
|
831
|
+
} else if (!(_this__u8e3s4.r1e_1 == null)) {
|
|
832
|
+
var tmp$ret$18;
|
|
833
|
+
// Inline function 'kotlin.let' call
|
|
834
|
+
var tmp$ret$16;
|
|
835
|
+
// Inline function 'kotlin.collections.map' call
|
|
836
|
+
var tmp6_map = ensureNotNull(_this__u8e3s4.r1e_1);
|
|
837
|
+
var tmp$ret$15;
|
|
838
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
839
|
+
var tmp5_mapTo = ArrayList_init_$Create$_0(tmp6_map.length);
|
|
840
|
+
var indexedObject = tmp6_map;
|
|
841
|
+
var inductionVariable = 0;
|
|
842
|
+
var last = indexedObject.length;
|
|
843
|
+
while (inductionVariable < last) {
|
|
844
|
+
var item = indexedObject[inductionVariable];
|
|
845
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
846
|
+
var tmp$ret$14;
|
|
847
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
848
|
+
var tmp0_subject_2 = item;
|
|
849
|
+
var tmp_4;
|
|
850
|
+
if (tmp0_subject_2 instanceof JsonPrimitive) {
|
|
851
|
+
tmp_4 = item.q13();
|
|
852
|
+
} else {
|
|
853
|
+
if (tmp0_subject_2 instanceof JsonArray) {
|
|
854
|
+
throw new NotImplementedError();
|
|
780
855
|
} else {
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
856
|
+
if (tmp0_subject_2 instanceof JsonObject) {
|
|
857
|
+
throw new NotImplementedError();
|
|
858
|
+
} else {
|
|
859
|
+
noWhenBranchMatchedException();
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
tmp$ret$14 = tmp_4;
|
|
864
|
+
tmp5_mapTo.a(tmp$ret$14);
|
|
865
|
+
}
|
|
866
|
+
tmp$ret$15 = tmp5_mapTo;
|
|
867
|
+
tmp$ret$16 = tmp$ret$15;
|
|
868
|
+
var tmp7_let = toSet(tmp$ret$16);
|
|
869
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
870
|
+
var tmp$ret$17;
|
|
871
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
872
|
+
tmp$ret$17 = listOf(new Enum(name, tmp7_let));
|
|
873
|
+
tmp$ret$18 = tmp$ret$17;
|
|
874
|
+
tmp = tmp$ret$18;
|
|
875
|
+
} else {
|
|
876
|
+
var tmp1_subject = _this__u8e3s4.s1e_1;
|
|
877
|
+
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.q4_1;
|
|
878
|
+
var tmp_5;
|
|
879
|
+
switch (tmp0) {
|
|
880
|
+
case -1:
|
|
881
|
+
case 5:
|
|
882
|
+
var tmp2_safe_receiver = _this__u8e3s4.v1e_1;
|
|
883
|
+
var tmp_6;
|
|
884
|
+
if (tmp2_safe_receiver == null) {
|
|
885
|
+
tmp_6 = null;
|
|
886
|
+
} else {
|
|
887
|
+
var tmp$ret$24;
|
|
888
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
889
|
+
var tmp$ret$23;
|
|
890
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
891
|
+
var tmp8_flatMapTo = ArrayList_init_$Create$();
|
|
892
|
+
var tmp$ret$19;
|
|
787
893
|
// Inline function 'kotlin.collections.iterator' call
|
|
788
|
-
tmp$ret$
|
|
789
|
-
var
|
|
790
|
-
while (
|
|
791
|
-
var
|
|
792
|
-
var tmp$ret$
|
|
894
|
+
tmp$ret$19 = tmp2_safe_receiver.u().c();
|
|
895
|
+
var tmp0_iterator_2 = tmp$ret$19;
|
|
896
|
+
while (tmp0_iterator_2.d()) {
|
|
897
|
+
var element_2 = tmp0_iterator_2.e();
|
|
898
|
+
var tmp$ret$22;
|
|
793
899
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
794
|
-
var tmp$ret$
|
|
900
|
+
var tmp$ret$20;
|
|
795
901
|
// Inline function 'kotlin.collections.component1' call
|
|
796
|
-
tmp$ret$
|
|
797
|
-
var key_0 = tmp$ret$
|
|
798
|
-
var tmp$ret$
|
|
902
|
+
tmp$ret$20 = element_2.v();
|
|
903
|
+
var key_0 = tmp$ret$20;
|
|
904
|
+
var tmp$ret$21;
|
|
799
905
|
// 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));
|
|
906
|
+
tmp$ret$21 = element_2.w();
|
|
907
|
+
var value_0 = tmp$ret$21;
|
|
908
|
+
var tmp0_subject_3 = value_0;
|
|
909
|
+
var tmp_7;
|
|
910
|
+
if (tmp0_subject_3 instanceof SchemaObject) {
|
|
911
|
+
var tmp1_subject_0 = value_0.s1e_1;
|
|
912
|
+
var tmp0_0 = tmp1_subject_0 == null ? -1 : tmp1_subject_0.q4_1;
|
|
913
|
+
tmp_7 = tmp0_0 === 4 ? emptyList() : flatten(value_0, $this, Common_getInstance().f1t([name, key_0]));
|
|
810
914
|
} 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));
|
|
915
|
+
if (tmp0_subject_3 instanceof ReferenceObject) {
|
|
916
|
+
tmp_7 = emptyList();
|
|
817
917
|
} else {
|
|
818
918
|
noWhenBranchMatchedException();
|
|
819
919
|
}
|
|
820
920
|
}
|
|
821
|
-
tmp$ret$
|
|
822
|
-
|
|
921
|
+
tmp$ret$22 = tmp_7;
|
|
922
|
+
var list_2 = tmp$ret$22;
|
|
923
|
+
addAll(tmp8_flatMapTo, list_2);
|
|
823
924
|
}
|
|
824
|
-
tmp$ret$
|
|
825
|
-
tmp$ret$
|
|
826
|
-
|
|
925
|
+
tmp$ret$23 = tmp8_flatMapTo;
|
|
926
|
+
tmp$ret$24 = tmp$ret$23;
|
|
927
|
+
tmp_6 = tmp$ret$24;
|
|
827
928
|
}
|
|
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
929
|
|
|
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();
|
|
930
|
+
var tmp3_elvis_lhs = tmp_6;
|
|
931
|
+
var fields = tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs;
|
|
932
|
+
var schema = listOf(new Type(name, new Shape(toField(_this__u8e3s4, $this, name))));
|
|
933
|
+
tmp_5 = plus(schema, fields);
|
|
934
|
+
break;
|
|
935
|
+
case 4:
|
|
936
|
+
var it = _this__u8e3s4.t1e_1;
|
|
937
|
+
var tmp_8;
|
|
938
|
+
if (it instanceof ReferenceObject) {
|
|
939
|
+
tmp_8 = emptyList();
|
|
852
940
|
} 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']));
|
|
941
|
+
if (it instanceof SchemaObject) {
|
|
942
|
+
tmp_8 = flatten(it, $this, Common_getInstance().f1t([name, 'Array']));
|
|
856
943
|
} else {
|
|
857
|
-
|
|
944
|
+
if (it == null) {
|
|
945
|
+
tmp_8 = emptyList();
|
|
946
|
+
} else {
|
|
947
|
+
noWhenBranchMatchedException();
|
|
948
|
+
}
|
|
858
949
|
}
|
|
859
950
|
}
|
|
860
|
-
tmp$ret$12 = tmp_10;
|
|
861
|
-
tmp$ret$13 = tmp$ret$12;
|
|
862
|
-
tmp_9 = tmp$ret$13;
|
|
863
|
-
}
|
|
864
951
|
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
952
|
+
tmp_5 = tmp_8;
|
|
953
|
+
break;
|
|
954
|
+
default:
|
|
955
|
+
tmp_5 = emptyList();
|
|
956
|
+
break;
|
|
957
|
+
}
|
|
958
|
+
tmp = tmp_5;
|
|
871
959
|
}
|
|
872
960
|
return tmp;
|
|
873
961
|
}
|
|
@@ -878,37 +966,13 @@
|
|
|
878
966
|
tmp = flatten(_this__u8e3s4, $this, name);
|
|
879
967
|
} else {
|
|
880
968
|
if (tmp0_subject instanceof ReferenceObject) {
|
|
881
|
-
tmp =
|
|
969
|
+
tmp = emptyList();
|
|
882
970
|
} else {
|
|
883
971
|
noWhenBranchMatchedException();
|
|
884
972
|
}
|
|
885
973
|
}
|
|
886
974
|
return tmp;
|
|
887
975
|
}
|
|
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
976
|
function toReference(_this__u8e3s4, $this) {
|
|
913
977
|
var tmp$ret$1;
|
|
914
978
|
// Inline function 'kotlin.let' call
|
|
@@ -918,126 +982,113 @@
|
|
|
918
982
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
|
|
919
983
|
var referencingObject = tmp0_let.i3();
|
|
920
984
|
var schema = tmp0_let.j3();
|
|
921
|
-
var additionalProperties = schema.q1e_1;
|
|
922
985
|
var tmp;
|
|
923
|
-
if (
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
if (additionalProperties instanceof
|
|
927
|
-
|
|
986
|
+
if (!(schema.w1e_1 == null)) {
|
|
987
|
+
var additionalProperties = ensureNotNull(schema.w1e_1);
|
|
988
|
+
var tmp_0;
|
|
989
|
+
if (additionalProperties instanceof BooleanObject) {
|
|
990
|
+
tmp_0 = new Any(false, true);
|
|
928
991
|
} else {
|
|
929
|
-
if (additionalProperties instanceof
|
|
930
|
-
|
|
992
|
+
if (additionalProperties instanceof ReferenceObject) {
|
|
993
|
+
tmp_0 = toMap_0(toReference(additionalProperties, $this));
|
|
931
994
|
} 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;
|
|
995
|
+
if (additionalProperties instanceof SchemaObject) {
|
|
996
|
+
tmp_0 = new Custom(Common_getInstance().f1t([getReference(referencingObject, $this)]), false, true);
|
|
958
997
|
} else {
|
|
959
998
|
noWhenBranchMatchedException();
|
|
960
999
|
}
|
|
961
1000
|
}
|
|
962
1001
|
}
|
|
1002
|
+
tmp = tmp_0;
|
|
1003
|
+
} else if (!(schema.r1e_1 == null)) {
|
|
1004
|
+
tmp = new Custom(Common_getInstance().f1t([getReference(referencingObject, $this)]), false, false);
|
|
1005
|
+
} else if (isPrimitive(schema.s1e_1)) {
|
|
1006
|
+
tmp = new Primitive(toPrimitive(ensureNotNull(schema.s1e_1), $this), false, false);
|
|
1007
|
+
} else {
|
|
1008
|
+
var tmp0_subject = schema.s1e_1;
|
|
1009
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
1010
|
+
var tmp_1;
|
|
1011
|
+
if (tmp0 === 4) {
|
|
1012
|
+
var items = schema.t1e_1;
|
|
1013
|
+
var tmp_2;
|
|
1014
|
+
if (items instanceof ReferenceObject) {
|
|
1015
|
+
tmp_2 = new Custom(Common_getInstance().f1t([getReference(items, $this)]), true);
|
|
1016
|
+
} else {
|
|
1017
|
+
if (items instanceof SchemaObject) {
|
|
1018
|
+
tmp_2 = new Custom(Common_getInstance().f1t([getReference(referencingObject, $this), 'Array']), true);
|
|
1019
|
+
} else {
|
|
1020
|
+
if (items == null) {
|
|
1021
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.q1d_1);
|
|
1022
|
+
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
1023
|
+
} else {
|
|
1024
|
+
noWhenBranchMatchedException();
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
tmp_1 = tmp_2;
|
|
1029
|
+
} else {
|
|
1030
|
+
tmp_1 = new Custom(Common_getInstance().f1t([getReference(referencingObject, $this)]), false);
|
|
1031
|
+
}
|
|
1032
|
+
tmp = tmp_1;
|
|
963
1033
|
}
|
|
964
1034
|
tmp$ret$0 = tmp;
|
|
965
1035
|
tmp$ret$1 = tmp$ret$0;
|
|
966
1036
|
return tmp$ret$1;
|
|
967
1037
|
}
|
|
968
1038
|
function toReference_0(_this__u8e3s4, $this, name) {
|
|
969
|
-
var type = _this__u8e3s4.m1e_1;
|
|
970
|
-
var tmp0 = type == null ? -1 : type.q4_1;
|
|
971
1039
|
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
|
-
}
|
|
1040
|
+
if (!(_this__u8e3s4.r1e_1 == null)) {
|
|
1041
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.w1e_1 == null));
|
|
1042
|
+
} else {
|
|
1043
|
+
var type = _this__u8e3s4.s1e_1;
|
|
1044
|
+
var tmp0 = type == null ? -1 : type.q4_1;
|
|
1045
|
+
var tmp_0;
|
|
1046
|
+
switch (tmp0) {
|
|
1047
|
+
case 0:
|
|
1048
|
+
case 2:
|
|
1049
|
+
case 1:
|
|
1050
|
+
case 3:
|
|
1051
|
+
tmp_0 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.w1e_1 == null));
|
|
1052
|
+
break;
|
|
1053
|
+
case -1:
|
|
1054
|
+
case 5:
|
|
1055
|
+
var tmp_1;
|
|
1056
|
+
var tmp_2 = _this__u8e3s4.w1e_1;
|
|
1057
|
+
if (tmp_2 instanceof BooleanObject) {
|
|
1058
|
+
tmp_1 = new Any(false, !(_this__u8e3s4.w1e_1 == null));
|
|
1059
|
+
} else {
|
|
1060
|
+
tmp_1 = new Custom(name, false, !(_this__u8e3s4.w1e_1 == null));
|
|
1061
|
+
}
|
|
996
1062
|
|
|
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);
|
|
1063
|
+
tmp_0 = tmp_1;
|
|
1064
|
+
break;
|
|
1065
|
+
case 4:
|
|
1066
|
+
var it = _this__u8e3s4.t1e_1;
|
|
1067
|
+
var tmp_3;
|
|
1068
|
+
if (it instanceof ReferenceObject) {
|
|
1069
|
+
tmp_3 = toIterable(toReference(it, $this));
|
|
1070
|
+
} else {
|
|
1071
|
+
if (it instanceof SchemaObject) {
|
|
1072
|
+
tmp_3 = toIterable(toReference_0(it, $this, name));
|
|
1017
1073
|
} else {
|
|
1018
|
-
if (it
|
|
1019
|
-
|
|
1074
|
+
if (it == null) {
|
|
1075
|
+
var tmp0_error = 'When schema is of type array items cannot be null for name: ' + name;
|
|
1076
|
+
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
1020
1077
|
} 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
|
-
}
|
|
1078
|
+
noWhenBranchMatchedException();
|
|
1027
1079
|
}
|
|
1028
1080
|
}
|
|
1081
|
+
}
|
|
1029
1082
|
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
noWhenBranchMatchedException();
|
|
1040
|
-
break;
|
|
1083
|
+
tmp_0 = tmp_3;
|
|
1084
|
+
break;
|
|
1085
|
+
case 6:
|
|
1086
|
+
throw new NotImplementedError('An operation is not implemented: Type file not implemented');
|
|
1087
|
+
default:
|
|
1088
|
+
noWhenBranchMatchedException();
|
|
1089
|
+
break;
|
|
1090
|
+
}
|
|
1091
|
+
tmp = tmp_0;
|
|
1041
1092
|
}
|
|
1042
1093
|
return tmp;
|
|
1043
1094
|
}
|
|
@@ -1045,7 +1096,7 @@
|
|
|
1045
1096
|
var tmp$ret$2;
|
|
1046
1097
|
// Inline function 'kotlin.collections.associateWith' call
|
|
1047
1098
|
var tmp0_associateWith = values();
|
|
1048
|
-
var result = LinkedHashMap_init_$Create$(coerceAtLeast(mapCapacity(tmp0_associateWith.length), 16));
|
|
1099
|
+
var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(tmp0_associateWith.length), 16));
|
|
1049
1100
|
var tmp$ret$1;
|
|
1050
1101
|
// Inline function 'kotlin.collections.associateWithTo' call
|
|
1051
1102
|
var indexedObject = tmp0_associateWith;
|
|
@@ -1061,28 +1112,28 @@
|
|
|
1061
1112
|
var tmp;
|
|
1062
1113
|
switch (tmp0) {
|
|
1063
1114
|
case 0:
|
|
1064
|
-
tmp = _this__u8e3s4.
|
|
1115
|
+
tmp = _this__u8e3s4.n1b_1;
|
|
1065
1116
|
break;
|
|
1066
1117
|
case 1:
|
|
1067
|
-
tmp = _this__u8e3s4.
|
|
1118
|
+
tmp = _this__u8e3s4.p1b_1;
|
|
1068
1119
|
break;
|
|
1069
1120
|
case 2:
|
|
1070
|
-
tmp = _this__u8e3s4.
|
|
1121
|
+
tmp = _this__u8e3s4.o1b_1;
|
|
1071
1122
|
break;
|
|
1072
1123
|
case 3:
|
|
1073
|
-
tmp = _this__u8e3s4.
|
|
1124
|
+
tmp = _this__u8e3s4.q1b_1;
|
|
1074
1125
|
break;
|
|
1075
1126
|
case 4:
|
|
1076
|
-
tmp = _this__u8e3s4.
|
|
1127
|
+
tmp = _this__u8e3s4.r1b_1;
|
|
1077
1128
|
break;
|
|
1078
1129
|
case 5:
|
|
1079
|
-
tmp = _this__u8e3s4.
|
|
1130
|
+
tmp = _this__u8e3s4.s1b_1;
|
|
1080
1131
|
break;
|
|
1081
1132
|
case 6:
|
|
1082
|
-
tmp = _this__u8e3s4.
|
|
1133
|
+
tmp = _this__u8e3s4.t1b_1;
|
|
1083
1134
|
break;
|
|
1084
1135
|
case 7:
|
|
1085
|
-
tmp = _this__u8e3s4.
|
|
1136
|
+
tmp = _this__u8e3s4.u1b_1;
|
|
1086
1137
|
break;
|
|
1087
1138
|
default:
|
|
1088
1139
|
noWhenBranchMatchedException();
|
|
@@ -1096,7 +1147,7 @@
|
|
|
1096
1147
|
return filterNotNullValues(tmp$ret$2);
|
|
1097
1148
|
}
|
|
1098
1149
|
function getReference(_this__u8e3s4, $this) {
|
|
1099
|
-
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
1150
|
+
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.q1d_1), ['/']).h(2);
|
|
1100
1151
|
}
|
|
1101
1152
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
1102
1153
|
var tmp0_subject = _this__u8e3s4;
|
|
@@ -1120,7 +1171,61 @@
|
|
|
1120
1171
|
}
|
|
1121
1172
|
return tmp;
|
|
1122
1173
|
}
|
|
1123
|
-
function toField(_this__u8e3s4, $this) {
|
|
1174
|
+
function toField(_this__u8e3s4, $this, name) {
|
|
1175
|
+
var tmp$ret$6;
|
|
1176
|
+
// Inline function 'kotlin.collections.map' call
|
|
1177
|
+
var tmp$ret$0;
|
|
1178
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
1179
|
+
var tmp0_orEmpty = _this__u8e3s4.v1e_1;
|
|
1180
|
+
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1181
|
+
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1182
|
+
var tmp2_map = tmp$ret$0;
|
|
1183
|
+
var tmp$ret$5;
|
|
1184
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
1185
|
+
var tmp1_mapTo = ArrayList_init_$Create$_0(tmp2_map.f());
|
|
1186
|
+
var tmp$ret$1;
|
|
1187
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
1188
|
+
tmp$ret$1 = tmp2_map.u().c();
|
|
1189
|
+
var tmp0_iterator = tmp$ret$1;
|
|
1190
|
+
while (tmp0_iterator.d()) {
|
|
1191
|
+
var item = tmp0_iterator.e();
|
|
1192
|
+
var tmp$ret$4;
|
|
1193
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1194
|
+
var tmp$ret$2;
|
|
1195
|
+
// Inline function 'kotlin.collections.component1' call
|
|
1196
|
+
tmp$ret$2 = item.v();
|
|
1197
|
+
var key = tmp$ret$2;
|
|
1198
|
+
var tmp$ret$3;
|
|
1199
|
+
// Inline function 'kotlin.collections.component2' call
|
|
1200
|
+
tmp$ret$3 = item.w();
|
|
1201
|
+
var value = tmp$ret$3;
|
|
1202
|
+
var tmp0_subject = value;
|
|
1203
|
+
var tmp;
|
|
1204
|
+
if (tmp0_subject instanceof SchemaObject) {
|
|
1205
|
+
var tmp_0 = new Identifier(key);
|
|
1206
|
+
var tmp_1 = toReference_0(value, $this, Common_getInstance().f1t([name, key]));
|
|
1207
|
+
var tmp1_safe_receiver = _this__u8e3s4.q1e_1;
|
|
1208
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : contains(tmp1_safe_receiver, key);
|
|
1209
|
+
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
1210
|
+
} else {
|
|
1211
|
+
if (tmp0_subject instanceof ReferenceObject) {
|
|
1212
|
+
var tmp_2 = new Identifier(key);
|
|
1213
|
+
var tmp_3 = toReference(value, $this);
|
|
1214
|
+
var tmp3_safe_receiver = _this__u8e3s4.q1e_1;
|
|
1215
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : contains(tmp3_safe_receiver, key);
|
|
1216
|
+
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
1217
|
+
} else {
|
|
1218
|
+
noWhenBranchMatchedException();
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
tmp$ret$4 = tmp;
|
|
1222
|
+
tmp1_mapTo.a(tmp$ret$4);
|
|
1223
|
+
}
|
|
1224
|
+
tmp$ret$5 = tmp1_mapTo;
|
|
1225
|
+
tmp$ret$6 = tmp$ret$5;
|
|
1226
|
+
return tmp$ret$6;
|
|
1227
|
+
}
|
|
1228
|
+
function toField_0(_this__u8e3s4, $this) {
|
|
1124
1229
|
var tmp$ret$7;
|
|
1125
1230
|
// Inline function 'kotlin.let' call
|
|
1126
1231
|
var tmp$ret$5;
|
|
@@ -1129,7 +1234,7 @@
|
|
|
1129
1234
|
// Inline function 'kotlin.contracts.contract' call
|
|
1130
1235
|
var tmp$ret$4;
|
|
1131
1236
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1132
|
-
var type = tmp0_let.
|
|
1237
|
+
var type = tmp0_let.v1c_1;
|
|
1133
1238
|
var tmp0 = type == null ? -1 : type.q4_1;
|
|
1134
1239
|
var tmp;
|
|
1135
1240
|
switch (tmp0) {
|
|
@@ -1149,9 +1254,9 @@
|
|
|
1149
1254
|
tmp = tmp$ret$1;
|
|
1150
1255
|
break;
|
|
1151
1256
|
case 4:
|
|
1152
|
-
var tmp0_safe_receiver = tmp0_let.
|
|
1257
|
+
var tmp0_safe_receiver = tmp0_let.w1c_1;
|
|
1153
1258
|
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.
|
|
1259
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s1e_1;
|
|
1155
1260
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toPrimitive(tmp2_safe_receiver, $this);
|
|
1156
1261
|
var tmp_0;
|
|
1157
1262
|
if (tmp3_safe_receiver == null) {
|
|
@@ -1193,8 +1298,8 @@
|
|
|
1193
1298
|
// Inline function 'kotlin.contracts.contract' call
|
|
1194
1299
|
var tmp$ret$6;
|
|
1195
1300
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1196
|
-
var tmp_2 = new Identifier(_this__u8e3s4.
|
|
1197
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1301
|
+
var tmp_2 = new Identifier(_this__u8e3s4.q1c_1);
|
|
1302
|
+
var tmp0_elvis_lhs = _this__u8e3s4.t1c_1;
|
|
1198
1303
|
tmp$ret$6 = new Field(tmp_2, tmp1_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
1199
1304
|
tmp$ret$7 = tmp$ret$6;
|
|
1200
1305
|
return tmp$ret$7;
|
|
@@ -1247,7 +1352,7 @@
|
|
|
1247
1352
|
var element = tmp0_iterator_0.e();
|
|
1248
1353
|
var tmp$ret$3;
|
|
1249
1354
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1250
|
-
tmp$ret$3 = element.
|
|
1355
|
+
tmp$ret$3 = element.q1c_1 === param;
|
|
1251
1356
|
if (tmp$ret$3) {
|
|
1252
1357
|
tmp$ret$4 = element;
|
|
1253
1358
|
break $l$block;
|
|
@@ -1266,7 +1371,7 @@
|
|
|
1266
1371
|
// Inline function 'kotlin.contracts.contract' call
|
|
1267
1372
|
var tmp$ret$6;
|
|
1268
1373
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1269
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver.
|
|
1374
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver.v1c_1;
|
|
1270
1375
|
tmp$ret$6 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, $this);
|
|
1271
1376
|
tmp$ret$7 = tmp$ret$6;
|
|
1272
1377
|
tmp_2 = tmp$ret$7;
|
|
@@ -1306,7 +1411,7 @@
|
|
|
1306
1411
|
}
|
|
1307
1412
|
function toName(_this__u8e3s4, $this, segments, method) {
|
|
1308
1413
|
var tmp0_safe_receiver = _this__u8e3s4;
|
|
1309
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1414
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e1c_1;
|
|
1310
1415
|
var tmp;
|
|
1311
1416
|
if (tmp1_safe_receiver == null) {
|
|
1312
1417
|
tmp = null;
|
|
@@ -1316,7 +1421,7 @@
|
|
|
1316
1421
|
// Inline function 'kotlin.contracts.contract' call
|
|
1317
1422
|
var tmp$ret$0;
|
|
1318
1423
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
1319
|
-
tmp$ret$0 = Common_getInstance().
|
|
1424
|
+
tmp$ret$0 = Common_getInstance().f1t([tmp1_safe_receiver]);
|
|
1320
1425
|
tmp$ret$1 = tmp$ret$0;
|
|
1321
1426
|
tmp = tmp$ret$1;
|
|
1322
1427
|
}
|
|
@@ -1338,21 +1443,21 @@
|
|
|
1338
1443
|
return tmp_0;
|
|
1339
1444
|
}
|
|
1340
1445
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
1341
|
-
this.
|
|
1342
|
-
this.
|
|
1343
|
-
this.
|
|
1344
|
-
this.
|
|
1345
|
-
this.
|
|
1446
|
+
this.j1t_1 = path;
|
|
1447
|
+
this.k1t_1 = pathItem;
|
|
1448
|
+
this.l1t_1 = method;
|
|
1449
|
+
this.m1t_1 = operation;
|
|
1450
|
+
this.n1t_1 = type;
|
|
1346
1451
|
}
|
|
1347
1452
|
protoOf(FlattenRequest).toString = function () {
|
|
1348
|
-
return 'FlattenRequest(path=' + new Path(this.
|
|
1453
|
+
return 'FlattenRequest(path=' + new Path(this.j1t_1) + ', pathItem=' + this.k1t_1 + ', method=' + this.l1t_1 + ', operation=' + this.m1t_1 + ', type=' + this.n1t_1 + ')';
|
|
1349
1454
|
};
|
|
1350
1455
|
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.
|
|
1456
|
+
var result = Path__hashCode_impl_go73kd(this.j1t_1);
|
|
1457
|
+
result = imul(result, 31) + this.k1t_1.hashCode() | 0;
|
|
1458
|
+
result = imul(result, 31) + this.l1t_1.hashCode() | 0;
|
|
1459
|
+
result = imul(result, 31) + this.m1t_1.hashCode() | 0;
|
|
1460
|
+
result = imul(result, 31) + getStringHashCode(this.n1t_1) | 0;
|
|
1356
1461
|
return result;
|
|
1357
1462
|
};
|
|
1358
1463
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -1361,15 +1466,15 @@
|
|
|
1361
1466
|
if (!(other instanceof FlattenRequest))
|
|
1362
1467
|
return false;
|
|
1363
1468
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
1364
|
-
if (!(this.
|
|
1469
|
+
if (!(this.j1t_1 === tmp0_other_with_cast.j1t_1))
|
|
1365
1470
|
return false;
|
|
1366
|
-
if (!this.
|
|
1471
|
+
if (!this.k1t_1.equals(tmp0_other_with_cast.k1t_1))
|
|
1367
1472
|
return false;
|
|
1368
|
-
if (!this.
|
|
1473
|
+
if (!this.l1t_1.equals(tmp0_other_with_cast.l1t_1))
|
|
1369
1474
|
return false;
|
|
1370
|
-
if (!this.
|
|
1475
|
+
if (!this.m1t_1.equals(tmp0_other_with_cast.m1t_1))
|
|
1371
1476
|
return false;
|
|
1372
|
-
if (!(this.
|
|
1477
|
+
if (!(this.n1t_1 === tmp0_other_with_cast.n1t_1))
|
|
1373
1478
|
return false;
|
|
1374
1479
|
return true;
|
|
1375
1480
|
};
|
|
@@ -1378,7 +1483,7 @@
|
|
|
1378
1483
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1379
1484
|
var tmp$ret$15;
|
|
1380
1485
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1381
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
1486
|
+
var tmp1_flatMap = _this__u8e3s4.w1a_1;
|
|
1382
1487
|
var tmp$ret$14;
|
|
1383
1488
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1384
1489
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -1392,7 +1497,7 @@
|
|
|
1392
1497
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
1393
1498
|
var tmp$ret$1;
|
|
1394
1499
|
// Inline function 'kotlin.collections.component1' call
|
|
1395
|
-
tmp$ret$1 = element.v().
|
|
1500
|
+
tmp$ret$1 = element.v().h1b_1;
|
|
1396
1501
|
var path = tmp$ret$1;
|
|
1397
1502
|
var tmp$ret$2;
|
|
1398
1503
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1424,8 +1529,8 @@
|
|
|
1424
1529
|
// Inline function 'kotlin.collections.map' call
|
|
1425
1530
|
var tmp$ret$6;
|
|
1426
1531
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1427
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1428
|
-
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.
|
|
1532
|
+
var tmp0_elvis_lhs = _this__u8e3s4.u1a_1;
|
|
1533
|
+
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.f1c_1 : tmp0_elvis_lhs;
|
|
1429
1534
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
1430
1535
|
tmp$ret$6 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1431
1536
|
var tmp2_map = tmp$ret$6;
|
|
@@ -1472,25 +1577,25 @@
|
|
|
1472
1577
|
return tmp$ret$18;
|
|
1473
1578
|
}
|
|
1474
1579
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
1475
|
-
this.
|
|
1476
|
-
this.
|
|
1477
|
-
this.
|
|
1478
|
-
this.
|
|
1479
|
-
this.
|
|
1480
|
-
this.
|
|
1481
|
-
this.
|
|
1580
|
+
this.o1t_1 = path;
|
|
1581
|
+
this.p1t_1 = pathItem;
|
|
1582
|
+
this.q1t_1 = method;
|
|
1583
|
+
this.r1t_1 = operation;
|
|
1584
|
+
this.s1t_1 = statusCode;
|
|
1585
|
+
this.t1t_1 = response;
|
|
1586
|
+
this.u1t_1 = type;
|
|
1482
1587
|
}
|
|
1483
1588
|
protoOf(FlattenResponse).toString = function () {
|
|
1484
|
-
return 'FlattenResponse(path=' + new Path(this.
|
|
1589
|
+
return 'FlattenResponse(path=' + new Path(this.o1t_1) + ', pathItem=' + this.p1t_1 + ', method=' + this.q1t_1 + ', operation=' + this.r1t_1 + ', statusCode=' + new StatusCode(this.s1t_1) + ', response=' + this.t1t_1 + ', type=' + this.u1t_1 + ')';
|
|
1485
1590
|
};
|
|
1486
1591
|
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.
|
|
1592
|
+
var result = Path__hashCode_impl_go73kd(this.o1t_1);
|
|
1593
|
+
result = imul(result, 31) + this.p1t_1.hashCode() | 0;
|
|
1594
|
+
result = imul(result, 31) + this.q1t_1.hashCode() | 0;
|
|
1595
|
+
result = imul(result, 31) + this.r1t_1.hashCode() | 0;
|
|
1596
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.s1t_1) | 0;
|
|
1597
|
+
result = imul(result, 31) + hashCode(this.t1t_1) | 0;
|
|
1598
|
+
result = imul(result, 31) + getStringHashCode(this.u1t_1) | 0;
|
|
1494
1599
|
return result;
|
|
1495
1600
|
};
|
|
1496
1601
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -1499,19 +1604,19 @@
|
|
|
1499
1604
|
if (!(other instanceof FlattenResponse))
|
|
1500
1605
|
return false;
|
|
1501
1606
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
1502
|
-
if (!(this.
|
|
1607
|
+
if (!(this.o1t_1 === tmp0_other_with_cast.o1t_1))
|
|
1503
1608
|
return false;
|
|
1504
|
-
if (!this.
|
|
1609
|
+
if (!this.p1t_1.equals(tmp0_other_with_cast.p1t_1))
|
|
1505
1610
|
return false;
|
|
1506
|
-
if (!this.
|
|
1611
|
+
if (!this.q1t_1.equals(tmp0_other_with_cast.q1t_1))
|
|
1507
1612
|
return false;
|
|
1508
|
-
if (!this.
|
|
1613
|
+
if (!this.r1t_1.equals(tmp0_other_with_cast.r1t_1))
|
|
1509
1614
|
return false;
|
|
1510
|
-
if (!(this.
|
|
1615
|
+
if (!(this.s1t_1 === tmp0_other_with_cast.s1t_1))
|
|
1511
1616
|
return false;
|
|
1512
|
-
if (!equals(this.
|
|
1617
|
+
if (!equals(this.t1t_1, tmp0_other_with_cast.t1t_1))
|
|
1513
1618
|
return false;
|
|
1514
|
-
if (!(this.
|
|
1619
|
+
if (!(this.u1t_1 === tmp0_other_with_cast.u1t_1))
|
|
1515
1620
|
return false;
|
|
1516
1621
|
return true;
|
|
1517
1622
|
};
|
|
@@ -1520,7 +1625,7 @@
|
|
|
1520
1625
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1521
1626
|
var tmp$ret$22;
|
|
1522
1627
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1523
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
1628
|
+
var tmp1_flatMap = _this__u8e3s4.w1a_1;
|
|
1524
1629
|
var tmp$ret$21;
|
|
1525
1630
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1526
1631
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -1534,7 +1639,7 @@
|
|
|
1534
1639
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
1535
1640
|
var tmp$ret$1;
|
|
1536
1641
|
// Inline function 'kotlin.collections.component1' call
|
|
1537
|
-
tmp$ret$1 = element.v().
|
|
1642
|
+
tmp$ret$1 = element.v().h1b_1;
|
|
1538
1643
|
var path = tmp$ret$1;
|
|
1539
1644
|
var tmp$ret$2;
|
|
1540
1645
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1566,7 +1671,7 @@
|
|
|
1566
1671
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1567
1672
|
var tmp$ret$6;
|
|
1568
1673
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1569
|
-
var tmp0_orEmpty = operation.
|
|
1674
|
+
var tmp0_orEmpty = operation.i1c_1;
|
|
1570
1675
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1571
1676
|
tmp$ret$6 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1572
1677
|
var tmp2_flatMap = tmp$ret$6;
|
|
@@ -1583,7 +1688,7 @@
|
|
|
1583
1688
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
1584
1689
|
var tmp$ret$8;
|
|
1585
1690
|
// Inline function 'kotlin.collections.component1' call
|
|
1586
|
-
tmp$ret$8 = element_1.v().
|
|
1691
|
+
tmp$ret$8 = element_1.v().a1f_1;
|
|
1587
1692
|
var statusCode = tmp$ret$8;
|
|
1588
1693
|
var tmp$ret$9;
|
|
1589
1694
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1593,8 +1698,8 @@
|
|
|
1593
1698
|
// Inline function 'kotlin.collections.map' call
|
|
1594
1699
|
var tmp$ret$10;
|
|
1595
1700
|
// 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.
|
|
1701
|
+
var tmp0_elvis_lhs_0 = _this__u8e3s4.v1a_1;
|
|
1702
|
+
var tmp0_orEmpty_0 = tmp0_elvis_lhs_0 == null ? operation.g1c_1 : tmp0_elvis_lhs_0;
|
|
1598
1703
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
1599
1704
|
tmp$ret$10 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
1600
1705
|
var tmp2_map = tmp$ret$10;
|
|
@@ -1648,7 +1753,7 @@
|
|
|
1648
1753
|
}
|
|
1649
1754
|
function OpenApiParser$parseRequestBody$lambda(this$0) {
|
|
1650
1755
|
return function (req) {
|
|
1651
|
-
var tmp0_safe_receiver = req.
|
|
1756
|
+
var tmp0_safe_receiver = req.m1t_1.h1c_1;
|
|
1652
1757
|
var tmp;
|
|
1653
1758
|
if (tmp0_safe_receiver == null) {
|
|
1654
1759
|
tmp = null;
|
|
@@ -1685,7 +1790,7 @@
|
|
|
1685
1790
|
var element = tmp0_iterator_0.e();
|
|
1686
1791
|
var tmp$ret$3;
|
|
1687
1792
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1688
|
-
tmp$ret$3 = element.
|
|
1793
|
+
tmp$ret$3 = element.r1c_1.equals(ParameterLocation_BODY_getInstance());
|
|
1689
1794
|
if (tmp$ret$3) {
|
|
1690
1795
|
tmp1_filterTo.a(element);
|
|
1691
1796
|
}
|
|
@@ -1699,46 +1804,39 @@
|
|
|
1699
1804
|
if (tmp2_safe_receiver == null) {
|
|
1700
1805
|
tmp_1 = null;
|
|
1701
1806
|
} else {
|
|
1702
|
-
var tmp$ret$
|
|
1807
|
+
var tmp$ret$9;
|
|
1703
1808
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1704
|
-
var tmp$ret$
|
|
1809
|
+
var tmp$ret$8;
|
|
1705
1810
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1706
1811
|
var tmp2_flatMapTo = ArrayList_init_$Create$();
|
|
1707
1812
|
var tmp0_iterator_1 = tmp2_safe_receiver.c();
|
|
1708
1813
|
while (tmp0_iterator_1.d()) {
|
|
1709
1814
|
var element_0 = tmp0_iterator_1.e();
|
|
1710
|
-
var tmp$ret$
|
|
1815
|
+
var tmp$ret$7;
|
|
1711
1816
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1712
|
-
var parameters = plus(resolveParameters_0(req.
|
|
1713
|
-
var segments = toSegments(req.
|
|
1714
|
-
var name = toName(req.
|
|
1715
|
-
var schema = element_0.
|
|
1817
|
+
var parameters = plus(resolveParameters_0(req.k1t_1, this$0), resolveParameters(req.m1t_1, this$0));
|
|
1818
|
+
var segments = toSegments(req.j1t_1, this$0, parameters);
|
|
1819
|
+
var name = toName(req.m1t_1, this$0, segments, req.l1t_1);
|
|
1820
|
+
var schema = element_0.u1c_1;
|
|
1716
1821
|
var tmp_2;
|
|
1717
1822
|
if (schema instanceof SchemaObject) {
|
|
1718
|
-
var tmp0_subject = schema.
|
|
1823
|
+
var tmp0_subject = schema.s1e_1;
|
|
1719
1824
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
1720
1825
|
var tmp_3;
|
|
1721
1826
|
switch (tmp0) {
|
|
1722
1827
|
case -1:
|
|
1723
1828
|
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;
|
|
1829
|
+
tmp_3 = flatten(schema, this$0, Common_getInstance().f1t([name, 'RequestBody']));
|
|
1830
|
+
break;
|
|
1831
|
+
case 4:
|
|
1832
|
+
var tmp$ret$6;
|
|
1833
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
1834
|
+
var tmp1_safe_receiver_0 = schema.t1e_1;
|
|
1835
|
+
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().f1t([name, 'RequestBody']));
|
|
1836
|
+
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1837
|
+
tmp$ret$6 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1740
1838
|
|
|
1741
|
-
tmp_3 = tmp$ret$
|
|
1839
|
+
tmp_3 = tmp$ret$6;
|
|
1742
1840
|
break;
|
|
1743
1841
|
default:
|
|
1744
1842
|
tmp_3 = emptyList();
|
|
@@ -1746,23 +1844,15 @@
|
|
|
1746
1844
|
}
|
|
1747
1845
|
tmp_2 = tmp_3;
|
|
1748
1846
|
} else {
|
|
1749
|
-
|
|
1750
|
-
tmp_2 = emptyList();
|
|
1751
|
-
} else {
|
|
1752
|
-
if (schema == null) {
|
|
1753
|
-
tmp_2 = emptyList();
|
|
1754
|
-
} else {
|
|
1755
|
-
noWhenBranchMatchedException();
|
|
1756
|
-
}
|
|
1757
|
-
}
|
|
1847
|
+
tmp_2 = emptyList();
|
|
1758
1848
|
}
|
|
1759
|
-
tmp$ret$
|
|
1760
|
-
var list = tmp$ret$
|
|
1849
|
+
tmp$ret$7 = tmp_2;
|
|
1850
|
+
var list = tmp$ret$7;
|
|
1761
1851
|
addAll(tmp2_flatMapTo, list);
|
|
1762
1852
|
}
|
|
1763
|
-
tmp$ret$
|
|
1764
|
-
tmp$ret$
|
|
1765
|
-
tmp_1 = tmp$ret$
|
|
1853
|
+
tmp$ret$8 = tmp2_flatMapTo;
|
|
1854
|
+
tmp$ret$9 = tmp$ret$8;
|
|
1855
|
+
tmp_1 = tmp$ret$9;
|
|
1766
1856
|
}
|
|
1767
1857
|
var tmp3_elvis_lhs = tmp_1;
|
|
1768
1858
|
return tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs;
|
|
@@ -1770,40 +1860,30 @@
|
|
|
1770
1860
|
}
|
|
1771
1861
|
function OpenApiParser$parseResponseBody$lambda(this$0) {
|
|
1772
1862
|
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.
|
|
1863
|
+
var response = resolve_1(res.t1t_1, this$0);
|
|
1864
|
+
var parameters = plus(resolveParameters_0(res.p1t_1, this$0), resolveParameters(res.r1t_1, this$0));
|
|
1865
|
+
var segments = toSegments(res.o1t_1, this$0, parameters);
|
|
1866
|
+
var name = toName(res.r1t_1, this$0, segments, res.q1t_1);
|
|
1867
|
+
var schema = response.e1f_1;
|
|
1778
1868
|
var tmp;
|
|
1779
1869
|
if (schema instanceof SchemaObject) {
|
|
1780
|
-
var tmp0_subject = schema.
|
|
1870
|
+
var tmp0_subject = schema.s1e_1;
|
|
1781
1871
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
1782
1872
|
var tmp_0;
|
|
1783
1873
|
switch (tmp0) {
|
|
1784
1874
|
case -1:
|
|
1785
1875
|
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;
|
|
1876
|
+
tmp_0 = flatten(schema, this$0, Common_getInstance().f1t([name, _StatusCode___get_value__impl__we50mu(res.s1t_1), 'ResponseBody']));
|
|
1877
|
+
break;
|
|
1878
|
+
case 4:
|
|
1879
|
+
var tmp$ret$0;
|
|
1880
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
1881
|
+
var tmp1_safe_receiver = schema.t1e_1;
|
|
1882
|
+
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : flatten_0(tmp1_safe_receiver, this$0, Common_getInstance().f1t([name, _StatusCode___get_value__impl__we50mu(res.s1t_1), 'ResponseBody']));
|
|
1883
|
+
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1884
|
+
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1805
1885
|
|
|
1806
|
-
tmp_0 = tmp$ret$
|
|
1886
|
+
tmp_0 = tmp$ret$0;
|
|
1807
1887
|
break;
|
|
1808
1888
|
default:
|
|
1809
1889
|
tmp_0 = emptyList();
|
|
@@ -1811,15 +1891,7 @@
|
|
|
1811
1891
|
}
|
|
1812
1892
|
tmp = tmp_0;
|
|
1813
1893
|
} else {
|
|
1814
|
-
|
|
1815
|
-
tmp = emptyList();
|
|
1816
|
-
} else {
|
|
1817
|
-
if (schema == null) {
|
|
1818
|
-
tmp = emptyList();
|
|
1819
|
-
} else {
|
|
1820
|
-
noWhenBranchMatchedException();
|
|
1821
|
-
}
|
|
1822
|
-
}
|
|
1894
|
+
tmp = emptyList();
|
|
1823
1895
|
}
|
|
1824
1896
|
return tmp;
|
|
1825
1897
|
};
|
|
@@ -1828,10 +1900,10 @@
|
|
|
1828
1900
|
var tmp0_subject = it;
|
|
1829
1901
|
var tmp;
|
|
1830
1902
|
if (tmp0_subject instanceof Literal) {
|
|
1831
|
-
tmp = Common_getInstance().
|
|
1903
|
+
tmp = Common_getInstance().f1t([it.rj_1]);
|
|
1832
1904
|
} else {
|
|
1833
1905
|
if (tmp0_subject instanceof Param) {
|
|
1834
|
-
tmp = Common_getInstance().
|
|
1906
|
+
tmp = Common_getInstance().f1t([it.si_1.dj_1]);
|
|
1835
1907
|
} else {
|
|
1836
1908
|
noWhenBranchMatchedException();
|
|
1837
1909
|
}
|
|
@@ -1840,11 +1912,82 @@
|
|
|
1840
1912
|
}
|
|
1841
1913
|
function OpenApiParser(openApi) {
|
|
1842
1914
|
Companion_getInstance_0();
|
|
1843
|
-
this.
|
|
1915
|
+
this.h1t_1 = openApi;
|
|
1844
1916
|
}
|
|
1845
|
-
protoOf(OpenApiParser).
|
|
1917
|
+
protoOf(OpenApiParser).i1t = function () {
|
|
1846
1918
|
return plus(plus(plus(parseEndpoints(this), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
|
|
1847
1919
|
};
|
|
1920
|
+
function toMap_0(_this__u8e3s4) {
|
|
1921
|
+
var tmp0_subject = _this__u8e3s4;
|
|
1922
|
+
var tmp;
|
|
1923
|
+
if (tmp0_subject instanceof Custom) {
|
|
1924
|
+
tmp = _this__u8e3s4.jl(VOID, VOID, true);
|
|
1925
|
+
} else {
|
|
1926
|
+
if (tmp0_subject instanceof Any) {
|
|
1927
|
+
tmp = _this__u8e3s4.hl(VOID, true);
|
|
1928
|
+
} else {
|
|
1929
|
+
if (tmp0_subject instanceof Primitive) {
|
|
1930
|
+
tmp = _this__u8e3s4.ll(VOID, VOID, true);
|
|
1931
|
+
} else {
|
|
1932
|
+
noWhenBranchMatchedException();
|
|
1933
|
+
}
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
return tmp;
|
|
1937
|
+
}
|
|
1938
|
+
function isPrimitive(_this__u8e3s4) {
|
|
1939
|
+
var tmp0_subject = _this__u8e3s4;
|
|
1940
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
1941
|
+
var tmp;
|
|
1942
|
+
switch (tmp0) {
|
|
1943
|
+
case 0:
|
|
1944
|
+
tmp = true;
|
|
1945
|
+
break;
|
|
1946
|
+
case 1:
|
|
1947
|
+
tmp = true;
|
|
1948
|
+
break;
|
|
1949
|
+
case 2:
|
|
1950
|
+
tmp = true;
|
|
1951
|
+
break;
|
|
1952
|
+
case 3:
|
|
1953
|
+
tmp = true;
|
|
1954
|
+
break;
|
|
1955
|
+
case 4:
|
|
1956
|
+
tmp = false;
|
|
1957
|
+
break;
|
|
1958
|
+
case 5:
|
|
1959
|
+
tmp = false;
|
|
1960
|
+
break;
|
|
1961
|
+
case 6:
|
|
1962
|
+
tmp = false;
|
|
1963
|
+
break;
|
|
1964
|
+
case -1:
|
|
1965
|
+
tmp = false;
|
|
1966
|
+
break;
|
|
1967
|
+
default:
|
|
1968
|
+
noWhenBranchMatchedException();
|
|
1969
|
+
break;
|
|
1970
|
+
}
|
|
1971
|
+
return tmp;
|
|
1972
|
+
}
|
|
1973
|
+
function toIterable(_this__u8e3s4) {
|
|
1974
|
+
var tmp0_subject = _this__u8e3s4;
|
|
1975
|
+
var tmp;
|
|
1976
|
+
if (tmp0_subject instanceof Custom) {
|
|
1977
|
+
tmp = _this__u8e3s4.jl(VOID, true);
|
|
1978
|
+
} else {
|
|
1979
|
+
if (tmp0_subject instanceof Any) {
|
|
1980
|
+
tmp = _this__u8e3s4.hl(true);
|
|
1981
|
+
} else {
|
|
1982
|
+
if (tmp0_subject instanceof Primitive) {
|
|
1983
|
+
tmp = _this__u8e3s4.ll(VOID, true);
|
|
1984
|
+
} else {
|
|
1985
|
+
noWhenBranchMatchedException();
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
return tmp;
|
|
1990
|
+
}
|
|
1848
1991
|
function filterNotNullValues(_this__u8e3s4) {
|
|
1849
1992
|
var tmp$ret$8;
|
|
1850
1993
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -1902,10 +2045,10 @@
|
|
|
1902
2045
|
function Companion_0() {
|
|
1903
2046
|
Companion_instance_0 = this;
|
|
1904
2047
|
}
|
|
1905
|
-
protoOf(Companion_0).
|
|
2048
|
+
protoOf(Companion_0).g1t = function (json) {
|
|
1906
2049
|
var tmp$ret$1;
|
|
1907
2050
|
// Inline function 'kotlin.let' call
|
|
1908
|
-
var tmp0_let = Default_getInstance_0().
|
|
2051
|
+
var tmp0_let = Default_getInstance_0().m1a(json);
|
|
1909
2052
|
// Inline function 'kotlin.contracts.contract' call
|
|
1910
2053
|
var tmp$ret$0;
|
|
1911
2054
|
// Inline function 'community.flock.wirespec.openapi.v3.Companion.parse.<anonymous>' call
|
|
@@ -1923,10 +2066,10 @@
|
|
|
1923
2066
|
return plus(plus(plus(parseEndpoint($this), parseRequestBody_0($this)), parseResponseBody_0($this)), parseComponents($this));
|
|
1924
2067
|
}
|
|
1925
2068
|
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
2069
|
var tmp$ret$50;
|
|
2070
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
2071
|
+
var tmp1_flatMap = $this.v1t_1.m1j_1;
|
|
2072
|
+
var tmp$ret$49;
|
|
1930
2073
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1931
2074
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1932
2075
|
var tmp$ret$0;
|
|
@@ -1935,20 +2078,20 @@
|
|
|
1935
2078
|
var tmp0_iterator = tmp$ret$0;
|
|
1936
2079
|
while (tmp0_iterator.d()) {
|
|
1937
2080
|
var element = tmp0_iterator.e();
|
|
1938
|
-
var tmp$ret$
|
|
2081
|
+
var tmp$ret$48;
|
|
1939
2082
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>' call
|
|
1940
2083
|
var tmp$ret$1;
|
|
1941
2084
|
// Inline function 'kotlin.collections.component1' call
|
|
1942
|
-
tmp$ret$1 = element.v().
|
|
2085
|
+
tmp$ret$1 = element.v().u1j_1;
|
|
1943
2086
|
var key = tmp$ret$1;
|
|
1944
2087
|
var tmp$ret$2;
|
|
1945
2088
|
// Inline function 'kotlin.collections.component2' call
|
|
1946
2089
|
tmp$ret$2 = element.w();
|
|
1947
2090
|
var path = tmp$ret$2;
|
|
1948
|
-
var tmp$ret$
|
|
2091
|
+
var tmp$ret$47;
|
|
1949
2092
|
// Inline function 'kotlin.collections.map' call
|
|
1950
2093
|
var tmp1_map = toOperationList_0(path, $this);
|
|
1951
|
-
var tmp$ret$
|
|
2094
|
+
var tmp$ret$46;
|
|
1952
2095
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1953
2096
|
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.f());
|
|
1954
2097
|
var tmp$ret$3;
|
|
@@ -1957,7 +2100,7 @@
|
|
|
1957
2100
|
var tmp0_iterator_0 = tmp$ret$3;
|
|
1958
2101
|
while (tmp0_iterator_0.d()) {
|
|
1959
2102
|
var item = tmp0_iterator_0.e();
|
|
1960
|
-
var tmp$ret$
|
|
2103
|
+
var tmp$ret$45;
|
|
1961
2104
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>' call
|
|
1962
2105
|
var tmp$ret$4;
|
|
1963
2106
|
// Inline function 'kotlin.collections.component1' call
|
|
@@ -1967,162 +2110,156 @@
|
|
|
1967
2110
|
// Inline function 'kotlin.collections.component2' call
|
|
1968
2111
|
tmp$ret$5 = item.w();
|
|
1969
2112
|
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);
|
|
2113
|
+
var parameters = plus(resolveParameters_2(path, $this), resolveParameters_1(operation, $this));
|
|
1977
2114
|
var segments = toSegments_0(key, $this, parameters);
|
|
1978
2115
|
var name = toName_0(operation, $this, segments, method);
|
|
1979
|
-
var tmp$ret$
|
|
2116
|
+
var tmp$ret$11;
|
|
1980
2117
|
// Inline function 'kotlin.collections.map' call
|
|
1981
|
-
var tmp$ret$9;
|
|
1982
|
-
// Inline function 'kotlin.collections.filter' call
|
|
1983
2118
|
var tmp$ret$8;
|
|
2119
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2120
|
+
var tmp$ret$7;
|
|
1984
2121
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1985
|
-
var
|
|
2122
|
+
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
1986
2123
|
var tmp0_iterator_1 = parameters.c();
|
|
1987
2124
|
while (tmp0_iterator_1.d()) {
|
|
1988
2125
|
var element_0 = tmp0_iterator_1.e();
|
|
1989
|
-
var tmp$ret$
|
|
2126
|
+
var tmp$ret$6;
|
|
1990
2127
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1991
|
-
tmp$ret$
|
|
1992
|
-
if (tmp$ret$
|
|
1993
|
-
|
|
2128
|
+
tmp$ret$6 = element_0.o1l_1.equals(ParameterLocation_QUERY_getInstance_0());
|
|
2129
|
+
if (tmp$ret$6) {
|
|
2130
|
+
tmp0_filterTo.a(element_0);
|
|
1994
2131
|
}
|
|
1995
2132
|
}
|
|
1996
|
-
tmp$ret$
|
|
1997
|
-
tmp$ret$
|
|
1998
|
-
var
|
|
1999
|
-
var tmp$ret$
|
|
2133
|
+
tmp$ret$7 = tmp0_filterTo;
|
|
2134
|
+
tmp$ret$8 = tmp$ret$7;
|
|
2135
|
+
var tmp2_map = tmp$ret$8;
|
|
2136
|
+
var tmp$ret$10;
|
|
2000
2137
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2001
|
-
var
|
|
2002
|
-
var tmp0_iterator_2 =
|
|
2138
|
+
var tmp1_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp2_map, 10));
|
|
2139
|
+
var tmp0_iterator_2 = tmp2_map.c();
|
|
2003
2140
|
while (tmp0_iterator_2.d()) {
|
|
2004
2141
|
var item_0 = tmp0_iterator_2.e();
|
|
2005
|
-
var tmp$ret$
|
|
2142
|
+
var tmp$ret$9;
|
|
2006
2143
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2007
|
-
tmp$ret$
|
|
2008
|
-
|
|
2144
|
+
tmp$ret$9 = toField_2(item_0, $this);
|
|
2145
|
+
tmp1_mapTo.a(tmp$ret$9);
|
|
2009
2146
|
}
|
|
2010
|
-
tmp$ret$
|
|
2011
|
-
tmp$ret$
|
|
2012
|
-
var query = tmp$ret$
|
|
2013
|
-
var tmp$ret$
|
|
2147
|
+
tmp$ret$10 = tmp1_mapTo;
|
|
2148
|
+
tmp$ret$11 = tmp$ret$10;
|
|
2149
|
+
var query = tmp$ret$11;
|
|
2150
|
+
var tmp$ret$17;
|
|
2014
2151
|
// Inline function 'kotlin.collections.map' call
|
|
2015
|
-
var tmp$ret$15;
|
|
2016
|
-
// Inline function 'kotlin.collections.filter' call
|
|
2017
2152
|
var tmp$ret$14;
|
|
2153
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2154
|
+
var tmp$ret$13;
|
|
2018
2155
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2019
|
-
var
|
|
2156
|
+
var tmp3_filterTo = ArrayList_init_$Create$();
|
|
2020
2157
|
var tmp0_iterator_3 = parameters.c();
|
|
2021
2158
|
while (tmp0_iterator_3.d()) {
|
|
2022
2159
|
var element_1 = tmp0_iterator_3.e();
|
|
2023
|
-
var tmp$ret$
|
|
2160
|
+
var tmp$ret$12;
|
|
2024
2161
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2025
|
-
tmp$ret$
|
|
2026
|
-
if (tmp$ret$
|
|
2027
|
-
|
|
2162
|
+
tmp$ret$12 = element_1.o1l_1.equals(ParameterLocation_HEADER_getInstance_0());
|
|
2163
|
+
if (tmp$ret$12) {
|
|
2164
|
+
tmp3_filterTo.a(element_1);
|
|
2028
2165
|
}
|
|
2029
2166
|
}
|
|
2030
|
-
tmp$ret$
|
|
2031
|
-
tmp$ret$
|
|
2032
|
-
var
|
|
2033
|
-
var tmp$ret$
|
|
2167
|
+
tmp$ret$13 = tmp3_filterTo;
|
|
2168
|
+
tmp$ret$14 = tmp$ret$13;
|
|
2169
|
+
var tmp5_map = tmp$ret$14;
|
|
2170
|
+
var tmp$ret$16;
|
|
2034
2171
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2035
|
-
var
|
|
2036
|
-
var tmp0_iterator_4 =
|
|
2172
|
+
var tmp4_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp5_map, 10));
|
|
2173
|
+
var tmp0_iterator_4 = tmp5_map.c();
|
|
2037
2174
|
while (tmp0_iterator_4.d()) {
|
|
2038
2175
|
var item_1 = tmp0_iterator_4.e();
|
|
2039
|
-
var tmp$ret$
|
|
2176
|
+
var tmp$ret$15;
|
|
2040
2177
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2041
|
-
tmp$ret$
|
|
2042
|
-
|
|
2178
|
+
tmp$ret$15 = toField_2(item_1, $this);
|
|
2179
|
+
tmp4_mapTo.a(tmp$ret$15);
|
|
2043
2180
|
}
|
|
2044
|
-
tmp$ret$
|
|
2045
|
-
tmp$ret$
|
|
2046
|
-
var headers = tmp$ret$
|
|
2047
|
-
var tmp$ret$
|
|
2181
|
+
tmp$ret$16 = tmp4_mapTo;
|
|
2182
|
+
tmp$ret$17 = tmp$ret$16;
|
|
2183
|
+
var headers = tmp$ret$17;
|
|
2184
|
+
var tmp$ret$23;
|
|
2048
2185
|
// Inline function 'kotlin.collections.map' call
|
|
2049
|
-
var tmp$ret$21;
|
|
2050
|
-
// Inline function 'kotlin.collections.filter' call
|
|
2051
2186
|
var tmp$ret$20;
|
|
2187
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2188
|
+
var tmp$ret$19;
|
|
2052
2189
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2053
|
-
var
|
|
2190
|
+
var tmp6_filterTo = ArrayList_init_$Create$();
|
|
2054
2191
|
var tmp0_iterator_5 = parameters.c();
|
|
2055
2192
|
while (tmp0_iterator_5.d()) {
|
|
2056
2193
|
var element_2 = tmp0_iterator_5.e();
|
|
2057
|
-
var tmp$ret$
|
|
2194
|
+
var tmp$ret$18;
|
|
2058
2195
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2059
|
-
tmp$ret$
|
|
2060
|
-
if (tmp$ret$
|
|
2061
|
-
|
|
2196
|
+
tmp$ret$18 = element_2.o1l_1.equals(ParameterLocation_COOKIE_getInstance());
|
|
2197
|
+
if (tmp$ret$18) {
|
|
2198
|
+
tmp6_filterTo.a(element_2);
|
|
2062
2199
|
}
|
|
2063
2200
|
}
|
|
2064
|
-
tmp$ret$
|
|
2065
|
-
tmp$ret$
|
|
2066
|
-
var
|
|
2067
|
-
var tmp$ret$
|
|
2201
|
+
tmp$ret$19 = tmp6_filterTo;
|
|
2202
|
+
tmp$ret$20 = tmp$ret$19;
|
|
2203
|
+
var tmp8_map = tmp$ret$20;
|
|
2204
|
+
var tmp$ret$22;
|
|
2068
2205
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2069
|
-
var
|
|
2070
|
-
var tmp0_iterator_6 =
|
|
2206
|
+
var tmp7_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp8_map, 10));
|
|
2207
|
+
var tmp0_iterator_6 = tmp8_map.c();
|
|
2071
2208
|
while (tmp0_iterator_6.d()) {
|
|
2072
2209
|
var item_2 = tmp0_iterator_6.e();
|
|
2073
|
-
var tmp$ret$
|
|
2210
|
+
var tmp$ret$21;
|
|
2074
2211
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2075
|
-
tmp$ret$
|
|
2076
|
-
|
|
2212
|
+
tmp$ret$21 = toField_2(item_2, $this);
|
|
2213
|
+
tmp7_mapTo.a(tmp$ret$21);
|
|
2077
2214
|
}
|
|
2078
|
-
tmp$ret$
|
|
2079
|
-
tmp$ret$
|
|
2080
|
-
var cookies = tmp$ret$
|
|
2081
|
-
var tmp0_safe_receiver = operation.
|
|
2215
|
+
tmp$ret$22 = tmp7_mapTo;
|
|
2216
|
+
tmp$ret$23 = tmp$ret$22;
|
|
2217
|
+
var cookies = tmp$ret$23;
|
|
2218
|
+
var tmp0_safe_receiver = operation.t1k_1;
|
|
2082
2219
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, $this);
|
|
2083
|
-
var
|
|
2220
|
+
var tmp;
|
|
2084
2221
|
if (tmp1_safe_receiver == null) {
|
|
2085
|
-
|
|
2222
|
+
tmp = null;
|
|
2086
2223
|
} else {
|
|
2087
|
-
var tmp$ret$
|
|
2224
|
+
var tmp$ret$31;
|
|
2088
2225
|
// Inline function 'kotlin.let' call
|
|
2089
2226
|
// Inline function 'kotlin.contracts.contract' call
|
|
2090
|
-
var tmp$ret$
|
|
2227
|
+
var tmp$ret$30;
|
|
2091
2228
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2092
|
-
var tmp0_safe_receiver_0 = tmp1_safe_receiver.
|
|
2093
|
-
var
|
|
2229
|
+
var tmp0_safe_receiver_0 = tmp1_safe_receiver.t1l_1;
|
|
2230
|
+
var tmp_0;
|
|
2094
2231
|
if (tmp0_safe_receiver_0 == null) {
|
|
2095
|
-
|
|
2232
|
+
tmp_0 = null;
|
|
2096
2233
|
} else {
|
|
2097
|
-
var tmp$ret$30;
|
|
2098
|
-
// Inline function 'kotlin.collections.map' call
|
|
2099
2234
|
var tmp$ret$29;
|
|
2235
|
+
// Inline function 'kotlin.collections.map' call
|
|
2236
|
+
var tmp$ret$28;
|
|
2100
2237
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2101
2238
|
var tmp0_mapTo_0 = ArrayList_init_$Create$_0(tmp0_safe_receiver_0.f());
|
|
2102
|
-
var tmp$ret$
|
|
2239
|
+
var tmp$ret$24;
|
|
2103
2240
|
// Inline function 'kotlin.collections.iterator' call
|
|
2104
|
-
tmp$ret$
|
|
2105
|
-
var tmp0_iterator_7 = tmp$ret$
|
|
2241
|
+
tmp$ret$24 = tmp0_safe_receiver_0.u().c();
|
|
2242
|
+
var tmp0_iterator_7 = tmp$ret$24;
|
|
2106
2243
|
while (tmp0_iterator_7.d()) {
|
|
2107
2244
|
var item_3 = tmp0_iterator_7.e();
|
|
2108
|
-
var tmp$ret$
|
|
2245
|
+
var tmp$ret$27;
|
|
2109
2246
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2110
|
-
var tmp$ret$
|
|
2247
|
+
var tmp$ret$25;
|
|
2111
2248
|
// Inline function 'kotlin.collections.component1' call
|
|
2112
|
-
tmp$ret$
|
|
2113
|
-
var mediaType = tmp$ret$
|
|
2114
|
-
var tmp$ret$
|
|
2249
|
+
tmp$ret$25 = item_3.v().x1l_1;
|
|
2250
|
+
var mediaType = tmp$ret$25;
|
|
2251
|
+
var tmp$ret$26;
|
|
2115
2252
|
// Inline function 'kotlin.collections.component2' call
|
|
2116
|
-
tmp$ret$
|
|
2117
|
-
var mediaObject = tmp$ret$
|
|
2118
|
-
var
|
|
2119
|
-
var schema = mediaObject.
|
|
2120
|
-
var
|
|
2253
|
+
tmp$ret$26 = item_3.w();
|
|
2254
|
+
var mediaObject = tmp$ret$26;
|
|
2255
|
+
var tmp_1 = _MediaType___get_value__impl__wy58mp(mediaType);
|
|
2256
|
+
var schema = mediaObject.a1m_1;
|
|
2257
|
+
var tmp_2;
|
|
2121
2258
|
if (schema instanceof ReferenceObject_0) {
|
|
2122
|
-
|
|
2259
|
+
tmp_2 = toReference_1(schema, $this);
|
|
2123
2260
|
} else {
|
|
2124
2261
|
if (schema instanceof SchemaObject_0) {
|
|
2125
|
-
|
|
2262
|
+
tmp_2 = toReference_2(schema, $this, Common_getInstance().f1t([name, 'RequestBody']));
|
|
2126
2263
|
} else {
|
|
2127
2264
|
if (schema == null) {
|
|
2128
2265
|
throw new NotImplementedError();
|
|
@@ -2131,83 +2268,83 @@
|
|
|
2131
2268
|
}
|
|
2132
2269
|
}
|
|
2133
2270
|
}
|
|
2134
|
-
var
|
|
2135
|
-
var
|
|
2136
|
-
tmp$ret$
|
|
2137
|
-
tmp0_mapTo_0.a(tmp$ret$
|
|
2271
|
+
var tmp_3 = tmp_2;
|
|
2272
|
+
var tmp0_elvis_lhs = tmp1_safe_receiver.u1l_1;
|
|
2273
|
+
tmp$ret$27 = new Request(new Content(tmp_1, tmp_3, tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
2274
|
+
tmp0_mapTo_0.a(tmp$ret$27);
|
|
2138
2275
|
}
|
|
2139
|
-
tmp$ret$
|
|
2140
|
-
tmp$ret$
|
|
2141
|
-
|
|
2276
|
+
tmp$ret$28 = tmp0_mapTo_0;
|
|
2277
|
+
tmp$ret$29 = tmp$ret$28;
|
|
2278
|
+
tmp_0 = tmp$ret$29;
|
|
2142
2279
|
}
|
|
2143
|
-
tmp$ret$
|
|
2144
|
-
tmp$ret$
|
|
2145
|
-
|
|
2280
|
+
tmp$ret$30 = tmp_0;
|
|
2281
|
+
tmp$ret$31 = tmp$ret$30;
|
|
2282
|
+
tmp = tmp$ret$31;
|
|
2146
2283
|
}
|
|
2147
|
-
var tmp2_elvis_lhs =
|
|
2284
|
+
var tmp2_elvis_lhs = tmp;
|
|
2148
2285
|
var requests = tmp2_elvis_lhs == null ? listOf(new Request(null)) : tmp2_elvis_lhs;
|
|
2149
|
-
var tmp$ret$
|
|
2286
|
+
var tmp$ret$44;
|
|
2150
2287
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2151
|
-
var tmp$ret$
|
|
2288
|
+
var tmp$ret$32;
|
|
2152
2289
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2153
|
-
var
|
|
2154
|
-
var
|
|
2155
|
-
tmp$ret$
|
|
2156
|
-
var
|
|
2157
|
-
var tmp$ret$
|
|
2290
|
+
var tmp9_orEmpty = operation.u1k_1;
|
|
2291
|
+
var tmp0_elvis_lhs_0 = tmp9_orEmpty;
|
|
2292
|
+
tmp$ret$32 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2293
|
+
var tmp11_flatMap = tmp$ret$32;
|
|
2294
|
+
var tmp$ret$43;
|
|
2158
2295
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2159
|
-
var
|
|
2160
|
-
var tmp$ret$
|
|
2296
|
+
var tmp10_flatMapTo = ArrayList_init_$Create$();
|
|
2297
|
+
var tmp$ret$33;
|
|
2161
2298
|
// Inline function 'kotlin.collections.iterator' call
|
|
2162
|
-
tmp$ret$
|
|
2163
|
-
var tmp0_iterator_8 = tmp$ret$
|
|
2299
|
+
tmp$ret$33 = tmp11_flatMap.u().c();
|
|
2300
|
+
var tmp0_iterator_8 = tmp$ret$33;
|
|
2164
2301
|
while (tmp0_iterator_8.d()) {
|
|
2165
2302
|
var element_3 = tmp0_iterator_8.e();
|
|
2166
|
-
var tmp$ret$
|
|
2303
|
+
var tmp$ret$42;
|
|
2167
2304
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2168
|
-
var tmp$ret$
|
|
2305
|
+
var tmp$ret$34;
|
|
2169
2306
|
// Inline function 'kotlin.collections.component1' call
|
|
2170
|
-
tmp$ret$
|
|
2171
|
-
var status = tmp$ret$
|
|
2172
|
-
var tmp$ret$
|
|
2307
|
+
tmp$ret$34 = element_3.v().w1n_1;
|
|
2308
|
+
var status = tmp$ret$34;
|
|
2309
|
+
var tmp$ret$35;
|
|
2173
2310
|
// 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
|
|
2311
|
+
tmp$ret$35 = element_3.w();
|
|
2312
|
+
var res = tmp$ret$35;
|
|
2313
|
+
var tmp0_safe_receiver_1 = resolve_6(res, $this).b1o_1;
|
|
2314
|
+
var tmp_4;
|
|
2178
2315
|
if (tmp0_safe_receiver_1 == null) {
|
|
2179
|
-
|
|
2316
|
+
tmp_4 = null;
|
|
2180
2317
|
} else {
|
|
2181
|
-
var tmp$ret$42;
|
|
2182
|
-
// Inline function 'kotlin.collections.map' call
|
|
2183
2318
|
var tmp$ret$41;
|
|
2319
|
+
// Inline function 'kotlin.collections.map' call
|
|
2320
|
+
var tmp$ret$40;
|
|
2184
2321
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2185
2322
|
var tmp0_mapTo_1 = ArrayList_init_$Create$_0(tmp0_safe_receiver_1.f());
|
|
2186
|
-
var tmp$ret$
|
|
2323
|
+
var tmp$ret$36;
|
|
2187
2324
|
// Inline function 'kotlin.collections.iterator' call
|
|
2188
|
-
tmp$ret$
|
|
2189
|
-
var tmp0_iterator_9 = tmp$ret$
|
|
2325
|
+
tmp$ret$36 = tmp0_safe_receiver_1.u().c();
|
|
2326
|
+
var tmp0_iterator_9 = tmp$ret$36;
|
|
2190
2327
|
while (tmp0_iterator_9.d()) {
|
|
2191
2328
|
var item_4 = tmp0_iterator_9.e();
|
|
2192
|
-
var tmp$ret$
|
|
2329
|
+
var tmp$ret$39;
|
|
2193
2330
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2194
|
-
var tmp$ret$
|
|
2331
|
+
var tmp$ret$37;
|
|
2195
2332
|
// Inline function 'kotlin.collections.component1' call
|
|
2196
|
-
tmp$ret$
|
|
2197
|
-
var contentType = tmp$ret$
|
|
2198
|
-
var tmp$ret$
|
|
2333
|
+
tmp$ret$37 = item_4.v().x1l_1;
|
|
2334
|
+
var contentType = tmp$ret$37;
|
|
2335
|
+
var tmp$ret$38;
|
|
2199
2336
|
// 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
|
|
2337
|
+
tmp$ret$38 = item_4.w();
|
|
2338
|
+
var media = tmp$ret$38;
|
|
2339
|
+
var tmp_5 = _StatusCode___get_value__impl__we50mu_0(status);
|
|
2340
|
+
var tmp_6 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
2341
|
+
var schema_0 = media.a1m_1;
|
|
2342
|
+
var tmp_7;
|
|
2206
2343
|
if (schema_0 instanceof ReferenceObject_0) {
|
|
2207
|
-
|
|
2344
|
+
tmp_7 = toReference_1(schema_0, $this);
|
|
2208
2345
|
} else {
|
|
2209
2346
|
if (schema_0 instanceof SchemaObject_0) {
|
|
2210
|
-
|
|
2347
|
+
tmp_7 = toReference_2(schema_0, $this, Common_getInstance().f1t([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
2211
2348
|
} else {
|
|
2212
2349
|
if (schema_0 == null) {
|
|
2213
2350
|
throw new NotImplementedError();
|
|
@@ -2216,96 +2353,100 @@
|
|
|
2216
2353
|
}
|
|
2217
2354
|
}
|
|
2218
2355
|
}
|
|
2219
|
-
var
|
|
2220
|
-
var tmp0_safe_receiver_2 = media.
|
|
2356
|
+
var tmp_8 = tmp_7;
|
|
2357
|
+
var tmp0_safe_receiver_2 = media.a1m_1;
|
|
2221
2358
|
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$
|
|
2359
|
+
var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.j1m_1;
|
|
2360
|
+
tmp$ret$39 = new Response(tmp_5, new Content(tmp_6, tmp_8, tmp2_elvis_lhs_0 == null ? false : tmp2_elvis_lhs_0));
|
|
2361
|
+
tmp0_mapTo_1.a(tmp$ret$39);
|
|
2225
2362
|
}
|
|
2226
|
-
tmp$ret$
|
|
2227
|
-
tmp$ret$
|
|
2228
|
-
|
|
2363
|
+
tmp$ret$40 = tmp0_mapTo_1;
|
|
2364
|
+
tmp$ret$41 = tmp$ret$40;
|
|
2365
|
+
tmp_4 = tmp$ret$41;
|
|
2229
2366
|
}
|
|
2230
|
-
var tmp1_elvis_lhs =
|
|
2231
|
-
tmp$ret$
|
|
2232
|
-
var list = tmp$ret$
|
|
2233
|
-
addAll(
|
|
2234
|
-
}
|
|
2235
|
-
tmp$ret$
|
|
2236
|
-
tmp$ret$
|
|
2237
|
-
var responses = tmp$ret$
|
|
2238
|
-
tmp$ret$
|
|
2239
|
-
tmp0_mapTo.a(tmp$ret$
|
|
2240
|
-
}
|
|
2241
|
-
tmp$ret$
|
|
2367
|
+
var tmp1_elvis_lhs = tmp_4;
|
|
2368
|
+
tmp$ret$42 = tmp1_elvis_lhs == null ? listOf(new Response(_StatusCode___get_value__impl__we50mu_0(status), null)) : tmp1_elvis_lhs;
|
|
2369
|
+
var list = tmp$ret$42;
|
|
2370
|
+
addAll(tmp10_flatMapTo, list);
|
|
2371
|
+
}
|
|
2372
|
+
tmp$ret$43 = tmp10_flatMapTo;
|
|
2373
|
+
tmp$ret$44 = tmp$ret$43;
|
|
2374
|
+
var responses = tmp$ret$44;
|
|
2375
|
+
tmp$ret$45 = new Endpoint(name, method, segments, query, headers, cookies, requests, responses);
|
|
2376
|
+
tmp0_mapTo.a(tmp$ret$45);
|
|
2377
|
+
}
|
|
2378
|
+
tmp$ret$46 = tmp0_mapTo;
|
|
2379
|
+
tmp$ret$47 = tmp$ret$46;
|
|
2242
2380
|
tmp$ret$48 = tmp$ret$47;
|
|
2243
|
-
|
|
2244
|
-
var list_0 = tmp$ret$49;
|
|
2381
|
+
var list_0 = tmp$ret$48;
|
|
2245
2382
|
addAll(tmp0_flatMapTo, list_0);
|
|
2246
2383
|
}
|
|
2247
|
-
tmp$ret$
|
|
2248
|
-
tmp$ret$
|
|
2249
|
-
return tmp$ret$
|
|
2384
|
+
tmp$ret$49 = tmp0_flatMapTo;
|
|
2385
|
+
tmp$ret$50 = tmp$ret$49;
|
|
2386
|
+
return tmp$ret$50;
|
|
2250
2387
|
}
|
|
2251
2388
|
function parseRequestBody_0($this) {
|
|
2252
|
-
return flatMapRequests_0($this.
|
|
2389
|
+
return flatMapRequests_0($this.v1t_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
|
|
2253
2390
|
}
|
|
2254
2391
|
function parseResponseBody_0($this) {
|
|
2255
|
-
return flatMapResponses_0($this.
|
|
2392
|
+
return flatMapResponses_0($this.v1t_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
|
|
2256
2393
|
}
|
|
2257
2394
|
function parseComponents($this) {
|
|
2258
|
-
var
|
|
2259
|
-
|
|
2260
|
-
var tmp;
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2395
|
+
var tmp$ret$8;
|
|
2396
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
2397
|
+
var tmp$ret$4;
|
|
2398
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2399
|
+
var tmp$ret$0;
|
|
2400
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
2401
|
+
var tmp0_safe_receiver = $this.v1t_1.n1j_1;
|
|
2402
|
+
var tmp0_orEmpty = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g1o_1;
|
|
2403
|
+
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
2404
|
+
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2405
|
+
var tmp2_filter = tmp$ret$0;
|
|
2406
|
+
var tmp$ret$3;
|
|
2407
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2408
|
+
var tmp1_filterTo = LinkedHashMap_init_$Create$();
|
|
2409
|
+
var tmp$ret$1;
|
|
2410
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
2411
|
+
tmp$ret$1 = tmp2_filter.u().c();
|
|
2412
|
+
var tmp0_iterator = tmp$ret$1;
|
|
2413
|
+
while (tmp0_iterator.d()) {
|
|
2414
|
+
var element = tmp0_iterator.e();
|
|
2415
|
+
var tmp$ret$2;
|
|
2416
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2417
|
+
var s = element.w();
|
|
2418
|
+
var tmp;
|
|
2419
|
+
if (s instanceof SchemaObject_0) {
|
|
2420
|
+
tmp = s.z1m_1 == null;
|
|
2421
|
+
} else {
|
|
2422
|
+
tmp = false;
|
|
2423
|
+
}
|
|
2424
|
+
tmp$ret$2 = tmp;
|
|
2425
|
+
if (tmp$ret$2) {
|
|
2426
|
+
tmp1_filterTo.k3(element.v(), element.w());
|
|
2280
2427
|
}
|
|
2281
|
-
tmp$ret$2 = tmp0_flatMapTo;
|
|
2282
|
-
tmp$ret$3 = tmp$ret$2;
|
|
2283
|
-
tmp = tmp$ret$3;
|
|
2284
2428
|
}
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2429
|
+
tmp$ret$3 = tmp1_filterTo;
|
|
2430
|
+
tmp$ret$4 = tmp$ret$3;
|
|
2431
|
+
var tmp4_flatMap = tmp$ret$4;
|
|
2432
|
+
var tmp$ret$7;
|
|
2433
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2434
|
+
var tmp3_flatMapTo = ArrayList_init_$Create$();
|
|
2435
|
+
var tmp$ret$5;
|
|
2436
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
2437
|
+
tmp$ret$5 = tmp4_flatMap.u().c();
|
|
2438
|
+
var tmp0_iterator_0 = tmp$ret$5;
|
|
2439
|
+
while (tmp0_iterator_0.d()) {
|
|
2440
|
+
var element_0 = tmp0_iterator_0.e();
|
|
2290
2441
|
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;
|
|
2442
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2443
|
+
tmp$ret$6 = flatten_2(element_0.w(), $this, Common_getInstance().f1t([element_0.v()]));
|
|
2444
|
+
var list = tmp$ret$6;
|
|
2445
|
+
addAll(tmp3_flatMapTo, list);
|
|
2306
2446
|
}
|
|
2307
|
-
|
|
2308
|
-
|
|
2447
|
+
tmp$ret$7 = tmp3_flatMapTo;
|
|
2448
|
+
tmp$ret$8 = tmp$ret$7;
|
|
2449
|
+
return tmp$ret$8;
|
|
2309
2450
|
}
|
|
2310
2451
|
function toSegments_0(_this__u8e3s4, $this, parameters) {
|
|
2311
2452
|
var tmp$ret$11;
|
|
@@ -2340,7 +2481,7 @@
|
|
|
2340
2481
|
var element = tmp0_iterator_0.e();
|
|
2341
2482
|
var tmp$ret$2;
|
|
2342
2483
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2343
|
-
tmp$ret$2 = element.
|
|
2484
|
+
tmp$ret$2 = element.n1l_1 === param;
|
|
2344
2485
|
if (tmp$ret$2) {
|
|
2345
2486
|
tmp$ret$3 = element;
|
|
2346
2487
|
break $l$block;
|
|
@@ -2350,7 +2491,7 @@
|
|
|
2350
2491
|
}
|
|
2351
2492
|
tmp$ret$4 = tmp$ret$3;
|
|
2352
2493
|
var tmp0_safe_receiver = tmp$ret$4;
|
|
2353
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2494
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j1l_1;
|
|
2354
2495
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_3(tmp1_safe_receiver, $this);
|
|
2355
2496
|
var tmp_0;
|
|
2356
2497
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2361,7 +2502,7 @@
|
|
|
2361
2502
|
// Inline function 'kotlin.contracts.contract' call
|
|
2362
2503
|
var tmp$ret$5;
|
|
2363
2504
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2364
|
-
var tmp0_safe_receiver_0 = tmp2_safe_receiver.
|
|
2505
|
+
var tmp0_safe_receiver_0 = tmp2_safe_receiver.s1m_1;
|
|
2365
2506
|
tmp$ret$5 = tmp0_safe_receiver_0 == null ? null : toPrimitive_0(tmp0_safe_receiver_0, $this);
|
|
2366
2507
|
tmp$ret$6 = tmp$ret$5;
|
|
2367
2508
|
tmp_0 = tmp$ret$6;
|
|
@@ -2400,7 +2541,7 @@
|
|
|
2400
2541
|
return tmp$ret$11;
|
|
2401
2542
|
}
|
|
2402
2543
|
function toName_0(_this__u8e3s4, $this, segments, method) {
|
|
2403
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2544
|
+
var tmp0_safe_receiver = _this__u8e3s4.r1k_1;
|
|
2404
2545
|
var tmp;
|
|
2405
2546
|
if (tmp0_safe_receiver == null) {
|
|
2406
2547
|
tmp = null;
|
|
@@ -2410,7 +2551,7 @@
|
|
|
2410
2551
|
// Inline function 'kotlin.contracts.contract' call
|
|
2411
2552
|
var tmp$ret$0;
|
|
2412
2553
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
2413
|
-
tmp$ret$0 = Common_getInstance().
|
|
2554
|
+
tmp$ret$0 = Common_getInstance().f1t([tmp0_safe_receiver]);
|
|
2414
2555
|
tmp$ret$1 = tmp$ret$0;
|
|
2415
2556
|
tmp = tmp$ret$1;
|
|
2416
2557
|
}
|
|
@@ -2432,7 +2573,7 @@
|
|
|
2432
2573
|
return tmp_0;
|
|
2433
2574
|
}
|
|
2434
2575
|
function resolveParameters_1(_this__u8e3s4, $this) {
|
|
2435
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2576
|
+
var tmp0_safe_receiver = _this__u8e3s4.s1k_1;
|
|
2436
2577
|
var tmp;
|
|
2437
2578
|
if (tmp0_safe_receiver == null) {
|
|
2438
2579
|
tmp = null;
|
|
@@ -2480,7 +2621,7 @@
|
|
|
2480
2621
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2481
2622
|
}
|
|
2482
2623
|
function resolveParameters_2(_this__u8e3s4, $this) {
|
|
2483
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2624
|
+
var tmp0_safe_receiver = _this__u8e3s4.j1k_1;
|
|
2484
2625
|
var tmp;
|
|
2485
2626
|
if (tmp0_safe_receiver == null) {
|
|
2486
2627
|
tmp = null;
|
|
@@ -2528,8 +2669,8 @@
|
|
|
2528
2669
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2529
2670
|
}
|
|
2530
2671
|
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.
|
|
2672
|
+
var tmp0_safe_receiver = $this.v1t_1.n1j_1;
|
|
2673
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i1o_1;
|
|
2533
2674
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2534
2675
|
var tmp;
|
|
2535
2676
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2558,8 +2699,8 @@
|
|
|
2558
2699
|
return tmp;
|
|
2559
2700
|
}
|
|
2560
2701
|
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.
|
|
2702
|
+
var tmp0_safe_receiver = $this.v1t_1.n1j_1;
|
|
2703
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g1o_1;
|
|
2563
2704
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2564
2705
|
var tmp;
|
|
2565
2706
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2588,7 +2729,7 @@
|
|
|
2588
2729
|
var tmp3_elvis_lhs = tmp;
|
|
2589
2730
|
var tmp_1;
|
|
2590
2731
|
if (tmp3_elvis_lhs == null) {
|
|
2591
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2732
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.g1m_1);
|
|
2592
2733
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2593
2734
|
} else {
|
|
2594
2735
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2596,8 +2737,8 @@
|
|
|
2596
2737
|
return tmp_1;
|
|
2597
2738
|
}
|
|
2598
2739
|
function resolveRequestBodyObject(_this__u8e3s4, $this) {
|
|
2599
|
-
var tmp0_safe_receiver = $this.
|
|
2600
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2740
|
+
var tmp0_safe_receiver = $this.v1t_1.n1j_1;
|
|
2741
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k1o_1;
|
|
2601
2742
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2602
2743
|
var tmp;
|
|
2603
2744
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2626,7 +2767,7 @@
|
|
|
2626
2767
|
var tmp3_elvis_lhs = tmp;
|
|
2627
2768
|
var tmp_1;
|
|
2628
2769
|
if (tmp3_elvis_lhs == null) {
|
|
2629
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2770
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.g1m_1);
|
|
2630
2771
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2631
2772
|
} else {
|
|
2632
2773
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2634,8 +2775,8 @@
|
|
|
2634
2775
|
return tmp_1;
|
|
2635
2776
|
}
|
|
2636
2777
|
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.
|
|
2778
|
+
var tmp0_safe_receiver = $this.v1t_1.n1j_1;
|
|
2779
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h1o_1;
|
|
2639
2780
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2640
2781
|
var tmp;
|
|
2641
2782
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2664,7 +2805,7 @@
|
|
|
2664
2805
|
var tmp3_elvis_lhs = tmp;
|
|
2665
2806
|
var tmp_1;
|
|
2666
2807
|
if (tmp3_elvis_lhs == null) {
|
|
2667
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2808
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.g1m_1);
|
|
2668
2809
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2669
2810
|
} else {
|
|
2670
2811
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2732,196 +2873,269 @@
|
|
|
2732
2873
|
return tmp;
|
|
2733
2874
|
}
|
|
2734
2875
|
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
2876
|
var tmp;
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2877
|
+
if (!(_this__u8e3s4.z1m_1 == null)) {
|
|
2878
|
+
var tmp0_subject = _this__u8e3s4.z1m_1;
|
|
2879
|
+
var tmp_0;
|
|
2880
|
+
if (tmp0_subject instanceof BooleanObject_0) {
|
|
2881
|
+
tmp_0 = emptyList();
|
|
2882
|
+
} else {
|
|
2883
|
+
tmp_0 = flatten_1(resolve_4(ensureNotNull(_this__u8e3s4.z1m_1), $this), $this, name);
|
|
2884
|
+
}
|
|
2885
|
+
tmp = tmp_0;
|
|
2886
|
+
} else if (!(_this__u8e3s4.u1m_1 == null)) {
|
|
2887
|
+
throw new NotImplementedError('An operation is not implemented: oneOf is not implemented');
|
|
2888
|
+
} else if (!(_this__u8e3s4.v1m_1 == null)) {
|
|
2889
|
+
throw new NotImplementedError('An operation is not implemented: anyOf is not implemented');
|
|
2890
|
+
} else if (!(_this__u8e3s4.t1m_1 == null)) {
|
|
2891
|
+
var tmp$ret$3;
|
|
2892
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
2893
|
+
var tmp$ret$0;
|
|
2894
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
2895
|
+
var tmp0_orEmpty = _this__u8e3s4.t1m_1;
|
|
2896
|
+
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
2897
|
+
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2898
|
+
var tmp2_flatMap = tmp$ret$0;
|
|
2899
|
+
var tmp$ret$2;
|
|
2900
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2901
|
+
var tmp1_flatMapTo = ArrayList_init_$Create$();
|
|
2902
|
+
var tmp0_iterator = tmp2_flatMap.c();
|
|
2903
|
+
while (tmp0_iterator.d()) {
|
|
2904
|
+
var element = tmp0_iterator.e();
|
|
2752
2905
|
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
|
-
|
|
2906
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2907
|
+
tmp$ret$1 = toField_1(resolve_3(element, $this), $this, name);
|
|
2908
|
+
var list = tmp$ret$1;
|
|
2909
|
+
addAll(tmp1_flatMapTo, list);
|
|
2910
|
+
}
|
|
2911
|
+
tmp$ret$2 = tmp1_flatMapTo;
|
|
2912
|
+
tmp$ret$3 = tmp$ret$2;
|
|
2913
|
+
var tmp_1 = listOf(new Type(name, new Shape(tmp$ret$3)));
|
|
2914
|
+
var tmp$ret$13;
|
|
2915
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
2916
|
+
var tmp4_flatMap = ensureNotNull(_this__u8e3s4.t1m_1);
|
|
2917
|
+
var tmp$ret$12;
|
|
2918
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2919
|
+
var tmp3_flatMapTo = ArrayList_init_$Create$();
|
|
2920
|
+
var tmp0_iterator_0 = tmp4_flatMap.c();
|
|
2921
|
+
while (tmp0_iterator_0.d()) {
|
|
2922
|
+
var element_0 = tmp0_iterator_0.e();
|
|
2923
|
+
var tmp$ret$11;
|
|
2924
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2925
|
+
var tmp0_subject_0 = element_0;
|
|
2926
|
+
var tmp_2;
|
|
2927
|
+
if (tmp0_subject_0 instanceof ReferenceObject_0) {
|
|
2928
|
+
tmp_2 = emptyList();
|
|
2929
|
+
} else {
|
|
2770
2930
|
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;
|
|
2931
|
+
var tmp$ret$10;
|
|
2932
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
2933
|
+
var tmp$ret$4;
|
|
2934
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
2935
|
+
var tmp0_orEmpty_0 = element_0.y1m_1;
|
|
2936
|
+
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
2937
|
+
tmp$ret$4 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2938
|
+
var tmp2_flatMap_0 = tmp$ret$4;
|
|
2939
|
+
var tmp$ret$9;
|
|
2940
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2941
|
+
var tmp1_flatMapTo_0 = ArrayList_init_$Create$();
|
|
2942
|
+
var tmp$ret$5;
|
|
2801
2943
|
// 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
|
|
2944
|
+
tmp$ret$5 = tmp2_flatMap_0.u().c();
|
|
2945
|
+
var tmp0_iterator_1 = tmp$ret$5;
|
|
2946
|
+
while (tmp0_iterator_1.d()) {
|
|
2947
|
+
var element_1 = tmp0_iterator_1.e();
|
|
2808
2948
|
var tmp$ret$8;
|
|
2949
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>.<anonymous>' call
|
|
2950
|
+
var tmp$ret$6;
|
|
2809
2951
|
// Inline function 'kotlin.collections.component1' call
|
|
2810
|
-
tmp$ret$
|
|
2811
|
-
var
|
|
2812
|
-
var tmp$ret$
|
|
2952
|
+
tmp$ret$6 = element_1.v();
|
|
2953
|
+
var key = tmp$ret$6;
|
|
2954
|
+
var tmp$ret$7;
|
|
2813
2955
|
// Inline function 'kotlin.collections.component2' call
|
|
2814
|
-
tmp$ret$
|
|
2815
|
-
var
|
|
2816
|
-
var tmp0_subject_1 =
|
|
2956
|
+
tmp$ret$7 = element_1.w();
|
|
2957
|
+
var value = tmp$ret$7;
|
|
2958
|
+
var tmp0_subject_1 = value;
|
|
2817
2959
|
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));
|
|
2960
|
+
if (tmp0_subject_1 instanceof ReferenceObject_0) {
|
|
2961
|
+
tmp_3 = emptyList();
|
|
2824
2962
|
} 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));
|
|
2963
|
+
if (tmp0_subject_1 instanceof SchemaObject_0) {
|
|
2964
|
+
tmp_3 = flatten_1(value, $this, Common_getInstance().f1t([name, key]));
|
|
2831
2965
|
} else {
|
|
2832
2966
|
noWhenBranchMatchedException();
|
|
2833
2967
|
}
|
|
2834
2968
|
}
|
|
2835
|
-
tmp$ret$
|
|
2836
|
-
|
|
2969
|
+
tmp$ret$8 = tmp_3;
|
|
2970
|
+
var list_0 = tmp$ret$8;
|
|
2971
|
+
addAll(tmp1_flatMapTo_0, list_0);
|
|
2837
2972
|
}
|
|
2838
|
-
tmp$ret$
|
|
2839
|
-
tmp$ret$
|
|
2840
|
-
tmp_2 = tmp$ret$
|
|
2973
|
+
tmp$ret$9 = tmp1_flatMapTo_0;
|
|
2974
|
+
tmp$ret$10 = tmp$ret$9;
|
|
2975
|
+
tmp_2 = tmp$ret$10;
|
|
2976
|
+
} else {
|
|
2977
|
+
noWhenBranchMatchedException();
|
|
2841
2978
|
}
|
|
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
2979
|
}
|
|
2847
|
-
|
|
2848
|
-
var
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2980
|
+
tmp$ret$11 = tmp_2;
|
|
2981
|
+
var list_1 = tmp$ret$11;
|
|
2982
|
+
addAll(tmp3_flatMapTo, list_1);
|
|
2983
|
+
}
|
|
2984
|
+
tmp$ret$12 = tmp3_flatMapTo;
|
|
2985
|
+
tmp$ret$13 = tmp$ret$12;
|
|
2986
|
+
tmp = plus(tmp_1, tmp$ret$13);
|
|
2987
|
+
} else if (!(_this__u8e3s4.s1n_1 == null)) {
|
|
2988
|
+
var tmp$ret$18;
|
|
2989
|
+
// Inline function 'kotlin.let' call
|
|
2990
|
+
var tmp$ret$16;
|
|
2991
|
+
// Inline function 'kotlin.collections.map' call
|
|
2992
|
+
var tmp6_map = ensureNotNull(_this__u8e3s4.s1n_1);
|
|
2993
|
+
var tmp$ret$15;
|
|
2994
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
2995
|
+
var tmp5_mapTo = ArrayList_init_$Create$_0(tmp6_map.length);
|
|
2996
|
+
var indexedObject = tmp6_map;
|
|
2997
|
+
var inductionVariable = 0;
|
|
2998
|
+
var last = indexedObject.length;
|
|
2999
|
+
while (inductionVariable < last) {
|
|
3000
|
+
var item = indexedObject[inductionVariable];
|
|
3001
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
3002
|
+
var tmp$ret$14;
|
|
3003
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
3004
|
+
var tmp0_subject_2 = item;
|
|
3005
|
+
var tmp_4;
|
|
3006
|
+
if (tmp0_subject_2 instanceof JsonPrimitive) {
|
|
3007
|
+
tmp_4 = item.q13();
|
|
2856
3008
|
} else {
|
|
2857
|
-
|
|
2858
|
-
|
|
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();
|
|
3009
|
+
if (tmp0_subject_2 instanceof JsonArray) {
|
|
3010
|
+
throw new NotImplementedError();
|
|
2866
3011
|
} else {
|
|
2867
|
-
if (tmp0_subject_2 instanceof
|
|
2868
|
-
|
|
3012
|
+
if (tmp0_subject_2 instanceof JsonObject) {
|
|
3013
|
+
throw new NotImplementedError();
|
|
2869
3014
|
} else {
|
|
2870
3015
|
noWhenBranchMatchedException();
|
|
2871
3016
|
}
|
|
2872
3017
|
}
|
|
2873
|
-
tmp$ret$13 = tmp_9;
|
|
2874
|
-
tmp$ret$14 = tmp$ret$13;
|
|
2875
|
-
tmp_8 = tmp$ret$14;
|
|
2876
3018
|
}
|
|
3019
|
+
tmp$ret$14 = tmp_4;
|
|
3020
|
+
tmp5_mapTo.a(tmp$ret$14);
|
|
3021
|
+
}
|
|
3022
|
+
tmp$ret$15 = tmp5_mapTo;
|
|
3023
|
+
tmp$ret$16 = tmp$ret$15;
|
|
3024
|
+
var tmp7_let = toSet(tmp$ret$16);
|
|
3025
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
3026
|
+
var tmp$ret$17;
|
|
3027
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
3028
|
+
tmp$ret$17 = listOf(new Enum(name, tmp7_let));
|
|
3029
|
+
tmp$ret$18 = tmp$ret$17;
|
|
3030
|
+
tmp = tmp$ret$18;
|
|
3031
|
+
} else {
|
|
3032
|
+
var tmp1_subject = _this__u8e3s4.s1m_1;
|
|
3033
|
+
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.q4_1;
|
|
3034
|
+
var tmp_5;
|
|
3035
|
+
switch (tmp0) {
|
|
3036
|
+
case -1:
|
|
3037
|
+
case 5:
|
|
3038
|
+
var tmp$ret$25;
|
|
3039
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
3040
|
+
var tmp$ret$19;
|
|
3041
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
3042
|
+
var tmp8_orEmpty = _this__u8e3s4.y1m_1;
|
|
3043
|
+
var tmp0_elvis_lhs_1 = tmp8_orEmpty;
|
|
3044
|
+
tmp$ret$19 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
3045
|
+
var tmp10_flatMap = tmp$ret$19;
|
|
3046
|
+
var tmp$ret$24;
|
|
3047
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3048
|
+
var tmp9_flatMapTo = ArrayList_init_$Create$();
|
|
3049
|
+
var tmp$ret$20;
|
|
3050
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
3051
|
+
tmp$ret$20 = tmp10_flatMap.u().c();
|
|
3052
|
+
var tmp0_iterator_2 = tmp$ret$20;
|
|
3053
|
+
while (tmp0_iterator_2.d()) {
|
|
3054
|
+
var element_2 = tmp0_iterator_2.e();
|
|
3055
|
+
var tmp$ret$23;
|
|
3056
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
3057
|
+
var tmp$ret$21;
|
|
3058
|
+
// Inline function 'kotlin.collections.component1' call
|
|
3059
|
+
tmp$ret$21 = element_2.v();
|
|
3060
|
+
var key_0 = tmp$ret$21;
|
|
3061
|
+
var tmp$ret$22;
|
|
3062
|
+
// Inline function 'kotlin.collections.component2' call
|
|
3063
|
+
tmp$ret$22 = element_2.w();
|
|
3064
|
+
var value_0 = tmp$ret$22;
|
|
3065
|
+
var tmp0_subject_3 = value_0;
|
|
3066
|
+
var tmp_6;
|
|
3067
|
+
if (tmp0_subject_3 instanceof SchemaObject_0) {
|
|
3068
|
+
tmp_6 = flatten_1(value_0, $this, Common_getInstance().f1t([name, key_0]));
|
|
3069
|
+
} else {
|
|
3070
|
+
if (tmp0_subject_3 instanceof ReferenceObject_0) {
|
|
3071
|
+
tmp_6 = emptyList();
|
|
3072
|
+
} else {
|
|
3073
|
+
noWhenBranchMatchedException();
|
|
3074
|
+
}
|
|
3075
|
+
}
|
|
3076
|
+
tmp$ret$23 = tmp_6;
|
|
3077
|
+
var list_2 = tmp$ret$23;
|
|
3078
|
+
addAll(tmp9_flatMapTo, list_2);
|
|
3079
|
+
}
|
|
3080
|
+
tmp$ret$24 = tmp9_flatMapTo;
|
|
3081
|
+
tmp$ret$25 = tmp$ret$24;
|
|
2877
3082
|
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
3083
|
+
var fields = tmp$ret$25;
|
|
3084
|
+
var schema = listOf(new Type(name, new Shape(toField_1(_this__u8e3s4, $this, name))));
|
|
3085
|
+
tmp_5 = plus(schema, fields);
|
|
3086
|
+
break;
|
|
3087
|
+
case 4:
|
|
3088
|
+
var tmp2_safe_receiver = _this__u8e3s4.x1m_1;
|
|
3089
|
+
var tmp_7;
|
|
3090
|
+
if (tmp2_safe_receiver == null) {
|
|
3091
|
+
tmp_7 = null;
|
|
3092
|
+
} else {
|
|
3093
|
+
var tmp$ret$27;
|
|
3094
|
+
// Inline function 'kotlin.let' call
|
|
3095
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
3096
|
+
var tmp$ret$26;
|
|
3097
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
3098
|
+
var tmp0_subject_4 = tmp2_safe_receiver;
|
|
3099
|
+
var tmp_8;
|
|
3100
|
+
if (tmp0_subject_4 instanceof ReferenceObject_0) {
|
|
3101
|
+
tmp_8 = emptyList();
|
|
3102
|
+
} else {
|
|
3103
|
+
if (tmp0_subject_4 instanceof SchemaObject_0) {
|
|
3104
|
+
tmp_8 = flatten_1(tmp2_safe_receiver, $this, Common_getInstance().f1t([name, 'array']));
|
|
3105
|
+
} else {
|
|
3106
|
+
noWhenBranchMatchedException();
|
|
3107
|
+
}
|
|
3108
|
+
}
|
|
3109
|
+
tmp$ret$26 = tmp_8;
|
|
3110
|
+
tmp$ret$27 = tmp$ret$26;
|
|
3111
|
+
tmp_7 = tmp$ret$27;
|
|
3112
|
+
}
|
|
3113
|
+
|
|
3114
|
+
var tmp3_elvis_lhs = tmp_7;
|
|
3115
|
+
tmp_5 = tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs;
|
|
3116
|
+
break;
|
|
3117
|
+
default:
|
|
3118
|
+
tmp_5 = emptyList();
|
|
3119
|
+
break;
|
|
3120
|
+
}
|
|
3121
|
+
tmp = tmp_5;
|
|
2884
3122
|
}
|
|
2885
3123
|
return tmp;
|
|
2886
3124
|
}
|
|
2887
3125
|
function flatten_2(_this__u8e3s4, $this, name) {
|
|
2888
3126
|
var tmp0_subject = _this__u8e3s4;
|
|
2889
3127
|
var tmp;
|
|
2890
|
-
if (tmp0_subject instanceof
|
|
2891
|
-
tmp =
|
|
3128
|
+
if (tmp0_subject instanceof ReferenceObject_0) {
|
|
3129
|
+
tmp = emptyList();
|
|
2892
3130
|
} else {
|
|
2893
|
-
if (tmp0_subject instanceof
|
|
2894
|
-
tmp = flatten_1(
|
|
3131
|
+
if (tmp0_subject instanceof SchemaObject_0) {
|
|
3132
|
+
tmp = flatten_1(_this__u8e3s4, $this, name);
|
|
2895
3133
|
} else {
|
|
2896
3134
|
noWhenBranchMatchedException();
|
|
2897
3135
|
}
|
|
2898
3136
|
}
|
|
2899
3137
|
return tmp;
|
|
2900
3138
|
}
|
|
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
3139
|
function toReference_1(_this__u8e3s4, $this) {
|
|
2926
3140
|
var tmp$ret$1;
|
|
2927
3141
|
// Inline function 'kotlin.let' call
|
|
@@ -2931,123 +3145,111 @@
|
|
|
2931
3145
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toReference.<anonymous>' call
|
|
2932
3146
|
var referencingObject = tmp0_let.i3();
|
|
2933
3147
|
var schema = tmp0_let.j3();
|
|
2934
|
-
var additionalProperties = schema.t1m_1;
|
|
2935
3148
|
var tmp;
|
|
2936
|
-
if (
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
if (additionalProperties instanceof
|
|
2940
|
-
|
|
3149
|
+
if (!(schema.z1m_1 == null)) {
|
|
3150
|
+
var additionalProperties = ensureNotNull(schema.z1m_1);
|
|
3151
|
+
var tmp_0;
|
|
3152
|
+
if (additionalProperties instanceof BooleanObject_0) {
|
|
3153
|
+
tmp_0 = new Any(false, true);
|
|
2941
3154
|
} else {
|
|
2942
|
-
if (additionalProperties instanceof
|
|
2943
|
-
|
|
3155
|
+
if (additionalProperties instanceof ReferenceObject_0) {
|
|
3156
|
+
tmp_0 = toMap_1(toReference_1(additionalProperties, $this));
|
|
2944
3157
|
} 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;
|
|
3158
|
+
if (additionalProperties instanceof SchemaObject_0) {
|
|
3159
|
+
tmp_0 = new Custom(Common_getInstance().f1t([getReference_0(referencingObject, $this)]), false, true);
|
|
2971
3160
|
} else {
|
|
2972
3161
|
noWhenBranchMatchedException();
|
|
2973
3162
|
}
|
|
2974
3163
|
}
|
|
2975
3164
|
}
|
|
3165
|
+
tmp = tmp_0;
|
|
3166
|
+
} else if (!(schema.s1n_1 == null)) {
|
|
3167
|
+
tmp = new Custom(Common_getInstance().f1t([getReference_0(referencingObject, $this)]), false, false);
|
|
3168
|
+
} else if (isPrimitive_0(schema.s1m_1)) {
|
|
3169
|
+
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.s1m_1), $this), false, false);
|
|
3170
|
+
} else {
|
|
3171
|
+
var tmp0_subject = schema.s1m_1;
|
|
3172
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
3173
|
+
var tmp_1;
|
|
3174
|
+
if (tmp0 === 4) {
|
|
3175
|
+
var items = schema.x1m_1;
|
|
3176
|
+
var tmp_2;
|
|
3177
|
+
if (items instanceof ReferenceObject_0) {
|
|
3178
|
+
tmp_2 = new Custom(Common_getInstance().f1t([getReference_0(items, $this)]), true);
|
|
3179
|
+
} else {
|
|
3180
|
+
if (items instanceof SchemaObject_0) {
|
|
3181
|
+
tmp_2 = new Custom(Common_getInstance().f1t([getReference_0(referencingObject, $this), 'Array']), true);
|
|
3182
|
+
} else {
|
|
3183
|
+
if (items == null) {
|
|
3184
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.g1m_1);
|
|
3185
|
+
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
3186
|
+
} else {
|
|
3187
|
+
noWhenBranchMatchedException();
|
|
3188
|
+
}
|
|
3189
|
+
}
|
|
3190
|
+
}
|
|
3191
|
+
tmp_1 = tmp_2;
|
|
3192
|
+
} else {
|
|
3193
|
+
tmp_1 = new Custom(Common_getInstance().f1t([getReference_0(referencingObject, $this)]), false);
|
|
3194
|
+
}
|
|
3195
|
+
tmp = tmp_1;
|
|
2976
3196
|
}
|
|
2977
3197
|
tmp$ret$0 = tmp;
|
|
2978
3198
|
tmp$ret$1 = tmp$ret$0;
|
|
2979
3199
|
return tmp$ret$1;
|
|
2980
3200
|
}
|
|
2981
3201
|
function toReference_2(_this__u8e3s4, $this, name) {
|
|
2982
|
-
var type = _this__u8e3s4.m1m_1;
|
|
2983
|
-
var tmp0 = type == null ? -1 : type.q4_1;
|
|
2984
3202
|
var tmp;
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
break;
|
|
3008
|
-
}
|
|
3203
|
+
if (!(_this__u8e3s4.s1n_1 == null)) {
|
|
3204
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.z1m_1 == null));
|
|
3205
|
+
} else {
|
|
3206
|
+
var type = _this__u8e3s4.s1m_1;
|
|
3207
|
+
var tmp0 = type == null ? -1 : type.q4_1;
|
|
3208
|
+
var tmp_0;
|
|
3209
|
+
switch (tmp0) {
|
|
3210
|
+
case 0:
|
|
3211
|
+
case 1:
|
|
3212
|
+
case 2:
|
|
3213
|
+
case 3:
|
|
3214
|
+
tmp_0 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.z1m_1 == null));
|
|
3215
|
+
break;
|
|
3216
|
+
case -1:
|
|
3217
|
+
case 5:
|
|
3218
|
+
var tmp_1;
|
|
3219
|
+
var tmp_2 = _this__u8e3s4.z1m_1;
|
|
3220
|
+
if (tmp_2 instanceof BooleanObject_0) {
|
|
3221
|
+
tmp_1 = new Any(false, !(_this__u8e3s4.z1m_1 == null));
|
|
3222
|
+
} else {
|
|
3223
|
+
tmp_1 = new Custom(name, false, !(_this__u8e3s4.z1m_1 == null));
|
|
3224
|
+
}
|
|
3009
3225
|
|
|
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);
|
|
3226
|
+
tmp_0 = tmp_1;
|
|
3227
|
+
break;
|
|
3228
|
+
case 4:
|
|
3229
|
+
var it = _this__u8e3s4.x1m_1;
|
|
3230
|
+
var tmp_3;
|
|
3231
|
+
if (it instanceof ReferenceObject_0) {
|
|
3232
|
+
tmp_3 = toIterable_0(toReference_1(it, $this));
|
|
3233
|
+
} else {
|
|
3234
|
+
if (it instanceof SchemaObject_0) {
|
|
3235
|
+
tmp_3 = toIterable_0(toReference_2(it, $this, name));
|
|
3029
3236
|
} else {
|
|
3030
|
-
if (it
|
|
3031
|
-
|
|
3237
|
+
if (it == null) {
|
|
3238
|
+
var tmp0_error = 'When schema is of type array items cannot be null for name: ' + name;
|
|
3239
|
+
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
3032
3240
|
} 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
|
-
}
|
|
3241
|
+
noWhenBranchMatchedException();
|
|
3039
3242
|
}
|
|
3040
3243
|
}
|
|
3244
|
+
}
|
|
3041
3245
|
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
noWhenBranchMatchedException();
|
|
3050
|
-
break;
|
|
3246
|
+
tmp_0 = tmp_3;
|
|
3247
|
+
break;
|
|
3248
|
+
default:
|
|
3249
|
+
noWhenBranchMatchedException();
|
|
3250
|
+
break;
|
|
3251
|
+
}
|
|
3252
|
+
tmp = tmp_0;
|
|
3051
3253
|
}
|
|
3052
3254
|
return tmp;
|
|
3053
3255
|
}
|
|
@@ -3055,7 +3257,7 @@
|
|
|
3055
3257
|
var tmp$ret$2;
|
|
3056
3258
|
// Inline function 'kotlin.collections.associateWith' call
|
|
3057
3259
|
var tmp0_associateWith = values();
|
|
3058
|
-
var result = LinkedHashMap_init_$Create$(coerceAtLeast(mapCapacity(tmp0_associateWith.length), 16));
|
|
3260
|
+
var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(tmp0_associateWith.length), 16));
|
|
3059
3261
|
var tmp$ret$1;
|
|
3060
3262
|
// Inline function 'kotlin.collections.associateWithTo' call
|
|
3061
3263
|
var indexedObject = tmp0_associateWith;
|
|
@@ -3071,28 +3273,28 @@
|
|
|
3071
3273
|
var tmp;
|
|
3072
3274
|
switch (tmp0) {
|
|
3073
3275
|
case 0:
|
|
3074
|
-
tmp = _this__u8e3s4.
|
|
3276
|
+
tmp = _this__u8e3s4.a1k_1;
|
|
3075
3277
|
break;
|
|
3076
3278
|
case 1:
|
|
3077
|
-
tmp = _this__u8e3s4.
|
|
3279
|
+
tmp = _this__u8e3s4.c1k_1;
|
|
3078
3280
|
break;
|
|
3079
3281
|
case 2:
|
|
3080
|
-
tmp = _this__u8e3s4.
|
|
3282
|
+
tmp = _this__u8e3s4.b1k_1;
|
|
3081
3283
|
break;
|
|
3082
3284
|
case 3:
|
|
3083
|
-
tmp = _this__u8e3s4.
|
|
3285
|
+
tmp = _this__u8e3s4.d1k_1;
|
|
3084
3286
|
break;
|
|
3085
3287
|
case 4:
|
|
3086
|
-
tmp = _this__u8e3s4.
|
|
3288
|
+
tmp = _this__u8e3s4.e1k_1;
|
|
3087
3289
|
break;
|
|
3088
3290
|
case 5:
|
|
3089
|
-
tmp = _this__u8e3s4.
|
|
3291
|
+
tmp = _this__u8e3s4.f1k_1;
|
|
3090
3292
|
break;
|
|
3091
3293
|
case 6:
|
|
3092
|
-
tmp = _this__u8e3s4.
|
|
3294
|
+
tmp = _this__u8e3s4.g1k_1;
|
|
3093
3295
|
break;
|
|
3094
3296
|
case 7:
|
|
3095
|
-
tmp = _this__u8e3s4.
|
|
3297
|
+
tmp = _this__u8e3s4.h1k_1;
|
|
3096
3298
|
break;
|
|
3097
3299
|
default:
|
|
3098
3300
|
noWhenBranchMatchedException();
|
|
@@ -3106,7 +3308,15 @@
|
|
|
3106
3308
|
return filterNotNullValues_0(tmp$ret$2);
|
|
3107
3309
|
}
|
|
3108
3310
|
function getReference_0(_this__u8e3s4, $this) {
|
|
3109
|
-
|
|
3311
|
+
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.g1m_1), ['/']), 3);
|
|
3312
|
+
var tmp;
|
|
3313
|
+
if (tmp0_elvis_lhs == null) {
|
|
3314
|
+
var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.g1m_1);
|
|
3315
|
+
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
3316
|
+
} else {
|
|
3317
|
+
tmp = tmp0_elvis_lhs;
|
|
3318
|
+
}
|
|
3319
|
+
return tmp;
|
|
3110
3320
|
}
|
|
3111
3321
|
function toPrimitive_0(_this__u8e3s4, $this) {
|
|
3112
3322
|
var tmp0_subject = _this__u8e3s4;
|
|
@@ -3130,18 +3340,72 @@
|
|
|
3130
3340
|
}
|
|
3131
3341
|
return tmp;
|
|
3132
3342
|
}
|
|
3133
|
-
function
|
|
3343
|
+
function toField_1(_this__u8e3s4, $this, name) {
|
|
3344
|
+
var tmp$ret$6;
|
|
3345
|
+
// Inline function 'kotlin.collections.map' call
|
|
3346
|
+
var tmp$ret$0;
|
|
3347
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
3348
|
+
var tmp0_orEmpty = _this__u8e3s4.y1m_1;
|
|
3349
|
+
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3350
|
+
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3351
|
+
var tmp2_map = tmp$ret$0;
|
|
3352
|
+
var tmp$ret$5;
|
|
3353
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
3354
|
+
var tmp1_mapTo = ArrayList_init_$Create$_0(tmp2_map.f());
|
|
3355
|
+
var tmp$ret$1;
|
|
3356
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
3357
|
+
tmp$ret$1 = tmp2_map.u().c();
|
|
3358
|
+
var tmp0_iterator = tmp$ret$1;
|
|
3359
|
+
while (tmp0_iterator.d()) {
|
|
3360
|
+
var item = tmp0_iterator.e();
|
|
3361
|
+
var tmp$ret$4;
|
|
3362
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3363
|
+
var tmp$ret$2;
|
|
3364
|
+
// Inline function 'kotlin.collections.component1' call
|
|
3365
|
+
tmp$ret$2 = item.v();
|
|
3366
|
+
var key = tmp$ret$2;
|
|
3367
|
+
var tmp$ret$3;
|
|
3368
|
+
// Inline function 'kotlin.collections.component2' call
|
|
3369
|
+
tmp$ret$3 = item.w();
|
|
3370
|
+
var value = tmp$ret$3;
|
|
3371
|
+
var tmp0_subject = value;
|
|
3372
|
+
var tmp;
|
|
3373
|
+
if (tmp0_subject instanceof SchemaObject_0) {
|
|
3374
|
+
var tmp_0 = new Identifier(key);
|
|
3375
|
+
var tmp_1 = toReference_2(value, $this, Common_getInstance().f1t([name, key]));
|
|
3376
|
+
var tmp1_safe_receiver = _this__u8e3s4.r1n_1;
|
|
3377
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : contains(tmp1_safe_receiver, key);
|
|
3378
|
+
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
3379
|
+
} else {
|
|
3380
|
+
if (tmp0_subject instanceof ReferenceObject_0) {
|
|
3381
|
+
var tmp_2 = new Identifier(key);
|
|
3382
|
+
var tmp_3 = new Custom(getReference_0(value, $this), false);
|
|
3383
|
+
var tmp3_safe_receiver = _this__u8e3s4.r1n_1;
|
|
3384
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : contains(tmp3_safe_receiver, key);
|
|
3385
|
+
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
3386
|
+
} else {
|
|
3387
|
+
noWhenBranchMatchedException();
|
|
3388
|
+
}
|
|
3389
|
+
}
|
|
3390
|
+
tmp$ret$4 = tmp;
|
|
3391
|
+
tmp1_mapTo.a(tmp$ret$4);
|
|
3392
|
+
}
|
|
3393
|
+
tmp$ret$5 = tmp1_mapTo;
|
|
3394
|
+
tmp$ret$6 = tmp$ret$5;
|
|
3395
|
+
return tmp$ret$6;
|
|
3396
|
+
}
|
|
3397
|
+
function toField_2(_this__u8e3s4, $this) {
|
|
3134
3398
|
var tmp$ret$1;
|
|
3135
3399
|
// Inline function 'kotlin.let' call
|
|
3136
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3400
|
+
var tmp0_subject = _this__u8e3s4.j1l_1;
|
|
3137
3401
|
var tmp;
|
|
3138
3402
|
if (tmp0_subject instanceof ReferenceObject_0) {
|
|
3139
|
-
var tmp_0 = _this__u8e3s4.
|
|
3403
|
+
var tmp_0 = _this__u8e3s4.j1l_1;
|
|
3140
3404
|
tmp = new Custom(getReference_0(tmp_0 instanceof ReferenceObject_0 ? tmp_0 : THROW_CCE(), $this), false);
|
|
3141
3405
|
} else {
|
|
3142
3406
|
if (tmp0_subject instanceof SchemaObject_0) {
|
|
3143
|
-
var tmp_1 = _this__u8e3s4.
|
|
3144
|
-
var type = (tmp_1 instanceof SchemaObject_0 ? tmp_1 : THROW_CCE()).
|
|
3407
|
+
var tmp_1 = _this__u8e3s4.j1l_1;
|
|
3408
|
+
var type = (tmp_1 instanceof SchemaObject_0 ? tmp_1 : THROW_CCE()).s1m_1;
|
|
3145
3409
|
var tmp0 = type == null ? -1 : type.q4_1;
|
|
3146
3410
|
var tmp_2;
|
|
3147
3411
|
switch (tmp0) {
|
|
@@ -3174,26 +3438,26 @@
|
|
|
3174
3438
|
// Inline function 'kotlin.contracts.contract' call
|
|
3175
3439
|
var tmp$ret$0;
|
|
3176
3440
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3177
|
-
var tmp_3 = new Identifier(_this__u8e3s4.
|
|
3178
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
3441
|
+
var tmp_3 = new Identifier(_this__u8e3s4.n1l_1);
|
|
3442
|
+
var tmp0_elvis_lhs = _this__u8e3s4.d1l_1;
|
|
3179
3443
|
tmp$ret$0 = new Field(tmp_3, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
3180
3444
|
tmp$ret$1 = tmp$ret$0;
|
|
3181
3445
|
return tmp$ret$1;
|
|
3182
3446
|
}
|
|
3183
3447
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
3184
|
-
this.
|
|
3185
|
-
this.
|
|
3186
|
-
this.
|
|
3187
|
-
this.
|
|
3448
|
+
this.w1t_1 = path;
|
|
3449
|
+
this.x1t_1 = pathItem;
|
|
3450
|
+
this.y1t_1 = method;
|
|
3451
|
+
this.z1t_1 = operation;
|
|
3188
3452
|
}
|
|
3189
3453
|
protoOf(FlattenRequest_0).toString = function () {
|
|
3190
|
-
return 'FlattenRequest(path=' + new Path_0(this.
|
|
3454
|
+
return 'FlattenRequest(path=' + new Path_0(this.w1t_1) + ', pathItem=' + this.x1t_1 + ', method=' + this.y1t_1 + ', operation=' + this.z1t_1 + ')';
|
|
3191
3455
|
};
|
|
3192
3456
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
3193
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3194
|
-
result = imul(result, 31) + this.v1t_1.hashCode() | 0;
|
|
3195
|
-
result = imul(result, 31) + this.w1t_1.hashCode() | 0;
|
|
3457
|
+
var result = Path__hashCode_impl_go73kd_0(this.w1t_1);
|
|
3196
3458
|
result = imul(result, 31) + this.x1t_1.hashCode() | 0;
|
|
3459
|
+
result = imul(result, 31) + this.y1t_1.hashCode() | 0;
|
|
3460
|
+
result = imul(result, 31) + this.z1t_1.hashCode() | 0;
|
|
3197
3461
|
return result;
|
|
3198
3462
|
};
|
|
3199
3463
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -3202,13 +3466,13 @@
|
|
|
3202
3466
|
if (!(other instanceof FlattenRequest_0))
|
|
3203
3467
|
return false;
|
|
3204
3468
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
3205
|
-
if (!(this.
|
|
3469
|
+
if (!(this.w1t_1 === tmp0_other_with_cast.w1t_1))
|
|
3206
3470
|
return false;
|
|
3207
|
-
if (!this.
|
|
3471
|
+
if (!this.x1t_1.equals(tmp0_other_with_cast.x1t_1))
|
|
3208
3472
|
return false;
|
|
3209
|
-
if (!this.
|
|
3473
|
+
if (!this.y1t_1.equals(tmp0_other_with_cast.y1t_1))
|
|
3210
3474
|
return false;
|
|
3211
|
-
if (!this.
|
|
3475
|
+
if (!this.z1t_1.equals(tmp0_other_with_cast.z1t_1))
|
|
3212
3476
|
return false;
|
|
3213
3477
|
return true;
|
|
3214
3478
|
};
|
|
@@ -3217,7 +3481,7 @@
|
|
|
3217
3481
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3218
3482
|
var tmp$ret$11;
|
|
3219
3483
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3220
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
3484
|
+
var tmp1_flatMap = _this__u8e3s4.m1j_1;
|
|
3221
3485
|
var tmp$ret$10;
|
|
3222
3486
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3223
3487
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -3231,7 +3495,7 @@
|
|
|
3231
3495
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
3232
3496
|
var tmp$ret$1;
|
|
3233
3497
|
// Inline function 'kotlin.collections.component1' call
|
|
3234
|
-
tmp$ret$1 = element.v().
|
|
3498
|
+
tmp$ret$1 = element.v().u1j_1;
|
|
3235
3499
|
var path = tmp$ret$1;
|
|
3236
3500
|
var tmp$ret$2;
|
|
3237
3501
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3288,23 +3552,23 @@
|
|
|
3288
3552
|
return tmp$ret$14;
|
|
3289
3553
|
}
|
|
3290
3554
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
3291
|
-
this.
|
|
3292
|
-
this.
|
|
3293
|
-
this.
|
|
3294
|
-
this.
|
|
3295
|
-
this.
|
|
3296
|
-
this.
|
|
3555
|
+
this.a1u_1 = path;
|
|
3556
|
+
this.b1u_1 = pathItem;
|
|
3557
|
+
this.c1u_1 = method;
|
|
3558
|
+
this.d1u_1 = operation;
|
|
3559
|
+
this.e1u_1 = statusCode;
|
|
3560
|
+
this.f1u_1 = response;
|
|
3297
3561
|
}
|
|
3298
3562
|
protoOf(FlattenResponse_0).toString = function () {
|
|
3299
|
-
return 'FlattenResponse(path=' + new Path_0(this.
|
|
3563
|
+
return 'FlattenResponse(path=' + new Path_0(this.a1u_1) + ', pathItem=' + this.b1u_1 + ', method=' + this.c1u_1 + ', operation=' + this.d1u_1 + ', statusCode=' + new StatusCode_0(this.e1u_1) + ', response=' + this.f1u_1 + ')';
|
|
3300
3564
|
};
|
|
3301
3565
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
3302
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3303
|
-
result = imul(result, 31) + this.z1t_1.hashCode() | 0;
|
|
3304
|
-
result = imul(result, 31) + this.a1u_1.hashCode() | 0;
|
|
3566
|
+
var result = Path__hashCode_impl_go73kd_0(this.a1u_1);
|
|
3305
3567
|
result = imul(result, 31) + this.b1u_1.hashCode() | 0;
|
|
3306
|
-
result = imul(result, 31) +
|
|
3307
|
-
result = imul(result, 31) +
|
|
3568
|
+
result = imul(result, 31) + this.c1u_1.hashCode() | 0;
|
|
3569
|
+
result = imul(result, 31) + this.d1u_1.hashCode() | 0;
|
|
3570
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.e1u_1) | 0;
|
|
3571
|
+
result = imul(result, 31) + hashCode(this.f1u_1) | 0;
|
|
3308
3572
|
return result;
|
|
3309
3573
|
};
|
|
3310
3574
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -3313,17 +3577,17 @@
|
|
|
3313
3577
|
if (!(other instanceof FlattenResponse_0))
|
|
3314
3578
|
return false;
|
|
3315
3579
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
3316
|
-
if (!(this.
|
|
3580
|
+
if (!(this.a1u_1 === tmp0_other_with_cast.a1u_1))
|
|
3317
3581
|
return false;
|
|
3318
|
-
if (!this.
|
|
3582
|
+
if (!this.b1u_1.equals(tmp0_other_with_cast.b1u_1))
|
|
3319
3583
|
return false;
|
|
3320
|
-
if (!this.
|
|
3584
|
+
if (!this.c1u_1.equals(tmp0_other_with_cast.c1u_1))
|
|
3321
3585
|
return false;
|
|
3322
|
-
if (!this.
|
|
3586
|
+
if (!this.d1u_1.equals(tmp0_other_with_cast.d1u_1))
|
|
3323
3587
|
return false;
|
|
3324
|
-
if (!(this.
|
|
3588
|
+
if (!(this.e1u_1 === tmp0_other_with_cast.e1u_1))
|
|
3325
3589
|
return false;
|
|
3326
|
-
if (!equals(this.
|
|
3590
|
+
if (!equals(this.f1u_1, tmp0_other_with_cast.f1u_1))
|
|
3327
3591
|
return false;
|
|
3328
3592
|
return true;
|
|
3329
3593
|
};
|
|
@@ -3332,7 +3596,7 @@
|
|
|
3332
3596
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3333
3597
|
var tmp$ret$18;
|
|
3334
3598
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3335
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
3599
|
+
var tmp1_flatMap = _this__u8e3s4.m1j_1;
|
|
3336
3600
|
var tmp$ret$17;
|
|
3337
3601
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3338
3602
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -3346,7 +3610,7 @@
|
|
|
3346
3610
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
3347
3611
|
var tmp$ret$1;
|
|
3348
3612
|
// Inline function 'kotlin.collections.component1' call
|
|
3349
|
-
tmp$ret$1 = element.v().
|
|
3613
|
+
tmp$ret$1 = element.v().u1j_1;
|
|
3350
3614
|
var path = tmp$ret$1;
|
|
3351
3615
|
var tmp$ret$2;
|
|
3352
3616
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3376,7 +3640,7 @@
|
|
|
3376
3640
|
var operation = tmp$ret$5;
|
|
3377
3641
|
var tmp$ret$12;
|
|
3378
3642
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3379
|
-
var tmp0_safe_receiver = operation.
|
|
3643
|
+
var tmp0_safe_receiver = operation.u1k_1;
|
|
3380
3644
|
var tmp;
|
|
3381
3645
|
if (tmp0_safe_receiver == null) {
|
|
3382
3646
|
tmp = null;
|
|
@@ -3396,7 +3660,7 @@
|
|
|
3396
3660
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
3397
3661
|
var tmp$ret$7;
|
|
3398
3662
|
// Inline function 'kotlin.collections.component1' call
|
|
3399
|
-
tmp$ret$7 = item.v().
|
|
3663
|
+
tmp$ret$7 = item.v().w1n_1;
|
|
3400
3664
|
var statusCode = tmp$ret$7;
|
|
3401
3665
|
var tmp$ret$8;
|
|
3402
3666
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3443,20 +3707,20 @@
|
|
|
3443
3707
|
}
|
|
3444
3708
|
function OpenApiParser$parseRequestBody$lambda_0(this$0) {
|
|
3445
3709
|
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$
|
|
3710
|
+
var parameters = plus(resolveParameters_2(req.x1t_1, this$0), resolveParameters_1(req.z1t_1, this$0));
|
|
3711
|
+
var segments = toSegments_0(req.w1t_1, this$0, parameters);
|
|
3712
|
+
var name = toName_0(req.z1t_1, this$0, segments, req.y1t_1);
|
|
3713
|
+
var tmp$ret$6;
|
|
3450
3714
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3451
3715
|
var tmp$ret$0;
|
|
3452
3716
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3453
|
-
var tmp0_safe_receiver = req.
|
|
3717
|
+
var tmp0_safe_receiver = req.z1t_1.t1k_1;
|
|
3454
3718
|
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.
|
|
3719
|
+
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t1l_1;
|
|
3456
3720
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3457
3721
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3458
3722
|
var tmp2_flatMap = tmp$ret$0;
|
|
3459
|
-
var tmp$ret$
|
|
3723
|
+
var tmp$ret$5;
|
|
3460
3724
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3461
3725
|
var tmp1_flatMapTo = ArrayList_init_$Create$();
|
|
3462
3726
|
var tmp$ret$1;
|
|
@@ -3465,39 +3729,32 @@
|
|
|
3465
3729
|
var tmp0_iterator = tmp$ret$1;
|
|
3466
3730
|
while (tmp0_iterator.d()) {
|
|
3467
3731
|
var element = tmp0_iterator.e();
|
|
3468
|
-
var tmp$ret$
|
|
3732
|
+
var tmp$ret$4;
|
|
3469
3733
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
3470
3734
|
var tmp$ret$2;
|
|
3471
3735
|
// Inline function 'kotlin.collections.component2' call
|
|
3472
3736
|
tmp$ret$2 = element.w();
|
|
3473
3737
|
var mediaObject = tmp$ret$2;
|
|
3474
|
-
var schema = mediaObject.
|
|
3738
|
+
var schema = mediaObject.a1m_1;
|
|
3475
3739
|
var tmp;
|
|
3476
3740
|
if (schema instanceof SchemaObject_0) {
|
|
3477
|
-
var tmp0_subject = schema.
|
|
3741
|
+
var tmp0_subject = schema.s1m_1;
|
|
3478
3742
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
3479
3743
|
var tmp_0;
|
|
3480
3744
|
switch (tmp0) {
|
|
3481
3745
|
case -1:
|
|
3482
3746
|
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;
|
|
3747
|
+
tmp_0 = flatten_1(schema, this$0, Common_getInstance().f1t([name, 'RequestBody']));
|
|
3748
|
+
break;
|
|
3749
|
+
case 4:
|
|
3750
|
+
var tmp$ret$3;
|
|
3751
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
3752
|
+
var tmp1_safe_receiver_0 = schema.x1m_1;
|
|
3753
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().f1t([name, 'RequestBody']));
|
|
3754
|
+
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
3755
|
+
tmp$ret$3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
3499
3756
|
|
|
3500
|
-
tmp_0 = tmp$ret$
|
|
3757
|
+
tmp_0 = tmp$ret$3;
|
|
3501
3758
|
break;
|
|
3502
3759
|
default:
|
|
3503
3760
|
tmp_0 = emptyList();
|
|
@@ -3515,103 +3772,85 @@
|
|
|
3515
3772
|
}
|
|
3516
3773
|
}
|
|
3517
3774
|
}
|
|
3518
|
-
tmp$ret$
|
|
3519
|
-
var list = tmp$ret$
|
|
3775
|
+
tmp$ret$4 = tmp;
|
|
3776
|
+
var list = tmp$ret$4;
|
|
3520
3777
|
addAll(tmp1_flatMapTo, list);
|
|
3521
3778
|
}
|
|
3522
|
-
tmp$ret$
|
|
3523
|
-
tmp$ret$
|
|
3524
|
-
return tmp$ret$
|
|
3779
|
+
tmp$ret$5 = tmp1_flatMapTo;
|
|
3780
|
+
tmp$ret$6 = tmp$ret$5;
|
|
3781
|
+
return tmp$ret$6;
|
|
3525
3782
|
};
|
|
3526
3783
|
}
|
|
3527
3784
|
function OpenApiParser$parseResponseBody$lambda_0(this$0) {
|
|
3528
3785
|
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.
|
|
3786
|
+
var parameters = plus(resolveParameters_2(res.b1u_1, this$0), resolveParameters_1(res.d1u_1, this$0));
|
|
3787
|
+
var segments = toSegments_0(res.a1u_1, this$0, parameters);
|
|
3788
|
+
var name = toName_0(res.d1u_1, this$0, segments, res.c1u_1);
|
|
3789
|
+
var response = res.f1u_1;
|
|
3533
3790
|
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;
|
|
3791
|
+
if (response instanceof ResponseObject_0) {
|
|
3792
|
+
var tmp$ret$6;
|
|
3793
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
3794
|
+
var tmp$ret$0;
|
|
3795
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
3796
|
+
var tmp0_orEmpty = response.b1o_1;
|
|
3797
|
+
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3798
|
+
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3799
|
+
var tmp2_flatMap = tmp$ret$0;
|
|
3800
|
+
var tmp$ret$5;
|
|
3801
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3802
|
+
var tmp1_flatMapTo = ArrayList_init_$Create$();
|
|
3803
|
+
var tmp$ret$1;
|
|
3804
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
3805
|
+
tmp$ret$1 = tmp2_flatMap.u().c();
|
|
3806
|
+
var tmp0_iterator = tmp$ret$1;
|
|
3807
|
+
while (tmp0_iterator.d()) {
|
|
3808
|
+
var element = tmp0_iterator.e();
|
|
3809
|
+
var tmp$ret$4;
|
|
3810
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
3811
|
+
var tmp$ret$2;
|
|
3812
|
+
// Inline function 'kotlin.collections.component2' call
|
|
3813
|
+
tmp$ret$2 = element.w();
|
|
3814
|
+
var mediaObject = tmp$ret$2;
|
|
3815
|
+
var schema = mediaObject.a1m_1;
|
|
3816
|
+
var tmp_0;
|
|
3817
|
+
if (schema instanceof SchemaObject_0) {
|
|
3818
|
+
var tmp0_subject = schema.s1m_1;
|
|
3819
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
3820
|
+
var tmp_1;
|
|
3821
|
+
switch (tmp0) {
|
|
3822
|
+
case -1:
|
|
3823
|
+
case 5:
|
|
3824
|
+
tmp_1 = flatten_1(schema, this$0, Common_getInstance().f1t([name, _StatusCode___get_value__impl__we50mu_0(res.e1u_1), 'ResponseBody']));
|
|
3825
|
+
break;
|
|
3826
|
+
case 4:
|
|
3827
|
+
var tmp$ret$3;
|
|
3828
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
3829
|
+
var tmp1_safe_receiver = schema.x1m_1;
|
|
3830
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().f1t([name, _StatusCode___get_value__impl__we50mu_0(res.e1u_1), 'ResponseBody']));
|
|
3831
|
+
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
3832
|
+
tmp$ret$3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
3589
3833
|
|
|
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
|
-
}
|
|
3834
|
+
tmp_1 = tmp$ret$3;
|
|
3835
|
+
break;
|
|
3836
|
+
default:
|
|
3837
|
+
tmp_1 = emptyList();
|
|
3838
|
+
break;
|
|
3607
3839
|
}
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3840
|
+
tmp_0 = tmp_1;
|
|
3841
|
+
} else {
|
|
3842
|
+
tmp_0 = emptyList();
|
|
3611
3843
|
}
|
|
3612
|
-
tmp$ret$
|
|
3613
|
-
|
|
3614
|
-
|
|
3844
|
+
tmp$ret$4 = tmp_0;
|
|
3845
|
+
var list = tmp$ret$4;
|
|
3846
|
+
addAll(tmp1_flatMapTo, list);
|
|
3847
|
+
}
|
|
3848
|
+
tmp$ret$5 = tmp1_flatMapTo;
|
|
3849
|
+
tmp$ret$6 = tmp$ret$5;
|
|
3850
|
+
tmp = tmp$ret$6;
|
|
3851
|
+
} else {
|
|
3852
|
+
if (response instanceof ReferenceObject_0) {
|
|
3853
|
+
tmp = emptyList();
|
|
3615
3854
|
} else {
|
|
3616
3855
|
noWhenBranchMatchedException();
|
|
3617
3856
|
}
|
|
@@ -3623,10 +3862,10 @@
|
|
|
3623
3862
|
var tmp0_subject = it;
|
|
3624
3863
|
var tmp;
|
|
3625
3864
|
if (tmp0_subject instanceof Literal) {
|
|
3626
|
-
tmp = Common_getInstance().
|
|
3865
|
+
tmp = Common_getInstance().f1t([it.rj_1]);
|
|
3627
3866
|
} else {
|
|
3628
3867
|
if (tmp0_subject instanceof Param) {
|
|
3629
|
-
tmp = Common_getInstance().
|
|
3868
|
+
tmp = Common_getInstance().f1t([it.si_1.dj_1]);
|
|
3630
3869
|
} else {
|
|
3631
3870
|
noWhenBranchMatchedException();
|
|
3632
3871
|
}
|
|
@@ -3635,7 +3874,75 @@
|
|
|
3635
3874
|
}
|
|
3636
3875
|
function OpenApiParser_0(openApi) {
|
|
3637
3876
|
Companion_getInstance_1();
|
|
3638
|
-
this.
|
|
3877
|
+
this.v1t_1 = openApi;
|
|
3878
|
+
}
|
|
3879
|
+
function toMap_1(_this__u8e3s4) {
|
|
3880
|
+
var tmp0_subject = _this__u8e3s4;
|
|
3881
|
+
var tmp;
|
|
3882
|
+
if (tmp0_subject instanceof Custom) {
|
|
3883
|
+
tmp = _this__u8e3s4.jl(VOID, VOID, true);
|
|
3884
|
+
} else {
|
|
3885
|
+
if (tmp0_subject instanceof Any) {
|
|
3886
|
+
tmp = _this__u8e3s4.hl(VOID, true);
|
|
3887
|
+
} else {
|
|
3888
|
+
if (tmp0_subject instanceof Primitive) {
|
|
3889
|
+
tmp = _this__u8e3s4.ll(VOID, VOID, true);
|
|
3890
|
+
} else {
|
|
3891
|
+
noWhenBranchMatchedException();
|
|
3892
|
+
}
|
|
3893
|
+
}
|
|
3894
|
+
}
|
|
3895
|
+
return tmp;
|
|
3896
|
+
}
|
|
3897
|
+
function isPrimitive_0(_this__u8e3s4) {
|
|
3898
|
+
var tmp0_subject = _this__u8e3s4;
|
|
3899
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
3900
|
+
var tmp;
|
|
3901
|
+
switch (tmp0) {
|
|
3902
|
+
case 0:
|
|
3903
|
+
tmp = true;
|
|
3904
|
+
break;
|
|
3905
|
+
case 1:
|
|
3906
|
+
tmp = true;
|
|
3907
|
+
break;
|
|
3908
|
+
case 2:
|
|
3909
|
+
tmp = true;
|
|
3910
|
+
break;
|
|
3911
|
+
case 3:
|
|
3912
|
+
tmp = true;
|
|
3913
|
+
break;
|
|
3914
|
+
case 4:
|
|
3915
|
+
tmp = false;
|
|
3916
|
+
break;
|
|
3917
|
+
case 5:
|
|
3918
|
+
tmp = false;
|
|
3919
|
+
break;
|
|
3920
|
+
case -1:
|
|
3921
|
+
tmp = false;
|
|
3922
|
+
break;
|
|
3923
|
+
default:
|
|
3924
|
+
noWhenBranchMatchedException();
|
|
3925
|
+
break;
|
|
3926
|
+
}
|
|
3927
|
+
return tmp;
|
|
3928
|
+
}
|
|
3929
|
+
function toIterable_0(_this__u8e3s4) {
|
|
3930
|
+
var tmp0_subject = _this__u8e3s4;
|
|
3931
|
+
var tmp;
|
|
3932
|
+
if (tmp0_subject instanceof Custom) {
|
|
3933
|
+
tmp = _this__u8e3s4.jl(VOID, true);
|
|
3934
|
+
} else {
|
|
3935
|
+
if (tmp0_subject instanceof Any) {
|
|
3936
|
+
tmp = _this__u8e3s4.hl(true);
|
|
3937
|
+
} else {
|
|
3938
|
+
if (tmp0_subject instanceof Primitive) {
|
|
3939
|
+
tmp = _this__u8e3s4.ll(VOID, true);
|
|
3940
|
+
} else {
|
|
3941
|
+
noWhenBranchMatchedException();
|
|
3942
|
+
}
|
|
3943
|
+
}
|
|
3944
|
+
}
|
|
3945
|
+
return tmp;
|
|
3639
3946
|
}
|
|
3640
3947
|
function filterNotNullValues_0(_this__u8e3s4) {
|
|
3641
3948
|
var tmp$ret$8;
|