@flock/wirespec 0.8.13 → 0.8.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js +292 -292
- package/kotlin-openapi-bindings.js +3235 -3234
- package/kotlin-openapi-bindings.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1217 -1217
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +969 -969
- package/package.json +1 -1
- package/wirespec-src-compiler-cli.js +80 -80
- package/wirespec-src-compiler-core.js +1082 -1055
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +38 -38
- package/wirespec-src-openapi.js +364 -364
- package/wirespec-src-openapi.js.map +1 -1
package/wirespec-src-openapi.js
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
var protoOf = kotlin_kotlin.$_$.t7;
|
|
29
29
|
var objectMeta = kotlin_kotlin.$_$.s7;
|
|
30
30
|
var setMetadataFor = kotlin_kotlin.$_$.u7;
|
|
31
|
-
var Default_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
31
|
+
var Default_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j1;
|
|
32
32
|
var plus = kotlin_kotlin.$_$.o5;
|
|
33
33
|
var ParameterLocation_QUERY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.t;
|
|
34
34
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.b4;
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
var Request = kotlin_community_flock_wirespec_compiler_core.$_$.i;
|
|
45
45
|
var listOf = kotlin_kotlin.$_$.h5;
|
|
46
46
|
var emptyMap = kotlin_kotlin.$_$.q4;
|
|
47
|
-
var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
47
|
+
var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c1;
|
|
48
48
|
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.j;
|
|
49
49
|
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.m;
|
|
50
50
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
@@ -69,13 +69,13 @@
|
|
|
69
69
|
var mapCapacity = kotlin_kotlin.$_$.j5;
|
|
70
70
|
var coerceAtLeast = kotlin_kotlin.$_$.z7;
|
|
71
71
|
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.o;
|
|
72
|
-
var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
72
|
+
var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a1;
|
|
73
73
|
var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.b1;
|
|
74
74
|
var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.a1;
|
|
75
75
|
var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.z;
|
|
76
76
|
var Identifier = kotlin_community_flock_wirespec_compiler_core.$_$.o;
|
|
77
77
|
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.s;
|
|
78
|
-
var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
78
|
+
var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.z;
|
|
79
79
|
var drop = kotlin_kotlin.$_$.o4;
|
|
80
80
|
var charSequenceLength = kotlin_kotlin.$_$.o6;
|
|
81
81
|
var charSequenceGet = kotlin_kotlin.$_$.n6;
|
|
@@ -83,36 +83,37 @@
|
|
|
83
83
|
var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.k;
|
|
84
84
|
var Param = kotlin_community_flock_wirespec_compiler_core.$_$.l;
|
|
85
85
|
var Path = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c;
|
|
86
|
-
var Path__hashCode_impl_go73kd = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
86
|
+
var Path__hashCode_impl_go73kd = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.y;
|
|
87
87
|
var getStringHashCode = kotlin_kotlin.$_$.x6;
|
|
88
88
|
var classMeta = kotlin_kotlin.$_$.q6;
|
|
89
89
|
var StatusCode = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h;
|
|
90
|
-
var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
90
|
+
var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b1;
|
|
91
91
|
var hashCode = kotlin_kotlin.$_$.y6;
|
|
92
92
|
var equals = kotlin_kotlin.$_$.s6;
|
|
93
93
|
var to = kotlin_kotlin.$_$.bb;
|
|
94
94
|
var Unit_getInstance = kotlin_kotlin.$_$.h3;
|
|
95
95
|
var toMap = kotlin_kotlin.$_$.z5;
|
|
96
|
-
var Default_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
96
|
+
var Default_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k1;
|
|
97
97
|
var ParameterLocation_QUERY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.w;
|
|
98
98
|
var ParameterLocation_HEADER_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.v;
|
|
99
99
|
var ParameterLocation_COOKIE_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.u;
|
|
100
|
-
var _MediaType___get_value__impl__wy58mp = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
100
|
+
var _MediaType___get_value__impl__wy58mp = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d1;
|
|
101
101
|
var SchemaObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.p;
|
|
102
102
|
var ReferenceObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l;
|
|
103
|
-
var _StatusCode___get_value__impl__we50mu_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
104
|
-
var _Path___get_value__impl__thmflc_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
103
|
+
var _StatusCode___get_value__impl__we50mu_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i1;
|
|
104
|
+
var _Path___get_value__impl__thmflc_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f1;
|
|
105
105
|
var ParameterObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j;
|
|
106
106
|
var Ref_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.m;
|
|
107
107
|
var RequestBodyObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.n;
|
|
108
108
|
var ResponseObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.o;
|
|
109
109
|
var BooleanObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i;
|
|
110
|
-
var _Ref___get_value__impl__kxavfe_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
110
|
+
var _Ref___get_value__impl__kxavfe_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g1;
|
|
111
111
|
var getOrNull = kotlin_kotlin.$_$.w4;
|
|
112
|
+
var Type_ARRAY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.x;
|
|
112
113
|
var Path_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k;
|
|
113
|
-
var Path__hashCode_impl_go73kd_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
114
|
+
var Path__hashCode_impl_go73kd_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e1;
|
|
114
115
|
var StatusCode_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.q;
|
|
115
|
-
var StatusCode__hashCode_impl_fevhvx_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
116
|
+
var StatusCode__hashCode_impl_fevhvx_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h1;
|
|
116
117
|
//endregion
|
|
117
118
|
//region block: pre-declaration
|
|
118
119
|
setMetadataFor(Common, 'Common', objectMeta);
|
|
@@ -131,7 +132,7 @@
|
|
|
131
132
|
function Common() {
|
|
132
133
|
Common_instance = this;
|
|
133
134
|
}
|
|
134
|
-
protoOf(Common).
|
|
135
|
+
protoOf(Common).i1u = function (arg) {
|
|
135
136
|
// Inline function 'kotlin.collections.flatMap' call
|
|
136
137
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
137
138
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -156,12 +157,12 @@
|
|
|
156
157
|
function Companion() {
|
|
157
158
|
Companion_instance = this;
|
|
158
159
|
}
|
|
159
|
-
protoOf(Companion).
|
|
160
|
+
protoOf(Companion).j1u = function (json) {
|
|
160
161
|
// Inline function 'kotlin.let' call
|
|
161
|
-
var tmp0_let = Default_getInstance().
|
|
162
|
+
var tmp0_let = Default_getInstance().o1b(json);
|
|
162
163
|
// Inline function 'kotlin.contracts.contract' call
|
|
163
164
|
// Inline function 'community.flock.wirespec.openapi.v2.Companion.parse.<anonymous>' call
|
|
164
|
-
return (new OpenApiParser(tmp0_let)).
|
|
165
|
+
return (new OpenApiParser(tmp0_let)).l1u();
|
|
165
166
|
};
|
|
166
167
|
var Companion_instance;
|
|
167
168
|
function Companion_getInstance_0() {
|
|
@@ -171,7 +172,7 @@
|
|
|
171
172
|
}
|
|
172
173
|
function parseEndpoints($this) {
|
|
173
174
|
// Inline function 'kotlin.collections.flatMap' call
|
|
174
|
-
var tmp0_flatMap = $this.
|
|
175
|
+
var tmp0_flatMap = $this.k1u_1.y1b_1;
|
|
175
176
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
176
177
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
177
178
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -180,7 +181,7 @@
|
|
|
180
181
|
var element = tmp0_iterator.e();
|
|
181
182
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>' call
|
|
182
183
|
// Inline function 'kotlin.collections.component1' call
|
|
183
|
-
var path = element.v().
|
|
184
|
+
var path = element.v().j1c_1;
|
|
184
185
|
// Inline function 'kotlin.collections.component2' call
|
|
185
186
|
var pathItem = element.w();
|
|
186
187
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -207,7 +208,7 @@
|
|
|
207
208
|
while (tmp0_iterator_1.d()) {
|
|
208
209
|
var element_1 = tmp0_iterator_1.e();
|
|
209
210
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
210
|
-
if (element_1.
|
|
211
|
+
if (element_1.t1d_1.equals(ParameterLocation_QUERY_getInstance())) {
|
|
211
212
|
tmp0_filterTo.a(element_1);
|
|
212
213
|
}
|
|
213
214
|
}
|
|
@@ -230,7 +231,7 @@
|
|
|
230
231
|
while (tmp0_iterator_3.d()) {
|
|
231
232
|
var element_2 = tmp0_iterator_3.e();
|
|
232
233
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
233
|
-
if (element_2.
|
|
234
|
+
if (element_2.t1d_1.equals(ParameterLocation_HEADER_getInstance())) {
|
|
234
235
|
tmp0_filterTo_0.a(element_2);
|
|
235
236
|
}
|
|
236
237
|
}
|
|
@@ -254,7 +255,7 @@
|
|
|
254
255
|
while (tmp0_iterator_5.d()) {
|
|
255
256
|
var element_3 = tmp0_iterator_5.e();
|
|
256
257
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
257
|
-
if (element_3.
|
|
258
|
+
if (element_3.t1d_1.equals(ParameterLocation_BODY_getInstance())) {
|
|
258
259
|
tmp0_filterTo_1.a(element_3);
|
|
259
260
|
}
|
|
260
261
|
}
|
|
@@ -266,8 +267,8 @@
|
|
|
266
267
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
267
268
|
// Inline function 'kotlin.collections.map' call
|
|
268
269
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
269
|
-
var tmp0_elvis_lhs = $this.
|
|
270
|
-
var tmp0_elvis_lhs_0 = tmp0_elvis_lhs == null ? operation.
|
|
270
|
+
var tmp0_elvis_lhs = $this.k1u_1.w1b_1;
|
|
271
|
+
var tmp0_elvis_lhs_0 = tmp0_elvis_lhs == null ? operation.h1d_1 : tmp0_elvis_lhs;
|
|
271
272
|
var tmp1_map = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
272
273
|
// Inline function 'kotlin.collections.mapTo' call
|
|
273
274
|
var tmp0_mapTo_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -276,13 +277,13 @@
|
|
|
276
277
|
var item_1 = tmp0_iterator_7.e();
|
|
277
278
|
var tmp$ret$22;
|
|
278
279
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
279
|
-
var schema = element_4.
|
|
280
|
+
var schema = element_4.w1d_1;
|
|
280
281
|
var tmp;
|
|
281
282
|
if (schema instanceof ReferenceObject) {
|
|
282
283
|
tmp = toReference(schema, $this);
|
|
283
284
|
} else {
|
|
284
285
|
if (schema instanceof SchemaObject) {
|
|
285
|
-
tmp = toReference_0(schema, $this, Common_getInstance().
|
|
286
|
+
tmp = toReference_0(schema, $this, Common_getInstance().i1u([name, 'RequestBody']));
|
|
286
287
|
} else {
|
|
287
288
|
if (schema == null) {
|
|
288
289
|
throw new NotImplementedError();
|
|
@@ -292,7 +293,7 @@
|
|
|
292
293
|
}
|
|
293
294
|
}
|
|
294
295
|
var tmp_0 = tmp;
|
|
295
|
-
var tmp0_elvis_lhs_1 = element_4.
|
|
296
|
+
var tmp0_elvis_lhs_1 = element_4.v1d_1;
|
|
296
297
|
tmp$ret$22 = new Request(new Content(item_1, tmp_0, tmp0_elvis_lhs_1 == null ? false : tmp0_elvis_lhs_1));
|
|
297
298
|
tmp0_mapTo_1.a(tmp$ret$22);
|
|
298
299
|
}
|
|
@@ -309,7 +310,7 @@
|
|
|
309
310
|
var requests = tmp_1;
|
|
310
311
|
// Inline function 'kotlin.collections.flatMap' call
|
|
311
312
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
312
|
-
var tmp0_elvis_lhs_2 = operation.
|
|
313
|
+
var tmp0_elvis_lhs_2 = operation.k1d_1;
|
|
313
314
|
var tmp5_flatMap = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
314
315
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
315
316
|
var tmp0_flatMapTo_2 = ArrayList_init_$Create$();
|
|
@@ -319,13 +320,13 @@
|
|
|
319
320
|
var element_5 = tmp0_iterator_8.e();
|
|
320
321
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
321
322
|
// Inline function 'kotlin.collections.component1' call
|
|
322
|
-
var status = element_5.v().
|
|
323
|
+
var status = element_5.v().c1g_1;
|
|
323
324
|
// Inline function 'kotlin.collections.component2' call
|
|
324
325
|
var res = element_5.w();
|
|
325
326
|
// Inline function 'kotlin.collections.map' call
|
|
326
327
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
327
|
-
var tmp0_elvis_lhs_3 = $this.
|
|
328
|
-
var tmp0_elvis_lhs_4 = tmp0_elvis_lhs_3 == null ? operation.
|
|
328
|
+
var tmp0_elvis_lhs_3 = $this.k1u_1.x1b_1;
|
|
329
|
+
var tmp0_elvis_lhs_4 = tmp0_elvis_lhs_3 == null ? operation.i1d_1 : tmp0_elvis_lhs_3;
|
|
329
330
|
var tmp1_map_0 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
330
331
|
// Inline function 'kotlin.collections.mapTo' call
|
|
331
332
|
var tmp0_mapTo_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map_0, 10));
|
|
@@ -335,7 +336,7 @@
|
|
|
335
336
|
var tmp$ret$37;
|
|
336
337
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
337
338
|
var tmp_2 = _StatusCode___get_value__impl__we50mu(status);
|
|
338
|
-
var tmp0_safe_receiver = resolve_1(res, $this).
|
|
339
|
+
var tmp0_safe_receiver = resolve_1(res, $this).g1g_1;
|
|
339
340
|
var tmp_3;
|
|
340
341
|
if (tmp0_safe_receiver == null) {
|
|
341
342
|
tmp_3 = null;
|
|
@@ -348,7 +349,7 @@
|
|
|
348
349
|
tmp_4 = toReference(tmp0_safe_receiver, $this);
|
|
349
350
|
} else {
|
|
350
351
|
if (tmp0_safe_receiver instanceof SchemaObject) {
|
|
351
|
-
tmp_4 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().
|
|
352
|
+
tmp_4 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().i1u([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']));
|
|
352
353
|
} else {
|
|
353
354
|
noWhenBranchMatchedException();
|
|
354
355
|
}
|
|
@@ -371,17 +372,17 @@
|
|
|
371
372
|
return tmp0_flatMapTo;
|
|
372
373
|
}
|
|
373
374
|
function parseRequestBody($this) {
|
|
374
|
-
return flatMapRequests($this.
|
|
375
|
+
return flatMapRequests($this.k1u_1, $this, OpenApiParser$parseRequestBody$lambda($this));
|
|
375
376
|
}
|
|
376
377
|
function parseResponseBody($this) {
|
|
377
|
-
return flatMapResponses($this.
|
|
378
|
+
return flatMapResponses($this.k1u_1, $this, OpenApiParser$parseResponseBody$lambda($this));
|
|
378
379
|
}
|
|
379
380
|
function parseDefinitions($this) {
|
|
380
381
|
// Inline function 'kotlin.collections.flatMap' call
|
|
381
382
|
// Inline function 'kotlin.collections.filter' call
|
|
382
383
|
// Inline function 'arrow.core.filterIsInstance' call
|
|
383
384
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
384
|
-
var tmp0_elvis_lhs = $this.
|
|
385
|
+
var tmp0_elvis_lhs = $this.k1u_1.z1b_1;
|
|
385
386
|
var tmp1_filterIsInstance = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
386
387
|
// Inline function 'kotlin.collections.filterValues' call
|
|
387
388
|
var result = LinkedHashMap_init_$Create$();
|
|
@@ -403,7 +404,7 @@
|
|
|
403
404
|
while (tmp0_iterator_0.d()) {
|
|
404
405
|
var element = tmp0_iterator_0.e();
|
|
405
406
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
406
|
-
if (element.w().
|
|
407
|
+
if (element.w().y1f_1 == null) {
|
|
407
408
|
tmp0_filterTo.l3(element.v(), element.w());
|
|
408
409
|
}
|
|
409
410
|
}
|
|
@@ -414,7 +415,7 @@
|
|
|
414
415
|
while (tmp0_iterator_1.d()) {
|
|
415
416
|
var element_0 = tmp0_iterator_1.e();
|
|
416
417
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
417
|
-
var list = flatten(element_0.w(), $this, Common_getInstance().
|
|
418
|
+
var list = flatten(element_0.w(), $this, Common_getInstance().i1u([element_0.v()]));
|
|
418
419
|
addAll(tmp0_flatMapTo, list);
|
|
419
420
|
}
|
|
420
421
|
return tmp0_flatMapTo;
|
|
@@ -422,7 +423,7 @@
|
|
|
422
423
|
function resolveParameters(_this__u8e3s4, $this) {
|
|
423
424
|
// Inline function 'kotlin.collections.map' call
|
|
424
425
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
425
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
426
|
+
var tmp0_elvis_lhs = _this__u8e3s4.j1d_1;
|
|
426
427
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
427
428
|
// Inline function 'kotlin.collections.mapTo' call
|
|
428
429
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -449,7 +450,7 @@
|
|
|
449
450
|
function resolveParameters_0(_this__u8e3s4, $this) {
|
|
450
451
|
// Inline function 'kotlin.collections.map' call
|
|
451
452
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
452
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
453
|
+
var tmp0_elvis_lhs = _this__u8e3s4.y1c_1;
|
|
453
454
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
454
455
|
// Inline function 'kotlin.collections.mapTo' call
|
|
455
456
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -474,11 +475,11 @@
|
|
|
474
475
|
return tmp0_mapTo;
|
|
475
476
|
}
|
|
476
477
|
function resolveParameterObject(_this__u8e3s4, $this) {
|
|
477
|
-
var tmp0_safe_receiver = $this.
|
|
478
|
+
var tmp0_safe_receiver = $this.k1u_1.a1c_1;
|
|
478
479
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n2(getReference(_this__u8e3s4, $this));
|
|
479
480
|
var tmp;
|
|
480
481
|
if (tmp1_elvis_lhs == null) {
|
|
481
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
482
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.s1e_1);
|
|
482
483
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
483
484
|
} else {
|
|
484
485
|
tmp = tmp1_elvis_lhs;
|
|
@@ -486,11 +487,11 @@
|
|
|
486
487
|
return tmp;
|
|
487
488
|
}
|
|
488
489
|
function resolveResponseObject(_this__u8e3s4, $this) {
|
|
489
|
-
var tmp0_safe_receiver = $this.
|
|
490
|
+
var tmp0_safe_receiver = $this.k1u_1.b1c_1;
|
|
490
491
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n2(getReference(_this__u8e3s4, $this));
|
|
491
492
|
var tmp;
|
|
492
493
|
if (tmp1_elvis_lhs == null) {
|
|
493
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
494
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.s1e_1);
|
|
494
495
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
495
496
|
} else {
|
|
496
497
|
tmp = tmp1_elvis_lhs;
|
|
@@ -498,11 +499,11 @@
|
|
|
498
499
|
return tmp;
|
|
499
500
|
}
|
|
500
501
|
function resolveSchemaObject(_this__u8e3s4, $this) {
|
|
501
|
-
var tmp0_safe_receiver = $this.
|
|
502
|
+
var tmp0_safe_receiver = $this.k1u_1.z1b_1;
|
|
502
503
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n2(getReference(_this__u8e3s4, $this));
|
|
503
504
|
var tmp;
|
|
504
505
|
if (tmp1_elvis_lhs == null) {
|
|
505
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
506
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.s1e_1);
|
|
506
507
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
507
508
|
} else {
|
|
508
509
|
tmp = tmp1_elvis_lhs;
|
|
@@ -567,18 +568,18 @@
|
|
|
567
568
|
}
|
|
568
569
|
function flatten(_this__u8e3s4, $this, name) {
|
|
569
570
|
var tmp;
|
|
570
|
-
if (!(_this__u8e3s4.
|
|
571
|
+
if (!(_this__u8e3s4.y1f_1 == null)) {
|
|
571
572
|
var tmp_0;
|
|
572
|
-
if (_this__u8e3s4.
|
|
573
|
+
if (_this__u8e3s4.y1f_1 instanceof BooleanObject) {
|
|
573
574
|
tmp_0 = emptyList();
|
|
574
575
|
} else {
|
|
575
|
-
tmp_0 = flatten(resolve_0(ensureNotNull(_this__u8e3s4.
|
|
576
|
+
tmp_0 = flatten(resolve_0(ensureNotNull(_this__u8e3s4.y1f_1), $this), $this, name);
|
|
576
577
|
}
|
|
577
578
|
tmp = tmp_0;
|
|
578
|
-
} else if (!(_this__u8e3s4.
|
|
579
|
+
} else if (!(_this__u8e3s4.w1f_1 == null)) {
|
|
579
580
|
// Inline function 'kotlin.collections.flatMap' call
|
|
580
581
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
581
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
582
|
+
var tmp0_elvis_lhs = _this__u8e3s4.w1f_1;
|
|
582
583
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
583
584
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
584
585
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -591,7 +592,7 @@
|
|
|
591
592
|
}
|
|
592
593
|
var tmp_1 = listOf(new Type(name, new Shape(tmp0_flatMapTo)));
|
|
593
594
|
// Inline function 'kotlin.collections.flatMap' call
|
|
594
|
-
var tmp2_flatMap = ensureNotNull(_this__u8e3s4.
|
|
595
|
+
var tmp2_flatMap = ensureNotNull(_this__u8e3s4.w1f_1);
|
|
595
596
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
596
597
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
597
598
|
var tmp0_iterator_0 = tmp2_flatMap.c();
|
|
@@ -605,7 +606,7 @@
|
|
|
605
606
|
if (element_0 instanceof SchemaObject) {
|
|
606
607
|
// Inline function 'kotlin.collections.flatMap' call
|
|
607
608
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
608
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
609
|
+
var tmp0_elvis_lhs_0 = element_0.x1f_1;
|
|
609
610
|
var tmp1_flatMap_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
610
611
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
611
612
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
@@ -623,7 +624,7 @@
|
|
|
623
624
|
tmp_3 = emptyList();
|
|
624
625
|
} else {
|
|
625
626
|
if (value instanceof SchemaObject) {
|
|
626
|
-
tmp_3 = flatten(value, $this, Common_getInstance().
|
|
627
|
+
tmp_3 = flatten(value, $this, Common_getInstance().i1u([name, key]));
|
|
627
628
|
} else {
|
|
628
629
|
noWhenBranchMatchedException();
|
|
629
630
|
}
|
|
@@ -640,10 +641,10 @@
|
|
|
640
641
|
addAll(tmp0_flatMapTo_0, list_1);
|
|
641
642
|
}
|
|
642
643
|
tmp = plus(tmp_1, tmp0_flatMapTo_0);
|
|
643
|
-
} else if (!(_this__u8e3s4.
|
|
644
|
+
} else if (!(_this__u8e3s4.t1f_1 == null)) {
|
|
644
645
|
// Inline function 'kotlin.let' call
|
|
645
646
|
// Inline function 'kotlin.collections.map' call
|
|
646
|
-
var tmp3_map = ensureNotNull(_this__u8e3s4.
|
|
647
|
+
var tmp3_map = ensureNotNull(_this__u8e3s4.t1f_1);
|
|
647
648
|
// Inline function 'kotlin.collections.mapTo' call
|
|
648
649
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp3_map, 10));
|
|
649
650
|
var tmp0_iterator_2 = tmp3_map.c();
|
|
@@ -651,7 +652,7 @@
|
|
|
651
652
|
var item = tmp0_iterator_2.e();
|
|
652
653
|
var tmp$ret$14;
|
|
653
654
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
654
|
-
tmp$ret$14 = item.
|
|
655
|
+
tmp$ret$14 = item.s14();
|
|
655
656
|
tmp0_mapTo.a(tmp$ret$14);
|
|
656
657
|
}
|
|
657
658
|
var tmp4_let = toSet(tmp0_mapTo);
|
|
@@ -659,12 +660,12 @@
|
|
|
659
660
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
660
661
|
tmp = listOf(new Enum(name, tmp4_let));
|
|
661
662
|
} else {
|
|
662
|
-
var tmp1_subject = _this__u8e3s4.
|
|
663
|
+
var tmp1_subject = _this__u8e3s4.u1f_1;
|
|
663
664
|
var tmp_4;
|
|
664
665
|
switch (tmp1_subject == null ? -1 : tmp1_subject.r4_1) {
|
|
665
666
|
case -1:
|
|
666
667
|
case 5:
|
|
667
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
668
|
+
var tmp2_safe_receiver = _this__u8e3s4.x1f_1;
|
|
668
669
|
var tmp_5;
|
|
669
670
|
if (tmp2_safe_receiver == null) {
|
|
670
671
|
tmp_5 = null;
|
|
@@ -683,8 +684,8 @@
|
|
|
683
684
|
var value_0 = element_2.w();
|
|
684
685
|
var tmp_6;
|
|
685
686
|
if (value_0 instanceof SchemaObject) {
|
|
686
|
-
var tmp1_subject_0 = value_0.
|
|
687
|
-
tmp_6 = (tmp1_subject_0 == null ? -1 : tmp1_subject_0.r4_1) === 4 ? emptyList() : flatten(value_0, $this, Common_getInstance().
|
|
687
|
+
var tmp1_subject_0 = value_0.u1f_1;
|
|
688
|
+
tmp_6 = (tmp1_subject_0 == null ? -1 : tmp1_subject_0.r4_1) === 4 ? emptyList() : flatten(value_0, $this, Common_getInstance().i1u([name, key_0]));
|
|
688
689
|
} else {
|
|
689
690
|
if (value_0 instanceof ReferenceObject) {
|
|
690
691
|
tmp_6 = emptyList();
|
|
@@ -704,13 +705,13 @@
|
|
|
704
705
|
tmp_4 = plus(schema, fields);
|
|
705
706
|
break;
|
|
706
707
|
case 4:
|
|
707
|
-
var it = _this__u8e3s4.
|
|
708
|
+
var it = _this__u8e3s4.v1f_1;
|
|
708
709
|
var tmp_7;
|
|
709
710
|
if (it instanceof ReferenceObject) {
|
|
710
711
|
tmp_7 = emptyList();
|
|
711
712
|
} else {
|
|
712
713
|
if (it instanceof SchemaObject) {
|
|
713
|
-
tmp_7 = flatten(it, $this, Common_getInstance().
|
|
714
|
+
tmp_7 = flatten(it, $this, Common_getInstance().i1u([name, 'Array']));
|
|
714
715
|
} else {
|
|
715
716
|
if (it == null) {
|
|
716
717
|
tmp_7 = emptyList();
|
|
@@ -750,8 +751,8 @@
|
|
|
750
751
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
|
|
751
752
|
var schema = resolve(tmp0_let, $this);
|
|
752
753
|
var tmp;
|
|
753
|
-
if (!(schema.
|
|
754
|
-
var additionalProperties = ensureNotNull(schema.
|
|
754
|
+
if (!(schema.y1f_1 == null)) {
|
|
755
|
+
var additionalProperties = ensureNotNull(schema.y1f_1);
|
|
755
756
|
var tmp_0;
|
|
756
757
|
if (additionalProperties instanceof BooleanObject) {
|
|
757
758
|
tmp_0 = new Any(false, true);
|
|
@@ -767,24 +768,24 @@
|
|
|
767
768
|
}
|
|
768
769
|
}
|
|
769
770
|
tmp = tmp_0;
|
|
770
|
-
} else if (!(schema.
|
|
771
|
-
tmp = new Custom(Common_getInstance().
|
|
772
|
-
} else if (isPrimitive(schema.
|
|
773
|
-
tmp = new Primitive(toPrimitive(ensureNotNull(schema.
|
|
771
|
+
} else if (!(schema.t1f_1 == null)) {
|
|
772
|
+
tmp = new Custom(Common_getInstance().i1u([getReference(_this__u8e3s4, $this)]), false, false);
|
|
773
|
+
} else if (isPrimitive(schema.u1f_1)) {
|
|
774
|
+
tmp = new Primitive(toPrimitive(ensureNotNull(schema.u1f_1), $this), false, false);
|
|
774
775
|
} else {
|
|
775
|
-
var tmp0_subject = schema.
|
|
776
|
+
var tmp0_subject = schema.u1f_1;
|
|
776
777
|
var tmp_1;
|
|
777
778
|
if ((tmp0_subject == null ? -1 : tmp0_subject.r4_1) === 4) {
|
|
778
|
-
var items = schema.
|
|
779
|
+
var items = schema.v1f_1;
|
|
779
780
|
var tmp_2;
|
|
780
781
|
if (items instanceof ReferenceObject) {
|
|
781
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
782
|
+
tmp_2 = new Custom(Common_getInstance().i1u([getReference(items, $this)]), true);
|
|
782
783
|
} else {
|
|
783
784
|
if (items instanceof SchemaObject) {
|
|
784
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
785
|
+
tmp_2 = new Custom(Common_getInstance().i1u([getReference(_this__u8e3s4, $this), 'Array']), true);
|
|
785
786
|
} else {
|
|
786
787
|
if (items == null) {
|
|
787
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.
|
|
788
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.s1e_1);
|
|
788
789
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
789
790
|
} else {
|
|
790
791
|
noWhenBranchMatchedException();
|
|
@@ -795,10 +796,10 @@
|
|
|
795
796
|
} else {
|
|
796
797
|
var tmp_3;
|
|
797
798
|
if (tmp0_let instanceof SchemaObject) {
|
|
798
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
799
|
+
tmp_3 = new Custom(Common_getInstance().i1u([getReference(_this__u8e3s4, $this)]), false);
|
|
799
800
|
} else {
|
|
800
801
|
if (tmp0_let instanceof ReferenceObject) {
|
|
801
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
802
|
+
tmp_3 = new Custom(Common_getInstance().i1u([getReference(tmp0_let, $this)]), false);
|
|
802
803
|
} else {
|
|
803
804
|
noWhenBranchMatchedException();
|
|
804
805
|
}
|
|
@@ -811,32 +812,32 @@
|
|
|
811
812
|
}
|
|
812
813
|
function toReference_0(_this__u8e3s4, $this, name) {
|
|
813
814
|
var tmp;
|
|
814
|
-
if (!(_this__u8e3s4.
|
|
815
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
815
|
+
if (!(_this__u8e3s4.t1f_1 == null)) {
|
|
816
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.y1f_1 == null));
|
|
816
817
|
} else {
|
|
817
|
-
var type = _this__u8e3s4.
|
|
818
|
+
var type = _this__u8e3s4.u1f_1;
|
|
818
819
|
var tmp_0;
|
|
819
820
|
switch (type == null ? -1 : type.r4_1) {
|
|
820
821
|
case 0:
|
|
821
822
|
case 2:
|
|
822
823
|
case 1:
|
|
823
824
|
case 3:
|
|
824
|
-
tmp_0 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.
|
|
825
|
+
tmp_0 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.y1f_1 == null));
|
|
825
826
|
break;
|
|
826
827
|
case -1:
|
|
827
828
|
case 5:
|
|
828
829
|
var tmp_1;
|
|
829
|
-
var tmp_2 = _this__u8e3s4.
|
|
830
|
+
var tmp_2 = _this__u8e3s4.y1f_1;
|
|
830
831
|
if (tmp_2 instanceof BooleanObject) {
|
|
831
|
-
tmp_1 = new Any(false, !(_this__u8e3s4.
|
|
832
|
+
tmp_1 = new Any(false, !(_this__u8e3s4.y1f_1 == null));
|
|
832
833
|
} else {
|
|
833
|
-
tmp_1 = new Custom(name, false, !(_this__u8e3s4.
|
|
834
|
+
tmp_1 = new Custom(name, false, !(_this__u8e3s4.y1f_1 == null));
|
|
834
835
|
}
|
|
835
836
|
|
|
836
837
|
tmp_0 = tmp_1;
|
|
837
838
|
break;
|
|
838
839
|
case 4:
|
|
839
|
-
var it = _this__u8e3s4.
|
|
840
|
+
var it = _this__u8e3s4.v1f_1;
|
|
840
841
|
var tmp_3;
|
|
841
842
|
if (it instanceof ReferenceObject) {
|
|
842
843
|
tmp_3 = toIterable(toReference(it, $this));
|
|
@@ -878,28 +879,28 @@
|
|
|
878
879
|
var tmp;
|
|
879
880
|
switch (element.r4_1) {
|
|
880
881
|
case 0:
|
|
881
|
-
tmp = _this__u8e3s4.
|
|
882
|
+
tmp = _this__u8e3s4.p1c_1;
|
|
882
883
|
break;
|
|
883
884
|
case 1:
|
|
884
|
-
tmp = _this__u8e3s4.
|
|
885
|
+
tmp = _this__u8e3s4.r1c_1;
|
|
885
886
|
break;
|
|
886
887
|
case 2:
|
|
887
|
-
tmp = _this__u8e3s4.
|
|
888
|
+
tmp = _this__u8e3s4.q1c_1;
|
|
888
889
|
break;
|
|
889
890
|
case 3:
|
|
890
|
-
tmp = _this__u8e3s4.
|
|
891
|
+
tmp = _this__u8e3s4.s1c_1;
|
|
891
892
|
break;
|
|
892
893
|
case 4:
|
|
893
|
-
tmp = _this__u8e3s4.
|
|
894
|
+
tmp = _this__u8e3s4.t1c_1;
|
|
894
895
|
break;
|
|
895
896
|
case 5:
|
|
896
|
-
tmp = _this__u8e3s4.
|
|
897
|
+
tmp = _this__u8e3s4.u1c_1;
|
|
897
898
|
break;
|
|
898
899
|
case 6:
|
|
899
|
-
tmp = _this__u8e3s4.
|
|
900
|
+
tmp = _this__u8e3s4.v1c_1;
|
|
900
901
|
break;
|
|
901
902
|
case 7:
|
|
902
|
-
tmp = _this__u8e3s4.
|
|
903
|
+
tmp = _this__u8e3s4.w1c_1;
|
|
903
904
|
break;
|
|
904
905
|
default:
|
|
905
906
|
noWhenBranchMatchedException();
|
|
@@ -911,7 +912,7 @@
|
|
|
911
912
|
return filterNotNullValues(result);
|
|
912
913
|
}
|
|
913
914
|
function getReference(_this__u8e3s4, $this) {
|
|
914
|
-
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
915
|
+
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.s1e_1), ['/']).h(2);
|
|
915
916
|
}
|
|
916
917
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
917
918
|
var tmp;
|
|
@@ -936,7 +937,7 @@
|
|
|
936
937
|
function toField(_this__u8e3s4, $this, name) {
|
|
937
938
|
// Inline function 'kotlin.collections.map' call
|
|
938
939
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
939
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
940
|
+
var tmp0_elvis_lhs = _this__u8e3s4.x1f_1;
|
|
940
941
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
941
942
|
// Inline function 'kotlin.collections.mapTo' call
|
|
942
943
|
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.f());
|
|
@@ -953,16 +954,16 @@
|
|
|
953
954
|
var tmp;
|
|
954
955
|
if (value instanceof SchemaObject) {
|
|
955
956
|
var tmp_0 = new Identifier(key);
|
|
956
|
-
var tmp1_subject = value.
|
|
957
|
-
var tmp_1 = (tmp1_subject == null ? -1 : tmp1_subject.r4_1) === 4 ? toReference_0(value, $this, Common_getInstance().
|
|
958
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
957
|
+
var tmp1_subject = value.u1f_1;
|
|
958
|
+
var tmp_1 = (tmp1_subject == null ? -1 : tmp1_subject.r4_1) === 4 ? toReference_0(value, $this, Common_getInstance().i1u([name, key, 'Array'])) : toReference_0(value, $this, Common_getInstance().i1u([name, key]));
|
|
959
|
+
var tmp2_safe_receiver = _this__u8e3s4.s1f_1;
|
|
959
960
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.j1(key);
|
|
960
961
|
tmp = new Field(tmp_0, tmp_1, !(tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs));
|
|
961
962
|
} else {
|
|
962
963
|
if (value instanceof ReferenceObject) {
|
|
963
964
|
var tmp_2 = new Identifier(key);
|
|
964
965
|
var tmp_3 = toReference(value, $this);
|
|
965
|
-
var tmp4_safe_receiver = _this__u8e3s4.
|
|
966
|
+
var tmp4_safe_receiver = _this__u8e3s4.s1f_1;
|
|
966
967
|
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.j1(key);
|
|
967
968
|
tmp = new Field(tmp_2, tmp_3, !(tmp5_elvis_lhs == null ? false : tmp5_elvis_lhs));
|
|
968
969
|
} else {
|
|
@@ -981,10 +982,10 @@
|
|
|
981
982
|
// Inline function 'kotlin.contracts.contract' call
|
|
982
983
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
983
984
|
var tmp;
|
|
984
|
-
if (!(_this__u8e3s4.
|
|
985
|
-
tmp = new Custom(Common_getInstance().
|
|
985
|
+
if (!(_this__u8e3s4.n1e_1 == null)) {
|
|
986
|
+
tmp = new Custom(Common_getInstance().i1u([name, 'Parameter', tmp0_let.s1d_1]), false);
|
|
986
987
|
} else {
|
|
987
|
-
var type = tmp0_let.
|
|
988
|
+
var type = tmp0_let.x1d_1;
|
|
988
989
|
var tmp_0;
|
|
989
990
|
switch (type == null ? -1 : type.r4_1) {
|
|
990
991
|
case 0:
|
|
@@ -1001,9 +1002,9 @@
|
|
|
1001
1002
|
tmp_0 = new Primitive(tmp0_let_0, false);
|
|
1002
1003
|
break;
|
|
1003
1004
|
case 4:
|
|
1004
|
-
var tmp0_safe_receiver = tmp0_let.
|
|
1005
|
+
var tmp0_safe_receiver = tmp0_let.y1d_1;
|
|
1005
1006
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve(tmp0_safe_receiver, $this);
|
|
1006
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1007
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u1f_1;
|
|
1007
1008
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toPrimitive(tmp2_safe_receiver, $this);
|
|
1008
1009
|
var tmp_1;
|
|
1009
1010
|
if (tmp3_safe_receiver == null) {
|
|
@@ -1040,8 +1041,8 @@
|
|
|
1040
1041
|
var tmp1_let = tmp;
|
|
1041
1042
|
// Inline function 'kotlin.contracts.contract' call
|
|
1042
1043
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1043
|
-
var tmp_3 = new Identifier(_this__u8e3s4.
|
|
1044
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1044
|
+
var tmp_3 = new Identifier(_this__u8e3s4.s1d_1);
|
|
1045
|
+
var tmp0_elvis_lhs = _this__u8e3s4.v1d_1;
|
|
1045
1046
|
return new Field(tmp_3, tmp1_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
1046
1047
|
}
|
|
1047
1048
|
function toSegments(_this__u8e3s4, $this, parameters) {
|
|
@@ -1082,7 +1083,7 @@
|
|
|
1082
1083
|
while (tmp0_iterator_0.d()) {
|
|
1083
1084
|
var element = tmp0_iterator_0.e();
|
|
1084
1085
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1085
|
-
if (element.
|
|
1086
|
+
if (element.s1d_1 === param) {
|
|
1086
1087
|
tmp$ret$4 = element;
|
|
1087
1088
|
break $l$block;
|
|
1088
1089
|
}
|
|
@@ -1097,7 +1098,7 @@
|
|
|
1097
1098
|
// Inline function 'kotlin.let' call
|
|
1098
1099
|
// Inline function 'kotlin.contracts.contract' call
|
|
1099
1100
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1100
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver.
|
|
1101
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver.x1d_1;
|
|
1101
1102
|
tmp_2 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, $this);
|
|
1102
1103
|
}
|
|
1103
1104
|
var tmp1_safe_receiver = tmp_2;
|
|
@@ -1128,7 +1129,7 @@
|
|
|
1128
1129
|
return tmp0_mapTo;
|
|
1129
1130
|
}
|
|
1130
1131
|
function toName(_this__u8e3s4, $this, segments, method) {
|
|
1131
|
-
var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.
|
|
1132
|
+
var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.g1d_1;
|
|
1132
1133
|
var tmp;
|
|
1133
1134
|
if (tmp1_safe_receiver == null) {
|
|
1134
1135
|
tmp = null;
|
|
@@ -1136,7 +1137,7 @@
|
|
|
1136
1137
|
// Inline function 'kotlin.let' call
|
|
1137
1138
|
// Inline function 'kotlin.contracts.contract' call
|
|
1138
1139
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
1139
|
-
tmp = Common_getInstance().
|
|
1140
|
+
tmp = Common_getInstance().i1u([tmp1_safe_receiver]);
|
|
1140
1141
|
}
|
|
1141
1142
|
var tmp2_elvis_lhs = tmp;
|
|
1142
1143
|
var tmp_0;
|
|
@@ -1151,21 +1152,21 @@
|
|
|
1151
1152
|
return tmp_0;
|
|
1152
1153
|
}
|
|
1153
1154
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
1154
|
-
this.
|
|
1155
|
-
this.
|
|
1156
|
-
this.
|
|
1157
|
-
this.
|
|
1158
|
-
this.
|
|
1155
|
+
this.m1u_1 = path;
|
|
1156
|
+
this.n1u_1 = pathItem;
|
|
1157
|
+
this.o1u_1 = method;
|
|
1158
|
+
this.p1u_1 = operation;
|
|
1159
|
+
this.q1u_1 = type;
|
|
1159
1160
|
}
|
|
1160
1161
|
protoOf(FlattenRequest).toString = function () {
|
|
1161
|
-
return 'FlattenRequest(path=' + new Path(this.
|
|
1162
|
+
return 'FlattenRequest(path=' + new Path(this.m1u_1) + ', pathItem=' + this.n1u_1 + ', method=' + this.o1u_1 + ', operation=' + this.p1u_1 + ', type=' + this.q1u_1 + ')';
|
|
1162
1163
|
};
|
|
1163
1164
|
protoOf(FlattenRequest).hashCode = function () {
|
|
1164
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1165
|
-
result = imul(result, 31) + this.m1u_1.hashCode() | 0;
|
|
1165
|
+
var result = Path__hashCode_impl_go73kd(this.m1u_1);
|
|
1166
1166
|
result = imul(result, 31) + this.n1u_1.hashCode() | 0;
|
|
1167
1167
|
result = imul(result, 31) + this.o1u_1.hashCode() | 0;
|
|
1168
|
-
result = imul(result, 31) +
|
|
1168
|
+
result = imul(result, 31) + this.p1u_1.hashCode() | 0;
|
|
1169
|
+
result = imul(result, 31) + getStringHashCode(this.q1u_1) | 0;
|
|
1169
1170
|
return result;
|
|
1170
1171
|
};
|
|
1171
1172
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -1174,22 +1175,22 @@
|
|
|
1174
1175
|
if (!(other instanceof FlattenRequest))
|
|
1175
1176
|
return false;
|
|
1176
1177
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
1177
|
-
if (!(this.
|
|
1178
|
-
return false;
|
|
1179
|
-
if (!this.m1u_1.equals(tmp0_other_with_cast.m1u_1))
|
|
1178
|
+
if (!(this.m1u_1 === tmp0_other_with_cast.m1u_1))
|
|
1180
1179
|
return false;
|
|
1181
1180
|
if (!this.n1u_1.equals(tmp0_other_with_cast.n1u_1))
|
|
1182
1181
|
return false;
|
|
1183
1182
|
if (!this.o1u_1.equals(tmp0_other_with_cast.o1u_1))
|
|
1184
1183
|
return false;
|
|
1185
|
-
if (!
|
|
1184
|
+
if (!this.p1u_1.equals(tmp0_other_with_cast.p1u_1))
|
|
1185
|
+
return false;
|
|
1186
|
+
if (!(this.q1u_1 === tmp0_other_with_cast.q1u_1))
|
|
1186
1187
|
return false;
|
|
1187
1188
|
return true;
|
|
1188
1189
|
};
|
|
1189
1190
|
function flatMapRequests(_this__u8e3s4, $this, f) {
|
|
1190
1191
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1191
1192
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1192
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
1193
|
+
var tmp0_flatMap = _this__u8e3s4.y1b_1;
|
|
1193
1194
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1194
1195
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1195
1196
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1198,7 +1199,7 @@
|
|
|
1198
1199
|
var element = tmp0_iterator.e();
|
|
1199
1200
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
1200
1201
|
// Inline function 'kotlin.collections.component1' call
|
|
1201
|
-
var path = element.v().
|
|
1202
|
+
var path = element.v().j1c_1;
|
|
1202
1203
|
// Inline function 'kotlin.collections.component2' call
|
|
1203
1204
|
var pathItem = element.w();
|
|
1204
1205
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -1216,8 +1217,8 @@
|
|
|
1216
1217
|
var operation = element_0.w();
|
|
1217
1218
|
// Inline function 'kotlin.collections.map' call
|
|
1218
1219
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1219
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1220
|
-
var tmp0_elvis_lhs_0 = tmp0_elvis_lhs == null ? operation.
|
|
1220
|
+
var tmp0_elvis_lhs = _this__u8e3s4.w1b_1;
|
|
1221
|
+
var tmp0_elvis_lhs_0 = tmp0_elvis_lhs == null ? operation.h1d_1 : tmp0_elvis_lhs;
|
|
1221
1222
|
var tmp1_map = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1222
1223
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1223
1224
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -1247,25 +1248,25 @@
|
|
|
1247
1248
|
return tmp0_flatMapTo_1;
|
|
1248
1249
|
}
|
|
1249
1250
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
1250
|
-
this.
|
|
1251
|
-
this.
|
|
1252
|
-
this.
|
|
1253
|
-
this.
|
|
1254
|
-
this.
|
|
1255
|
-
this.
|
|
1256
|
-
this.
|
|
1251
|
+
this.r1u_1 = path;
|
|
1252
|
+
this.s1u_1 = pathItem;
|
|
1253
|
+
this.t1u_1 = method;
|
|
1254
|
+
this.u1u_1 = operation;
|
|
1255
|
+
this.v1u_1 = statusCode;
|
|
1256
|
+
this.w1u_1 = response;
|
|
1257
|
+
this.x1u_1 = type;
|
|
1257
1258
|
}
|
|
1258
1259
|
protoOf(FlattenResponse).toString = function () {
|
|
1259
|
-
return 'FlattenResponse(path=' + new Path(this.
|
|
1260
|
+
return 'FlattenResponse(path=' + new Path(this.r1u_1) + ', pathItem=' + this.s1u_1 + ', method=' + this.t1u_1 + ', operation=' + this.u1u_1 + ', statusCode=' + new StatusCode(this.v1u_1) + ', response=' + this.w1u_1 + ', type=' + this.x1u_1 + ')';
|
|
1260
1261
|
};
|
|
1261
1262
|
protoOf(FlattenResponse).hashCode = function () {
|
|
1262
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1263
|
-
result = imul(result, 31) + this.r1u_1.hashCode() | 0;
|
|
1263
|
+
var result = Path__hashCode_impl_go73kd(this.r1u_1);
|
|
1264
1264
|
result = imul(result, 31) + this.s1u_1.hashCode() | 0;
|
|
1265
1265
|
result = imul(result, 31) + this.t1u_1.hashCode() | 0;
|
|
1266
|
-
result = imul(result, 31) +
|
|
1267
|
-
result = imul(result, 31) +
|
|
1268
|
-
result = imul(result, 31) +
|
|
1266
|
+
result = imul(result, 31) + this.u1u_1.hashCode() | 0;
|
|
1267
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.v1u_1) | 0;
|
|
1268
|
+
result = imul(result, 31) + hashCode(this.w1u_1) | 0;
|
|
1269
|
+
result = imul(result, 31) + getStringHashCode(this.x1u_1) | 0;
|
|
1269
1270
|
return result;
|
|
1270
1271
|
};
|
|
1271
1272
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -1274,26 +1275,26 @@
|
|
|
1274
1275
|
if (!(other instanceof FlattenResponse))
|
|
1275
1276
|
return false;
|
|
1276
1277
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
1277
|
-
if (!(this.
|
|
1278
|
-
return false;
|
|
1279
|
-
if (!this.r1u_1.equals(tmp0_other_with_cast.r1u_1))
|
|
1278
|
+
if (!(this.r1u_1 === tmp0_other_with_cast.r1u_1))
|
|
1280
1279
|
return false;
|
|
1281
1280
|
if (!this.s1u_1.equals(tmp0_other_with_cast.s1u_1))
|
|
1282
1281
|
return false;
|
|
1283
1282
|
if (!this.t1u_1.equals(tmp0_other_with_cast.t1u_1))
|
|
1284
1283
|
return false;
|
|
1285
|
-
if (!
|
|
1284
|
+
if (!this.u1u_1.equals(tmp0_other_with_cast.u1u_1))
|
|
1285
|
+
return false;
|
|
1286
|
+
if (!(this.v1u_1 === tmp0_other_with_cast.v1u_1))
|
|
1286
1287
|
return false;
|
|
1287
|
-
if (!equals(this.
|
|
1288
|
+
if (!equals(this.w1u_1, tmp0_other_with_cast.w1u_1))
|
|
1288
1289
|
return false;
|
|
1289
|
-
if (!(this.
|
|
1290
|
+
if (!(this.x1u_1 === tmp0_other_with_cast.x1u_1))
|
|
1290
1291
|
return false;
|
|
1291
1292
|
return true;
|
|
1292
1293
|
};
|
|
1293
1294
|
function flatMapResponses(_this__u8e3s4, $this, f) {
|
|
1294
1295
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1295
1296
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1296
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
1297
|
+
var tmp0_flatMap = _this__u8e3s4.y1b_1;
|
|
1297
1298
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1298
1299
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1299
1300
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1302,7 +1303,7 @@
|
|
|
1302
1303
|
var element = tmp0_iterator.e();
|
|
1303
1304
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
1304
1305
|
// Inline function 'kotlin.collections.component1' call
|
|
1305
|
-
var path = element.v().
|
|
1306
|
+
var path = element.v().j1c_1;
|
|
1306
1307
|
// Inline function 'kotlin.collections.component2' call
|
|
1307
1308
|
var pathItem = element.w();
|
|
1308
1309
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -1320,7 +1321,7 @@
|
|
|
1320
1321
|
var operation = element_0.w();
|
|
1321
1322
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1322
1323
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1323
|
-
var tmp0_elvis_lhs = operation.
|
|
1324
|
+
var tmp0_elvis_lhs = operation.k1d_1;
|
|
1324
1325
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1325
1326
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1326
1327
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
@@ -1330,13 +1331,13 @@
|
|
|
1330
1331
|
var element_1 = tmp0_iterator_1.e();
|
|
1331
1332
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
1332
1333
|
// Inline function 'kotlin.collections.component1' call
|
|
1333
|
-
var statusCode = element_1.v().
|
|
1334
|
+
var statusCode = element_1.v().c1g_1;
|
|
1334
1335
|
// Inline function 'kotlin.collections.component2' call
|
|
1335
1336
|
var response = element_1.w();
|
|
1336
1337
|
// Inline function 'kotlin.collections.map' call
|
|
1337
1338
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1338
|
-
var tmp0_elvis_lhs_0 = _this__u8e3s4.
|
|
1339
|
-
var tmp0_elvis_lhs_1 = tmp0_elvis_lhs_0 == null ? operation.
|
|
1339
|
+
var tmp0_elvis_lhs_0 = _this__u8e3s4.x1b_1;
|
|
1340
|
+
var tmp0_elvis_lhs_1 = tmp0_elvis_lhs_0 == null ? operation.i1d_1 : tmp0_elvis_lhs_0;
|
|
1340
1341
|
var tmp1_map = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
1341
1342
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1342
1343
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -1370,9 +1371,9 @@
|
|
|
1370
1371
|
}
|
|
1371
1372
|
function OpenApiParser$parseRequestBody$lambda(this$0) {
|
|
1372
1373
|
return function (req) {
|
|
1373
|
-
var parameters = plus(resolveParameters_0(req.
|
|
1374
|
-
var segments = toSegments(req.
|
|
1375
|
-
var name = toName(req.
|
|
1374
|
+
var parameters = plus(resolveParameters_0(req.n1u_1, this$0), resolveParameters(req.p1u_1, this$0));
|
|
1375
|
+
var segments = toSegments(req.m1u_1, this$0, parameters);
|
|
1376
|
+
var name = toName(req.p1u_1, this$0, segments, req.o1u_1);
|
|
1376
1377
|
var tmp$ret$5;
|
|
1377
1378
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1378
1379
|
var tmp$ret$4;
|
|
@@ -1384,11 +1385,11 @@
|
|
|
1384
1385
|
var tmp$ret$3;
|
|
1385
1386
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1386
1387
|
var tmp;
|
|
1387
|
-
if (!(element.
|
|
1388
|
-
var tmp_0 = Common_getInstance().
|
|
1388
|
+
if (!(element.n1e_1 == null)) {
|
|
1389
|
+
var tmp_0 = Common_getInstance().i1u([name, 'Parameter', element.s1d_1]);
|
|
1389
1390
|
var tmp$ret$2;
|
|
1390
1391
|
// Inline function 'kotlin.collections.map' call
|
|
1391
|
-
var tmp0_map = ensureNotNull(element.
|
|
1392
|
+
var tmp0_map = ensureNotNull(element.n1e_1);
|
|
1392
1393
|
var tmp$ret$1;
|
|
1393
1394
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1394
1395
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
@@ -1397,7 +1398,7 @@
|
|
|
1397
1398
|
var item = tmp0_iterator_0.e();
|
|
1398
1399
|
var tmp$ret$0;
|
|
1399
1400
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
1400
|
-
tmp$ret$0 = item.
|
|
1401
|
+
tmp$ret$0 = item.s14();
|
|
1401
1402
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1402
1403
|
}
|
|
1403
1404
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -1413,7 +1414,7 @@
|
|
|
1413
1414
|
tmp$ret$4 = tmp0_flatMapTo;
|
|
1414
1415
|
tmp$ret$5 = tmp$ret$4;
|
|
1415
1416
|
var enums = tmp$ret$5;
|
|
1416
|
-
var tmp0_safe_receiver = req.
|
|
1417
|
+
var tmp0_safe_receiver = req.p1u_1.j1d_1;
|
|
1417
1418
|
var tmp_1;
|
|
1418
1419
|
if (tmp0_safe_receiver == null) {
|
|
1419
1420
|
tmp_1 = null;
|
|
@@ -1450,7 +1451,7 @@
|
|
|
1450
1451
|
var element_0 = tmp0_iterator_2.e();
|
|
1451
1452
|
var tmp$ret$9;
|
|
1452
1453
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1453
|
-
tmp$ret$9 = element_0.
|
|
1454
|
+
tmp$ret$9 = element_0.t1d_1.equals(ParameterLocation_BODY_getInstance());
|
|
1454
1455
|
if (tmp$ret$9) {
|
|
1455
1456
|
tmp0_filterTo.a(element_0);
|
|
1456
1457
|
}
|
|
@@ -1474,22 +1475,22 @@
|
|
|
1474
1475
|
var element_1 = tmp0_iterator_3.e();
|
|
1475
1476
|
var tmp$ret$13;
|
|
1476
1477
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1477
|
-
var schema = element_1.
|
|
1478
|
+
var schema = element_1.w1d_1;
|
|
1478
1479
|
var tmp_4;
|
|
1479
1480
|
if (schema instanceof SchemaObject) {
|
|
1480
|
-
var tmp0_subject = schema.
|
|
1481
|
+
var tmp0_subject = schema.u1f_1;
|
|
1481
1482
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.r4_1;
|
|
1482
1483
|
var tmp_5;
|
|
1483
1484
|
switch (tmp0) {
|
|
1484
1485
|
case -1:
|
|
1485
1486
|
case 5:
|
|
1486
|
-
tmp_5 = flatten(schema, this$0, Common_getInstance().
|
|
1487
|
+
tmp_5 = flatten(schema, this$0, Common_getInstance().i1u([name, 'RequestBody']));
|
|
1487
1488
|
break;
|
|
1488
1489
|
case 4:
|
|
1489
1490
|
var tmp$ret$12;
|
|
1490
1491
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1491
|
-
var tmp1_safe_receiver_0 = schema.
|
|
1492
|
-
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
1492
|
+
var tmp1_safe_receiver_0 = schema.v1f_1;
|
|
1493
|
+
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().i1u([name, 'RequestBody']));
|
|
1493
1494
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1494
1495
|
tmp$ret$12 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1495
1496
|
|
|
@@ -1518,26 +1519,26 @@
|
|
|
1518
1519
|
}
|
|
1519
1520
|
function OpenApiParser$parseResponseBody$lambda(this$0) {
|
|
1520
1521
|
return function (res) {
|
|
1521
|
-
var response = resolve_1(res.
|
|
1522
|
-
var parameters = plus(resolveParameters_0(res.
|
|
1523
|
-
var segments = toSegments(res.
|
|
1524
|
-
var name = toName(res.
|
|
1525
|
-
var schema = response.
|
|
1522
|
+
var response = resolve_1(res.w1u_1, this$0);
|
|
1523
|
+
var parameters = plus(resolveParameters_0(res.s1u_1, this$0), resolveParameters(res.u1u_1, this$0));
|
|
1524
|
+
var segments = toSegments(res.r1u_1, this$0, parameters);
|
|
1525
|
+
var name = toName(res.u1u_1, this$0, segments, res.t1u_1);
|
|
1526
|
+
var schema = response.g1g_1;
|
|
1526
1527
|
var tmp;
|
|
1527
1528
|
if (schema instanceof SchemaObject) {
|
|
1528
|
-
var tmp0_subject = schema.
|
|
1529
|
+
var tmp0_subject = schema.u1f_1;
|
|
1529
1530
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.r4_1;
|
|
1530
1531
|
var tmp_0;
|
|
1531
1532
|
switch (tmp0) {
|
|
1532
1533
|
case -1:
|
|
1533
1534
|
case 5:
|
|
1534
|
-
tmp_0 = flatten(schema, this$0, Common_getInstance().
|
|
1535
|
+
tmp_0 = flatten(schema, this$0, Common_getInstance().i1u([name, _StatusCode___get_value__impl__we50mu(res.v1u_1), 'ResponseBody']));
|
|
1535
1536
|
break;
|
|
1536
1537
|
case 4:
|
|
1537
1538
|
var tmp$ret$0;
|
|
1538
1539
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1539
|
-
var tmp1_safe_receiver = schema.
|
|
1540
|
-
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : flatten_0(tmp1_safe_receiver, this$0, Common_getInstance().
|
|
1540
|
+
var tmp1_safe_receiver = schema.v1f_1;
|
|
1541
|
+
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : flatten_0(tmp1_safe_receiver, this$0, Common_getInstance().i1u([name, _StatusCode___get_value__impl__we50mu(res.v1u_1), 'ResponseBody']));
|
|
1541
1542
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1542
1543
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1543
1544
|
|
|
@@ -1557,10 +1558,10 @@
|
|
|
1557
1558
|
function OpenApiParser$toName$lambda(it) {
|
|
1558
1559
|
var tmp;
|
|
1559
1560
|
if (it instanceof Literal) {
|
|
1560
|
-
tmp = Common_getInstance().
|
|
1561
|
+
tmp = Common_getInstance().i1u([it.gk_1]);
|
|
1561
1562
|
} else {
|
|
1562
1563
|
if (it instanceof Param) {
|
|
1563
|
-
tmp = Common_getInstance().
|
|
1564
|
+
tmp = Common_getInstance().i1u([it.ej_1.qj_1]);
|
|
1564
1565
|
} else {
|
|
1565
1566
|
noWhenBranchMatchedException();
|
|
1566
1567
|
}
|
|
@@ -1569,21 +1570,21 @@
|
|
|
1569
1570
|
}
|
|
1570
1571
|
function OpenApiParser(openApi) {
|
|
1571
1572
|
Companion_getInstance_0();
|
|
1572
|
-
this.
|
|
1573
|
+
this.k1u_1 = openApi;
|
|
1573
1574
|
}
|
|
1574
|
-
protoOf(OpenApiParser).
|
|
1575
|
+
protoOf(OpenApiParser).l1u = function () {
|
|
1575
1576
|
return plus(plus(plus(parseEndpoints(this), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
|
|
1576
1577
|
};
|
|
1577
1578
|
function toMap_0(_this__u8e3s4) {
|
|
1578
1579
|
var tmp;
|
|
1579
1580
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1580
|
-
tmp = _this__u8e3s4.
|
|
1581
|
+
tmp = _this__u8e3s4.sm(VOID, VOID, true);
|
|
1581
1582
|
} else {
|
|
1582
1583
|
if (_this__u8e3s4 instanceof Any) {
|
|
1583
|
-
tmp = _this__u8e3s4.
|
|
1584
|
+
tmp = _this__u8e3s4.qm(VOID, true);
|
|
1584
1585
|
} else {
|
|
1585
1586
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1586
|
-
tmp = _this__u8e3s4.
|
|
1587
|
+
tmp = _this__u8e3s4.um(VOID, VOID, true);
|
|
1587
1588
|
} else {
|
|
1588
1589
|
noWhenBranchMatchedException();
|
|
1589
1590
|
}
|
|
@@ -1627,13 +1628,13 @@
|
|
|
1627
1628
|
function toIterable(_this__u8e3s4) {
|
|
1628
1629
|
var tmp;
|
|
1629
1630
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1630
|
-
tmp = _this__u8e3s4.
|
|
1631
|
+
tmp = _this__u8e3s4.sm(VOID, true);
|
|
1631
1632
|
} else {
|
|
1632
1633
|
if (_this__u8e3s4 instanceof Any) {
|
|
1633
|
-
tmp = _this__u8e3s4.
|
|
1634
|
+
tmp = _this__u8e3s4.qm(true);
|
|
1634
1635
|
} else {
|
|
1635
1636
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1636
|
-
tmp = _this__u8e3s4.
|
|
1637
|
+
tmp = _this__u8e3s4.um(VOID, true);
|
|
1637
1638
|
} else {
|
|
1638
1639
|
noWhenBranchMatchedException();
|
|
1639
1640
|
}
|
|
@@ -1679,9 +1680,9 @@
|
|
|
1679
1680
|
function Companion_0() {
|
|
1680
1681
|
Companion_instance_0 = this;
|
|
1681
1682
|
}
|
|
1682
|
-
protoOf(Companion_0).
|
|
1683
|
+
protoOf(Companion_0).j1u = function (json) {
|
|
1683
1684
|
// Inline function 'kotlin.let' call
|
|
1684
|
-
var tmp0_let = Default_getInstance_0().
|
|
1685
|
+
var tmp0_let = Default_getInstance_0().o1b(json);
|
|
1685
1686
|
// Inline function 'kotlin.contracts.contract' call
|
|
1686
1687
|
// Inline function 'community.flock.wirespec.openapi.v3.Companion.parse.<anonymous>' call
|
|
1687
1688
|
return parse(new OpenApiParser_0(tmp0_let));
|
|
@@ -1697,7 +1698,7 @@
|
|
|
1697
1698
|
}
|
|
1698
1699
|
function parseEndpoint($this) {
|
|
1699
1700
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1700
|
-
var tmp0_flatMap = $this.
|
|
1701
|
+
var tmp0_flatMap = $this.y1u_1.o1k_1;
|
|
1701
1702
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1702
1703
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1703
1704
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1706,7 +1707,7 @@
|
|
|
1706
1707
|
var element = tmp0_iterator.e();
|
|
1707
1708
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>' call
|
|
1708
1709
|
// Inline function 'kotlin.collections.component1' call
|
|
1709
|
-
var key = element.v().
|
|
1710
|
+
var key = element.v().w1k_1;
|
|
1710
1711
|
// Inline function 'kotlin.collections.component2' call
|
|
1711
1712
|
var path = element.w();
|
|
1712
1713
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1734,7 +1735,7 @@
|
|
|
1734
1735
|
while (tmp0_iterator_1.d()) {
|
|
1735
1736
|
var element_0 = tmp0_iterator_1.e();
|
|
1736
1737
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1737
|
-
if (element_0.
|
|
1738
|
+
if (element_0.q1m_1.equals(ParameterLocation_QUERY_getInstance_0())) {
|
|
1738
1739
|
tmp0_filterTo.a(element_0);
|
|
1739
1740
|
}
|
|
1740
1741
|
}
|
|
@@ -1745,7 +1746,7 @@
|
|
|
1745
1746
|
var item_0 = tmp0_iterator_2.e();
|
|
1746
1747
|
var tmp$ret$9;
|
|
1747
1748
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1748
|
-
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().
|
|
1749
|
+
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().i1u([name, 'Parameter', item_0.p1m_1]));
|
|
1749
1750
|
tmp0_mapTo_0.a(tmp$ret$9);
|
|
1750
1751
|
}
|
|
1751
1752
|
var query = tmp0_mapTo_0;
|
|
@@ -1757,7 +1758,7 @@
|
|
|
1757
1758
|
while (tmp0_iterator_3.d()) {
|
|
1758
1759
|
var element_1 = tmp0_iterator_3.e();
|
|
1759
1760
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1760
|
-
if (element_1.
|
|
1761
|
+
if (element_1.q1m_1.equals(ParameterLocation_HEADER_getInstance_0())) {
|
|
1761
1762
|
tmp0_filterTo_0.a(element_1);
|
|
1762
1763
|
}
|
|
1763
1764
|
}
|
|
@@ -1768,7 +1769,7 @@
|
|
|
1768
1769
|
var item_1 = tmp0_iterator_4.e();
|
|
1769
1770
|
var tmp$ret$15;
|
|
1770
1771
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1771
|
-
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().
|
|
1772
|
+
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().i1u([name, 'Parameter', item_1.p1m_1]));
|
|
1772
1773
|
tmp0_mapTo_1.a(tmp$ret$15);
|
|
1773
1774
|
}
|
|
1774
1775
|
var headers = tmp0_mapTo_1;
|
|
@@ -1780,7 +1781,7 @@
|
|
|
1780
1781
|
while (tmp0_iterator_5.d()) {
|
|
1781
1782
|
var element_2 = tmp0_iterator_5.e();
|
|
1782
1783
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1783
|
-
if (element_2.
|
|
1784
|
+
if (element_2.q1m_1.equals(ParameterLocation_COOKIE_getInstance())) {
|
|
1784
1785
|
tmp0_filterTo_1.a(element_2);
|
|
1785
1786
|
}
|
|
1786
1787
|
}
|
|
@@ -1791,11 +1792,11 @@
|
|
|
1791
1792
|
var item_2 = tmp0_iterator_6.e();
|
|
1792
1793
|
var tmp$ret$21;
|
|
1793
1794
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1794
|
-
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().
|
|
1795
|
+
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().i1u([name, 'Parameter', item_2.p1m_1]));
|
|
1795
1796
|
tmp0_mapTo_2.a(tmp$ret$21);
|
|
1796
1797
|
}
|
|
1797
1798
|
var cookies = tmp0_mapTo_2;
|
|
1798
|
-
var tmp0_safe_receiver = operation.
|
|
1799
|
+
var tmp0_safe_receiver = operation.v1l_1;
|
|
1799
1800
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, $this);
|
|
1800
1801
|
var tmp;
|
|
1801
1802
|
if (tmp1_safe_receiver == null) {
|
|
@@ -1804,7 +1805,7 @@
|
|
|
1804
1805
|
// Inline function 'kotlin.let' call
|
|
1805
1806
|
// Inline function 'kotlin.contracts.contract' call
|
|
1806
1807
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1807
|
-
var tmp0_safe_receiver_0 = tmp1_safe_receiver.
|
|
1808
|
+
var tmp0_safe_receiver_0 = tmp1_safe_receiver.v1m_1;
|
|
1808
1809
|
var tmp_0;
|
|
1809
1810
|
if (tmp0_safe_receiver_0 == null) {
|
|
1810
1811
|
tmp_0 = null;
|
|
@@ -1819,17 +1820,17 @@
|
|
|
1819
1820
|
var tmp$ret$27;
|
|
1820
1821
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1821
1822
|
// Inline function 'kotlin.collections.component1' call
|
|
1822
|
-
var mediaType = item_3.v().
|
|
1823
|
+
var mediaType = item_3.v().a1n_1;
|
|
1823
1824
|
// Inline function 'kotlin.collections.component2' call
|
|
1824
1825
|
var mediaObject = item_3.w();
|
|
1825
1826
|
var tmp_1 = _MediaType___get_value__impl__wy58mp(mediaType);
|
|
1826
|
-
var schema = mediaObject.
|
|
1827
|
+
var schema = mediaObject.d1n_1;
|
|
1827
1828
|
var tmp_2;
|
|
1828
1829
|
if (schema instanceof ReferenceObject_0) {
|
|
1829
1830
|
tmp_2 = toReference_1(schema, $this);
|
|
1830
1831
|
} else {
|
|
1831
1832
|
if (schema instanceof SchemaObject_0) {
|
|
1832
|
-
tmp_2 = toReference_2(schema, $this, Common_getInstance().
|
|
1833
|
+
tmp_2 = toReference_2(schema, $this, Common_getInstance().i1u([name, 'RequestBody']));
|
|
1833
1834
|
} else {
|
|
1834
1835
|
if (schema == null) {
|
|
1835
1836
|
throw new NotImplementedError();
|
|
@@ -1839,7 +1840,7 @@
|
|
|
1839
1840
|
}
|
|
1840
1841
|
}
|
|
1841
1842
|
var tmp_3 = tmp_2;
|
|
1842
|
-
var tmp0_elvis_lhs = tmp1_safe_receiver.
|
|
1843
|
+
var tmp0_elvis_lhs = tmp1_safe_receiver.w1m_1;
|
|
1843
1844
|
tmp$ret$27 = new Request(new Content(tmp_1, tmp_3, tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
1844
1845
|
tmp0_mapTo_3.a(tmp$ret$27);
|
|
1845
1846
|
}
|
|
@@ -1851,7 +1852,7 @@
|
|
|
1851
1852
|
var requests = tmp2_elvis_lhs == null ? listOf(new Request(null)) : tmp2_elvis_lhs;
|
|
1852
1853
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1853
1854
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1854
|
-
var tmp0_elvis_lhs_0 = operation.
|
|
1855
|
+
var tmp0_elvis_lhs_0 = operation.w1l_1;
|
|
1855
1856
|
var tmp4_flatMap = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
1856
1857
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1857
1858
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
@@ -1861,10 +1862,10 @@
|
|
|
1861
1862
|
var element_3 = tmp0_iterator_8.e();
|
|
1862
1863
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1863
1864
|
// Inline function 'kotlin.collections.component1' call
|
|
1864
|
-
var status = element_3.v().
|
|
1865
|
+
var status = element_3.v().z1o_1;
|
|
1865
1866
|
// Inline function 'kotlin.collections.component2' call
|
|
1866
1867
|
var res = element_3.w();
|
|
1867
|
-
var tmp0_safe_receiver_1 = resolve_6(res, $this).
|
|
1868
|
+
var tmp0_safe_receiver_1 = resolve_6(res, $this).e1p_1;
|
|
1868
1869
|
var tmp_4;
|
|
1869
1870
|
if (tmp0_safe_receiver_1 == null) {
|
|
1870
1871
|
tmp_4 = null;
|
|
@@ -1879,18 +1880,18 @@
|
|
|
1879
1880
|
var tmp$ret$39;
|
|
1880
1881
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1881
1882
|
// Inline function 'kotlin.collections.component1' call
|
|
1882
|
-
var contentType = item_4.v().
|
|
1883
|
+
var contentType = item_4.v().a1n_1;
|
|
1883
1884
|
// Inline function 'kotlin.collections.component2' call
|
|
1884
1885
|
var media = item_4.w();
|
|
1885
1886
|
var tmp_5 = _StatusCode___get_value__impl__we50mu_0(status);
|
|
1886
1887
|
var tmp_6 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
1887
|
-
var schema_0 = media.
|
|
1888
|
+
var schema_0 = media.d1n_1;
|
|
1888
1889
|
var tmp_7;
|
|
1889
1890
|
if (schema_0 instanceof ReferenceObject_0) {
|
|
1890
1891
|
tmp_7 = toReference_1(schema_0, $this);
|
|
1891
1892
|
} else {
|
|
1892
1893
|
if (schema_0 instanceof SchemaObject_0) {
|
|
1893
|
-
tmp_7 = toReference_2(schema_0, $this, Common_getInstance().
|
|
1894
|
+
tmp_7 = toReference_2(schema_0, $this, Common_getInstance().i1u([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
1894
1895
|
} else {
|
|
1895
1896
|
if (schema_0 == null) {
|
|
1896
1897
|
throw new NotImplementedError();
|
|
@@ -1900,9 +1901,9 @@
|
|
|
1900
1901
|
}
|
|
1901
1902
|
}
|
|
1902
1903
|
var tmp_8 = tmp_7;
|
|
1903
|
-
var tmp0_safe_receiver_2 = media.
|
|
1904
|
+
var tmp0_safe_receiver_2 = media.d1n_1;
|
|
1904
1905
|
var tmp1_safe_receiver_0 = tmp0_safe_receiver_2 == null ? null : resolve_3(tmp0_safe_receiver_2, $this);
|
|
1905
|
-
var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
1906
|
+
var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.m1n_1;
|
|
1906
1907
|
tmp$ret$39 = new Response(tmp_5, new Content(tmp_6, tmp_8, tmp2_elvis_lhs_0 == null ? false : tmp2_elvis_lhs_0));
|
|
1907
1908
|
tmp0_mapTo_4.a(tmp$ret$39);
|
|
1908
1909
|
}
|
|
@@ -1922,20 +1923,20 @@
|
|
|
1922
1923
|
return tmp0_flatMapTo;
|
|
1923
1924
|
}
|
|
1924
1925
|
function parseParameters($this) {
|
|
1925
|
-
return flatMapRequests_0($this.
|
|
1926
|
+
return flatMapRequests_0($this.y1u_1, $this, OpenApiParser$parseParameters$lambda($this));
|
|
1926
1927
|
}
|
|
1927
1928
|
function parseRequestBody_0($this) {
|
|
1928
|
-
return flatMapRequests_0($this.
|
|
1929
|
+
return flatMapRequests_0($this.y1u_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
|
|
1929
1930
|
}
|
|
1930
1931
|
function parseResponseBody_0($this) {
|
|
1931
|
-
return flatMapResponses_0($this.
|
|
1932
|
+
return flatMapResponses_0($this.y1u_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
|
|
1932
1933
|
}
|
|
1933
1934
|
function parseComponents($this) {
|
|
1934
1935
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1935
1936
|
// Inline function 'kotlin.collections.filter' call
|
|
1936
1937
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1937
|
-
var tmp0_safe_receiver = $this.
|
|
1938
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1938
|
+
var tmp0_safe_receiver = $this.y1u_1.p1k_1;
|
|
1939
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j1p_1;
|
|
1939
1940
|
var tmp1_filter = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1940
1941
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1941
1942
|
var tmp0_filterTo = LinkedHashMap_init_$Create$();
|
|
@@ -1947,7 +1948,7 @@
|
|
|
1947
1948
|
var s = element.w();
|
|
1948
1949
|
var tmp;
|
|
1949
1950
|
if (s instanceof SchemaObject_0) {
|
|
1950
|
-
tmp = s.
|
|
1951
|
+
tmp = s.c1o_1 == null;
|
|
1951
1952
|
} else {
|
|
1952
1953
|
tmp = false;
|
|
1953
1954
|
}
|
|
@@ -1962,7 +1963,7 @@
|
|
|
1962
1963
|
while (tmp0_iterator_0.d()) {
|
|
1963
1964
|
var element_0 = tmp0_iterator_0.e();
|
|
1964
1965
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
1965
|
-
var list = flatten_2(element_0.w(), $this, Common_getInstance().
|
|
1966
|
+
var list = flatten_2(element_0.w(), $this, Common_getInstance().i1u([element_0.v()]));
|
|
1966
1967
|
addAll(tmp0_flatMapTo, list);
|
|
1967
1968
|
}
|
|
1968
1969
|
return tmp0_flatMapTo;
|
|
@@ -1992,7 +1993,7 @@
|
|
|
1992
1993
|
while (tmp0_iterator_0.d()) {
|
|
1993
1994
|
var element = tmp0_iterator_0.e();
|
|
1994
1995
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1995
|
-
if (element.
|
|
1996
|
+
if (element.p1m_1 === param) {
|
|
1996
1997
|
tmp$ret$3 = element;
|
|
1997
1998
|
break $l$block;
|
|
1998
1999
|
}
|
|
@@ -2000,7 +2001,7 @@
|
|
|
2000
2001
|
tmp$ret$3 = null;
|
|
2001
2002
|
}
|
|
2002
2003
|
var tmp0_safe_receiver = tmp$ret$3;
|
|
2003
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2004
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l1m_1;
|
|
2004
2005
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_3(tmp1_safe_receiver, $this);
|
|
2005
2006
|
var tmp_0;
|
|
2006
2007
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2009,7 +2010,7 @@
|
|
|
2009
2010
|
// Inline function 'kotlin.let' call
|
|
2010
2011
|
// Inline function 'kotlin.contracts.contract' call
|
|
2011
2012
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2012
|
-
var tmp0_safe_receiver_0 = tmp2_safe_receiver.
|
|
2013
|
+
var tmp0_safe_receiver_0 = tmp2_safe_receiver.v1n_1;
|
|
2013
2014
|
tmp_0 = tmp0_safe_receiver_0 == null ? null : toPrimitive_0(tmp0_safe_receiver_0, $this);
|
|
2014
2015
|
}
|
|
2015
2016
|
var tmp3_safe_receiver = tmp_0;
|
|
@@ -2040,7 +2041,7 @@
|
|
|
2040
2041
|
return tmp0_mapTo;
|
|
2041
2042
|
}
|
|
2042
2043
|
function toName_0(_this__u8e3s4, $this, segments, method) {
|
|
2043
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2044
|
+
var tmp0_safe_receiver = _this__u8e3s4.t1l_1;
|
|
2044
2045
|
var tmp;
|
|
2045
2046
|
if (tmp0_safe_receiver == null) {
|
|
2046
2047
|
tmp = null;
|
|
@@ -2048,7 +2049,7 @@
|
|
|
2048
2049
|
// Inline function 'kotlin.let' call
|
|
2049
2050
|
// Inline function 'kotlin.contracts.contract' call
|
|
2050
2051
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
2051
|
-
tmp = Common_getInstance().
|
|
2052
|
+
tmp = Common_getInstance().i1u([tmp0_safe_receiver]);
|
|
2052
2053
|
}
|
|
2053
2054
|
var tmp1_elvis_lhs = tmp;
|
|
2054
2055
|
var tmp_0;
|
|
@@ -2063,7 +2064,7 @@
|
|
|
2063
2064
|
return tmp_0;
|
|
2064
2065
|
}
|
|
2065
2066
|
function resolveParameters_1(_this__u8e3s4, $this) {
|
|
2066
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2067
|
+
var tmp0_safe_receiver = _this__u8e3s4.u1l_1;
|
|
2067
2068
|
var tmp;
|
|
2068
2069
|
if (tmp0_safe_receiver == null) {
|
|
2069
2070
|
tmp = null;
|
|
@@ -2102,7 +2103,7 @@
|
|
|
2102
2103
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2103
2104
|
}
|
|
2104
2105
|
function resolveParameters_2(_this__u8e3s4, $this) {
|
|
2105
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2106
|
+
var tmp0_safe_receiver = _this__u8e3s4.l1l_1;
|
|
2106
2107
|
var tmp;
|
|
2107
2108
|
if (tmp0_safe_receiver == null) {
|
|
2108
2109
|
tmp = null;
|
|
@@ -2141,8 +2142,8 @@
|
|
|
2141
2142
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2142
2143
|
}
|
|
2143
2144
|
function resolveParameterObject_0(_this__u8e3s4, $this) {
|
|
2144
|
-
var tmp0_safe_receiver = $this.
|
|
2145
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2145
|
+
var tmp0_safe_receiver = $this.y1u_1.p1k_1;
|
|
2146
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l1p_1;
|
|
2146
2147
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n2(getReference_0(_this__u8e3s4, $this));
|
|
2147
2148
|
var tmp;
|
|
2148
2149
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2166,8 +2167,8 @@
|
|
|
2166
2167
|
return tmp;
|
|
2167
2168
|
}
|
|
2168
2169
|
function resolveSchemaObject_0(_this__u8e3s4, $this) {
|
|
2169
|
-
var tmp0_safe_receiver = $this.
|
|
2170
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2170
|
+
var tmp0_safe_receiver = $this.y1u_1.p1k_1;
|
|
2171
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j1p_1;
|
|
2171
2172
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n2(getReference_0(_this__u8e3s4, $this));
|
|
2172
2173
|
var tmp;
|
|
2173
2174
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2191,7 +2192,7 @@
|
|
|
2191
2192
|
var tmp3_elvis_lhs = tmp;
|
|
2192
2193
|
var tmp_1;
|
|
2193
2194
|
if (tmp3_elvis_lhs == null) {
|
|
2194
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2195
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.j1n_1);
|
|
2195
2196
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2196
2197
|
} else {
|
|
2197
2198
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2199,8 +2200,8 @@
|
|
|
2199
2200
|
return tmp_1;
|
|
2200
2201
|
}
|
|
2201
2202
|
function resolveRequestBodyObject(_this__u8e3s4, $this) {
|
|
2202
|
-
var tmp0_safe_receiver = $this.
|
|
2203
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2203
|
+
var tmp0_safe_receiver = $this.y1u_1.p1k_1;
|
|
2204
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n1p_1;
|
|
2204
2205
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n2(getReference_0(_this__u8e3s4, $this));
|
|
2205
2206
|
var tmp;
|
|
2206
2207
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2224,7 +2225,7 @@
|
|
|
2224
2225
|
var tmp3_elvis_lhs = tmp;
|
|
2225
2226
|
var tmp_1;
|
|
2226
2227
|
if (tmp3_elvis_lhs == null) {
|
|
2227
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2228
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.j1n_1);
|
|
2228
2229
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2229
2230
|
} else {
|
|
2230
2231
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2232,8 +2233,8 @@
|
|
|
2232
2233
|
return tmp_1;
|
|
2233
2234
|
}
|
|
2234
2235
|
function resolveResponseObject_0(_this__u8e3s4, $this) {
|
|
2235
|
-
var tmp0_safe_receiver = $this.
|
|
2236
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2236
|
+
var tmp0_safe_receiver = $this.y1u_1.p1k_1;
|
|
2237
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k1p_1;
|
|
2237
2238
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n2(getReference_0(_this__u8e3s4, $this));
|
|
2238
2239
|
var tmp;
|
|
2239
2240
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2257,7 +2258,7 @@
|
|
|
2257
2258
|
var tmp3_elvis_lhs = tmp;
|
|
2258
2259
|
var tmp_1;
|
|
2259
2260
|
if (tmp3_elvis_lhs == null) {
|
|
2260
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2261
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.j1n_1);
|
|
2261
2262
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2262
2263
|
} else {
|
|
2263
2264
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2322,12 +2323,12 @@
|
|
|
2322
2323
|
}
|
|
2323
2324
|
function flatten_1(_this__u8e3s4, $this, name) {
|
|
2324
2325
|
var tmp;
|
|
2325
|
-
if (!(_this__u8e3s4.
|
|
2326
|
+
if (!(_this__u8e3s4.c1o_1 == null)) {
|
|
2326
2327
|
var tmp_0;
|
|
2327
|
-
if (_this__u8e3s4.
|
|
2328
|
+
if (_this__u8e3s4.c1o_1 instanceof BooleanObject_0) {
|
|
2328
2329
|
tmp_0 = emptyList();
|
|
2329
2330
|
} else {
|
|
2330
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
2331
|
+
var tmp1_safe_receiver = _this__u8e3s4.c1o_1;
|
|
2331
2332
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_4(tmp1_safe_receiver, $this);
|
|
2332
2333
|
var tmp_1;
|
|
2333
2334
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2337,7 +2338,7 @@
|
|
|
2337
2338
|
// Inline function 'kotlin.contracts.contract' call
|
|
2338
2339
|
var tmp_2;
|
|
2339
2340
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2340
|
-
if (!(tmp2_safe_receiver.
|
|
2341
|
+
if (!(tmp2_safe_receiver.b1o_1 == null)) {
|
|
2341
2342
|
tmp_2 = tmp2_safe_receiver;
|
|
2342
2343
|
} else {
|
|
2343
2344
|
tmp_2 = null;
|
|
@@ -2349,14 +2350,14 @@
|
|
|
2349
2350
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
2350
2351
|
}
|
|
2351
2352
|
tmp = tmp_0;
|
|
2352
|
-
} else if (!(_this__u8e3s4.w1n_1 == null)) {
|
|
2353
|
-
throw new NotImplementedError('An operation is not implemented: oneOf is not implemented');
|
|
2354
2353
|
} else if (!(_this__u8e3s4.x1n_1 == null)) {
|
|
2354
|
+
throw new NotImplementedError('An operation is not implemented: oneOf is not implemented');
|
|
2355
|
+
} else if (!(_this__u8e3s4.y1n_1 == null)) {
|
|
2355
2356
|
throw new NotImplementedError('An operation is not implemented: anyOf is not implemented');
|
|
2356
|
-
} else if (!(_this__u8e3s4.
|
|
2357
|
+
} else if (!(_this__u8e3s4.w1n_1 == null)) {
|
|
2357
2358
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2358
2359
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2359
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2360
|
+
var tmp0_elvis_lhs = _this__u8e3s4.w1n_1;
|
|
2360
2361
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2361
2362
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2362
2363
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -2369,7 +2370,7 @@
|
|
|
2369
2370
|
}
|
|
2370
2371
|
var tmp_3 = listOf(new Type(name, new Shape(tmp0_flatMapTo)));
|
|
2371
2372
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2372
|
-
var tmp2_flatMap = ensureNotNull(_this__u8e3s4.
|
|
2373
|
+
var tmp2_flatMap = ensureNotNull(_this__u8e3s4.w1n_1);
|
|
2373
2374
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2374
2375
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
2375
2376
|
var tmp0_iterator_0 = tmp2_flatMap.c();
|
|
@@ -2383,7 +2384,7 @@
|
|
|
2383
2384
|
if (element_0 instanceof SchemaObject_0) {
|
|
2384
2385
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2385
2386
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2386
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
2387
|
+
var tmp0_elvis_lhs_0 = element_0.b1o_1;
|
|
2387
2388
|
var tmp1_flatMap_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2388
2389
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2389
2390
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
@@ -2401,7 +2402,7 @@
|
|
|
2401
2402
|
tmp_5 = emptyList();
|
|
2402
2403
|
} else {
|
|
2403
2404
|
if (value instanceof SchemaObject_0) {
|
|
2404
|
-
tmp_5 = flatten_1(value, $this, Common_getInstance().
|
|
2405
|
+
tmp_5 = flatten_1(value, $this, Common_getInstance().i1u([name, key]));
|
|
2405
2406
|
} else {
|
|
2406
2407
|
noWhenBranchMatchedException();
|
|
2407
2408
|
}
|
|
@@ -2418,10 +2419,10 @@
|
|
|
2418
2419
|
addAll(tmp0_flatMapTo_0, list_1);
|
|
2419
2420
|
}
|
|
2420
2421
|
tmp = plus(tmp_3, tmp0_flatMapTo_0);
|
|
2421
|
-
} else if (!(_this__u8e3s4.
|
|
2422
|
+
} else if (!(_this__u8e3s4.v1o_1 == null)) {
|
|
2422
2423
|
// Inline function 'kotlin.let' call
|
|
2423
2424
|
// Inline function 'kotlin.collections.map' call
|
|
2424
|
-
var tmp3_map = ensureNotNull(_this__u8e3s4.
|
|
2425
|
+
var tmp3_map = ensureNotNull(_this__u8e3s4.v1o_1);
|
|
2425
2426
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2426
2427
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp3_map, 10));
|
|
2427
2428
|
var tmp0_iterator_2 = tmp3_map.c();
|
|
@@ -2429,7 +2430,7 @@
|
|
|
2429
2430
|
var item = tmp0_iterator_2.e();
|
|
2430
2431
|
var tmp$ret$16;
|
|
2431
2432
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2432
|
-
tmp$ret$16 = item.
|
|
2433
|
+
tmp$ret$16 = item.s14();
|
|
2433
2434
|
tmp0_mapTo.a(tmp$ret$16);
|
|
2434
2435
|
}
|
|
2435
2436
|
var tmp4_let = toSet(tmp0_mapTo);
|
|
@@ -2437,7 +2438,7 @@
|
|
|
2437
2438
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2438
2439
|
tmp = listOf(new Enum(name, tmp4_let));
|
|
2439
2440
|
} else {
|
|
2440
|
-
var tmp5_subject = _this__u8e3s4.
|
|
2441
|
+
var tmp5_subject = _this__u8e3s4.v1n_1;
|
|
2441
2442
|
var tmp_6;
|
|
2442
2443
|
switch (tmp5_subject == null ? -1 : tmp5_subject.r4_1) {
|
|
2443
2444
|
case -1:
|
|
@@ -2446,7 +2447,7 @@
|
|
|
2446
2447
|
|
|
2447
2448
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2448
2449
|
|
|
2449
|
-
var tmp0_elvis_lhs_1 = _this__u8e3s4.
|
|
2450
|
+
var tmp0_elvis_lhs_1 = _this__u8e3s4.b1o_1;
|
|
2450
2451
|
var tmp6_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
2451
2452
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2452
2453
|
|
|
@@ -2463,7 +2464,7 @@
|
|
|
2463
2464
|
var value_0 = element_2.w();
|
|
2464
2465
|
var tmp_7;
|
|
2465
2466
|
if (value_0 instanceof SchemaObject_0) {
|
|
2466
|
-
tmp_7 = flatten_1(value_0, $this, Common_getInstance().
|
|
2467
|
+
tmp_7 = flatten_1(value_0, $this, Common_getInstance().i1u([name, key_0]));
|
|
2467
2468
|
} else {
|
|
2468
2469
|
if (value_0 instanceof ReferenceObject_0) {
|
|
2469
2470
|
tmp_7 = emptyList();
|
|
@@ -2480,7 +2481,7 @@
|
|
|
2480
2481
|
tmp_6 = plus(schema, fields);
|
|
2481
2482
|
break;
|
|
2482
2483
|
case 4:
|
|
2483
|
-
var tmp6_safe_receiver = _this__u8e3s4.
|
|
2484
|
+
var tmp6_safe_receiver = _this__u8e3s4.a1o_1;
|
|
2484
2485
|
var tmp_8;
|
|
2485
2486
|
if (tmp6_safe_receiver == null) {
|
|
2486
2487
|
tmp_8 = null;
|
|
@@ -2493,7 +2494,7 @@
|
|
|
2493
2494
|
tmp_9 = emptyList();
|
|
2494
2495
|
} else {
|
|
2495
2496
|
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
2496
|
-
tmp_9 = flatten_1(tmp6_safe_receiver, $this, Common_getInstance().
|
|
2497
|
+
tmp_9 = flatten_1(tmp6_safe_receiver, $this, Common_getInstance().i1u([name, 'array']));
|
|
2497
2498
|
} else {
|
|
2498
2499
|
noWhenBranchMatchedException();
|
|
2499
2500
|
}
|
|
@@ -2533,8 +2534,8 @@
|
|
|
2533
2534
|
var referencingObject = tmp0_let.j3();
|
|
2534
2535
|
var schema = tmp0_let.k3();
|
|
2535
2536
|
var tmp;
|
|
2536
|
-
if (!(schema.
|
|
2537
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2537
|
+
if (!(schema.c1o_1 == null)) {
|
|
2538
|
+
var additionalProperties = ensureNotNull(schema.c1o_1);
|
|
2538
2539
|
var tmp_0;
|
|
2539
2540
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
2540
2541
|
tmp_0 = new Any(false, true);
|
|
@@ -2550,24 +2551,24 @@
|
|
|
2550
2551
|
}
|
|
2551
2552
|
}
|
|
2552
2553
|
tmp = tmp_0;
|
|
2553
|
-
} else if (!(schema.
|
|
2554
|
-
tmp = new Custom(Common_getInstance().
|
|
2555
|
-
} else if (isPrimitive_0(schema.
|
|
2556
|
-
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.
|
|
2554
|
+
} else if (!(schema.v1o_1 == null)) {
|
|
2555
|
+
tmp = new Custom(Common_getInstance().i1u([getReference_0(referencingObject, $this)]), false, false);
|
|
2556
|
+
} else if (isPrimitive_0(schema.v1n_1)) {
|
|
2557
|
+
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.v1n_1), $this), false, false);
|
|
2557
2558
|
} else {
|
|
2558
|
-
var tmp0_subject = schema.
|
|
2559
|
+
var tmp0_subject = schema.v1n_1;
|
|
2559
2560
|
var tmp_1;
|
|
2560
2561
|
if ((tmp0_subject == null ? -1 : tmp0_subject.r4_1) === 4) {
|
|
2561
|
-
var items = schema.
|
|
2562
|
+
var items = schema.a1o_1;
|
|
2562
2563
|
var tmp_2;
|
|
2563
2564
|
if (items instanceof ReferenceObject_0) {
|
|
2564
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2565
|
+
tmp_2 = new Custom(Common_getInstance().i1u([getReference_0(items, $this)]), true);
|
|
2565
2566
|
} else {
|
|
2566
2567
|
if (items instanceof SchemaObject_0) {
|
|
2567
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2568
|
+
tmp_2 = new Custom(Common_getInstance().i1u([getReference_0(referencingObject, $this), 'Array']), true);
|
|
2568
2569
|
} else {
|
|
2569
2570
|
if (items == null) {
|
|
2570
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.
|
|
2571
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.j1n_1);
|
|
2571
2572
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2572
2573
|
} else {
|
|
2573
2574
|
noWhenBranchMatchedException();
|
|
@@ -2576,7 +2577,7 @@
|
|
|
2576
2577
|
}
|
|
2577
2578
|
tmp_1 = tmp_2;
|
|
2578
2579
|
} else {
|
|
2579
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
2580
|
+
tmp_1 = new Custom(Common_getInstance().i1u([getReference_0(referencingObject, $this)]), false);
|
|
2580
2581
|
}
|
|
2581
2582
|
tmp = tmp_1;
|
|
2582
2583
|
}
|
|
@@ -2584,8 +2585,8 @@
|
|
|
2584
2585
|
}
|
|
2585
2586
|
function toReference_2(_this__u8e3s4, $this, name) {
|
|
2586
2587
|
var tmp;
|
|
2587
|
-
if (!(_this__u8e3s4.
|
|
2588
|
-
var additionalProperties = ensureNotNull(_this__u8e3s4.
|
|
2588
|
+
if (!(_this__u8e3s4.c1o_1 == null)) {
|
|
2589
|
+
var additionalProperties = ensureNotNull(_this__u8e3s4.c1o_1);
|
|
2589
2590
|
var tmp_0;
|
|
2590
2591
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
2591
2592
|
tmp_0 = new Any(false, true);
|
|
@@ -2598,7 +2599,7 @@
|
|
|
2598
2599
|
// Inline function 'kotlin.contracts.contract' call
|
|
2599
2600
|
var tmp_1;
|
|
2600
2601
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toReference.<anonymous>' call
|
|
2601
|
-
if (!(additionalProperties.
|
|
2602
|
+
if (!(additionalProperties.v1n_1 == null)) {
|
|
2602
2603
|
tmp_1 = additionalProperties;
|
|
2603
2604
|
} else {
|
|
2604
2605
|
tmp_1 = null;
|
|
@@ -2621,32 +2622,32 @@
|
|
|
2621
2622
|
}
|
|
2622
2623
|
}
|
|
2623
2624
|
tmp = tmp_0;
|
|
2624
|
-
} else if (!(_this__u8e3s4.
|
|
2625
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
2625
|
+
} else if (!(_this__u8e3s4.v1o_1 == null)) {
|
|
2626
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.c1o_1 == null));
|
|
2626
2627
|
} else {
|
|
2627
|
-
var type = _this__u8e3s4.
|
|
2628
|
+
var type = _this__u8e3s4.v1n_1;
|
|
2628
2629
|
var tmp_3;
|
|
2629
2630
|
switch (type == null ? -1 : type.r4_1) {
|
|
2630
2631
|
case 0:
|
|
2631
2632
|
case 1:
|
|
2632
2633
|
case 2:
|
|
2633
2634
|
case 3:
|
|
2634
|
-
tmp_3 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.
|
|
2635
|
+
tmp_3 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.c1o_1 == null));
|
|
2635
2636
|
break;
|
|
2636
2637
|
case -1:
|
|
2637
2638
|
case 5:
|
|
2638
2639
|
var tmp_4;
|
|
2639
|
-
var tmp_5 = _this__u8e3s4.
|
|
2640
|
+
var tmp_5 = _this__u8e3s4.c1o_1;
|
|
2640
2641
|
if (tmp_5 instanceof BooleanObject_0) {
|
|
2641
|
-
tmp_4 = new Any(false, !(_this__u8e3s4.
|
|
2642
|
+
tmp_4 = new Any(false, !(_this__u8e3s4.c1o_1 == null));
|
|
2642
2643
|
} else {
|
|
2643
|
-
tmp_4 = new Custom(name, false, !(_this__u8e3s4.
|
|
2644
|
+
tmp_4 = new Custom(name, false, !(_this__u8e3s4.c1o_1 == null));
|
|
2644
2645
|
}
|
|
2645
2646
|
|
|
2646
2647
|
tmp_3 = tmp_4;
|
|
2647
2648
|
break;
|
|
2648
2649
|
case 4:
|
|
2649
|
-
var it = _this__u8e3s4.
|
|
2650
|
+
var it = _this__u8e3s4.a1o_1;
|
|
2650
2651
|
var tmp_6;
|
|
2651
2652
|
if (it instanceof ReferenceObject_0) {
|
|
2652
2653
|
tmp_6 = toIterable_0(toReference_1(it, $this));
|
|
@@ -2686,28 +2687,28 @@
|
|
|
2686
2687
|
var tmp;
|
|
2687
2688
|
switch (element.r4_1) {
|
|
2688
2689
|
case 0:
|
|
2689
|
-
tmp = _this__u8e3s4.
|
|
2690
|
+
tmp = _this__u8e3s4.c1l_1;
|
|
2690
2691
|
break;
|
|
2691
2692
|
case 1:
|
|
2692
|
-
tmp = _this__u8e3s4.
|
|
2693
|
+
tmp = _this__u8e3s4.e1l_1;
|
|
2693
2694
|
break;
|
|
2694
2695
|
case 2:
|
|
2695
|
-
tmp = _this__u8e3s4.
|
|
2696
|
+
tmp = _this__u8e3s4.d1l_1;
|
|
2696
2697
|
break;
|
|
2697
2698
|
case 3:
|
|
2698
|
-
tmp = _this__u8e3s4.
|
|
2699
|
+
tmp = _this__u8e3s4.f1l_1;
|
|
2699
2700
|
break;
|
|
2700
2701
|
case 4:
|
|
2701
|
-
tmp = _this__u8e3s4.
|
|
2702
|
+
tmp = _this__u8e3s4.g1l_1;
|
|
2702
2703
|
break;
|
|
2703
2704
|
case 5:
|
|
2704
|
-
tmp = _this__u8e3s4.
|
|
2705
|
+
tmp = _this__u8e3s4.h1l_1;
|
|
2705
2706
|
break;
|
|
2706
2707
|
case 6:
|
|
2707
|
-
tmp = _this__u8e3s4.
|
|
2708
|
+
tmp = _this__u8e3s4.i1l_1;
|
|
2708
2709
|
break;
|
|
2709
2710
|
case 7:
|
|
2710
|
-
tmp = _this__u8e3s4.
|
|
2711
|
+
tmp = _this__u8e3s4.j1l_1;
|
|
2711
2712
|
break;
|
|
2712
2713
|
default:
|
|
2713
2714
|
noWhenBranchMatchedException();
|
|
@@ -2719,10 +2720,10 @@
|
|
|
2719
2720
|
return filterNotNullValues_0(result);
|
|
2720
2721
|
}
|
|
2721
2722
|
function getReference_0(_this__u8e3s4, $this) {
|
|
2722
|
-
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
2723
|
+
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.j1n_1), ['/']), 3);
|
|
2723
2724
|
var tmp;
|
|
2724
2725
|
if (tmp0_elvis_lhs == null) {
|
|
2725
|
-
var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
2726
|
+
var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.j1n_1);
|
|
2726
2727
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2727
2728
|
} else {
|
|
2728
2729
|
tmp = tmp0_elvis_lhs;
|
|
@@ -2752,7 +2753,7 @@
|
|
|
2752
2753
|
function toField_1(_this__u8e3s4, $this, name) {
|
|
2753
2754
|
// Inline function 'kotlin.collections.map' call
|
|
2754
2755
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2755
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2756
|
+
var tmp0_elvis_lhs = _this__u8e3s4.b1o_1;
|
|
2756
2757
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2757
2758
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2758
2759
|
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.f());
|
|
@@ -2769,18 +2770,17 @@
|
|
|
2769
2770
|
var tmp;
|
|
2770
2771
|
if (value instanceof SchemaObject_0) {
|
|
2771
2772
|
var tmp_0 = new Identifier(key);
|
|
2772
|
-
var
|
|
2773
|
-
var
|
|
2774
|
-
var
|
|
2775
|
-
|
|
2776
|
-
tmp = new Field(tmp_0, tmp_1, !(tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs));
|
|
2773
|
+
var tmp_1 = !(value.v1o_1 == null) ? toReference_2(value, $this, Common_getInstance().i1u([name, key])) : equals(value.v1n_1, Type_ARRAY_getInstance()) ? toReference_2(value, $this, Common_getInstance().i1u([name, key, 'Array'])) : toReference_2(value, $this, Common_getInstance().i1u([name, key]));
|
|
2774
|
+
var tmp1_safe_receiver = _this__u8e3s4.u1o_1;
|
|
2775
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.j1(key);
|
|
2776
|
+
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
2777
2777
|
} else {
|
|
2778
2778
|
if (value instanceof ReferenceObject_0) {
|
|
2779
2779
|
var tmp_2 = new Identifier(key);
|
|
2780
|
-
var tmp_3 = new Custom(Common_getInstance().
|
|
2781
|
-
var
|
|
2782
|
-
var
|
|
2783
|
-
tmp = new Field(tmp_2, tmp_3, !(
|
|
2780
|
+
var tmp_3 = new Custom(Common_getInstance().i1u([getReference_0(value, $this)]), false);
|
|
2781
|
+
var tmp3_safe_receiver = _this__u8e3s4.u1o_1;
|
|
2782
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.j1(key);
|
|
2783
|
+
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
2784
2784
|
} else {
|
|
2785
2785
|
noWhenBranchMatchedException();
|
|
2786
2786
|
}
|
|
@@ -2792,7 +2792,7 @@
|
|
|
2792
2792
|
}
|
|
2793
2793
|
function toField_2(_this__u8e3s4, $this, name) {
|
|
2794
2794
|
// Inline function 'kotlin.let' call
|
|
2795
|
-
var s = _this__u8e3s4.
|
|
2795
|
+
var s = _this__u8e3s4.l1m_1;
|
|
2796
2796
|
var tmp;
|
|
2797
2797
|
if (s instanceof ReferenceObject_0) {
|
|
2798
2798
|
tmp = toReference_1(s, $this);
|
|
@@ -2810,24 +2810,24 @@
|
|
|
2810
2810
|
var tmp0_let = tmp;
|
|
2811
2811
|
// Inline function 'kotlin.contracts.contract' call
|
|
2812
2812
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
2813
|
-
var tmp_0 = new Identifier(_this__u8e3s4.
|
|
2814
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2813
|
+
var tmp_0 = new Identifier(_this__u8e3s4.p1m_1);
|
|
2814
|
+
var tmp0_elvis_lhs = _this__u8e3s4.f1m_1;
|
|
2815
2815
|
return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
2816
2816
|
}
|
|
2817
2817
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
2818
|
-
this.
|
|
2819
|
-
this.
|
|
2820
|
-
this.
|
|
2821
|
-
this.
|
|
2818
|
+
this.z1u_1 = path;
|
|
2819
|
+
this.a1v_1 = pathItem;
|
|
2820
|
+
this.b1v_1 = method;
|
|
2821
|
+
this.c1v_1 = operation;
|
|
2822
2822
|
}
|
|
2823
2823
|
protoOf(FlattenRequest_0).toString = function () {
|
|
2824
|
-
return 'FlattenRequest(path=' + new Path_0(this.
|
|
2824
|
+
return 'FlattenRequest(path=' + new Path_0(this.z1u_1) + ', pathItem=' + this.a1v_1 + ', method=' + this.b1v_1 + ', operation=' + this.c1v_1 + ')';
|
|
2825
2825
|
};
|
|
2826
2826
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
2827
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
2828
|
-
result = imul(result, 31) + this.z1u_1.hashCode() | 0;
|
|
2827
|
+
var result = Path__hashCode_impl_go73kd_0(this.z1u_1);
|
|
2829
2828
|
result = imul(result, 31) + this.a1v_1.hashCode() | 0;
|
|
2830
2829
|
result = imul(result, 31) + this.b1v_1.hashCode() | 0;
|
|
2830
|
+
result = imul(result, 31) + this.c1v_1.hashCode() | 0;
|
|
2831
2831
|
return result;
|
|
2832
2832
|
};
|
|
2833
2833
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -2836,20 +2836,20 @@
|
|
|
2836
2836
|
if (!(other instanceof FlattenRequest_0))
|
|
2837
2837
|
return false;
|
|
2838
2838
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
2839
|
-
if (!(this.
|
|
2840
|
-
return false;
|
|
2841
|
-
if (!this.z1u_1.equals(tmp0_other_with_cast.z1u_1))
|
|
2839
|
+
if (!(this.z1u_1 === tmp0_other_with_cast.z1u_1))
|
|
2842
2840
|
return false;
|
|
2843
2841
|
if (!this.a1v_1.equals(tmp0_other_with_cast.a1v_1))
|
|
2844
2842
|
return false;
|
|
2845
2843
|
if (!this.b1v_1.equals(tmp0_other_with_cast.b1v_1))
|
|
2846
2844
|
return false;
|
|
2845
|
+
if (!this.c1v_1.equals(tmp0_other_with_cast.c1v_1))
|
|
2846
|
+
return false;
|
|
2847
2847
|
return true;
|
|
2848
2848
|
};
|
|
2849
2849
|
function flatMapRequests_0(_this__u8e3s4, $this, f) {
|
|
2850
2850
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2851
2851
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2852
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
2852
|
+
var tmp0_flatMap = _this__u8e3s4.o1k_1;
|
|
2853
2853
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2854
2854
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
2855
2855
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -2858,7 +2858,7 @@
|
|
|
2858
2858
|
var element = tmp0_iterator.e();
|
|
2859
2859
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
2860
2860
|
// Inline function 'kotlin.collections.component1' call
|
|
2861
|
-
var path = element.v().
|
|
2861
|
+
var path = element.v().w1k_1;
|
|
2862
2862
|
// Inline function 'kotlin.collections.component2' call
|
|
2863
2863
|
var pathItem = element.w();
|
|
2864
2864
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2893,23 +2893,23 @@
|
|
|
2893
2893
|
return tmp0_flatMapTo_0;
|
|
2894
2894
|
}
|
|
2895
2895
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
2896
|
-
this.
|
|
2897
|
-
this.
|
|
2898
|
-
this.
|
|
2899
|
-
this.
|
|
2900
|
-
this.
|
|
2901
|
-
this.
|
|
2896
|
+
this.d1v_1 = path;
|
|
2897
|
+
this.e1v_1 = pathItem;
|
|
2898
|
+
this.f1v_1 = method;
|
|
2899
|
+
this.g1v_1 = operation;
|
|
2900
|
+
this.h1v_1 = statusCode;
|
|
2901
|
+
this.i1v_1 = response;
|
|
2902
2902
|
}
|
|
2903
2903
|
protoOf(FlattenResponse_0).toString = function () {
|
|
2904
|
-
return 'FlattenResponse(path=' + new Path_0(this.
|
|
2904
|
+
return 'FlattenResponse(path=' + new Path_0(this.d1v_1) + ', pathItem=' + this.e1v_1 + ', method=' + this.f1v_1 + ', operation=' + this.g1v_1 + ', statusCode=' + new StatusCode_0(this.h1v_1) + ', response=' + this.i1v_1 + ')';
|
|
2905
2905
|
};
|
|
2906
2906
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
2907
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
2908
|
-
result = imul(result, 31) + this.d1v_1.hashCode() | 0;
|
|
2907
|
+
var result = Path__hashCode_impl_go73kd_0(this.d1v_1);
|
|
2909
2908
|
result = imul(result, 31) + this.e1v_1.hashCode() | 0;
|
|
2910
2909
|
result = imul(result, 31) + this.f1v_1.hashCode() | 0;
|
|
2911
|
-
result = imul(result, 31) +
|
|
2912
|
-
result = imul(result, 31) +
|
|
2910
|
+
result = imul(result, 31) + this.g1v_1.hashCode() | 0;
|
|
2911
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.h1v_1) | 0;
|
|
2912
|
+
result = imul(result, 31) + hashCode(this.i1v_1) | 0;
|
|
2913
2913
|
return result;
|
|
2914
2914
|
};
|
|
2915
2915
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -2918,24 +2918,24 @@
|
|
|
2918
2918
|
if (!(other instanceof FlattenResponse_0))
|
|
2919
2919
|
return false;
|
|
2920
2920
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
2921
|
-
if (!(this.
|
|
2922
|
-
return false;
|
|
2923
|
-
if (!this.d1v_1.equals(tmp0_other_with_cast.d1v_1))
|
|
2921
|
+
if (!(this.d1v_1 === tmp0_other_with_cast.d1v_1))
|
|
2924
2922
|
return false;
|
|
2925
2923
|
if (!this.e1v_1.equals(tmp0_other_with_cast.e1v_1))
|
|
2926
2924
|
return false;
|
|
2927
2925
|
if (!this.f1v_1.equals(tmp0_other_with_cast.f1v_1))
|
|
2928
2926
|
return false;
|
|
2929
|
-
if (!
|
|
2927
|
+
if (!this.g1v_1.equals(tmp0_other_with_cast.g1v_1))
|
|
2928
|
+
return false;
|
|
2929
|
+
if (!(this.h1v_1 === tmp0_other_with_cast.h1v_1))
|
|
2930
2930
|
return false;
|
|
2931
|
-
if (!equals(this.
|
|
2931
|
+
if (!equals(this.i1v_1, tmp0_other_with_cast.i1v_1))
|
|
2932
2932
|
return false;
|
|
2933
2933
|
return true;
|
|
2934
2934
|
};
|
|
2935
2935
|
function flatMapResponses_0(_this__u8e3s4, $this, f) {
|
|
2936
2936
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2937
2937
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2938
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
2938
|
+
var tmp0_flatMap = _this__u8e3s4.o1k_1;
|
|
2939
2939
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2940
2940
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
2941
2941
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -2944,7 +2944,7 @@
|
|
|
2944
2944
|
var element = tmp0_iterator.e();
|
|
2945
2945
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
2946
2946
|
// Inline function 'kotlin.collections.component1' call
|
|
2947
|
-
var path = element.v().
|
|
2947
|
+
var path = element.v().w1k_1;
|
|
2948
2948
|
// Inline function 'kotlin.collections.component2' call
|
|
2949
2949
|
var pathItem = element.w();
|
|
2950
2950
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -2961,7 +2961,7 @@
|
|
|
2961
2961
|
// Inline function 'kotlin.collections.component2' call
|
|
2962
2962
|
var operation = element_0.w();
|
|
2963
2963
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2964
|
-
var tmp0_safe_receiver = operation.
|
|
2964
|
+
var tmp0_safe_receiver = operation.w1l_1;
|
|
2965
2965
|
var tmp;
|
|
2966
2966
|
if (tmp0_safe_receiver == null) {
|
|
2967
2967
|
tmp = null;
|
|
@@ -2976,7 +2976,7 @@
|
|
|
2976
2976
|
var tmp$ret$9;
|
|
2977
2977
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
2978
2978
|
// Inline function 'kotlin.collections.component1' call
|
|
2979
|
-
var statusCode = item.v().
|
|
2979
|
+
var statusCode = item.v().z1o_1;
|
|
2980
2980
|
// Inline function 'kotlin.collections.component2' call
|
|
2981
2981
|
var response = item.w();
|
|
2982
2982
|
tmp$ret$9 = new FlattenResponse_0(path, pathItem, method, operation, statusCode, response);
|
|
@@ -3004,9 +3004,9 @@
|
|
|
3004
3004
|
}
|
|
3005
3005
|
function OpenApiParser$parseParameters$lambda(this$0) {
|
|
3006
3006
|
return function (req) {
|
|
3007
|
-
var parameters = plus(resolveParameters_2(req.
|
|
3008
|
-
var segments = toSegments_0(req.
|
|
3009
|
-
var name = toName_0(req.
|
|
3007
|
+
var parameters = plus(resolveParameters_2(req.a1v_1, this$0), resolveParameters_1(req.c1v_1, this$0));
|
|
3008
|
+
var segments = toSegments_0(req.z1u_1, this$0, parameters);
|
|
3009
|
+
var name = toName_0(req.c1v_1, this$0, segments, req.b1v_1);
|
|
3010
3010
|
var tmp$ret$2;
|
|
3011
3011
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3012
3012
|
var tmp$ret$1;
|
|
@@ -3017,8 +3017,8 @@
|
|
|
3017
3017
|
var element = tmp0_iterator.e();
|
|
3018
3018
|
var tmp$ret$0;
|
|
3019
3019
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
3020
|
-
var tmp0_safe_receiver = element.
|
|
3021
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().
|
|
3020
|
+
var tmp0_safe_receiver = element.l1m_1;
|
|
3021
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().i1u([name, 'Parameter', element.p1m_1]));
|
|
3022
3022
|
tmp$ret$0 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
3023
3023
|
var list = tmp$ret$0;
|
|
3024
3024
|
addAll(tmp0_flatMapTo, list);
|
|
@@ -3030,16 +3030,16 @@
|
|
|
3030
3030
|
}
|
|
3031
3031
|
function OpenApiParser$parseRequestBody$lambda_0(this$0) {
|
|
3032
3032
|
return function (req) {
|
|
3033
|
-
var parameters = plus(resolveParameters_2(req.
|
|
3034
|
-
var segments = toSegments_0(req.
|
|
3035
|
-
var name = toName_0(req.
|
|
3033
|
+
var parameters = plus(resolveParameters_2(req.a1v_1, this$0), resolveParameters_1(req.c1v_1, this$0));
|
|
3034
|
+
var segments = toSegments_0(req.z1u_1, this$0, parameters);
|
|
3035
|
+
var name = toName_0(req.c1v_1, this$0, segments, req.b1v_1);
|
|
3036
3036
|
var tmp$ret$6;
|
|
3037
3037
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3038
3038
|
var tmp$ret$0;
|
|
3039
3039
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3040
|
-
var tmp0_safe_receiver = req.
|
|
3040
|
+
var tmp0_safe_receiver = req.c1v_1.v1l_1;
|
|
3041
3041
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, this$0);
|
|
3042
|
-
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
3042
|
+
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.v1m_1;
|
|
3043
3043
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3044
3044
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3045
3045
|
var tmp1_flatMap = tmp$ret$0;
|
|
@@ -3058,22 +3058,22 @@
|
|
|
3058
3058
|
// Inline function 'kotlin.collections.component2' call
|
|
3059
3059
|
tmp$ret$2 = element.w();
|
|
3060
3060
|
var mediaObject = tmp$ret$2;
|
|
3061
|
-
var schema = mediaObject.
|
|
3061
|
+
var schema = mediaObject.d1n_1;
|
|
3062
3062
|
var tmp;
|
|
3063
3063
|
if (schema instanceof SchemaObject_0) {
|
|
3064
|
-
var tmp0_subject = schema.
|
|
3064
|
+
var tmp0_subject = schema.v1n_1;
|
|
3065
3065
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.r4_1;
|
|
3066
3066
|
var tmp_0;
|
|
3067
3067
|
switch (tmp0) {
|
|
3068
3068
|
case -1:
|
|
3069
3069
|
case 5:
|
|
3070
|
-
tmp_0 = flatten_1(schema, this$0, Common_getInstance().
|
|
3070
|
+
tmp_0 = flatten_1(schema, this$0, Common_getInstance().i1u([name, 'RequestBody']));
|
|
3071
3071
|
break;
|
|
3072
3072
|
case 4:
|
|
3073
3073
|
var tmp$ret$3;
|
|
3074
3074
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3075
|
-
var tmp1_safe_receiver_0 = schema.
|
|
3076
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
3075
|
+
var tmp1_safe_receiver_0 = schema.a1o_1;
|
|
3076
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().i1u([name, 'RequestBody']));
|
|
3077
3077
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
3078
3078
|
tmp$ret$3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
3079
3079
|
|
|
@@ -3106,17 +3106,17 @@
|
|
|
3106
3106
|
}
|
|
3107
3107
|
function OpenApiParser$parseResponseBody$lambda_0(this$0) {
|
|
3108
3108
|
return function (res) {
|
|
3109
|
-
var parameters = plus(resolveParameters_2(res.
|
|
3110
|
-
var segments = toSegments_0(res.
|
|
3111
|
-
var name = toName_0(res.
|
|
3112
|
-
var response = res.
|
|
3109
|
+
var parameters = plus(resolveParameters_2(res.e1v_1, this$0), resolveParameters_1(res.g1v_1, this$0));
|
|
3110
|
+
var segments = toSegments_0(res.d1v_1, this$0, parameters);
|
|
3111
|
+
var name = toName_0(res.g1v_1, this$0, segments, res.f1v_1);
|
|
3112
|
+
var response = res.i1v_1;
|
|
3113
3113
|
var tmp;
|
|
3114
3114
|
if (response instanceof ResponseObject_0) {
|
|
3115
3115
|
var tmp$ret$6;
|
|
3116
3116
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3117
3117
|
var tmp$ret$0;
|
|
3118
3118
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3119
|
-
var tmp0_orEmpty = response.
|
|
3119
|
+
var tmp0_orEmpty = response.e1p_1;
|
|
3120
3120
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3121
3121
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3122
3122
|
var tmp1_flatMap = tmp$ret$0;
|
|
@@ -3135,22 +3135,22 @@
|
|
|
3135
3135
|
// Inline function 'kotlin.collections.component2' call
|
|
3136
3136
|
tmp$ret$2 = element.w();
|
|
3137
3137
|
var mediaObject = tmp$ret$2;
|
|
3138
|
-
var schema = mediaObject.
|
|
3138
|
+
var schema = mediaObject.d1n_1;
|
|
3139
3139
|
var tmp_0;
|
|
3140
3140
|
if (schema instanceof SchemaObject_0) {
|
|
3141
|
-
var tmp0_subject = schema.
|
|
3141
|
+
var tmp0_subject = schema.v1n_1;
|
|
3142
3142
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.r4_1;
|
|
3143
3143
|
var tmp_1;
|
|
3144
3144
|
switch (tmp0) {
|
|
3145
3145
|
case -1:
|
|
3146
3146
|
case 5:
|
|
3147
|
-
tmp_1 = flatten_1(schema, this$0, Common_getInstance().
|
|
3147
|
+
tmp_1 = flatten_1(schema, this$0, Common_getInstance().i1u([name, _StatusCode___get_value__impl__we50mu_0(res.h1v_1), 'ResponseBody']));
|
|
3148
3148
|
break;
|
|
3149
3149
|
case 4:
|
|
3150
3150
|
var tmp$ret$3;
|
|
3151
3151
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3152
|
-
var tmp1_safe_receiver = schema.
|
|
3153
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().
|
|
3152
|
+
var tmp1_safe_receiver = schema.a1o_1;
|
|
3153
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().i1u([name, _StatusCode___get_value__impl__we50mu_0(res.h1v_1), 'ResponseBody']));
|
|
3154
3154
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
3155
3155
|
tmp$ret$3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
3156
3156
|
|
|
@@ -3184,10 +3184,10 @@
|
|
|
3184
3184
|
function OpenApiParser$toName$lambda_0(it) {
|
|
3185
3185
|
var tmp;
|
|
3186
3186
|
if (it instanceof Literal) {
|
|
3187
|
-
tmp = Common_getInstance().
|
|
3187
|
+
tmp = Common_getInstance().i1u([it.gk_1]);
|
|
3188
3188
|
} else {
|
|
3189
3189
|
if (it instanceof Param) {
|
|
3190
|
-
tmp = Common_getInstance().
|
|
3190
|
+
tmp = Common_getInstance().i1u([it.ej_1.qj_1]);
|
|
3191
3191
|
} else {
|
|
3192
3192
|
noWhenBranchMatchedException();
|
|
3193
3193
|
}
|
|
@@ -3196,18 +3196,18 @@
|
|
|
3196
3196
|
}
|
|
3197
3197
|
function OpenApiParser_0(openApi) {
|
|
3198
3198
|
Companion_getInstance_1();
|
|
3199
|
-
this.
|
|
3199
|
+
this.y1u_1 = openApi;
|
|
3200
3200
|
}
|
|
3201
3201
|
function toMap_1(_this__u8e3s4) {
|
|
3202
3202
|
var tmp;
|
|
3203
3203
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3204
|
-
tmp = _this__u8e3s4.
|
|
3204
|
+
tmp = _this__u8e3s4.sm(VOID, VOID, true);
|
|
3205
3205
|
} else {
|
|
3206
3206
|
if (_this__u8e3s4 instanceof Any) {
|
|
3207
|
-
tmp = _this__u8e3s4.
|
|
3207
|
+
tmp = _this__u8e3s4.qm(VOID, true);
|
|
3208
3208
|
} else {
|
|
3209
3209
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3210
|
-
tmp = _this__u8e3s4.
|
|
3210
|
+
tmp = _this__u8e3s4.um(VOID, VOID, true);
|
|
3211
3211
|
} else {
|
|
3212
3212
|
noWhenBranchMatchedException();
|
|
3213
3213
|
}
|
|
@@ -3248,13 +3248,13 @@
|
|
|
3248
3248
|
function toIterable_0(_this__u8e3s4) {
|
|
3249
3249
|
var tmp;
|
|
3250
3250
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3251
|
-
tmp = _this__u8e3s4.
|
|
3251
|
+
tmp = _this__u8e3s4.sm(VOID, true);
|
|
3252
3252
|
} else {
|
|
3253
3253
|
if (_this__u8e3s4 instanceof Any) {
|
|
3254
|
-
tmp = _this__u8e3s4.
|
|
3254
|
+
tmp = _this__u8e3s4.qm(true);
|
|
3255
3255
|
} else {
|
|
3256
3256
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3257
|
-
tmp = _this__u8e3s4.
|
|
3257
|
+
tmp = _this__u8e3s4.um(VOID, true);
|
|
3258
3258
|
} else {
|
|
3259
3259
|
noWhenBranchMatchedException();
|
|
3260
3260
|
}
|