@flock/wirespec 0.8.45 → 0.8.46
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/arrow-arrow-atomic.js +11 -11
- package/arrow-arrow-core.js +57 -57
- package/clikt-clikt.js +1278 -1278
- package/colormath-root-colormath.js +365 -365
- package/kotlin-kotlin-stdlib-js-ir.js +972 -972
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin-openapi-bindings.js +3225 -3225
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1296 -1296
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1032 -1032
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/markdown.js +1887 -1887
- package/mordant-mordant.js +1640 -1640
- package/package.json +1 -1
- package/wirespec-src-compiler-cli.js +163 -163
- package/wirespec-src-compiler-core.js +3578 -3002
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +211 -211
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-converter-openapi.js +406 -394
- package/wirespec-src-converter-openapi.js.map +1 -1
|
@@ -51,6 +51,8 @@
|
|
|
51
51
|
var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g1;
|
|
52
52
|
var emptyList = kotlin_kotlin.$_$.h5;
|
|
53
53
|
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.k;
|
|
54
|
+
var HashSet_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
55
|
+
var to = kotlin_kotlin.$_$.je;
|
|
54
56
|
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.n;
|
|
55
57
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
56
58
|
var THROW_CCE = kotlin_kotlin.$_$.ld;
|
|
@@ -67,7 +69,6 @@
|
|
|
67
69
|
var ensureNotNull = kotlin_kotlin.$_$.ae;
|
|
68
70
|
var toSet = kotlin_kotlin.$_$.o7;
|
|
69
71
|
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.o;
|
|
70
|
-
var HashSet_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
71
72
|
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.s;
|
|
72
73
|
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.t;
|
|
73
74
|
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.r;
|
|
@@ -100,7 +101,6 @@
|
|
|
100
101
|
var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f1;
|
|
101
102
|
var hashCode = kotlin_kotlin.$_$.t8;
|
|
102
103
|
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.u;
|
|
103
|
-
var to = kotlin_kotlin.$_$.je;
|
|
104
104
|
var toMap = kotlin_kotlin.$_$.m7;
|
|
105
105
|
var OpenAPI_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l;
|
|
106
106
|
var ParameterLocation_QUERY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a1;
|
|
@@ -137,12 +137,12 @@
|
|
|
137
137
|
setMetadataFor(OpenApiParser_0, 'OpenApiParser', classMeta);
|
|
138
138
|
//endregion
|
|
139
139
|
function Common$className$lambda(it) {
|
|
140
|
-
return Companion_getInstance().
|
|
140
|
+
return Companion_getInstance().y1r(it);
|
|
141
141
|
}
|
|
142
142
|
function Common() {
|
|
143
143
|
Common_instance = this;
|
|
144
144
|
}
|
|
145
|
-
protoOf(Common).
|
|
145
|
+
protoOf(Common).r21 = function (arg) {
|
|
146
146
|
// Inline function 'kotlin.collections.flatMap' call
|
|
147
147
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
148
148
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -166,24 +166,24 @@
|
|
|
166
166
|
}
|
|
167
167
|
function OpenApiParser$Companion$parse$lambda($ignoreUnknown) {
|
|
168
168
|
return function ($this$Json) {
|
|
169
|
-
$this$Json.
|
|
170
|
-
$this$Json.
|
|
169
|
+
$this$Json.wy_1 = true;
|
|
170
|
+
$this$Json.ty_1 = $ignoreUnknown;
|
|
171
171
|
return Unit_getInstance();
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
174
|
function Companion() {
|
|
175
175
|
Companion_instance = this;
|
|
176
176
|
}
|
|
177
|
-
protoOf(Companion).
|
|
177
|
+
protoOf(Companion).s21 = function (json, ignoreUnknown) {
|
|
178
178
|
// Inline function 'kotlin.let' call
|
|
179
|
-
var tmp0_let = (new OpenAPI(Json(VOID, OpenApiParser$Companion$parse$lambda(ignoreUnknown)))).
|
|
179
|
+
var tmp0_let = (new OpenAPI(Json(VOID, OpenApiParser$Companion$parse$lambda(ignoreUnknown)))).q16(json);
|
|
180
180
|
// Inline function 'kotlin.contracts.contract' call
|
|
181
181
|
// Inline function 'community.flock.wirespec.openapi.v2.Companion.parse.<anonymous>' call
|
|
182
|
-
return (new OpenApiParser(tmp0_let)).
|
|
182
|
+
return (new OpenApiParser(tmp0_let)).u21();
|
|
183
183
|
};
|
|
184
|
-
protoOf(Companion).
|
|
184
|
+
protoOf(Companion).v21 = function (json, ignoreUnknown, $super) {
|
|
185
185
|
ignoreUnknown = ignoreUnknown === VOID ? false : ignoreUnknown;
|
|
186
|
-
return $super === VOID ? this.
|
|
186
|
+
return $super === VOID ? this.s21(json, ignoreUnknown) : $super.s21.call(this, json, ignoreUnknown);
|
|
187
187
|
};
|
|
188
188
|
var Companion_instance;
|
|
189
189
|
function Companion_getInstance_0() {
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
}
|
|
194
194
|
function parseEndpoints($this) {
|
|
195
195
|
// Inline function 'kotlin.collections.flatMap' call
|
|
196
|
-
var tmp0_flatMap = $this.
|
|
196
|
+
var tmp0_flatMap = $this.t21_1.a17_1;
|
|
197
197
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
198
198
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
199
199
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
var element = tmp0_iterator.e();
|
|
203
203
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>' call
|
|
204
204
|
// Inline function 'kotlin.collections.component1' call
|
|
205
|
-
var path = element.x().
|
|
205
|
+
var path = element.x().l17_1;
|
|
206
206
|
// Inline function 'kotlin.collections.component2' call
|
|
207
207
|
var pathItem = element.y();
|
|
208
208
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
while (tmp0_iterator_1.d()) {
|
|
231
231
|
var element_1 = tmp0_iterator_1.e();
|
|
232
232
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
233
|
-
if (element_1.
|
|
233
|
+
if (element_1.v18_1.equals(ParameterLocation_QUERY_getInstance())) {
|
|
234
234
|
tmp0_filterTo.a(element_1);
|
|
235
235
|
}
|
|
236
236
|
}
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
while (tmp0_iterator_3.d()) {
|
|
254
254
|
var element_2 = tmp0_iterator_3.e();
|
|
255
255
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
256
|
-
if (element_2.
|
|
256
|
+
if (element_2.v18_1.equals(ParameterLocation_HEADER_getInstance())) {
|
|
257
257
|
tmp0_filterTo_0.a(element_2);
|
|
258
258
|
}
|
|
259
259
|
}
|
|
@@ -277,7 +277,7 @@
|
|
|
277
277
|
while (tmp0_iterator_5.d()) {
|
|
278
278
|
var element_3 = tmp0_iterator_5.e();
|
|
279
279
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
280
|
-
if (element_3.
|
|
280
|
+
if (element_3.v18_1.equals(ParameterLocation_BODY_getInstance())) {
|
|
281
281
|
tmp0_filterTo_1.a(element_3);
|
|
282
282
|
}
|
|
283
283
|
}
|
|
@@ -288,8 +288,8 @@
|
|
|
288
288
|
var element_4 = tmp0_iterator_6.e();
|
|
289
289
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
290
290
|
// Inline function 'kotlin.collections.map' call
|
|
291
|
-
var tmp0_elvis_lhs_0 = $this.
|
|
292
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.
|
|
291
|
+
var tmp0_elvis_lhs_0 = $this.t21_1.y16_1;
|
|
292
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.j18_1 : tmp0_elvis_lhs_0;
|
|
293
293
|
var tmp0_map = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
|
|
294
294
|
// Inline function 'kotlin.collections.mapTo' call
|
|
295
295
|
var tmp0_mapTo_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
@@ -298,13 +298,13 @@
|
|
|
298
298
|
var item_1 = tmp0_iterator_7.e();
|
|
299
299
|
var tmp$ret$21;
|
|
300
300
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
301
|
-
var schema = element_4.
|
|
301
|
+
var schema = element_4.y18_1;
|
|
302
302
|
var tmp;
|
|
303
303
|
if (schema instanceof ReferenceObject) {
|
|
304
304
|
tmp = toReference(schema, $this);
|
|
305
305
|
} else {
|
|
306
306
|
if (schema instanceof SchemaObject) {
|
|
307
|
-
tmp = toReference_0(schema, $this, Common_getInstance().
|
|
307
|
+
tmp = toReference_0(schema, $this, Common_getInstance().r21([name, 'RequestBody']));
|
|
308
308
|
} else {
|
|
309
309
|
if (schema == null) {
|
|
310
310
|
throw new NotImplementedError();
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
var tmp_0 = tmp;
|
|
317
|
-
var tmp0_elvis_lhs_1 = element_4.
|
|
317
|
+
var tmp0_elvis_lhs_1 = element_4.x18_1;
|
|
318
318
|
tmp$ret$21 = new Request(new Content(item_1, tmp_0, tmp0_elvis_lhs_1 == null ? false : tmp0_elvis_lhs_1));
|
|
319
319
|
tmp0_mapTo_1.a(tmp$ret$21);
|
|
320
320
|
}
|
|
@@ -329,9 +329,10 @@
|
|
|
329
329
|
tmp_1 = tmp0_flatMapTo_1;
|
|
330
330
|
}
|
|
331
331
|
var requests = tmp_1;
|
|
332
|
+
// Inline function 'kotlin.collections.distinctBy' call
|
|
332
333
|
// Inline function 'kotlin.collections.flatMap' call
|
|
333
334
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
334
|
-
var tmp0_elvis_lhs_2 = operation.
|
|
335
|
+
var tmp0_elvis_lhs_2 = operation.m18_1;
|
|
335
336
|
var tmp5_flatMap = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
336
337
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
337
338
|
var tmp0_flatMapTo_2 = ArrayList_init_$Create$();
|
|
@@ -341,12 +342,12 @@
|
|
|
341
342
|
var element_5 = tmp0_iterator_8.e();
|
|
342
343
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
343
344
|
// Inline function 'kotlin.collections.component1' call
|
|
344
|
-
var status = element_5.x().
|
|
345
|
+
var status = element_5.x().e1b_1;
|
|
345
346
|
// Inline function 'kotlin.collections.component2' call
|
|
346
347
|
var res = element_5.y();
|
|
347
348
|
// Inline function 'kotlin.collections.map' call
|
|
348
|
-
var tmp0_elvis_lhs_3 = $this.
|
|
349
|
-
var tmp1_elvis_lhs_0 = tmp0_elvis_lhs_3 == null ? operation.
|
|
349
|
+
var tmp0_elvis_lhs_3 = $this.t21_1.z16_1;
|
|
350
|
+
var tmp1_elvis_lhs_0 = tmp0_elvis_lhs_3 == null ? operation.k18_1 : tmp0_elvis_lhs_3;
|
|
350
351
|
var tmp0_map_0 = tmp1_elvis_lhs_0 == null ? listOf('application/json') : tmp1_elvis_lhs_0;
|
|
351
352
|
// Inline function 'kotlin.collections.mapTo' call
|
|
352
353
|
var tmp0_mapTo_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map_0, 10));
|
|
@@ -357,7 +358,7 @@
|
|
|
357
358
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
358
359
|
var tmp_2 = _StatusCode___get_value__impl__we50mu(status);
|
|
359
360
|
var tmp_3 = emptyList();
|
|
360
|
-
var tmp0_safe_receiver = resolve_1(res, $this).
|
|
361
|
+
var tmp0_safe_receiver = resolve_1(res, $this).i1b_1;
|
|
361
362
|
var tmp_4;
|
|
362
363
|
if (tmp0_safe_receiver == null) {
|
|
363
364
|
tmp_4 = null;
|
|
@@ -370,7 +371,7 @@
|
|
|
370
371
|
tmp_5 = toReference(tmp0_safe_receiver, $this);
|
|
371
372
|
} else {
|
|
372
373
|
if (tmp0_safe_receiver instanceof SchemaObject) {
|
|
373
|
-
tmp_5 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().
|
|
374
|
+
tmp_5 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().r21([name, _StatusCode___get_value__impl__we50mu(status), item_2, 'ResponseBody']));
|
|
374
375
|
} else {
|
|
375
376
|
noWhenBranchMatchedException();
|
|
376
377
|
}
|
|
@@ -383,30 +384,41 @@
|
|
|
383
384
|
var list_0 = tmp0_mapTo_2;
|
|
384
385
|
addAll(tmp0_flatMapTo_2, list_0);
|
|
385
386
|
}
|
|
386
|
-
var
|
|
387
|
-
var list_1 =
|
|
388
|
-
|
|
387
|
+
var set = HashSet_init_$Create$();
|
|
388
|
+
var list_1 = ArrayList_init_$Create$();
|
|
389
|
+
var tmp0_iterator_10 = tmp0_flatMapTo_2.c();
|
|
390
|
+
while (tmp0_iterator_10.d()) {
|
|
391
|
+
var e = tmp0_iterator_10.e();
|
|
392
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
393
|
+
var key = to(e.w1y_1, e.y1y_1);
|
|
394
|
+
if (set.a(key)) {
|
|
395
|
+
list_1.a(e);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
var responses = list_1;
|
|
399
|
+
var list_2 = listOf(new Endpoint(name, method, segments, query, headers, emptyList(), requests, responses));
|
|
400
|
+
addAll(tmp0_flatMapTo_0, list_2);
|
|
389
401
|
}
|
|
390
|
-
var
|
|
391
|
-
addAll(tmp0_flatMapTo,
|
|
402
|
+
var list_3 = tmp0_flatMapTo_0;
|
|
403
|
+
addAll(tmp0_flatMapTo, list_3);
|
|
392
404
|
}
|
|
393
405
|
return tmp0_flatMapTo;
|
|
394
406
|
}
|
|
395
407
|
function parseParameters($this) {
|
|
396
|
-
return flatMapRequests($this.
|
|
408
|
+
return flatMapRequests($this.t21_1, $this, OpenApiParser$parseParameters$lambda($this));
|
|
397
409
|
}
|
|
398
410
|
function parseRequestBody($this) {
|
|
399
|
-
return flatMapRequests($this.
|
|
411
|
+
return flatMapRequests($this.t21_1, $this, OpenApiParser$parseRequestBody$lambda($this));
|
|
400
412
|
}
|
|
401
413
|
function parseResponseBody($this) {
|
|
402
|
-
return flatMapResponses($this.
|
|
414
|
+
return flatMapResponses($this.t21_1, $this, OpenApiParser$parseResponseBody$lambda($this));
|
|
403
415
|
}
|
|
404
416
|
function parseDefinitions($this) {
|
|
405
417
|
// Inline function 'kotlin.collections.flatMap' call
|
|
406
418
|
// Inline function 'kotlin.collections.filter' call
|
|
407
419
|
// Inline function 'arrow.core.filterIsInstance' call
|
|
408
420
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
409
|
-
var tmp0_elvis_lhs = $this.
|
|
421
|
+
var tmp0_elvis_lhs = $this.t21_1.b17_1;
|
|
410
422
|
var tmp1_filterIsInstance = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
411
423
|
// Inline function 'kotlin.collections.filterValues' call
|
|
412
424
|
var result = LinkedHashMap_init_$Create$();
|
|
@@ -428,7 +440,7 @@
|
|
|
428
440
|
while (tmp0_iterator_0.d()) {
|
|
429
441
|
var element = tmp0_iterator_0.e();
|
|
430
442
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
431
|
-
if (element.y().
|
|
443
|
+
if (element.y().a1b_1 == null) {
|
|
432
444
|
tmp0_filterTo.n3(element.x(), element.y());
|
|
433
445
|
}
|
|
434
446
|
}
|
|
@@ -439,7 +451,7 @@
|
|
|
439
451
|
while (tmp0_iterator_1.d()) {
|
|
440
452
|
var element_0 = tmp0_iterator_1.e();
|
|
441
453
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
442
|
-
var list = flatten(element_0.y(), $this, Common_getInstance().
|
|
454
|
+
var list = flatten(element_0.y(), $this, Common_getInstance().r21([element_0.x()]));
|
|
443
455
|
addAll(tmp0_flatMapTo, list);
|
|
444
456
|
}
|
|
445
457
|
return tmp0_flatMapTo;
|
|
@@ -447,7 +459,7 @@
|
|
|
447
459
|
function resolveParameters(_this__u8e3s4, $this) {
|
|
448
460
|
// Inline function 'kotlin.collections.map' call
|
|
449
461
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
450
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
462
|
+
var tmp0_elvis_lhs = _this__u8e3s4.l18_1;
|
|
451
463
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
452
464
|
// Inline function 'kotlin.collections.mapTo' call
|
|
453
465
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -474,7 +486,7 @@
|
|
|
474
486
|
function resolveParameters_0(_this__u8e3s4, $this) {
|
|
475
487
|
// Inline function 'kotlin.collections.map' call
|
|
476
488
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
477
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
489
|
+
var tmp0_elvis_lhs = _this__u8e3s4.a18_1;
|
|
478
490
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
479
491
|
// Inline function 'kotlin.collections.mapTo' call
|
|
480
492
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -499,11 +511,11 @@
|
|
|
499
511
|
return tmp0_mapTo;
|
|
500
512
|
}
|
|
501
513
|
function resolveParameterObject(_this__u8e3s4, $this) {
|
|
502
|
-
var tmp0_safe_receiver = $this.
|
|
514
|
+
var tmp0_safe_receiver = $this.t21_1.c17_1;
|
|
503
515
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q2(getReference(_this__u8e3s4, $this));
|
|
504
516
|
var tmp;
|
|
505
517
|
if (tmp1_elvis_lhs == null) {
|
|
506
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
518
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.u19_1);
|
|
507
519
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
508
520
|
} else {
|
|
509
521
|
tmp = tmp1_elvis_lhs;
|
|
@@ -511,11 +523,11 @@
|
|
|
511
523
|
return tmp;
|
|
512
524
|
}
|
|
513
525
|
function resolveResponseObject(_this__u8e3s4, $this) {
|
|
514
|
-
var tmp0_safe_receiver = $this.
|
|
526
|
+
var tmp0_safe_receiver = $this.t21_1.d17_1;
|
|
515
527
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q2(getReference(_this__u8e3s4, $this));
|
|
516
528
|
var tmp;
|
|
517
529
|
if (tmp1_elvis_lhs == null) {
|
|
518
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
530
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.u19_1);
|
|
519
531
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
520
532
|
} else {
|
|
521
533
|
tmp = tmp1_elvis_lhs;
|
|
@@ -523,11 +535,11 @@
|
|
|
523
535
|
return tmp;
|
|
524
536
|
}
|
|
525
537
|
function resolveSchemaObject(_this__u8e3s4, $this) {
|
|
526
|
-
var tmp0_safe_receiver = $this.
|
|
538
|
+
var tmp0_safe_receiver = $this.t21_1.b17_1;
|
|
527
539
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q2(getReference(_this__u8e3s4, $this));
|
|
528
540
|
var tmp;
|
|
529
541
|
if (tmp1_elvis_lhs == null) {
|
|
530
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
542
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.u19_1);
|
|
531
543
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
532
544
|
} else {
|
|
533
545
|
tmp = tmp1_elvis_lhs;
|
|
@@ -592,12 +604,12 @@
|
|
|
592
604
|
}
|
|
593
605
|
function flatten(_this__u8e3s4, $this, name) {
|
|
594
606
|
var tmp;
|
|
595
|
-
if (!(_this__u8e3s4.
|
|
607
|
+
if (!(_this__u8e3s4.a1b_1 == null)) {
|
|
596
608
|
var tmp_0;
|
|
597
|
-
if (_this__u8e3s4.
|
|
609
|
+
if (_this__u8e3s4.a1b_1 instanceof BooleanObject) {
|
|
598
610
|
tmp_0 = emptyList();
|
|
599
611
|
} else {
|
|
600
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
612
|
+
var tmp1_safe_receiver = _this__u8e3s4.a1b_1;
|
|
601
613
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_0(tmp1_safe_receiver, $this);
|
|
602
614
|
var tmp_1;
|
|
603
615
|
if (tmp2_safe_receiver == null) {
|
|
@@ -607,7 +619,7 @@
|
|
|
607
619
|
// Inline function 'kotlin.contracts.contract' call
|
|
608
620
|
var tmp_2;
|
|
609
621
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
610
|
-
if (!(tmp2_safe_receiver.
|
|
622
|
+
if (!(tmp2_safe_receiver.z1a_1 == null)) {
|
|
611
623
|
tmp_2 = tmp2_safe_receiver;
|
|
612
624
|
} else {
|
|
613
625
|
tmp_2 = null;
|
|
@@ -619,11 +631,11 @@
|
|
|
619
631
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
620
632
|
}
|
|
621
633
|
tmp = tmp_0;
|
|
622
|
-
} else if (!(_this__u8e3s4.
|
|
634
|
+
} else if (!(_this__u8e3s4.y1a_1 == null)) {
|
|
623
635
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
624
636
|
// Inline function 'kotlin.collections.flatMap' call
|
|
625
637
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
626
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
638
|
+
var tmp0_elvis_lhs = _this__u8e3s4.y1a_1;
|
|
627
639
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
628
640
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
629
641
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -650,14 +662,14 @@
|
|
|
650
662
|
while (tmp0_iterator_0.d()) {
|
|
651
663
|
var e = tmp0_iterator_0.e();
|
|
652
664
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
653
|
-
var key = e.
|
|
665
|
+
var key = e.d1x_1;
|
|
654
666
|
if (set.a(key)) {
|
|
655
667
|
list_0.a(e);
|
|
656
668
|
}
|
|
657
669
|
}
|
|
658
670
|
var tmp_4 = listOf(new Type(name, new Shape(list_0)));
|
|
659
671
|
// Inline function 'kotlin.collections.flatMap' call
|
|
660
|
-
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.
|
|
672
|
+
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.y1a_1);
|
|
661
673
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
662
674
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
663
675
|
var tmp0_iterator_1 = tmp3_flatMap.c();
|
|
@@ -671,7 +683,7 @@
|
|
|
671
683
|
if (element_0 instanceof SchemaObject) {
|
|
672
684
|
// Inline function 'kotlin.collections.flatMap' call
|
|
673
685
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
674
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
686
|
+
var tmp0_elvis_lhs_0 = element_0.z1a_1;
|
|
675
687
|
var tmp1_flatMap_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
676
688
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
677
689
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
@@ -689,7 +701,7 @@
|
|
|
689
701
|
tmp_6 = emptyList();
|
|
690
702
|
} else {
|
|
691
703
|
if (value instanceof SchemaObject) {
|
|
692
|
-
tmp_6 = flatten(value, $this, Common_getInstance().
|
|
704
|
+
tmp_6 = flatten(value, $this, Common_getInstance().r21([name, key_0]));
|
|
693
705
|
} else {
|
|
694
706
|
noWhenBranchMatchedException();
|
|
695
707
|
}
|
|
@@ -706,10 +718,10 @@
|
|
|
706
718
|
addAll(tmp0_flatMapTo_0, list_2);
|
|
707
719
|
}
|
|
708
720
|
tmp = plus(tmp_4, tmp0_flatMapTo_0);
|
|
709
|
-
} else if (!(_this__u8e3s4.
|
|
721
|
+
} else if (!(_this__u8e3s4.v1a_1 == null)) {
|
|
710
722
|
// Inline function 'kotlin.let' call
|
|
711
723
|
// Inline function 'kotlin.collections.map' call
|
|
712
|
-
var tmp4_map = ensureNotNull(_this__u8e3s4.
|
|
724
|
+
var tmp4_map = ensureNotNull(_this__u8e3s4.v1a_1);
|
|
713
725
|
// Inline function 'kotlin.collections.mapTo' call
|
|
714
726
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp4_map, 10));
|
|
715
727
|
var tmp0_iterator_3 = tmp4_map.c();
|
|
@@ -717,7 +729,7 @@
|
|
|
717
729
|
var item = tmp0_iterator_3.e();
|
|
718
730
|
var tmp$ret$18;
|
|
719
731
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
720
|
-
tmp$ret$18 = item.
|
|
732
|
+
tmp$ret$18 = item.uz();
|
|
721
733
|
tmp0_mapTo.a(tmp$ret$18);
|
|
722
734
|
}
|
|
723
735
|
var tmp5_let = toSet(tmp0_mapTo);
|
|
@@ -725,7 +737,7 @@
|
|
|
725
737
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
726
738
|
tmp = listOf(new Enum(name, tmp5_let));
|
|
727
739
|
} else {
|
|
728
|
-
var tmp5_subject = _this__u8e3s4.
|
|
740
|
+
var tmp5_subject = _this__u8e3s4.w1a_1;
|
|
729
741
|
var tmp_7;
|
|
730
742
|
switch (tmp5_subject == null ? -1 : tmp5_subject.p5_1) {
|
|
731
743
|
case -1:
|
|
@@ -734,7 +746,7 @@
|
|
|
734
746
|
|
|
735
747
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
736
748
|
|
|
737
|
-
var tmp0_elvis_lhs_1 = _this__u8e3s4.
|
|
749
|
+
var tmp0_elvis_lhs_1 = _this__u8e3s4.z1a_1;
|
|
738
750
|
var tmp7_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
739
751
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
740
752
|
|
|
@@ -749,7 +761,7 @@
|
|
|
749
761
|
var key_1 = element_2.x();
|
|
750
762
|
// Inline function 'kotlin.collections.component2' call
|
|
751
763
|
var value_0 = element_2.y();
|
|
752
|
-
var list_3 = flatten_0(value_0, $this, Common_getInstance().
|
|
764
|
+
var list_3 = flatten_0(value_0, $this, Common_getInstance().r21([name, key_1]));
|
|
753
765
|
addAll(tmp0_flatMapTo_2, list_3);
|
|
754
766
|
}
|
|
755
767
|
|
|
@@ -758,13 +770,13 @@
|
|
|
758
770
|
tmp_7 = plus(schema, fields);
|
|
759
771
|
break;
|
|
760
772
|
case 4:
|
|
761
|
-
var it = _this__u8e3s4.
|
|
773
|
+
var it = _this__u8e3s4.x1a_1;
|
|
762
774
|
var tmp_8;
|
|
763
775
|
if (it instanceof ReferenceObject) {
|
|
764
776
|
tmp_8 = emptyList();
|
|
765
777
|
} else {
|
|
766
778
|
if (it instanceof SchemaObject) {
|
|
767
|
-
tmp_8 = flatten(it, $this, Common_getInstance().
|
|
779
|
+
tmp_8 = flatten(it, $this, Common_getInstance().r21([name, 'Array']));
|
|
768
780
|
} else {
|
|
769
781
|
if (it == null) {
|
|
770
782
|
tmp_8 = emptyList();
|
|
@@ -804,8 +816,8 @@
|
|
|
804
816
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
|
|
805
817
|
var schema = resolve(tmp0_let, $this);
|
|
806
818
|
var tmp;
|
|
807
|
-
if (!(schema.
|
|
808
|
-
var additionalProperties = ensureNotNull(schema.
|
|
819
|
+
if (!(schema.a1b_1 == null)) {
|
|
820
|
+
var additionalProperties = ensureNotNull(schema.a1b_1);
|
|
809
821
|
var tmp_0;
|
|
810
822
|
if (additionalProperties instanceof BooleanObject) {
|
|
811
823
|
tmp_0 = new Any(false, true);
|
|
@@ -821,24 +833,24 @@
|
|
|
821
833
|
}
|
|
822
834
|
}
|
|
823
835
|
tmp = tmp_0;
|
|
824
|
-
} else if (!(schema.
|
|
825
|
-
tmp = new Custom(Common_getInstance().
|
|
826
|
-
} else if (isPrimitive(schema.
|
|
827
|
-
tmp = new Primitive(toPrimitive(ensureNotNull(schema.
|
|
836
|
+
} else if (!(schema.v1a_1 == null)) {
|
|
837
|
+
tmp = new Custom(Common_getInstance().r21([getReference(_this__u8e3s4, $this)]), false, false);
|
|
838
|
+
} else if (isPrimitive(schema.w1a_1)) {
|
|
839
|
+
tmp = new Primitive(toPrimitive(ensureNotNull(schema.w1a_1), $this), false, false);
|
|
828
840
|
} else {
|
|
829
|
-
var tmp0_subject = schema.
|
|
841
|
+
var tmp0_subject = schema.w1a_1;
|
|
830
842
|
var tmp_1;
|
|
831
843
|
if ((tmp0_subject == null ? -1 : tmp0_subject.p5_1) === 4) {
|
|
832
|
-
var items = schema.
|
|
844
|
+
var items = schema.x1a_1;
|
|
833
845
|
var tmp_2;
|
|
834
846
|
if (items instanceof ReferenceObject) {
|
|
835
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
847
|
+
tmp_2 = new Custom(Common_getInstance().r21([getReference(items, $this)]), true);
|
|
836
848
|
} else {
|
|
837
849
|
if (items instanceof SchemaObject) {
|
|
838
|
-
tmp_2 = toIterable(toReference_0(items, $this, Common_getInstance().
|
|
850
|
+
tmp_2 = toIterable(toReference_0(items, $this, Common_getInstance().r21([getReference(_this__u8e3s4, $this), 'Array'])));
|
|
839
851
|
} else {
|
|
840
852
|
if (items == null) {
|
|
841
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.
|
|
853
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.u19_1);
|
|
842
854
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
843
855
|
} else {
|
|
844
856
|
noWhenBranchMatchedException();
|
|
@@ -849,10 +861,10 @@
|
|
|
849
861
|
} else {
|
|
850
862
|
var tmp_3;
|
|
851
863
|
if (tmp0_let instanceof SchemaObject) {
|
|
852
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
864
|
+
tmp_3 = new Custom(Common_getInstance().r21([getReference(_this__u8e3s4, $this)]), false);
|
|
853
865
|
} else {
|
|
854
866
|
if (tmp0_let instanceof ReferenceObject) {
|
|
855
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
867
|
+
tmp_3 = new Custom(Common_getInstance().r21([getReference(tmp0_let, $this)]), false);
|
|
856
868
|
} else {
|
|
857
869
|
noWhenBranchMatchedException();
|
|
858
870
|
}
|
|
@@ -865,8 +877,8 @@
|
|
|
865
877
|
}
|
|
866
878
|
function toReference_0(_this__u8e3s4, $this, name) {
|
|
867
879
|
var tmp;
|
|
868
|
-
if (!(_this__u8e3s4.
|
|
869
|
-
var additionalProperties = ensureNotNull(_this__u8e3s4.
|
|
880
|
+
if (!(_this__u8e3s4.a1b_1 == null)) {
|
|
881
|
+
var additionalProperties = ensureNotNull(_this__u8e3s4.a1b_1);
|
|
870
882
|
var tmp_0;
|
|
871
883
|
if (additionalProperties instanceof BooleanObject) {
|
|
872
884
|
tmp_0 = new Any(false, true);
|
|
@@ -879,7 +891,7 @@
|
|
|
879
891
|
// Inline function 'kotlin.contracts.contract' call
|
|
880
892
|
var tmp_1;
|
|
881
893
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
|
|
882
|
-
if (isPrimitive(additionalProperties.
|
|
894
|
+
if (isPrimitive(additionalProperties.w1a_1) ? true : !(additionalProperties.z1a_1 == null)) {
|
|
883
895
|
tmp_1 = additionalProperties;
|
|
884
896
|
} else {
|
|
885
897
|
tmp_1 = null;
|
|
@@ -902,32 +914,32 @@
|
|
|
902
914
|
}
|
|
903
915
|
}
|
|
904
916
|
tmp = tmp_0;
|
|
905
|
-
} else if (!(_this__u8e3s4.
|
|
906
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
917
|
+
} else if (!(_this__u8e3s4.v1a_1 == null)) {
|
|
918
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.a1b_1 == null));
|
|
907
919
|
} else {
|
|
908
|
-
var type = _this__u8e3s4.
|
|
920
|
+
var type = _this__u8e3s4.w1a_1;
|
|
909
921
|
var tmp_3;
|
|
910
922
|
switch (type == null ? -1 : type.p5_1) {
|
|
911
923
|
case 0:
|
|
912
924
|
case 2:
|
|
913
925
|
case 1:
|
|
914
926
|
case 3:
|
|
915
|
-
tmp_3 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.
|
|
927
|
+
tmp_3 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.a1b_1 == null));
|
|
916
928
|
break;
|
|
917
929
|
case -1:
|
|
918
930
|
case 5:
|
|
919
931
|
var tmp_4;
|
|
920
|
-
var tmp_5 = _this__u8e3s4.
|
|
932
|
+
var tmp_5 = _this__u8e3s4.a1b_1;
|
|
921
933
|
if (tmp_5 instanceof BooleanObject) {
|
|
922
|
-
tmp_4 = new Any(false, !(_this__u8e3s4.
|
|
934
|
+
tmp_4 = new Any(false, !(_this__u8e3s4.a1b_1 == null));
|
|
923
935
|
} else {
|
|
924
|
-
tmp_4 = new Custom(name, false, !(_this__u8e3s4.
|
|
936
|
+
tmp_4 = new Custom(name, false, !(_this__u8e3s4.a1b_1 == null));
|
|
925
937
|
}
|
|
926
938
|
|
|
927
939
|
tmp_3 = tmp_4;
|
|
928
940
|
break;
|
|
929
941
|
case 4:
|
|
930
|
-
var it = _this__u8e3s4.
|
|
942
|
+
var it = _this__u8e3s4.x1a_1;
|
|
931
943
|
var tmp_6;
|
|
932
944
|
if (it instanceof ReferenceObject) {
|
|
933
945
|
tmp_6 = toIterable(toReference(it, $this));
|
|
@@ -969,28 +981,28 @@
|
|
|
969
981
|
var tmp;
|
|
970
982
|
switch (element.p5_1) {
|
|
971
983
|
case 0:
|
|
972
|
-
tmp = _this__u8e3s4.
|
|
984
|
+
tmp = _this__u8e3s4.r17_1;
|
|
973
985
|
break;
|
|
974
986
|
case 1:
|
|
975
|
-
tmp = _this__u8e3s4.
|
|
987
|
+
tmp = _this__u8e3s4.t17_1;
|
|
976
988
|
break;
|
|
977
989
|
case 2:
|
|
978
|
-
tmp = _this__u8e3s4.
|
|
990
|
+
tmp = _this__u8e3s4.s17_1;
|
|
979
991
|
break;
|
|
980
992
|
case 3:
|
|
981
|
-
tmp = _this__u8e3s4.
|
|
993
|
+
tmp = _this__u8e3s4.u17_1;
|
|
982
994
|
break;
|
|
983
995
|
case 4:
|
|
984
|
-
tmp = _this__u8e3s4.
|
|
996
|
+
tmp = _this__u8e3s4.v17_1;
|
|
985
997
|
break;
|
|
986
998
|
case 5:
|
|
987
|
-
tmp = _this__u8e3s4.
|
|
999
|
+
tmp = _this__u8e3s4.w17_1;
|
|
988
1000
|
break;
|
|
989
1001
|
case 6:
|
|
990
|
-
tmp = _this__u8e3s4.
|
|
1002
|
+
tmp = _this__u8e3s4.x17_1;
|
|
991
1003
|
break;
|
|
992
1004
|
case 7:
|
|
993
|
-
tmp = _this__u8e3s4.
|
|
1005
|
+
tmp = _this__u8e3s4.y17_1;
|
|
994
1006
|
break;
|
|
995
1007
|
default:
|
|
996
1008
|
noWhenBranchMatchedException();
|
|
@@ -1002,7 +1014,7 @@
|
|
|
1002
1014
|
return filterNotNullValues(result);
|
|
1003
1015
|
}
|
|
1004
1016
|
function getReference(_this__u8e3s4, $this) {
|
|
1005
|
-
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
1017
|
+
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.u19_1), ['/']).k(2);
|
|
1006
1018
|
}
|
|
1007
1019
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
1008
1020
|
var tmp;
|
|
@@ -1027,7 +1039,7 @@
|
|
|
1027
1039
|
function toField(_this__u8e3s4, $this, name) {
|
|
1028
1040
|
// Inline function 'kotlin.collections.map' call
|
|
1029
1041
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1030
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1042
|
+
var tmp0_elvis_lhs = _this__u8e3s4.z1a_1;
|
|
1031
1043
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1032
1044
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1033
1045
|
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.f());
|
|
@@ -1044,15 +1056,15 @@
|
|
|
1044
1056
|
var tmp;
|
|
1045
1057
|
if (value instanceof SchemaObject) {
|
|
1046
1058
|
var tmp_0 = new Identifier(key);
|
|
1047
|
-
var tmp_1 = !(value.
|
|
1048
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
1059
|
+
var tmp_1 = !(value.v1a_1 == null) ? toReference_0(value, $this, Common_getInstance().r21([name, key])) : equals(value.w1a_1, Type_ARRAY_getInstance()) ? toReference_0(value, $this, Common_getInstance().r21([name, key, 'Array'])) : toReference_0(value, $this, Common_getInstance().r21([name, key]));
|
|
1060
|
+
var tmp1_safe_receiver = _this__u8e3s4.u1a_1;
|
|
1049
1061
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t(key);
|
|
1050
1062
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
1051
1063
|
} else {
|
|
1052
1064
|
if (value instanceof ReferenceObject) {
|
|
1053
1065
|
var tmp_2 = new Identifier(key);
|
|
1054
1066
|
var tmp_3 = toReference(value, $this);
|
|
1055
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
1067
|
+
var tmp3_safe_receiver = _this__u8e3s4.u1a_1;
|
|
1056
1068
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.t(key);
|
|
1057
1069
|
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
1058
1070
|
} else {
|
|
@@ -1071,10 +1083,10 @@
|
|
|
1071
1083
|
// Inline function 'kotlin.contracts.contract' call
|
|
1072
1084
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1073
1085
|
var tmp;
|
|
1074
|
-
if (!(_this__u8e3s4.
|
|
1075
|
-
tmp = new Custom(Common_getInstance().
|
|
1086
|
+
if (!(_this__u8e3s4.p19_1 == null)) {
|
|
1087
|
+
tmp = new Custom(Common_getInstance().r21([name, 'Parameter', tmp0_let.u18_1]), false);
|
|
1076
1088
|
} else {
|
|
1077
|
-
var type = tmp0_let.
|
|
1089
|
+
var type = tmp0_let.z18_1;
|
|
1078
1090
|
var tmp_0;
|
|
1079
1091
|
switch (type == null ? -1 : type.p5_1) {
|
|
1080
1092
|
case 0:
|
|
@@ -1091,9 +1103,9 @@
|
|
|
1091
1103
|
tmp_0 = new Primitive(tmp0_let_0, false);
|
|
1092
1104
|
break;
|
|
1093
1105
|
case 4:
|
|
1094
|
-
var tmp0_safe_receiver = tmp0_let.
|
|
1106
|
+
var tmp0_safe_receiver = tmp0_let.a19_1;
|
|
1095
1107
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve(tmp0_safe_receiver, $this);
|
|
1096
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1108
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.w1a_1;
|
|
1097
1109
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toPrimitive(tmp2_safe_receiver, $this);
|
|
1098
1110
|
var tmp_1;
|
|
1099
1111
|
if (tmp3_safe_receiver == null) {
|
|
@@ -1130,8 +1142,8 @@
|
|
|
1130
1142
|
var tmp1_let = tmp;
|
|
1131
1143
|
// Inline function 'kotlin.contracts.contract' call
|
|
1132
1144
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1133
|
-
var tmp_3 = new Identifier(_this__u8e3s4.
|
|
1134
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1145
|
+
var tmp_3 = new Identifier(_this__u8e3s4.u18_1);
|
|
1146
|
+
var tmp0_elvis_lhs = _this__u8e3s4.x18_1;
|
|
1135
1147
|
return new Field(tmp_3, tmp1_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
1136
1148
|
}
|
|
1137
1149
|
function toSegments(_this__u8e3s4, $this, parameters) {
|
|
@@ -1172,7 +1184,7 @@
|
|
|
1172
1184
|
while (tmp0_iterator_0.d()) {
|
|
1173
1185
|
var element = tmp0_iterator_0.e();
|
|
1174
1186
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1175
|
-
if (element.
|
|
1187
|
+
if (element.u18_1 === param) {
|
|
1176
1188
|
tmp$ret$4 = element;
|
|
1177
1189
|
break $l$block;
|
|
1178
1190
|
}
|
|
@@ -1187,7 +1199,7 @@
|
|
|
1187
1199
|
// Inline function 'kotlin.let' call
|
|
1188
1200
|
// Inline function 'kotlin.contracts.contract' call
|
|
1189
1201
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1190
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver.
|
|
1202
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver.z18_1;
|
|
1191
1203
|
tmp_2 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, $this);
|
|
1192
1204
|
}
|
|
1193
1205
|
var tmp1_safe_receiver = tmp_2;
|
|
@@ -1221,7 +1233,7 @@
|
|
|
1221
1233
|
return charSequenceGet(_this__u8e3s4, 0) === _Char___init__impl__6a9atx(123) ? charSequenceGet(_this__u8e3s4, _this__u8e3s4.length - 1 | 0) === _Char___init__impl__6a9atx(125) : false;
|
|
1222
1234
|
}
|
|
1223
1235
|
function toName(_this__u8e3s4, $this) {
|
|
1224
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1236
|
+
var tmp0_safe_receiver = _this__u8e3s4.i18_1;
|
|
1225
1237
|
var tmp;
|
|
1226
1238
|
if (tmp0_safe_receiver == null) {
|
|
1227
1239
|
tmp = null;
|
|
@@ -1229,7 +1241,7 @@
|
|
|
1229
1241
|
// Inline function 'kotlin.let' call
|
|
1230
1242
|
// Inline function 'kotlin.contracts.contract' call
|
|
1231
1243
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
1232
|
-
tmp = Common_getInstance().
|
|
1244
|
+
tmp = Common_getInstance().r21([tmp0_safe_receiver]);
|
|
1233
1245
|
}
|
|
1234
1246
|
return tmp;
|
|
1235
1247
|
}
|
|
@@ -1251,21 +1263,21 @@
|
|
|
1251
1263
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda($this));
|
|
1252
1264
|
}
|
|
1253
1265
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
1254
|
-
this.
|
|
1255
|
-
this.
|
|
1256
|
-
this.
|
|
1257
|
-
this.
|
|
1258
|
-
this.
|
|
1266
|
+
this.w21_1 = path;
|
|
1267
|
+
this.x21_1 = pathItem;
|
|
1268
|
+
this.y21_1 = method;
|
|
1269
|
+
this.z21_1 = operation;
|
|
1270
|
+
this.a22_1 = type;
|
|
1259
1271
|
}
|
|
1260
1272
|
protoOf(FlattenRequest).toString = function () {
|
|
1261
|
-
return 'FlattenRequest(path=' + new Path(this.
|
|
1273
|
+
return 'FlattenRequest(path=' + new Path(this.w21_1) + ', pathItem=' + this.x21_1 + ', method=' + this.y21_1 + ', operation=' + this.z21_1 + ', type=' + this.a22_1 + ')';
|
|
1262
1274
|
};
|
|
1263
1275
|
protoOf(FlattenRequest).hashCode = function () {
|
|
1264
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1265
|
-
result = imul(result, 31) + this.
|
|
1266
|
-
result = imul(result, 31) + this.
|
|
1267
|
-
result = imul(result, 31) + this.
|
|
1268
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1276
|
+
var result = Path__hashCode_impl_go73kd(this.w21_1);
|
|
1277
|
+
result = imul(result, 31) + this.x21_1.hashCode() | 0;
|
|
1278
|
+
result = imul(result, 31) + this.y21_1.hashCode() | 0;
|
|
1279
|
+
result = imul(result, 31) + this.z21_1.hashCode() | 0;
|
|
1280
|
+
result = imul(result, 31) + getStringHashCode(this.a22_1) | 0;
|
|
1269
1281
|
return result;
|
|
1270
1282
|
};
|
|
1271
1283
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -1274,22 +1286,22 @@
|
|
|
1274
1286
|
if (!(other instanceof FlattenRequest))
|
|
1275
1287
|
return false;
|
|
1276
1288
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
1277
|
-
if (!(this.
|
|
1289
|
+
if (!(this.w21_1 === tmp0_other_with_cast.w21_1))
|
|
1278
1290
|
return false;
|
|
1279
|
-
if (!this.
|
|
1291
|
+
if (!this.x21_1.equals(tmp0_other_with_cast.x21_1))
|
|
1280
1292
|
return false;
|
|
1281
|
-
if (!this.
|
|
1293
|
+
if (!this.y21_1.equals(tmp0_other_with_cast.y21_1))
|
|
1282
1294
|
return false;
|
|
1283
|
-
if (!this.
|
|
1295
|
+
if (!this.z21_1.equals(tmp0_other_with_cast.z21_1))
|
|
1284
1296
|
return false;
|
|
1285
|
-
if (!(this.
|
|
1297
|
+
if (!(this.a22_1 === tmp0_other_with_cast.a22_1))
|
|
1286
1298
|
return false;
|
|
1287
1299
|
return true;
|
|
1288
1300
|
};
|
|
1289
1301
|
function flatMapRequests(_this__u8e3s4, $this, f) {
|
|
1290
1302
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1291
1303
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1292
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
1304
|
+
var tmp0_flatMap = _this__u8e3s4.a17_1;
|
|
1293
1305
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1294
1306
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1295
1307
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1298,7 +1310,7 @@
|
|
|
1298
1310
|
var element = tmp0_iterator.e();
|
|
1299
1311
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
1300
1312
|
// Inline function 'kotlin.collections.component1' call
|
|
1301
|
-
var path = element.x().
|
|
1313
|
+
var path = element.x().l17_1;
|
|
1302
1314
|
// Inline function 'kotlin.collections.component2' call
|
|
1303
1315
|
var pathItem = element.y();
|
|
1304
1316
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -1315,8 +1327,8 @@
|
|
|
1315
1327
|
// Inline function 'kotlin.collections.component2' call
|
|
1316
1328
|
var operation = element_0.y();
|
|
1317
1329
|
// Inline function 'kotlin.collections.map' call
|
|
1318
|
-
var tmp0_elvis_lhs = $this.
|
|
1319
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? operation.
|
|
1330
|
+
var tmp0_elvis_lhs = $this.t21_1.y16_1;
|
|
1331
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? operation.j18_1 : tmp0_elvis_lhs;
|
|
1320
1332
|
var tmp0_map = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
|
|
1321
1333
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1322
1334
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
@@ -1346,25 +1358,25 @@
|
|
|
1346
1358
|
return tmp0_flatMapTo_1;
|
|
1347
1359
|
}
|
|
1348
1360
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
1349
|
-
this.
|
|
1350
|
-
this.
|
|
1351
|
-
this.
|
|
1352
|
-
this.
|
|
1353
|
-
this.
|
|
1354
|
-
this.
|
|
1355
|
-
this.
|
|
1361
|
+
this.b22_1 = path;
|
|
1362
|
+
this.c22_1 = pathItem;
|
|
1363
|
+
this.d22_1 = method;
|
|
1364
|
+
this.e22_1 = operation;
|
|
1365
|
+
this.f22_1 = statusCode;
|
|
1366
|
+
this.g22_1 = response;
|
|
1367
|
+
this.h22_1 = type;
|
|
1356
1368
|
}
|
|
1357
1369
|
protoOf(FlattenResponse).toString = function () {
|
|
1358
|
-
return 'FlattenResponse(path=' + new Path(this.
|
|
1370
|
+
return 'FlattenResponse(path=' + new Path(this.b22_1) + ', pathItem=' + this.c22_1 + ', method=' + this.d22_1 + ', operation=' + this.e22_1 + ', statusCode=' + new StatusCode(this.f22_1) + ', response=' + this.g22_1 + ', type=' + this.h22_1 + ')';
|
|
1359
1371
|
};
|
|
1360
1372
|
protoOf(FlattenResponse).hashCode = function () {
|
|
1361
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1362
|
-
result = imul(result, 31) + this.
|
|
1363
|
-
result = imul(result, 31) + this.
|
|
1364
|
-
result = imul(result, 31) + this.
|
|
1365
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
1366
|
-
result = imul(result, 31) + hashCode(this.
|
|
1367
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1373
|
+
var result = Path__hashCode_impl_go73kd(this.b22_1);
|
|
1374
|
+
result = imul(result, 31) + this.c22_1.hashCode() | 0;
|
|
1375
|
+
result = imul(result, 31) + this.d22_1.hashCode() | 0;
|
|
1376
|
+
result = imul(result, 31) + this.e22_1.hashCode() | 0;
|
|
1377
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.f22_1) | 0;
|
|
1378
|
+
result = imul(result, 31) + hashCode(this.g22_1) | 0;
|
|
1379
|
+
result = imul(result, 31) + getStringHashCode(this.h22_1) | 0;
|
|
1368
1380
|
return result;
|
|
1369
1381
|
};
|
|
1370
1382
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -1373,26 +1385,26 @@
|
|
|
1373
1385
|
if (!(other instanceof FlattenResponse))
|
|
1374
1386
|
return false;
|
|
1375
1387
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
1376
|
-
if (!(this.
|
|
1388
|
+
if (!(this.b22_1 === tmp0_other_with_cast.b22_1))
|
|
1377
1389
|
return false;
|
|
1378
|
-
if (!this.
|
|
1390
|
+
if (!this.c22_1.equals(tmp0_other_with_cast.c22_1))
|
|
1379
1391
|
return false;
|
|
1380
|
-
if (!this.
|
|
1392
|
+
if (!this.d22_1.equals(tmp0_other_with_cast.d22_1))
|
|
1381
1393
|
return false;
|
|
1382
|
-
if (!this.
|
|
1394
|
+
if (!this.e22_1.equals(tmp0_other_with_cast.e22_1))
|
|
1383
1395
|
return false;
|
|
1384
|
-
if (!(this.
|
|
1396
|
+
if (!(this.f22_1 === tmp0_other_with_cast.f22_1))
|
|
1385
1397
|
return false;
|
|
1386
|
-
if (!equals(this.
|
|
1398
|
+
if (!equals(this.g22_1, tmp0_other_with_cast.g22_1))
|
|
1387
1399
|
return false;
|
|
1388
|
-
if (!(this.
|
|
1400
|
+
if (!(this.h22_1 === tmp0_other_with_cast.h22_1))
|
|
1389
1401
|
return false;
|
|
1390
1402
|
return true;
|
|
1391
1403
|
};
|
|
1392
1404
|
function flatMapResponses(_this__u8e3s4, $this, f) {
|
|
1393
1405
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1394
1406
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1395
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
1407
|
+
var tmp0_flatMap = _this__u8e3s4.a17_1;
|
|
1396
1408
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1397
1409
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1398
1410
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1401,7 +1413,7 @@
|
|
|
1401
1413
|
var element = tmp0_iterator.e();
|
|
1402
1414
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
1403
1415
|
// Inline function 'kotlin.collections.component1' call
|
|
1404
|
-
var path = element.x().
|
|
1416
|
+
var path = element.x().l17_1;
|
|
1405
1417
|
// Inline function 'kotlin.collections.component2' call
|
|
1406
1418
|
var pathItem = element.y();
|
|
1407
1419
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -1419,7 +1431,7 @@
|
|
|
1419
1431
|
var operation = element_0.y();
|
|
1420
1432
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1421
1433
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1422
|
-
var tmp0_elvis_lhs = operation.
|
|
1434
|
+
var tmp0_elvis_lhs = operation.m18_1;
|
|
1423
1435
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1424
1436
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1425
1437
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
@@ -1429,12 +1441,12 @@
|
|
|
1429
1441
|
var element_1 = tmp0_iterator_1.e();
|
|
1430
1442
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
1431
1443
|
// Inline function 'kotlin.collections.component1' call
|
|
1432
|
-
var statusCode = element_1.x().
|
|
1444
|
+
var statusCode = element_1.x().e1b_1;
|
|
1433
1445
|
// Inline function 'kotlin.collections.component2' call
|
|
1434
1446
|
var response = element_1.y();
|
|
1435
1447
|
// Inline function 'kotlin.collections.map' call
|
|
1436
|
-
var tmp0_elvis_lhs_0 = _this__u8e3s4.
|
|
1437
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.
|
|
1448
|
+
var tmp0_elvis_lhs_0 = _this__u8e3s4.z16_1;
|
|
1449
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.k18_1 : tmp0_elvis_lhs_0;
|
|
1438
1450
|
var tmp0_map = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
|
|
1439
1451
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1440
1452
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
@@ -1468,9 +1480,9 @@
|
|
|
1468
1480
|
}
|
|
1469
1481
|
function OpenApiParser$parseParameters$lambda(this$0) {
|
|
1470
1482
|
return function (req) {
|
|
1471
|
-
var parameters = plus(resolveParameters_0(req.
|
|
1472
|
-
var tmp0_elvis_lhs = toName(req.
|
|
1473
|
-
var name = tmp0_elvis_lhs == null ? toName_0(req.
|
|
1483
|
+
var parameters = plus(resolveParameters_0(req.x21_1, this$0), resolveParameters(req.z21_1, this$0));
|
|
1484
|
+
var tmp0_elvis_lhs = toName(req.z21_1, this$0);
|
|
1485
|
+
var name = tmp0_elvis_lhs == null ? toName_0(req.w21_1, this$0) + req.y21_1.o5_1 : tmp0_elvis_lhs;
|
|
1474
1486
|
var tmp$ret$5;
|
|
1475
1487
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1476
1488
|
var tmp$ret$2;
|
|
@@ -1483,7 +1495,7 @@
|
|
|
1483
1495
|
var element = tmp0_iterator.e();
|
|
1484
1496
|
var tmp$ret$0;
|
|
1485
1497
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
1486
|
-
tmp$ret$0 = !element.
|
|
1498
|
+
tmp$ret$0 = !element.v18_1.equals(ParameterLocation_BODY_getInstance());
|
|
1487
1499
|
if (tmp$ret$0) {
|
|
1488
1500
|
tmp0_filterTo.a(element);
|
|
1489
1501
|
}
|
|
@@ -1499,8 +1511,8 @@
|
|
|
1499
1511
|
var element_0 = tmp0_iterator_0.e();
|
|
1500
1512
|
var tmp$ret$3;
|
|
1501
1513
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
1502
|
-
var tmp0_safe_receiver = element_0.
|
|
1503
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_0(tmp0_safe_receiver, this$0, Common_getInstance().
|
|
1514
|
+
var tmp0_safe_receiver = element_0.y18_1;
|
|
1515
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_0(tmp0_safe_receiver, this$0, Common_getInstance().r21([name, 'Parameter', element_0.u18_1]));
|
|
1504
1516
|
tmp$ret$3 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
1505
1517
|
var list = tmp$ret$3;
|
|
1506
1518
|
addAll(tmp0_flatMapTo, list);
|
|
@@ -1512,9 +1524,9 @@
|
|
|
1512
1524
|
}
|
|
1513
1525
|
function OpenApiParser$parseRequestBody$lambda(this$0) {
|
|
1514
1526
|
return function (req) {
|
|
1515
|
-
var parameters = plus(resolveParameters_0(req.
|
|
1516
|
-
var tmp0_elvis_lhs = toName(req.
|
|
1517
|
-
var name = tmp0_elvis_lhs == null ? toName_0(req.
|
|
1527
|
+
var parameters = plus(resolveParameters_0(req.x21_1, this$0), resolveParameters(req.z21_1, this$0));
|
|
1528
|
+
var tmp0_elvis_lhs = toName(req.z21_1, this$0);
|
|
1529
|
+
var name = tmp0_elvis_lhs == null ? toName_0(req.w21_1, this$0) + req.y21_1.o5_1 : tmp0_elvis_lhs;
|
|
1518
1530
|
var tmp$ret$5;
|
|
1519
1531
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1520
1532
|
var tmp$ret$4;
|
|
@@ -1526,11 +1538,11 @@
|
|
|
1526
1538
|
var tmp$ret$3;
|
|
1527
1539
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1528
1540
|
var tmp;
|
|
1529
|
-
if (!(element.
|
|
1530
|
-
var tmp_0 = Common_getInstance().
|
|
1541
|
+
if (!(element.p19_1 == null)) {
|
|
1542
|
+
var tmp_0 = Common_getInstance().r21([name, 'Parameter', element.u18_1]);
|
|
1531
1543
|
var tmp$ret$2;
|
|
1532
1544
|
// Inline function 'kotlin.collections.map' call
|
|
1533
|
-
var tmp0_map = ensureNotNull(element.
|
|
1545
|
+
var tmp0_map = ensureNotNull(element.p19_1);
|
|
1534
1546
|
var tmp$ret$1;
|
|
1535
1547
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1536
1548
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
@@ -1539,7 +1551,7 @@
|
|
|
1539
1551
|
var item = tmp0_iterator_0.e();
|
|
1540
1552
|
var tmp$ret$0;
|
|
1541
1553
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
1542
|
-
tmp$ret$0 = item.
|
|
1554
|
+
tmp$ret$0 = item.uz();
|
|
1543
1555
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1544
1556
|
}
|
|
1545
1557
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -1555,7 +1567,7 @@
|
|
|
1555
1567
|
tmp$ret$4 = tmp0_flatMapTo;
|
|
1556
1568
|
tmp$ret$5 = tmp$ret$4;
|
|
1557
1569
|
var enums = tmp$ret$5;
|
|
1558
|
-
var tmp1_safe_receiver = req.
|
|
1570
|
+
var tmp1_safe_receiver = req.z21_1.l18_1;
|
|
1559
1571
|
var tmp_1;
|
|
1560
1572
|
if (tmp1_safe_receiver == null) {
|
|
1561
1573
|
tmp_1 = null;
|
|
@@ -1592,7 +1604,7 @@
|
|
|
1592
1604
|
var element_0 = tmp0_iterator_2.e();
|
|
1593
1605
|
var tmp$ret$9;
|
|
1594
1606
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1595
|
-
tmp$ret$9 = element_0.
|
|
1607
|
+
tmp$ret$9 = element_0.v18_1.equals(ParameterLocation_BODY_getInstance());
|
|
1596
1608
|
if (tmp$ret$9) {
|
|
1597
1609
|
tmp0_filterTo.a(element_0);
|
|
1598
1610
|
}
|
|
@@ -1616,22 +1628,22 @@
|
|
|
1616
1628
|
var element_1 = tmp0_iterator_3.e();
|
|
1617
1629
|
var tmp$ret$13;
|
|
1618
1630
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1619
|
-
var schema = element_1.
|
|
1631
|
+
var schema = element_1.y18_1;
|
|
1620
1632
|
var tmp_4;
|
|
1621
1633
|
if (schema instanceof SchemaObject) {
|
|
1622
|
-
var tmp0_subject = schema.
|
|
1634
|
+
var tmp0_subject = schema.w1a_1;
|
|
1623
1635
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.p5_1;
|
|
1624
1636
|
var tmp_5;
|
|
1625
1637
|
switch (tmp0) {
|
|
1626
1638
|
case -1:
|
|
1627
1639
|
case 5:
|
|
1628
|
-
tmp_5 = flatten(schema, this$0, Common_getInstance().
|
|
1640
|
+
tmp_5 = flatten(schema, this$0, Common_getInstance().r21([name, 'RequestBody']));
|
|
1629
1641
|
break;
|
|
1630
1642
|
case 4:
|
|
1631
1643
|
var tmp$ret$12;
|
|
1632
1644
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1633
|
-
var tmp1_safe_receiver_0 = schema.
|
|
1634
|
-
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
1645
|
+
var tmp1_safe_receiver_0 = schema.x1a_1;
|
|
1646
|
+
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().r21([name, 'RequestBody']));
|
|
1635
1647
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
1636
1648
|
tmp$ret$12 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1637
1649
|
|
|
@@ -1660,25 +1672,25 @@
|
|
|
1660
1672
|
}
|
|
1661
1673
|
function OpenApiParser$parseResponseBody$lambda(this$0) {
|
|
1662
1674
|
return function (res) {
|
|
1663
|
-
var response = resolve_1(res.
|
|
1664
|
-
var tmp0_elvis_lhs = toName(res.
|
|
1665
|
-
var name = tmp0_elvis_lhs == null ? toName_0(res.
|
|
1666
|
-
var schema = response.
|
|
1675
|
+
var response = resolve_1(res.g22_1, this$0);
|
|
1676
|
+
var tmp0_elvis_lhs = toName(res.e22_1, this$0);
|
|
1677
|
+
var name = tmp0_elvis_lhs == null ? toName_0(res.b22_1, this$0) + res.d22_1.o5_1 : tmp0_elvis_lhs;
|
|
1678
|
+
var schema = response.i1b_1;
|
|
1667
1679
|
var tmp;
|
|
1668
1680
|
if (schema instanceof SchemaObject) {
|
|
1669
|
-
var tmp1_subject = schema.
|
|
1681
|
+
var tmp1_subject = schema.w1a_1;
|
|
1670
1682
|
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.p5_1;
|
|
1671
1683
|
var tmp_0;
|
|
1672
1684
|
switch (tmp0) {
|
|
1673
1685
|
case -1:
|
|
1674
1686
|
case 5:
|
|
1675
|
-
tmp_0 = flatten(schema, this$0, Common_getInstance().
|
|
1687
|
+
tmp_0 = flatten(schema, this$0, Common_getInstance().r21([name, _StatusCode___get_value__impl__we50mu(res.f22_1), res.h22_1, 'ResponseBody']));
|
|
1676
1688
|
break;
|
|
1677
1689
|
case 4:
|
|
1678
1690
|
var tmp$ret$0;
|
|
1679
1691
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1680
|
-
var tmp2_safe_receiver = schema.
|
|
1681
|
-
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : flatten_0(tmp2_safe_receiver, this$0, Common_getInstance().
|
|
1692
|
+
var tmp2_safe_receiver = schema.x1a_1;
|
|
1693
|
+
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : flatten_0(tmp2_safe_receiver, this$0, Common_getInstance().r21([name, _StatusCode___get_value__impl__we50mu(res.f22_1), res.h22_1, 'ResponseBody']));
|
|
1682
1694
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
1683
1695
|
tmp$ret$0 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1684
1696
|
|
|
@@ -1710,10 +1722,10 @@
|
|
|
1710
1722
|
tmp$ret$0 = it;
|
|
1711
1723
|
tmp$ret$1 = tmp$ret$0.substring(1, tmp0_substring);
|
|
1712
1724
|
|
|
1713
|
-
tmp = tmp_0.
|
|
1725
|
+
tmp = tmp_0.r21([tmp$ret$1]);
|
|
1714
1726
|
break;
|
|
1715
1727
|
case false:
|
|
1716
|
-
tmp = Common_getInstance().
|
|
1728
|
+
tmp = Common_getInstance().r21([it]);
|
|
1717
1729
|
break;
|
|
1718
1730
|
default:
|
|
1719
1731
|
noWhenBranchMatchedException();
|
|
@@ -1724,24 +1736,24 @@
|
|
|
1724
1736
|
}
|
|
1725
1737
|
function OpenApiParser(openApi) {
|
|
1726
1738
|
Companion_getInstance_0();
|
|
1727
|
-
this.
|
|
1739
|
+
this.t21_1 = openApi;
|
|
1728
1740
|
}
|
|
1729
|
-
protoOf(OpenApiParser).
|
|
1741
|
+
protoOf(OpenApiParser).u21 = function () {
|
|
1730
1742
|
return plus(plus(plus(plus(parseEndpoints(this), parseParameters(this)), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
|
|
1731
1743
|
};
|
|
1732
1744
|
function toMap_0(_this__u8e3s4) {
|
|
1733
1745
|
var tmp;
|
|
1734
1746
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1735
|
-
tmp = _this__u8e3s4.
|
|
1747
|
+
tmp = _this__u8e3s4.g21(VOID, VOID, true);
|
|
1736
1748
|
} else {
|
|
1737
1749
|
if (_this__u8e3s4 instanceof Any) {
|
|
1738
|
-
tmp = _this__u8e3s4.
|
|
1750
|
+
tmp = _this__u8e3s4.b21(VOID, true);
|
|
1739
1751
|
} else {
|
|
1740
1752
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1741
|
-
tmp = _this__u8e3s4.
|
|
1753
|
+
tmp = _this__u8e3s4.i21(VOID, VOID, true);
|
|
1742
1754
|
} else {
|
|
1743
1755
|
if (_this__u8e3s4 instanceof Unit) {
|
|
1744
|
-
tmp = _this__u8e3s4.
|
|
1756
|
+
tmp = _this__u8e3s4.e21(VOID, true);
|
|
1745
1757
|
} else {
|
|
1746
1758
|
noWhenBranchMatchedException();
|
|
1747
1759
|
}
|
|
@@ -1786,16 +1798,16 @@
|
|
|
1786
1798
|
function toIterable(_this__u8e3s4) {
|
|
1787
1799
|
var tmp;
|
|
1788
1800
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1789
|
-
tmp = _this__u8e3s4.
|
|
1801
|
+
tmp = _this__u8e3s4.g21(VOID, true);
|
|
1790
1802
|
} else {
|
|
1791
1803
|
if (_this__u8e3s4 instanceof Any) {
|
|
1792
|
-
tmp = _this__u8e3s4.
|
|
1804
|
+
tmp = _this__u8e3s4.b21(true);
|
|
1793
1805
|
} else {
|
|
1794
1806
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1795
|
-
tmp = _this__u8e3s4.
|
|
1807
|
+
tmp = _this__u8e3s4.i21(VOID, true);
|
|
1796
1808
|
} else {
|
|
1797
1809
|
if (_this__u8e3s4 instanceof Unit) {
|
|
1798
|
-
tmp = _this__u8e3s4.
|
|
1810
|
+
tmp = _this__u8e3s4.e21(true);
|
|
1799
1811
|
} else {
|
|
1800
1812
|
noWhenBranchMatchedException();
|
|
1801
1813
|
}
|
|
@@ -1841,24 +1853,24 @@
|
|
|
1841
1853
|
}
|
|
1842
1854
|
function OpenApiParser$Companion$parse$lambda_0($strict) {
|
|
1843
1855
|
return function ($this$Json) {
|
|
1844
|
-
$this$Json.
|
|
1845
|
-
$this$Json.
|
|
1856
|
+
$this$Json.wy_1 = true;
|
|
1857
|
+
$this$Json.ty_1 = $strict;
|
|
1846
1858
|
return Unit_getInstance();
|
|
1847
1859
|
};
|
|
1848
1860
|
}
|
|
1849
1861
|
function Companion_0() {
|
|
1850
1862
|
Companion_instance_0 = this;
|
|
1851
1863
|
}
|
|
1852
|
-
protoOf(Companion_0).
|
|
1864
|
+
protoOf(Companion_0).s21 = function (json, strict) {
|
|
1853
1865
|
// Inline function 'kotlin.let' call
|
|
1854
|
-
var tmp0_let = (new OpenAPI_0(Json(VOID, OpenApiParser$Companion$parse$lambda_0(strict)))).
|
|
1866
|
+
var tmp0_let = (new OpenAPI_0(Json(VOID, OpenApiParser$Companion$parse$lambda_0(strict)))).q16(json);
|
|
1855
1867
|
// Inline function 'kotlin.contracts.contract' call
|
|
1856
1868
|
// Inline function 'community.flock.wirespec.openapi.v3.Companion.parse.<anonymous>' call
|
|
1857
1869
|
return parse(new OpenApiParser_0(tmp0_let));
|
|
1858
1870
|
};
|
|
1859
|
-
protoOf(Companion_0).
|
|
1871
|
+
protoOf(Companion_0).i22 = function (json, strict, $super) {
|
|
1860
1872
|
strict = strict === VOID ? false : strict;
|
|
1861
|
-
return $super === VOID ? this.
|
|
1873
|
+
return $super === VOID ? this.s21(json, strict) : $super.s21.call(this, json, strict);
|
|
1862
1874
|
};
|
|
1863
1875
|
var Companion_instance_0;
|
|
1864
1876
|
function Companion_getInstance_1() {
|
|
@@ -1871,7 +1883,7 @@
|
|
|
1871
1883
|
}
|
|
1872
1884
|
function parseEndpoint($this) {
|
|
1873
1885
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1874
|
-
var tmp0_flatMap = $this.
|
|
1886
|
+
var tmp0_flatMap = $this.j22_1.q1f_1;
|
|
1875
1887
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1876
1888
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1877
1889
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1880,7 +1892,7 @@
|
|
|
1880
1892
|
var element = tmp0_iterator.e();
|
|
1881
1893
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>' call
|
|
1882
1894
|
// Inline function 'kotlin.collections.component1' call
|
|
1883
|
-
var key = element.x().
|
|
1895
|
+
var key = element.x().y1f_1;
|
|
1884
1896
|
// Inline function 'kotlin.collections.component2' call
|
|
1885
1897
|
var path = element.y();
|
|
1886
1898
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1909,7 +1921,7 @@
|
|
|
1909
1921
|
while (tmp0_iterator_1.d()) {
|
|
1910
1922
|
var element_0 = tmp0_iterator_1.e();
|
|
1911
1923
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1912
|
-
if (element_0.
|
|
1924
|
+
if (element_0.s1h_1.equals(ParameterLocation_QUERY_getInstance_0())) {
|
|
1913
1925
|
tmp0_filterTo.a(element_0);
|
|
1914
1926
|
}
|
|
1915
1927
|
}
|
|
@@ -1920,7 +1932,7 @@
|
|
|
1920
1932
|
var item_0 = tmp0_iterator_2.e();
|
|
1921
1933
|
var tmp$ret$9;
|
|
1922
1934
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1923
|
-
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().
|
|
1935
|
+
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().r21([name, 'Parameter', item_0.r1h_1]));
|
|
1924
1936
|
tmp0_mapTo_0.a(tmp$ret$9);
|
|
1925
1937
|
}
|
|
1926
1938
|
var query = tmp0_mapTo_0;
|
|
@@ -1932,7 +1944,7 @@
|
|
|
1932
1944
|
while (tmp0_iterator_3.d()) {
|
|
1933
1945
|
var element_1 = tmp0_iterator_3.e();
|
|
1934
1946
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1935
|
-
if (element_1.
|
|
1947
|
+
if (element_1.s1h_1.equals(ParameterLocation_HEADER_getInstance_0())) {
|
|
1936
1948
|
tmp0_filterTo_0.a(element_1);
|
|
1937
1949
|
}
|
|
1938
1950
|
}
|
|
@@ -1943,7 +1955,7 @@
|
|
|
1943
1955
|
var item_1 = tmp0_iterator_4.e();
|
|
1944
1956
|
var tmp$ret$15;
|
|
1945
1957
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1946
|
-
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().
|
|
1958
|
+
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().r21([name, 'Parameter', item_1.r1h_1]));
|
|
1947
1959
|
tmp0_mapTo_1.a(tmp$ret$15);
|
|
1948
1960
|
}
|
|
1949
1961
|
var headers = tmp0_mapTo_1;
|
|
@@ -1955,7 +1967,7 @@
|
|
|
1955
1967
|
while (tmp0_iterator_5.d()) {
|
|
1956
1968
|
var element_2 = tmp0_iterator_5.e();
|
|
1957
1969
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1958
|
-
if (element_2.
|
|
1970
|
+
if (element_2.s1h_1.equals(ParameterLocation_COOKIE_getInstance())) {
|
|
1959
1971
|
tmp0_filterTo_1.a(element_2);
|
|
1960
1972
|
}
|
|
1961
1973
|
}
|
|
@@ -1966,11 +1978,11 @@
|
|
|
1966
1978
|
var item_2 = tmp0_iterator_6.e();
|
|
1967
1979
|
var tmp$ret$21;
|
|
1968
1980
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1969
|
-
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().
|
|
1981
|
+
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().r21([name, 'Parameter', item_2.r1h_1]));
|
|
1970
1982
|
tmp0_mapTo_2.a(tmp$ret$21);
|
|
1971
1983
|
}
|
|
1972
1984
|
var cookies = tmp0_mapTo_2;
|
|
1973
|
-
var tmp1_safe_receiver = operation.
|
|
1985
|
+
var tmp1_safe_receiver = operation.x1g_1;
|
|
1974
1986
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_6(tmp1_safe_receiver, $this);
|
|
1975
1987
|
var tmp;
|
|
1976
1988
|
if (tmp2_safe_receiver == null) {
|
|
@@ -1979,7 +1991,7 @@
|
|
|
1979
1991
|
// Inline function 'kotlin.let' call
|
|
1980
1992
|
// Inline function 'kotlin.contracts.contract' call
|
|
1981
1993
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1982
|
-
var tmp0_safe_receiver = tmp2_safe_receiver.
|
|
1994
|
+
var tmp0_safe_receiver = tmp2_safe_receiver.x1h_1;
|
|
1983
1995
|
var tmp_0;
|
|
1984
1996
|
if (tmp0_safe_receiver == null) {
|
|
1985
1997
|
tmp_0 = null;
|
|
@@ -1994,17 +2006,17 @@
|
|
|
1994
2006
|
var tmp$ret$27;
|
|
1995
2007
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1996
2008
|
// Inline function 'kotlin.collections.component1' call
|
|
1997
|
-
var mediaType = item_3.x().
|
|
2009
|
+
var mediaType = item_3.x().c1i_1;
|
|
1998
2010
|
// Inline function 'kotlin.collections.component2' call
|
|
1999
2011
|
var mediaObject = item_3.y();
|
|
2000
2012
|
var tmp_1 = _MediaType___get_value__impl__wy58mp(mediaType);
|
|
2001
|
-
var schema = mediaObject.
|
|
2013
|
+
var schema = mediaObject.f1i_1;
|
|
2002
2014
|
var tmp_2;
|
|
2003
2015
|
if (schema instanceof ReferenceObject_0) {
|
|
2004
2016
|
tmp_2 = toReference_1(schema, $this);
|
|
2005
2017
|
} else {
|
|
2006
2018
|
if (schema instanceof SchemaObject_0) {
|
|
2007
|
-
tmp_2 = toReference_2(schema, $this, Common_getInstance().
|
|
2019
|
+
tmp_2 = toReference_2(schema, $this, Common_getInstance().r21([name, 'RequestBody']));
|
|
2008
2020
|
} else {
|
|
2009
2021
|
if (schema == null) {
|
|
2010
2022
|
throw new NotImplementedError();
|
|
@@ -2014,7 +2026,7 @@
|
|
|
2014
2026
|
}
|
|
2015
2027
|
}
|
|
2016
2028
|
var tmp_3 = tmp_2;
|
|
2017
|
-
var tmp0_elvis_lhs_0 = tmp2_safe_receiver.
|
|
2029
|
+
var tmp0_elvis_lhs_0 = tmp2_safe_receiver.y1h_1;
|
|
2018
2030
|
tmp$ret$27 = new Request(new Content(tmp_1, tmp_3, tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0));
|
|
2019
2031
|
tmp0_mapTo_3.a(tmp$ret$27);
|
|
2020
2032
|
}
|
|
@@ -2026,7 +2038,7 @@
|
|
|
2026
2038
|
var requests = tmp3_elvis_lhs == null ? listOf(new Request(null)) : tmp3_elvis_lhs;
|
|
2027
2039
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2028
2040
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2029
|
-
var tmp0_elvis_lhs_1 = operation.
|
|
2041
|
+
var tmp0_elvis_lhs_1 = operation.y1g_1;
|
|
2030
2042
|
var tmp4_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
2031
2043
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2032
2044
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
@@ -2036,14 +2048,14 @@
|
|
|
2036
2048
|
var element_3 = tmp0_iterator_8.e();
|
|
2037
2049
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2038
2050
|
// Inline function 'kotlin.collections.component1' call
|
|
2039
|
-
var status = element_3.x().
|
|
2051
|
+
var status = element_3.x().b1k_1;
|
|
2040
2052
|
// Inline function 'kotlin.collections.component2' call
|
|
2041
2053
|
var res = element_3.y();
|
|
2042
2054
|
// Inline function 'kotlin.let' call
|
|
2043
2055
|
var tmp0_let = resolve_7(res, $this);
|
|
2044
2056
|
// Inline function 'kotlin.contracts.contract' call
|
|
2045
2057
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2046
|
-
var tmp0_safe_receiver_0 = tmp0_let.
|
|
2058
|
+
var tmp0_safe_receiver_0 = tmp0_let.g1k_1;
|
|
2047
2059
|
var tmp_4;
|
|
2048
2060
|
if (tmp0_safe_receiver_0 == null) {
|
|
2049
2061
|
tmp_4 = null;
|
|
@@ -2058,12 +2070,12 @@
|
|
|
2058
2070
|
var tmp$ret$44;
|
|
2059
2071
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2060
2072
|
// Inline function 'kotlin.collections.component1' call
|
|
2061
|
-
var contentType = item_4.x().
|
|
2073
|
+
var contentType = item_4.x().c1i_1;
|
|
2062
2074
|
// Inline function 'kotlin.collections.component2' call
|
|
2063
2075
|
var media = item_4.y();
|
|
2064
2076
|
var tmp_5 = _StatusCode___get_value__impl__we50mu_0(status);
|
|
2065
2077
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2066
|
-
var tmp0_safe_receiver_1 = tmp0_let.
|
|
2078
|
+
var tmp0_safe_receiver_1 = tmp0_let.f1k_1;
|
|
2067
2079
|
var tmp_6;
|
|
2068
2080
|
if (tmp0_safe_receiver_1 == null) {
|
|
2069
2081
|
tmp_6 = null;
|
|
@@ -2077,7 +2089,7 @@
|
|
|
2077
2089
|
var item_5 = tmp0_iterator_10.e();
|
|
2078
2090
|
var tmp$ret$40;
|
|
2079
2091
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2080
|
-
tmp$ret$40 = toField_3(resolve_4(item_5.y(), $this), $this, item_5.x(), Common_getInstance().
|
|
2092
|
+
tmp$ret$40 = toField_3(resolve_4(item_5.y(), $this), $this, item_5.x(), Common_getInstance().r21([name, 'ResponseHeader']));
|
|
2081
2093
|
tmp0_mapTo_5.a(tmp$ret$40);
|
|
2082
2094
|
}
|
|
2083
2095
|
tmp_6 = tmp0_mapTo_5;
|
|
@@ -2085,13 +2097,13 @@
|
|
|
2085
2097
|
var tmp0_elvis_lhs_2 = tmp_6;
|
|
2086
2098
|
var tmp_7 = tmp0_elvis_lhs_2 == null ? emptyList() : tmp0_elvis_lhs_2;
|
|
2087
2099
|
var tmp_8 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
2088
|
-
var schema_0 = media.
|
|
2100
|
+
var schema_0 = media.f1i_1;
|
|
2089
2101
|
var tmp_9;
|
|
2090
2102
|
if (schema_0 instanceof ReferenceObject_0) {
|
|
2091
2103
|
tmp_9 = toReference_1(schema_0, $this);
|
|
2092
2104
|
} else {
|
|
2093
2105
|
if (schema_0 instanceof SchemaObject_0) {
|
|
2094
|
-
tmp_9 = toReference_2(schema_0, $this, Common_getInstance().
|
|
2106
|
+
tmp_9 = toReference_2(schema_0, $this, Common_getInstance().r21([name, _StatusCode___get_value__impl__we50mu_0(status), _MediaType___get_value__impl__wy58mp(contentType), 'ResponseBody']));
|
|
2095
2107
|
} else {
|
|
2096
2108
|
if (schema_0 == null) {
|
|
2097
2109
|
tmp_9 = new Any(false);
|
|
@@ -2101,9 +2113,9 @@
|
|
|
2101
2113
|
}
|
|
2102
2114
|
}
|
|
2103
2115
|
var tmp_10 = tmp_9;
|
|
2104
|
-
var tmp1_safe_receiver_0 = media.
|
|
2116
|
+
var tmp1_safe_receiver_0 = media.f1i_1;
|
|
2105
2117
|
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : resolve_3(tmp1_safe_receiver_0, $this);
|
|
2106
|
-
var tmp3_elvis_lhs_0 = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.
|
|
2118
|
+
var tmp3_elvis_lhs_0 = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.o1i_1;
|
|
2107
2119
|
tmp$ret$44 = new Response(tmp_5, tmp_7, new Content(tmp_8, tmp_10, tmp3_elvis_lhs_0 == null ? false : tmp3_elvis_lhs_0));
|
|
2108
2120
|
tmp0_mapTo_4.a(tmp$ret$44);
|
|
2109
2121
|
}
|
|
@@ -2123,20 +2135,20 @@
|
|
|
2123
2135
|
return tmp0_flatMapTo;
|
|
2124
2136
|
}
|
|
2125
2137
|
function parseParameters_0($this) {
|
|
2126
|
-
return flatMapRequests_0($this.
|
|
2138
|
+
return flatMapRequests_0($this.j22_1, $this, OpenApiParser$parseParameters$lambda_0($this));
|
|
2127
2139
|
}
|
|
2128
2140
|
function parseRequestBody_0($this) {
|
|
2129
|
-
return flatMapRequests_0($this.
|
|
2141
|
+
return flatMapRequests_0($this.j22_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
|
|
2130
2142
|
}
|
|
2131
2143
|
function parseResponseBody_0($this) {
|
|
2132
|
-
return flatMapResponses_0($this.
|
|
2144
|
+
return flatMapResponses_0($this.j22_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
|
|
2133
2145
|
}
|
|
2134
2146
|
function parseComponents($this) {
|
|
2135
2147
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2136
2148
|
// Inline function 'kotlin.collections.filter' call
|
|
2137
2149
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2138
|
-
var tmp0_safe_receiver = $this.
|
|
2139
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2150
|
+
var tmp0_safe_receiver = $this.j22_1.r1f_1;
|
|
2151
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z1k_1;
|
|
2140
2152
|
var tmp1_filter = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2141
2153
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2142
2154
|
var tmp0_filterTo = LinkedHashMap_init_$Create$();
|
|
@@ -2148,7 +2160,7 @@
|
|
|
2148
2160
|
var s = element.y();
|
|
2149
2161
|
var tmp;
|
|
2150
2162
|
if (s instanceof SchemaObject_0) {
|
|
2151
|
-
tmp = s.
|
|
2163
|
+
tmp = s.e1j_1 == null;
|
|
2152
2164
|
} else {
|
|
2153
2165
|
tmp = false;
|
|
2154
2166
|
}
|
|
@@ -2163,7 +2175,7 @@
|
|
|
2163
2175
|
while (tmp0_iterator_0.d()) {
|
|
2164
2176
|
var element_0 = tmp0_iterator_0.e();
|
|
2165
2177
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2166
|
-
var list = flatten_2(element_0.y(), $this, Common_getInstance().
|
|
2178
|
+
var list = flatten_2(element_0.y(), $this, Common_getInstance().r21([element_0.x()]));
|
|
2167
2179
|
addAll(tmp0_flatMapTo, list);
|
|
2168
2180
|
}
|
|
2169
2181
|
return tmp0_flatMapTo;
|
|
@@ -2172,7 +2184,7 @@
|
|
|
2172
2184
|
return charSequenceGet(_this__u8e3s4, 0) === _Char___init__impl__6a9atx(123) ? charSequenceGet(_this__u8e3s4, _this__u8e3s4.length - 1 | 0) === _Char___init__impl__6a9atx(125) : false;
|
|
2173
2185
|
}
|
|
2174
2186
|
function toName_1(_this__u8e3s4, $this) {
|
|
2175
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2187
|
+
var tmp0_safe_receiver = _this__u8e3s4.v1g_1;
|
|
2176
2188
|
var tmp;
|
|
2177
2189
|
if (tmp0_safe_receiver == null) {
|
|
2178
2190
|
tmp = null;
|
|
@@ -2180,7 +2192,7 @@
|
|
|
2180
2192
|
// Inline function 'kotlin.let' call
|
|
2181
2193
|
// Inline function 'kotlin.contracts.contract' call
|
|
2182
2194
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
2183
|
-
tmp = Common_getInstance().
|
|
2195
|
+
tmp = Common_getInstance().r21([tmp0_safe_receiver]);
|
|
2184
2196
|
}
|
|
2185
2197
|
return tmp;
|
|
2186
2198
|
}
|
|
@@ -2242,7 +2254,7 @@
|
|
|
2242
2254
|
while (tmp0_iterator_1.d()) {
|
|
2243
2255
|
var element_0 = tmp0_iterator_1.e();
|
|
2244
2256
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2245
|
-
if (element_0.
|
|
2257
|
+
if (element_0.r1h_1 === param) {
|
|
2246
2258
|
tmp$ret$7 = element_0;
|
|
2247
2259
|
break $l$block;
|
|
2248
2260
|
}
|
|
@@ -2251,9 +2263,9 @@
|
|
|
2251
2263
|
}
|
|
2252
2264
|
|
|
2253
2265
|
var tmp1_safe_receiver = tmp$ret$7;
|
|
2254
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2266
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n1h_1;
|
|
2255
2267
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : resolve_3(tmp2_safe_receiver, $this);
|
|
2256
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : toReference_2(tmp3_safe_receiver, $this, Common_getInstance().
|
|
2268
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : toReference_2(tmp3_safe_receiver, $this, Common_getInstance().r21([name, 'Parameter', param]));
|
|
2257
2269
|
var tmp_0;
|
|
2258
2270
|
if (tmp4_safe_receiver == null) {
|
|
2259
2271
|
tmp_0 = null;
|
|
@@ -2288,7 +2300,7 @@
|
|
|
2288
2300
|
return tmp0_mapTo;
|
|
2289
2301
|
}
|
|
2290
2302
|
function resolveParameters_1(_this__u8e3s4, $this) {
|
|
2291
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2303
|
+
var tmp0_safe_receiver = _this__u8e3s4.w1g_1;
|
|
2292
2304
|
var tmp;
|
|
2293
2305
|
if (tmp0_safe_receiver == null) {
|
|
2294
2306
|
tmp = null;
|
|
@@ -2327,7 +2339,7 @@
|
|
|
2327
2339
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2328
2340
|
}
|
|
2329
2341
|
function resolveParameters_2(_this__u8e3s4, $this) {
|
|
2330
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2342
|
+
var tmp0_safe_receiver = _this__u8e3s4.n1g_1;
|
|
2331
2343
|
var tmp;
|
|
2332
2344
|
if (tmp0_safe_receiver == null) {
|
|
2333
2345
|
tmp = null;
|
|
@@ -2366,8 +2378,8 @@
|
|
|
2366
2378
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2367
2379
|
}
|
|
2368
2380
|
function resolveParameterObject_0(_this__u8e3s4, $this) {
|
|
2369
|
-
var tmp0_safe_receiver = $this.
|
|
2370
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2381
|
+
var tmp0_safe_receiver = $this.j22_1.r1f_1;
|
|
2382
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b1l_1;
|
|
2371
2383
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference_0(_this__u8e3s4, $this));
|
|
2372
2384
|
var tmp;
|
|
2373
2385
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2391,8 +2403,8 @@
|
|
|
2391
2403
|
return tmp;
|
|
2392
2404
|
}
|
|
2393
2405
|
function resolveSchemaObject_0(_this__u8e3s4, $this) {
|
|
2394
|
-
var tmp0_safe_receiver = $this.
|
|
2395
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2406
|
+
var tmp0_safe_receiver = $this.j22_1.r1f_1;
|
|
2407
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z1k_1;
|
|
2396
2408
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference_0(_this__u8e3s4, $this));
|
|
2397
2409
|
var tmp;
|
|
2398
2410
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2416,7 +2428,7 @@
|
|
|
2416
2428
|
var tmp3_elvis_lhs = tmp;
|
|
2417
2429
|
var tmp_1;
|
|
2418
2430
|
if (tmp3_elvis_lhs == null) {
|
|
2419
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2431
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.l1i_1);
|
|
2420
2432
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2421
2433
|
} else {
|
|
2422
2434
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2424,8 +2436,8 @@
|
|
|
2424
2436
|
return tmp_1;
|
|
2425
2437
|
}
|
|
2426
2438
|
function resolveHeaderObject(_this__u8e3s4, $this) {
|
|
2427
|
-
var tmp0_safe_receiver = $this.
|
|
2428
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2439
|
+
var tmp0_safe_receiver = $this.j22_1.r1f_1;
|
|
2440
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e1l_1;
|
|
2429
2441
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference_0(_this__u8e3s4, $this));
|
|
2430
2442
|
var tmp;
|
|
2431
2443
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2449,7 +2461,7 @@
|
|
|
2449
2461
|
var tmp3_elvis_lhs = tmp;
|
|
2450
2462
|
var tmp_1;
|
|
2451
2463
|
if (tmp3_elvis_lhs == null) {
|
|
2452
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2464
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.l1i_1);
|
|
2453
2465
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2454
2466
|
} else {
|
|
2455
2467
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2457,8 +2469,8 @@
|
|
|
2457
2469
|
return tmp_1;
|
|
2458
2470
|
}
|
|
2459
2471
|
function resolveRequestBodyObject(_this__u8e3s4, $this) {
|
|
2460
|
-
var tmp0_safe_receiver = $this.
|
|
2461
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2472
|
+
var tmp0_safe_receiver = $this.j22_1.r1f_1;
|
|
2473
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d1l_1;
|
|
2462
2474
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference_0(_this__u8e3s4, $this));
|
|
2463
2475
|
var tmp;
|
|
2464
2476
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2482,7 +2494,7 @@
|
|
|
2482
2494
|
var tmp3_elvis_lhs = tmp;
|
|
2483
2495
|
var tmp_1;
|
|
2484
2496
|
if (tmp3_elvis_lhs == null) {
|
|
2485
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2497
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.l1i_1);
|
|
2486
2498
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2487
2499
|
} else {
|
|
2488
2500
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2490,8 +2502,8 @@
|
|
|
2490
2502
|
return tmp_1;
|
|
2491
2503
|
}
|
|
2492
2504
|
function resolveResponseObject_0(_this__u8e3s4, $this) {
|
|
2493
|
-
var tmp0_safe_receiver = $this.
|
|
2494
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2505
|
+
var tmp0_safe_receiver = $this.j22_1.r1f_1;
|
|
2506
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1l_1;
|
|
2495
2507
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference_0(_this__u8e3s4, $this));
|
|
2496
2508
|
var tmp;
|
|
2497
2509
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2515,7 +2527,7 @@
|
|
|
2515
2527
|
var tmp3_elvis_lhs = tmp;
|
|
2516
2528
|
var tmp_1;
|
|
2517
2529
|
if (tmp3_elvis_lhs == null) {
|
|
2518
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2530
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.l1i_1);
|
|
2519
2531
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2520
2532
|
} else {
|
|
2521
2533
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2593,12 +2605,12 @@
|
|
|
2593
2605
|
}
|
|
2594
2606
|
function flatten_1(_this__u8e3s4, $this, name) {
|
|
2595
2607
|
var tmp;
|
|
2596
|
-
if (!(_this__u8e3s4.
|
|
2608
|
+
if (!(_this__u8e3s4.e1j_1 == null)) {
|
|
2597
2609
|
var tmp_0;
|
|
2598
|
-
if (_this__u8e3s4.
|
|
2610
|
+
if (_this__u8e3s4.e1j_1 instanceof BooleanObject_0) {
|
|
2599
2611
|
tmp_0 = emptyList();
|
|
2600
2612
|
} else {
|
|
2601
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
2613
|
+
var tmp1_safe_receiver = _this__u8e3s4.e1j_1;
|
|
2602
2614
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_5(tmp1_safe_receiver, $this);
|
|
2603
2615
|
var tmp_1;
|
|
2604
2616
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2608,7 +2620,7 @@
|
|
|
2608
2620
|
// Inline function 'kotlin.contracts.contract' call
|
|
2609
2621
|
var tmp_2;
|
|
2610
2622
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2611
|
-
if (!(tmp2_safe_receiver.
|
|
2623
|
+
if (!(tmp2_safe_receiver.d1j_1 == null)) {
|
|
2612
2624
|
tmp_2 = tmp2_safe_receiver;
|
|
2613
2625
|
} else {
|
|
2614
2626
|
tmp_2 = null;
|
|
@@ -2620,15 +2632,15 @@
|
|
|
2620
2632
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
2621
2633
|
}
|
|
2622
2634
|
tmp = tmp_0;
|
|
2623
|
-
} else if (!(_this__u8e3s4.y1i_1 == null)) {
|
|
2624
|
-
throw new NotImplementedError('An operation is not implemented: oneOf is not implemented');
|
|
2625
2635
|
} else if (!(_this__u8e3s4.z1i_1 == null)) {
|
|
2636
|
+
throw new NotImplementedError('An operation is not implemented: oneOf is not implemented');
|
|
2637
|
+
} else if (!(_this__u8e3s4.a1j_1 == null)) {
|
|
2626
2638
|
throw new NotImplementedError('An operation is not implemented: anyOf is not implemented');
|
|
2627
|
-
} else if (!(_this__u8e3s4.
|
|
2639
|
+
} else if (!(_this__u8e3s4.y1i_1 == null)) {
|
|
2628
2640
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
2629
2641
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2630
2642
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2631
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2643
|
+
var tmp0_elvis_lhs = _this__u8e3s4.y1i_1;
|
|
2632
2644
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2633
2645
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2634
2646
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -2645,14 +2657,14 @@
|
|
|
2645
2657
|
while (tmp0_iterator_0.d()) {
|
|
2646
2658
|
var e = tmp0_iterator_0.e();
|
|
2647
2659
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2648
|
-
var key = e.
|
|
2660
|
+
var key = e.d1x_1;
|
|
2649
2661
|
if (set.a(key)) {
|
|
2650
2662
|
list_0.a(e);
|
|
2651
2663
|
}
|
|
2652
2664
|
}
|
|
2653
2665
|
var tmp_3 = listOf(new Type(name, new Shape(list_0)));
|
|
2654
2666
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2655
|
-
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.
|
|
2667
|
+
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.y1i_1);
|
|
2656
2668
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2657
2669
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
2658
2670
|
var tmp0_iterator_1 = tmp3_flatMap.c();
|
|
@@ -2666,7 +2678,7 @@
|
|
|
2666
2678
|
if (element_0 instanceof SchemaObject_0) {
|
|
2667
2679
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2668
2680
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2669
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
2681
|
+
var tmp0_elvis_lhs_0 = element_0.d1j_1;
|
|
2670
2682
|
var tmp1_flatMap_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2671
2683
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2672
2684
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
@@ -2684,7 +2696,7 @@
|
|
|
2684
2696
|
tmp_5 = emptyList();
|
|
2685
2697
|
} else {
|
|
2686
2698
|
if (value instanceof SchemaObject_0) {
|
|
2687
|
-
tmp_5 = flatten_1(value, $this, Common_getInstance().
|
|
2699
|
+
tmp_5 = flatten_1(value, $this, Common_getInstance().r21([name, key_0]));
|
|
2688
2700
|
} else {
|
|
2689
2701
|
noWhenBranchMatchedException();
|
|
2690
2702
|
}
|
|
@@ -2701,10 +2713,10 @@
|
|
|
2701
2713
|
addAll(tmp0_flatMapTo_0, list_2);
|
|
2702
2714
|
}
|
|
2703
2715
|
tmp = plus(tmp_3, tmp0_flatMapTo_0);
|
|
2704
|
-
} else if (!(_this__u8e3s4.
|
|
2716
|
+
} else if (!(_this__u8e3s4.x1j_1 == null)) {
|
|
2705
2717
|
// Inline function 'kotlin.let' call
|
|
2706
2718
|
// Inline function 'kotlin.collections.map' call
|
|
2707
|
-
var tmp4_map = ensureNotNull(_this__u8e3s4.
|
|
2719
|
+
var tmp4_map = ensureNotNull(_this__u8e3s4.x1j_1);
|
|
2708
2720
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2709
2721
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp4_map, 10));
|
|
2710
2722
|
var tmp0_iterator_3 = tmp4_map.c();
|
|
@@ -2712,7 +2724,7 @@
|
|
|
2712
2724
|
var item = tmp0_iterator_3.e();
|
|
2713
2725
|
var tmp$ret$18;
|
|
2714
2726
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2715
|
-
tmp$ret$18 = item.
|
|
2727
|
+
tmp$ret$18 = item.uz();
|
|
2716
2728
|
tmp0_mapTo.a(tmp$ret$18);
|
|
2717
2729
|
}
|
|
2718
2730
|
var tmp5_let = toSet(tmp0_mapTo);
|
|
@@ -2720,7 +2732,7 @@
|
|
|
2720
2732
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2721
2733
|
tmp = listOf(new Enum(name, tmp5_let));
|
|
2722
2734
|
} else {
|
|
2723
|
-
var tmp5_subject = _this__u8e3s4.
|
|
2735
|
+
var tmp5_subject = _this__u8e3s4.x1i_1;
|
|
2724
2736
|
var tmp_6;
|
|
2725
2737
|
switch (tmp5_subject == null ? -1 : tmp5_subject.p5_1) {
|
|
2726
2738
|
case -1:
|
|
@@ -2729,7 +2741,7 @@
|
|
|
2729
2741
|
|
|
2730
2742
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2731
2743
|
|
|
2732
|
-
var tmp0_elvis_lhs_1 = _this__u8e3s4.
|
|
2744
|
+
var tmp0_elvis_lhs_1 = _this__u8e3s4.d1j_1;
|
|
2733
2745
|
var tmp7_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
2734
2746
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2735
2747
|
|
|
@@ -2744,7 +2756,7 @@
|
|
|
2744
2756
|
var key_1 = element_2.x();
|
|
2745
2757
|
// Inline function 'kotlin.collections.component2' call
|
|
2746
2758
|
var value_0 = element_2.y();
|
|
2747
|
-
var list_3 = flatten_2(value_0, $this, Common_getInstance().
|
|
2759
|
+
var list_3 = flatten_2(value_0, $this, Common_getInstance().r21([name, key_1]));
|
|
2748
2760
|
addAll(tmp0_flatMapTo_2, list_3);
|
|
2749
2761
|
}
|
|
2750
2762
|
|
|
@@ -2753,7 +2765,7 @@
|
|
|
2753
2765
|
tmp_6 = plus(schema, fields);
|
|
2754
2766
|
break;
|
|
2755
2767
|
case 4:
|
|
2756
|
-
var tmp6_safe_receiver = _this__u8e3s4.
|
|
2768
|
+
var tmp6_safe_receiver = _this__u8e3s4.c1j_1;
|
|
2757
2769
|
var tmp_7;
|
|
2758
2770
|
if (tmp6_safe_receiver == null) {
|
|
2759
2771
|
tmp_7 = null;
|
|
@@ -2766,7 +2778,7 @@
|
|
|
2766
2778
|
tmp_8 = emptyList();
|
|
2767
2779
|
} else {
|
|
2768
2780
|
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
2769
|
-
tmp_8 = flatten_1(tmp6_safe_receiver, $this, Common_getInstance().
|
|
2781
|
+
tmp_8 = flatten_1(tmp6_safe_receiver, $this, Common_getInstance().r21([name, 'array']));
|
|
2770
2782
|
} else {
|
|
2771
2783
|
noWhenBranchMatchedException();
|
|
2772
2784
|
}
|
|
@@ -2806,8 +2818,8 @@
|
|
|
2806
2818
|
var referencingObject = tmp0_let.e3();
|
|
2807
2819
|
var schema = tmp0_let.f3();
|
|
2808
2820
|
var tmp;
|
|
2809
|
-
if (!(schema.
|
|
2810
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2821
|
+
if (!(schema.e1j_1 == null)) {
|
|
2822
|
+
var additionalProperties = ensureNotNull(schema.e1j_1);
|
|
2811
2823
|
var tmp_0;
|
|
2812
2824
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
2813
2825
|
tmp_0 = new Any(false, true);
|
|
@@ -2823,24 +2835,24 @@
|
|
|
2823
2835
|
}
|
|
2824
2836
|
}
|
|
2825
2837
|
tmp = tmp_0;
|
|
2826
|
-
} else if (!(schema.
|
|
2827
|
-
tmp = new Custom(Common_getInstance().
|
|
2828
|
-
} else if (isPrimitive_0(schema.
|
|
2829
|
-
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.
|
|
2838
|
+
} else if (!(schema.x1j_1 == null)) {
|
|
2839
|
+
tmp = new Custom(Common_getInstance().r21([getReference_0(referencingObject, $this)]), false, false);
|
|
2840
|
+
} else if (isPrimitive_0(schema.x1i_1)) {
|
|
2841
|
+
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.x1i_1), $this), false, false);
|
|
2830
2842
|
} else {
|
|
2831
|
-
var tmp0_subject = schema.
|
|
2843
|
+
var tmp0_subject = schema.x1i_1;
|
|
2832
2844
|
var tmp_1;
|
|
2833
2845
|
if ((tmp0_subject == null ? -1 : tmp0_subject.p5_1) === 4) {
|
|
2834
|
-
var items = schema.
|
|
2846
|
+
var items = schema.c1j_1;
|
|
2835
2847
|
var tmp_2;
|
|
2836
2848
|
if (items instanceof ReferenceObject_0) {
|
|
2837
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2849
|
+
tmp_2 = new Custom(Common_getInstance().r21([getReference_0(items, $this)]), true);
|
|
2838
2850
|
} else {
|
|
2839
2851
|
if (items instanceof SchemaObject_0) {
|
|
2840
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2852
|
+
tmp_2 = new Custom(Common_getInstance().r21([getReference_0(referencingObject, $this), 'Array']), true);
|
|
2841
2853
|
} else {
|
|
2842
2854
|
if (items == null) {
|
|
2843
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.
|
|
2855
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.l1i_1);
|
|
2844
2856
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2845
2857
|
} else {
|
|
2846
2858
|
noWhenBranchMatchedException();
|
|
@@ -2849,7 +2861,7 @@
|
|
|
2849
2861
|
}
|
|
2850
2862
|
tmp_1 = tmp_2;
|
|
2851
2863
|
} else {
|
|
2852
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
2864
|
+
tmp_1 = new Custom(Common_getInstance().r21([getReference_0(referencingObject, $this)]), false);
|
|
2853
2865
|
}
|
|
2854
2866
|
tmp = tmp_1;
|
|
2855
2867
|
}
|
|
@@ -2857,8 +2869,8 @@
|
|
|
2857
2869
|
}
|
|
2858
2870
|
function toReference_2(_this__u8e3s4, $this, name) {
|
|
2859
2871
|
var tmp;
|
|
2860
|
-
if (!(_this__u8e3s4.
|
|
2861
|
-
var additionalProperties = ensureNotNull(_this__u8e3s4.
|
|
2872
|
+
if (!(_this__u8e3s4.e1j_1 == null)) {
|
|
2873
|
+
var additionalProperties = ensureNotNull(_this__u8e3s4.e1j_1);
|
|
2862
2874
|
var tmp_0;
|
|
2863
2875
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
2864
2876
|
tmp_0 = new Any(false, true);
|
|
@@ -2871,7 +2883,7 @@
|
|
|
2871
2883
|
// Inline function 'kotlin.contracts.contract' call
|
|
2872
2884
|
var tmp_1;
|
|
2873
2885
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toReference.<anonymous>' call
|
|
2874
|
-
if (isPrimitive_0(additionalProperties.
|
|
2886
|
+
if (isPrimitive_0(additionalProperties.x1i_1) ? true : !(additionalProperties.d1j_1 == null)) {
|
|
2875
2887
|
tmp_1 = additionalProperties;
|
|
2876
2888
|
} else {
|
|
2877
2889
|
tmp_1 = null;
|
|
@@ -2894,32 +2906,32 @@
|
|
|
2894
2906
|
}
|
|
2895
2907
|
}
|
|
2896
2908
|
tmp = tmp_0;
|
|
2897
|
-
} else if (!(_this__u8e3s4.
|
|
2898
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
2909
|
+
} else if (!(_this__u8e3s4.x1j_1 == null)) {
|
|
2910
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.e1j_1 == null));
|
|
2899
2911
|
} else {
|
|
2900
|
-
var type = _this__u8e3s4.
|
|
2912
|
+
var type = _this__u8e3s4.x1i_1;
|
|
2901
2913
|
var tmp_3;
|
|
2902
2914
|
switch (type == null ? -1 : type.p5_1) {
|
|
2903
2915
|
case 0:
|
|
2904
2916
|
case 1:
|
|
2905
2917
|
case 2:
|
|
2906
2918
|
case 3:
|
|
2907
|
-
tmp_3 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.
|
|
2919
|
+
tmp_3 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.e1j_1 == null));
|
|
2908
2920
|
break;
|
|
2909
2921
|
case -1:
|
|
2910
2922
|
case 5:
|
|
2911
2923
|
var tmp_4;
|
|
2912
|
-
var tmp_5 = _this__u8e3s4.
|
|
2924
|
+
var tmp_5 = _this__u8e3s4.e1j_1;
|
|
2913
2925
|
if (tmp_5 instanceof BooleanObject_0) {
|
|
2914
|
-
tmp_4 = new Any(false, !(_this__u8e3s4.
|
|
2926
|
+
tmp_4 = new Any(false, !(_this__u8e3s4.e1j_1 == null));
|
|
2915
2927
|
} else {
|
|
2916
|
-
tmp_4 = new Custom(name, false, !(_this__u8e3s4.
|
|
2928
|
+
tmp_4 = new Custom(name, false, !(_this__u8e3s4.e1j_1 == null));
|
|
2917
2929
|
}
|
|
2918
2930
|
|
|
2919
2931
|
tmp_3 = tmp_4;
|
|
2920
2932
|
break;
|
|
2921
2933
|
case 4:
|
|
2922
|
-
var it = _this__u8e3s4.
|
|
2934
|
+
var it = _this__u8e3s4.c1j_1;
|
|
2923
2935
|
var tmp_6;
|
|
2924
2936
|
if (it instanceof ReferenceObject_0) {
|
|
2925
2937
|
tmp_6 = toIterable_0(toReference_1(it, $this));
|
|
@@ -2959,28 +2971,28 @@
|
|
|
2959
2971
|
var tmp;
|
|
2960
2972
|
switch (element.p5_1) {
|
|
2961
2973
|
case 0:
|
|
2962
|
-
tmp = _this__u8e3s4.
|
|
2974
|
+
tmp = _this__u8e3s4.e1g_1;
|
|
2963
2975
|
break;
|
|
2964
2976
|
case 1:
|
|
2965
|
-
tmp = _this__u8e3s4.
|
|
2977
|
+
tmp = _this__u8e3s4.g1g_1;
|
|
2966
2978
|
break;
|
|
2967
2979
|
case 2:
|
|
2968
|
-
tmp = _this__u8e3s4.
|
|
2980
|
+
tmp = _this__u8e3s4.f1g_1;
|
|
2969
2981
|
break;
|
|
2970
2982
|
case 3:
|
|
2971
|
-
tmp = _this__u8e3s4.
|
|
2983
|
+
tmp = _this__u8e3s4.h1g_1;
|
|
2972
2984
|
break;
|
|
2973
2985
|
case 4:
|
|
2974
|
-
tmp = _this__u8e3s4.
|
|
2986
|
+
tmp = _this__u8e3s4.i1g_1;
|
|
2975
2987
|
break;
|
|
2976
2988
|
case 5:
|
|
2977
|
-
tmp = _this__u8e3s4.
|
|
2989
|
+
tmp = _this__u8e3s4.j1g_1;
|
|
2978
2990
|
break;
|
|
2979
2991
|
case 6:
|
|
2980
|
-
tmp = _this__u8e3s4.
|
|
2992
|
+
tmp = _this__u8e3s4.k1g_1;
|
|
2981
2993
|
break;
|
|
2982
2994
|
case 7:
|
|
2983
|
-
tmp = _this__u8e3s4.
|
|
2995
|
+
tmp = _this__u8e3s4.l1g_1;
|
|
2984
2996
|
break;
|
|
2985
2997
|
default:
|
|
2986
2998
|
noWhenBranchMatchedException();
|
|
@@ -2992,10 +3004,10 @@
|
|
|
2992
3004
|
return filterNotNullValues_0(result);
|
|
2993
3005
|
}
|
|
2994
3006
|
function getReference_0(_this__u8e3s4, $this) {
|
|
2995
|
-
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
3007
|
+
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.l1i_1), ['/']), 3);
|
|
2996
3008
|
var tmp;
|
|
2997
3009
|
if (tmp0_elvis_lhs == null) {
|
|
2998
|
-
var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
3010
|
+
var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.l1i_1);
|
|
2999
3011
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
3000
3012
|
} else {
|
|
3001
3013
|
tmp = tmp0_elvis_lhs;
|
|
@@ -3025,7 +3037,7 @@
|
|
|
3025
3037
|
function toField_1(_this__u8e3s4, $this, name) {
|
|
3026
3038
|
// Inline function 'kotlin.collections.map' call
|
|
3027
3039
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3028
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
3040
|
+
var tmp0_elvis_lhs = _this__u8e3s4.d1j_1;
|
|
3029
3041
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3030
3042
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3031
3043
|
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.f());
|
|
@@ -3042,15 +3054,15 @@
|
|
|
3042
3054
|
var tmp;
|
|
3043
3055
|
if (value instanceof SchemaObject_0) {
|
|
3044
3056
|
var tmp_0 = new Identifier(key);
|
|
3045
|
-
var tmp_1 = !(value.
|
|
3046
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
3057
|
+
var tmp_1 = !(value.x1j_1 == null) ? toReference_2(value, $this, Common_getInstance().r21([name, key])) : equals(value.x1i_1, Type_ARRAY_getInstance_0()) ? toReference_2(value, $this, Common_getInstance().r21([name, key, 'Array'])) : toReference_2(value, $this, Common_getInstance().r21([name, key]));
|
|
3058
|
+
var tmp1_safe_receiver = _this__u8e3s4.w1j_1;
|
|
3047
3059
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t(key);
|
|
3048
3060
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
3049
3061
|
} else {
|
|
3050
3062
|
if (value instanceof ReferenceObject_0) {
|
|
3051
3063
|
var tmp_2 = new Identifier(key);
|
|
3052
|
-
var tmp_3 = new Custom(Common_getInstance().
|
|
3053
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
3064
|
+
var tmp_3 = new Custom(Common_getInstance().r21([getReference_0(value, $this)]), false);
|
|
3065
|
+
var tmp3_safe_receiver = _this__u8e3s4.w1j_1;
|
|
3054
3066
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.t(key);
|
|
3055
3067
|
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
3056
3068
|
} else {
|
|
@@ -3064,7 +3076,7 @@
|
|
|
3064
3076
|
}
|
|
3065
3077
|
function toField_2(_this__u8e3s4, $this, name) {
|
|
3066
3078
|
// Inline function 'kotlin.let' call
|
|
3067
|
-
var s = _this__u8e3s4.
|
|
3079
|
+
var s = _this__u8e3s4.n1h_1;
|
|
3068
3080
|
var tmp;
|
|
3069
3081
|
if (s instanceof ReferenceObject_0) {
|
|
3070
3082
|
tmp = toReference_1(s, $this);
|
|
@@ -3082,13 +3094,13 @@
|
|
|
3082
3094
|
var tmp0_let = tmp;
|
|
3083
3095
|
// Inline function 'kotlin.contracts.contract' call
|
|
3084
3096
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3085
|
-
var tmp_0 = new Identifier(_this__u8e3s4.
|
|
3086
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
3097
|
+
var tmp_0 = new Identifier(_this__u8e3s4.r1h_1);
|
|
3098
|
+
var tmp0_elvis_lhs = _this__u8e3s4.h1h_1;
|
|
3087
3099
|
return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
3088
3100
|
}
|
|
3089
3101
|
function toField_3(_this__u8e3s4, $this, identifier, name) {
|
|
3090
3102
|
// Inline function 'kotlin.let' call
|
|
3091
|
-
var s = _this__u8e3s4.
|
|
3103
|
+
var s = _this__u8e3s4.s1k_1;
|
|
3092
3104
|
var tmp;
|
|
3093
3105
|
if (s instanceof ReferenceObject_0) {
|
|
3094
3106
|
tmp = toReference_1(s, $this);
|
|
@@ -3107,23 +3119,23 @@
|
|
|
3107
3119
|
// Inline function 'kotlin.contracts.contract' call
|
|
3108
3120
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3109
3121
|
var tmp_0 = new Identifier(identifier);
|
|
3110
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
3122
|
+
var tmp0_elvis_lhs = _this__u8e3s4.m1k_1;
|
|
3111
3123
|
return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
3112
3124
|
}
|
|
3113
3125
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
3114
|
-
this.
|
|
3115
|
-
this.
|
|
3116
|
-
this.
|
|
3117
|
-
this.
|
|
3126
|
+
this.k22_1 = path;
|
|
3127
|
+
this.l22_1 = pathItem;
|
|
3128
|
+
this.m22_1 = method;
|
|
3129
|
+
this.n22_1 = operation;
|
|
3118
3130
|
}
|
|
3119
3131
|
protoOf(FlattenRequest_0).toString = function () {
|
|
3120
|
-
return 'FlattenRequest(path=' + new Path_0(this.
|
|
3132
|
+
return 'FlattenRequest(path=' + new Path_0(this.k22_1) + ', pathItem=' + this.l22_1 + ', method=' + this.m22_1 + ', operation=' + this.n22_1 + ')';
|
|
3121
3133
|
};
|
|
3122
3134
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
3123
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3124
|
-
result = imul(result, 31) + this.
|
|
3125
|
-
result = imul(result, 31) + this.
|
|
3126
|
-
result = imul(result, 31) + this.
|
|
3135
|
+
var result = Path__hashCode_impl_go73kd_0(this.k22_1);
|
|
3136
|
+
result = imul(result, 31) + this.l22_1.hashCode() | 0;
|
|
3137
|
+
result = imul(result, 31) + this.m22_1.hashCode() | 0;
|
|
3138
|
+
result = imul(result, 31) + this.n22_1.hashCode() | 0;
|
|
3127
3139
|
return result;
|
|
3128
3140
|
};
|
|
3129
3141
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -3132,20 +3144,20 @@
|
|
|
3132
3144
|
if (!(other instanceof FlattenRequest_0))
|
|
3133
3145
|
return false;
|
|
3134
3146
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
3135
|
-
if (!(this.
|
|
3147
|
+
if (!(this.k22_1 === tmp0_other_with_cast.k22_1))
|
|
3136
3148
|
return false;
|
|
3137
|
-
if (!this.
|
|
3149
|
+
if (!this.l22_1.equals(tmp0_other_with_cast.l22_1))
|
|
3138
3150
|
return false;
|
|
3139
|
-
if (!this.
|
|
3151
|
+
if (!this.m22_1.equals(tmp0_other_with_cast.m22_1))
|
|
3140
3152
|
return false;
|
|
3141
|
-
if (!this.
|
|
3153
|
+
if (!this.n22_1.equals(tmp0_other_with_cast.n22_1))
|
|
3142
3154
|
return false;
|
|
3143
3155
|
return true;
|
|
3144
3156
|
};
|
|
3145
3157
|
function flatMapRequests_0(_this__u8e3s4, $this, f) {
|
|
3146
3158
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3147
3159
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3148
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
3160
|
+
var tmp0_flatMap = _this__u8e3s4.q1f_1;
|
|
3149
3161
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3150
3162
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
3151
3163
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -3154,7 +3166,7 @@
|
|
|
3154
3166
|
var element = tmp0_iterator.e();
|
|
3155
3167
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
3156
3168
|
// Inline function 'kotlin.collections.component1' call
|
|
3157
|
-
var path = element.x().
|
|
3169
|
+
var path = element.x().y1f_1;
|
|
3158
3170
|
// Inline function 'kotlin.collections.component2' call
|
|
3159
3171
|
var pathItem = element.y();
|
|
3160
3172
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3189,23 +3201,23 @@
|
|
|
3189
3201
|
return tmp0_flatMapTo_0;
|
|
3190
3202
|
}
|
|
3191
3203
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
3192
|
-
this.
|
|
3193
|
-
this.
|
|
3194
|
-
this.
|
|
3195
|
-
this.
|
|
3196
|
-
this.
|
|
3197
|
-
this.
|
|
3204
|
+
this.o22_1 = path;
|
|
3205
|
+
this.p22_1 = pathItem;
|
|
3206
|
+
this.q22_1 = method;
|
|
3207
|
+
this.r22_1 = operation;
|
|
3208
|
+
this.s22_1 = statusCode;
|
|
3209
|
+
this.t22_1 = response;
|
|
3198
3210
|
}
|
|
3199
3211
|
protoOf(FlattenResponse_0).toString = function () {
|
|
3200
|
-
return 'FlattenResponse(path=' + new Path_0(this.
|
|
3212
|
+
return 'FlattenResponse(path=' + new Path_0(this.o22_1) + ', pathItem=' + this.p22_1 + ', method=' + this.q22_1 + ', operation=' + this.r22_1 + ', statusCode=' + new StatusCode_0(this.s22_1) + ', response=' + this.t22_1 + ')';
|
|
3201
3213
|
};
|
|
3202
3214
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
3203
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3204
|
-
result = imul(result, 31) + this.
|
|
3205
|
-
result = imul(result, 31) + this.
|
|
3206
|
-
result = imul(result, 31) + this.
|
|
3207
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.
|
|
3208
|
-
result = imul(result, 31) + hashCode(this.
|
|
3215
|
+
var result = Path__hashCode_impl_go73kd_0(this.o22_1);
|
|
3216
|
+
result = imul(result, 31) + this.p22_1.hashCode() | 0;
|
|
3217
|
+
result = imul(result, 31) + this.q22_1.hashCode() | 0;
|
|
3218
|
+
result = imul(result, 31) + this.r22_1.hashCode() | 0;
|
|
3219
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.s22_1) | 0;
|
|
3220
|
+
result = imul(result, 31) + hashCode(this.t22_1) | 0;
|
|
3209
3221
|
return result;
|
|
3210
3222
|
};
|
|
3211
3223
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -3214,24 +3226,24 @@
|
|
|
3214
3226
|
if (!(other instanceof FlattenResponse_0))
|
|
3215
3227
|
return false;
|
|
3216
3228
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
3217
|
-
if (!(this.
|
|
3229
|
+
if (!(this.o22_1 === tmp0_other_with_cast.o22_1))
|
|
3218
3230
|
return false;
|
|
3219
|
-
if (!this.
|
|
3231
|
+
if (!this.p22_1.equals(tmp0_other_with_cast.p22_1))
|
|
3220
3232
|
return false;
|
|
3221
|
-
if (!this.
|
|
3233
|
+
if (!this.q22_1.equals(tmp0_other_with_cast.q22_1))
|
|
3222
3234
|
return false;
|
|
3223
|
-
if (!this.
|
|
3235
|
+
if (!this.r22_1.equals(tmp0_other_with_cast.r22_1))
|
|
3224
3236
|
return false;
|
|
3225
|
-
if (!(this.
|
|
3237
|
+
if (!(this.s22_1 === tmp0_other_with_cast.s22_1))
|
|
3226
3238
|
return false;
|
|
3227
|
-
if (!equals(this.
|
|
3239
|
+
if (!equals(this.t22_1, tmp0_other_with_cast.t22_1))
|
|
3228
3240
|
return false;
|
|
3229
3241
|
return true;
|
|
3230
3242
|
};
|
|
3231
3243
|
function flatMapResponses_0(_this__u8e3s4, $this, f) {
|
|
3232
3244
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3233
3245
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3234
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
3246
|
+
var tmp0_flatMap = _this__u8e3s4.q1f_1;
|
|
3235
3247
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3236
3248
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
3237
3249
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -3240,7 +3252,7 @@
|
|
|
3240
3252
|
var element = tmp0_iterator.e();
|
|
3241
3253
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
3242
3254
|
// Inline function 'kotlin.collections.component1' call
|
|
3243
|
-
var path = element.x().
|
|
3255
|
+
var path = element.x().y1f_1;
|
|
3244
3256
|
// Inline function 'kotlin.collections.component2' call
|
|
3245
3257
|
var pathItem = element.y();
|
|
3246
3258
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -3257,7 +3269,7 @@
|
|
|
3257
3269
|
// Inline function 'kotlin.collections.component2' call
|
|
3258
3270
|
var operation = element_0.y();
|
|
3259
3271
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3260
|
-
var tmp0_safe_receiver = operation.
|
|
3272
|
+
var tmp0_safe_receiver = operation.y1g_1;
|
|
3261
3273
|
var tmp;
|
|
3262
3274
|
if (tmp0_safe_receiver == null) {
|
|
3263
3275
|
tmp = null;
|
|
@@ -3272,7 +3284,7 @@
|
|
|
3272
3284
|
var tmp$ret$9;
|
|
3273
3285
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
3274
3286
|
// Inline function 'kotlin.collections.component1' call
|
|
3275
|
-
var statusCode = item.x().
|
|
3287
|
+
var statusCode = item.x().b1k_1;
|
|
3276
3288
|
// Inline function 'kotlin.collections.component2' call
|
|
3277
3289
|
var response = item.y();
|
|
3278
3290
|
tmp$ret$9 = new FlattenResponse_0(path, pathItem, method, operation, statusCode, response);
|
|
@@ -3300,9 +3312,9 @@
|
|
|
3300
3312
|
}
|
|
3301
3313
|
function OpenApiParser$parseParameters$lambda_0(this$0) {
|
|
3302
3314
|
return function (req) {
|
|
3303
|
-
var parameters = plus(resolveParameters_2(req.
|
|
3304
|
-
var tmp0_elvis_lhs = toName_1(req.
|
|
3305
|
-
var name = tmp0_elvis_lhs == null ? toName_2(req.
|
|
3315
|
+
var parameters = plus(resolveParameters_2(req.l22_1, this$0), resolveParameters_1(req.n22_1, this$0));
|
|
3316
|
+
var tmp0_elvis_lhs = toName_1(req.n22_1, this$0);
|
|
3317
|
+
var name = tmp0_elvis_lhs == null ? toName_2(req.k22_1, this$0) + req.m22_1.o5_1 : tmp0_elvis_lhs;
|
|
3306
3318
|
var tmp$ret$2;
|
|
3307
3319
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3308
3320
|
var tmp$ret$1;
|
|
@@ -3313,8 +3325,8 @@
|
|
|
3313
3325
|
var element = tmp0_iterator.e();
|
|
3314
3326
|
var tmp$ret$0;
|
|
3315
3327
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
3316
|
-
var tmp0_safe_receiver = element.
|
|
3317
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().
|
|
3328
|
+
var tmp0_safe_receiver = element.n1h_1;
|
|
3329
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().r21([name, 'Parameter', element.r1h_1]));
|
|
3318
3330
|
tmp$ret$0 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
3319
3331
|
var list = tmp$ret$0;
|
|
3320
3332
|
addAll(tmp0_flatMapTo, list);
|
|
@@ -3326,15 +3338,15 @@
|
|
|
3326
3338
|
}
|
|
3327
3339
|
function OpenApiParser$parseRequestBody$lambda_0(this$0) {
|
|
3328
3340
|
return function (req) {
|
|
3329
|
-
var tmp0_elvis_lhs = toName_1(req.
|
|
3330
|
-
var name = tmp0_elvis_lhs == null ? toName_2(req.
|
|
3341
|
+
var tmp0_elvis_lhs = toName_1(req.n22_1, this$0);
|
|
3342
|
+
var name = tmp0_elvis_lhs == null ? toName_2(req.k22_1, this$0) + req.m22_1.o5_1 : tmp0_elvis_lhs;
|
|
3331
3343
|
var tmp$ret$6;
|
|
3332
3344
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3333
3345
|
var tmp$ret$0;
|
|
3334
3346
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3335
|
-
var tmp1_safe_receiver = req.
|
|
3347
|
+
var tmp1_safe_receiver = req.n22_1.x1g_1;
|
|
3336
3348
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_6(tmp1_safe_receiver, this$0);
|
|
3337
|
-
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
3349
|
+
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.x1h_1;
|
|
3338
3350
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
3339
3351
|
tmp$ret$0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
3340
3352
|
var tmp1_flatMap = tmp$ret$0;
|
|
@@ -3353,22 +3365,22 @@
|
|
|
3353
3365
|
// Inline function 'kotlin.collections.component2' call
|
|
3354
3366
|
tmp$ret$2 = element.y();
|
|
3355
3367
|
var mediaObject = tmp$ret$2;
|
|
3356
|
-
var schema = mediaObject.
|
|
3368
|
+
var schema = mediaObject.f1i_1;
|
|
3357
3369
|
var tmp;
|
|
3358
3370
|
if (schema instanceof SchemaObject_0) {
|
|
3359
|
-
var tmp0_subject = schema.
|
|
3371
|
+
var tmp0_subject = schema.x1i_1;
|
|
3360
3372
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.p5_1;
|
|
3361
3373
|
var tmp_0;
|
|
3362
3374
|
switch (tmp0) {
|
|
3363
3375
|
case -1:
|
|
3364
3376
|
case 5:
|
|
3365
|
-
tmp_0 = flatten_1(schema, this$0, Common_getInstance().
|
|
3377
|
+
tmp_0 = flatten_1(schema, this$0, Common_getInstance().r21([name, 'RequestBody']));
|
|
3366
3378
|
break;
|
|
3367
3379
|
case 4:
|
|
3368
3380
|
var tmp$ret$3;
|
|
3369
3381
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3370
|
-
var tmp1_safe_receiver_0 = schema.
|
|
3371
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
3382
|
+
var tmp1_safe_receiver_0 = schema.c1j_1;
|
|
3383
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().r21([name, 'RequestBody']));
|
|
3372
3384
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
3373
3385
|
tmp$ret$3 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
3374
3386
|
|
|
@@ -3401,16 +3413,16 @@
|
|
|
3401
3413
|
}
|
|
3402
3414
|
function OpenApiParser$parseResponseBody$lambda_0(this$0) {
|
|
3403
3415
|
return function (res) {
|
|
3404
|
-
var tmp0_elvis_lhs = toName_1(res.
|
|
3405
|
-
var name = tmp0_elvis_lhs == null ? toName_2(res.
|
|
3406
|
-
var response = res.
|
|
3416
|
+
var tmp0_elvis_lhs = toName_1(res.r22_1, this$0);
|
|
3417
|
+
var name = tmp0_elvis_lhs == null ? toName_2(res.o22_1, this$0) + res.q22_1.o5_1 : tmp0_elvis_lhs;
|
|
3418
|
+
var response = res.t22_1;
|
|
3407
3419
|
var tmp;
|
|
3408
3420
|
if (response instanceof ResponseObject_0) {
|
|
3409
3421
|
var tmp$ret$7;
|
|
3410
3422
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3411
3423
|
var tmp$ret$0;
|
|
3412
3424
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3413
|
-
var tmp0_orEmpty = response.
|
|
3425
|
+
var tmp0_orEmpty = response.g1k_1;
|
|
3414
3426
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
3415
3427
|
tmp$ret$0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
3416
3428
|
var tmp1_flatMap = tmp$ret$0;
|
|
@@ -3427,28 +3439,28 @@
|
|
|
3427
3439
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
3428
3440
|
var tmp$ret$2;
|
|
3429
3441
|
// Inline function 'kotlin.collections.component1' call
|
|
3430
|
-
tmp$ret$2 = element.x().
|
|
3442
|
+
tmp$ret$2 = element.x().c1i_1;
|
|
3431
3443
|
var mediaType = tmp$ret$2;
|
|
3432
3444
|
var tmp$ret$3;
|
|
3433
3445
|
// Inline function 'kotlin.collections.component2' call
|
|
3434
3446
|
tmp$ret$3 = element.y();
|
|
3435
3447
|
var mediaObject = tmp$ret$3;
|
|
3436
|
-
var schema = mediaObject.
|
|
3448
|
+
var schema = mediaObject.f1i_1;
|
|
3437
3449
|
var tmp_0;
|
|
3438
3450
|
if (schema instanceof SchemaObject_0) {
|
|
3439
|
-
var tmp0_subject = schema.
|
|
3451
|
+
var tmp0_subject = schema.x1i_1;
|
|
3440
3452
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.p5_1;
|
|
3441
3453
|
var tmp_1;
|
|
3442
3454
|
switch (tmp0) {
|
|
3443
3455
|
case -1:
|
|
3444
3456
|
case 5:
|
|
3445
|
-
tmp_1 = flatten_1(schema, this$0, Common_getInstance().
|
|
3457
|
+
tmp_1 = flatten_1(schema, this$0, Common_getInstance().r21([name, _StatusCode___get_value__impl__we50mu_0(res.s22_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
|
|
3446
3458
|
break;
|
|
3447
3459
|
case 4:
|
|
3448
3460
|
var tmp$ret$4;
|
|
3449
3461
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3450
|
-
var tmp1_safe_receiver = schema.
|
|
3451
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().
|
|
3462
|
+
var tmp1_safe_receiver = schema.c1j_1;
|
|
3463
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().r21([name, _StatusCode___get_value__impl__we50mu_0(res.s22_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
|
|
3452
3464
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
3453
3465
|
tmp$ret$4 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
3454
3466
|
|
|
@@ -3494,10 +3506,10 @@
|
|
|
3494
3506
|
tmp$ret$0 = it;
|
|
3495
3507
|
tmp$ret$1 = tmp$ret$0.substring(1, tmp0_substring);
|
|
3496
3508
|
|
|
3497
|
-
tmp = tmp_0.
|
|
3509
|
+
tmp = tmp_0.r21([tmp$ret$1]);
|
|
3498
3510
|
break;
|
|
3499
3511
|
case false:
|
|
3500
|
-
tmp = Common_getInstance().
|
|
3512
|
+
tmp = Common_getInstance().r21([it]);
|
|
3501
3513
|
break;
|
|
3502
3514
|
default:
|
|
3503
3515
|
noWhenBranchMatchedException();
|
|
@@ -3508,21 +3520,21 @@
|
|
|
3508
3520
|
}
|
|
3509
3521
|
function OpenApiParser_0(openApi) {
|
|
3510
3522
|
Companion_getInstance_1();
|
|
3511
|
-
this.
|
|
3523
|
+
this.j22_1 = openApi;
|
|
3512
3524
|
}
|
|
3513
3525
|
function toMap_1(_this__u8e3s4) {
|
|
3514
3526
|
var tmp;
|
|
3515
3527
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3516
|
-
tmp = _this__u8e3s4.
|
|
3528
|
+
tmp = _this__u8e3s4.g21(VOID, VOID, true);
|
|
3517
3529
|
} else {
|
|
3518
3530
|
if (_this__u8e3s4 instanceof Any) {
|
|
3519
|
-
tmp = _this__u8e3s4.
|
|
3531
|
+
tmp = _this__u8e3s4.b21(VOID, true);
|
|
3520
3532
|
} else {
|
|
3521
3533
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3522
|
-
tmp = _this__u8e3s4.
|
|
3534
|
+
tmp = _this__u8e3s4.i21(VOID, VOID, true);
|
|
3523
3535
|
} else {
|
|
3524
3536
|
if (_this__u8e3s4 instanceof Unit) {
|
|
3525
|
-
tmp = _this__u8e3s4.
|
|
3537
|
+
tmp = _this__u8e3s4.e21(VOID, true);
|
|
3526
3538
|
} else {
|
|
3527
3539
|
noWhenBranchMatchedException();
|
|
3528
3540
|
}
|
|
@@ -3564,16 +3576,16 @@
|
|
|
3564
3576
|
function toIterable_0(_this__u8e3s4) {
|
|
3565
3577
|
var tmp;
|
|
3566
3578
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3567
|
-
tmp = _this__u8e3s4.
|
|
3579
|
+
tmp = _this__u8e3s4.g21(VOID, true);
|
|
3568
3580
|
} else {
|
|
3569
3581
|
if (_this__u8e3s4 instanceof Any) {
|
|
3570
|
-
tmp = _this__u8e3s4.
|
|
3582
|
+
tmp = _this__u8e3s4.b21(true);
|
|
3571
3583
|
} else {
|
|
3572
3584
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3573
|
-
tmp = _this__u8e3s4.
|
|
3585
|
+
tmp = _this__u8e3s4.i21(VOID, true);
|
|
3574
3586
|
} else {
|
|
3575
3587
|
if (_this__u8e3s4 instanceof Unit) {
|
|
3576
|
-
tmp = _this__u8e3s4.
|
|
3588
|
+
tmp = _this__u8e3s4.e21(true);
|
|
3577
3589
|
} else {
|
|
3578
3590
|
noWhenBranchMatchedException();
|
|
3579
3591
|
}
|