@flock/wirespec 0.20.2 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clikt-clikt-mordant.mjs +79 -79
- package/clikt-clikt.mjs +1329 -1329
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +433 -433
- package/kotlin-kotlin-stdlib.mjs +6 -6
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10144 -10144
- package/kotlin-rgxgen.mjs +1760 -1760
- package/kotlinx-io-kotlinx-io-core.mjs +404 -404
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1810 -1810
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1488 -1488
- package/mordant-mordant.mjs +1198 -1198
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +1652 -1139
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +206 -191
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +153 -138
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +182 -153
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +439 -379
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +175 -160
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +268 -224
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +98 -77
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +3704 -3619
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +308 -227
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +503 -503
- package/wirespec-src-converter-openapi.mjs +581 -569
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-ide-lsp.mjs +1352 -1352
- package/wirespec-src-plugin-arguments.mjs +136 -136
- package/wirespec-src-plugin-cli.mjs +85 -85
- package/wirespec-src-plugin-npm.d.mts +15 -0
- package/wirespec-src-plugin-npm.mjs +26 -26
- package/wirespec-src-tools-generator.mjs +29 -24
- package/wirespec-src-tools-generator.mjs.map +1 -1
|
@@ -51,6 +51,7 @@ import {
|
|
|
51
51
|
Precision_P64_getInstanceoi1ashg00his as Precision_P64_getInstance,
|
|
52
52
|
Precision_P32_getInstance14q7j3bd2fxd5 as Precision_P32_getInstance,
|
|
53
53
|
Channel2fhxi4a4pwb64 as Channel,
|
|
54
|
+
Rpc1w89psy5tk702 as Rpc,
|
|
54
55
|
Unionccsavx6nrdr2 as Union,
|
|
55
56
|
} from './wirespec-src-compiler-core.mjs';
|
|
56
57
|
import {
|
|
@@ -241,11 +242,11 @@ initMetadataForObject(OpenAPIV3Parser, 'OpenAPIV3Parser');
|
|
|
241
242
|
function emitFormat(_this__u8e3s4) {
|
|
242
243
|
var tmp;
|
|
243
244
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
244
|
-
var t = _this__u8e3s4.
|
|
245
|
+
var t = _this__u8e3s4.wt_1;
|
|
245
246
|
var tmp_0;
|
|
246
247
|
if (t instanceof Number_0) {
|
|
247
248
|
var tmp_1;
|
|
248
|
-
switch (t.
|
|
249
|
+
switch (t.wu_1.c3_1) {
|
|
249
250
|
case 0:
|
|
250
251
|
tmp_1 = 'float';
|
|
251
252
|
break;
|
|
@@ -260,7 +261,7 @@ function emitFormat(_this__u8e3s4) {
|
|
|
260
261
|
} else {
|
|
261
262
|
if (t instanceof Integer) {
|
|
262
263
|
var tmp_2;
|
|
263
|
-
switch (t.
|
|
264
|
+
switch (t.tu_1.c3_1) {
|
|
264
265
|
case 0:
|
|
265
266
|
tmp_2 = 'int32';
|
|
266
267
|
break;
|
|
@@ -303,28 +304,28 @@ function toOperationList(_this__u8e3s4) {
|
|
|
303
304
|
var tmp;
|
|
304
305
|
switch (element.c3_1) {
|
|
305
306
|
case 0:
|
|
306
|
-
tmp = _this__u8e3s4.
|
|
307
|
+
tmp = _this__u8e3s4.t33();
|
|
307
308
|
break;
|
|
308
309
|
case 1:
|
|
309
|
-
tmp = _this__u8e3s4.
|
|
310
|
+
tmp = _this__u8e3s4.v33();
|
|
310
311
|
break;
|
|
311
312
|
case 2:
|
|
312
|
-
tmp = _this__u8e3s4.
|
|
313
|
+
tmp = _this__u8e3s4.u33();
|
|
313
314
|
break;
|
|
314
315
|
case 3:
|
|
315
|
-
tmp = _this__u8e3s4.
|
|
316
|
+
tmp = _this__u8e3s4.w33();
|
|
316
317
|
break;
|
|
317
318
|
case 4:
|
|
318
|
-
tmp = _this__u8e3s4.
|
|
319
|
+
tmp = _this__u8e3s4.x33();
|
|
319
320
|
break;
|
|
320
321
|
case 5:
|
|
321
|
-
tmp = _this__u8e3s4.
|
|
322
|
+
tmp = _this__u8e3s4.y33();
|
|
322
323
|
break;
|
|
323
324
|
case 6:
|
|
324
|
-
tmp = _this__u8e3s4.
|
|
325
|
+
tmp = _this__u8e3s4.z33();
|
|
325
326
|
break;
|
|
326
327
|
case 7:
|
|
327
|
-
tmp = _this__u8e3s4.
|
|
328
|
+
tmp = _this__u8e3s4.a34();
|
|
328
329
|
break;
|
|
329
330
|
default:
|
|
330
331
|
noWhenBranchMatchedException();
|
|
@@ -336,7 +337,7 @@ function toOperationList(_this__u8e3s4) {
|
|
|
336
337
|
return filterNotNullValues(result);
|
|
337
338
|
}
|
|
338
339
|
function toName(_this__u8e3s4) {
|
|
339
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
340
|
+
var tmp0_safe_receiver = _this__u8e3s4.x2z();
|
|
340
341
|
var tmp;
|
|
341
342
|
if (tmp0_safe_receiver == null) {
|
|
342
343
|
tmp = null;
|
|
@@ -373,7 +374,7 @@ function sanitize(_this__u8e3s4) {
|
|
|
373
374
|
var item = _iterator__ex2g4s.v();
|
|
374
375
|
var _unary__edvuaz = index;
|
|
375
376
|
index = _unary__edvuaz + 1 | 0;
|
|
376
|
-
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.
|
|
377
|
+
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.dr(item) : item;
|
|
377
378
|
destination.x(tmp$ret$0);
|
|
378
379
|
}
|
|
379
380
|
var tmp = asSequence(joinToString(destination, ''));
|
|
@@ -381,7 +382,7 @@ function sanitize(_this__u8e3s4) {
|
|
|
381
382
|
}
|
|
382
383
|
function flatMapRequests(_this__u8e3s4, f) {
|
|
383
384
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
384
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
385
|
+
var tmp0_elvis_lhs = _this__u8e3s4.y31();
|
|
385
386
|
// Inline function 'kotlin.collections.flatMap' call
|
|
386
387
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
387
388
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -391,7 +392,7 @@ function flatMapRequests(_this__u8e3s4, f) {
|
|
|
391
392
|
while (_iterator__ex2g4s.u()) {
|
|
392
393
|
var element = _iterator__ex2g4s.v();
|
|
393
394
|
// Inline function 'kotlin.collections.component1' call
|
|
394
|
-
var path = element.l1().
|
|
395
|
+
var path = element.l1().y2y_1;
|
|
395
396
|
// Inline function 'kotlin.collections.component2' call
|
|
396
397
|
var pathItem = element.m1();
|
|
397
398
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -424,19 +425,19 @@ function flatMapRequests(_this__u8e3s4, f) {
|
|
|
424
425
|
return destination_1;
|
|
425
426
|
}
|
|
426
427
|
function FlattenRequest(path, pathItem, method, operation) {
|
|
427
|
-
this.
|
|
428
|
-
this.
|
|
429
|
-
this.
|
|
430
|
-
this.
|
|
428
|
+
this.p45_1 = path;
|
|
429
|
+
this.q45_1 = pathItem;
|
|
430
|
+
this.r45_1 = method;
|
|
431
|
+
this.s45_1 = operation;
|
|
431
432
|
}
|
|
432
433
|
protoOf(FlattenRequest).toString = function () {
|
|
433
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
434
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.p45_1) + ', pathItem=' + toString(this.q45_1) + ', method=' + this.r45_1.toString() + ', operation=' + toString(this.s45_1) + ')';
|
|
434
435
|
};
|
|
435
436
|
protoOf(FlattenRequest).hashCode = function () {
|
|
436
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
437
|
-
result = imul(result, 31) + hashCode(this.
|
|
438
|
-
result = imul(result, 31) + this.
|
|
439
|
-
result = imul(result, 31) + hashCode(this.
|
|
437
|
+
var result = Path__hashCode_impl_go73kd(this.p45_1);
|
|
438
|
+
result = imul(result, 31) + hashCode(this.q45_1) | 0;
|
|
439
|
+
result = imul(result, 31) + this.r45_1.hashCode() | 0;
|
|
440
|
+
result = imul(result, 31) + hashCode(this.s45_1) | 0;
|
|
440
441
|
return result;
|
|
441
442
|
};
|
|
442
443
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -444,19 +445,19 @@ protoOf(FlattenRequest).equals = function (other) {
|
|
|
444
445
|
return true;
|
|
445
446
|
if (!(other instanceof FlattenRequest))
|
|
446
447
|
return false;
|
|
447
|
-
if (!(this.
|
|
448
|
+
if (!(this.p45_1 === other.p45_1))
|
|
448
449
|
return false;
|
|
449
|
-
if (!equals(this.
|
|
450
|
+
if (!equals(this.q45_1, other.q45_1))
|
|
450
451
|
return false;
|
|
451
|
-
if (!this.
|
|
452
|
+
if (!this.r45_1.equals(other.r45_1))
|
|
452
453
|
return false;
|
|
453
|
-
if (!equals(this.
|
|
454
|
+
if (!equals(this.s45_1, other.s45_1))
|
|
454
455
|
return false;
|
|
455
456
|
return true;
|
|
456
457
|
};
|
|
457
458
|
function flatMapResponses(_this__u8e3s4, f) {
|
|
458
459
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
459
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
460
|
+
var tmp0_elvis_lhs = _this__u8e3s4.y31();
|
|
460
461
|
// Inline function 'kotlin.collections.flatMap' call
|
|
461
462
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
462
463
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -466,7 +467,7 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
466
467
|
while (_iterator__ex2g4s.u()) {
|
|
467
468
|
var element = _iterator__ex2g4s.v();
|
|
468
469
|
// Inline function 'kotlin.collections.component1' call
|
|
469
|
-
var path = element.l1().
|
|
470
|
+
var path = element.l1().y2y_1;
|
|
470
471
|
// Inline function 'kotlin.collections.component2' call
|
|
471
472
|
var pathItem = element.m1();
|
|
472
473
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -482,7 +483,7 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
482
483
|
// Inline function 'kotlin.collections.component2' call
|
|
483
484
|
var operation = element_0.m1();
|
|
484
485
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
485
|
-
var tmp0_elvis_lhs_0 = operation.
|
|
486
|
+
var tmp0_elvis_lhs_0 = operation.tw();
|
|
486
487
|
// Inline function 'kotlin.collections.map' call
|
|
487
488
|
var this_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
488
489
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -492,7 +493,7 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
492
493
|
while (_iterator__ex2g4s_1.u()) {
|
|
493
494
|
var item = _iterator__ex2g4s_1.v();
|
|
494
495
|
// Inline function 'kotlin.collections.component1' call
|
|
495
|
-
var statusCode = item.l1().
|
|
496
|
+
var statusCode = item.l1().c2z_1;
|
|
496
497
|
// Inline function 'kotlin.collections.component2' call
|
|
497
498
|
var response = item.m1();
|
|
498
499
|
var tmp$ret$11 = new FlattenResponse(path, pathItem, method, operation, statusCode, response);
|
|
@@ -516,23 +517,23 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
516
517
|
return destination_2;
|
|
517
518
|
}
|
|
518
519
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response) {
|
|
519
|
-
this.
|
|
520
|
-
this.
|
|
521
|
-
this.
|
|
522
|
-
this.
|
|
523
|
-
this.
|
|
524
|
-
this.
|
|
520
|
+
this.t45_1 = path;
|
|
521
|
+
this.u45_1 = pathItem;
|
|
522
|
+
this.v45_1 = method;
|
|
523
|
+
this.w45_1 = operation;
|
|
524
|
+
this.x45_1 = statusCode;
|
|
525
|
+
this.y45_1 = response;
|
|
525
526
|
}
|
|
526
527
|
protoOf(FlattenResponse).toString = function () {
|
|
527
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
528
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.t45_1) + ', pathItem=' + toString(this.u45_1) + ', method=' + this.v45_1.toString() + ', operation=' + toString(this.w45_1) + ', statusCode=' + StatusCode__toString_impl_6caewy(this.x45_1) + ', response=' + toString(this.y45_1) + ')';
|
|
528
529
|
};
|
|
529
530
|
protoOf(FlattenResponse).hashCode = function () {
|
|
530
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
531
|
-
result = imul(result, 31) + hashCode(this.
|
|
532
|
-
result = imul(result, 31) + this.
|
|
533
|
-
result = imul(result, 31) + hashCode(this.
|
|
534
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
535
|
-
result = imul(result, 31) + hashCode(this.
|
|
531
|
+
var result = Path__hashCode_impl_go73kd(this.t45_1);
|
|
532
|
+
result = imul(result, 31) + hashCode(this.u45_1) | 0;
|
|
533
|
+
result = imul(result, 31) + this.v45_1.hashCode() | 0;
|
|
534
|
+
result = imul(result, 31) + hashCode(this.w45_1) | 0;
|
|
535
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.x45_1) | 0;
|
|
536
|
+
result = imul(result, 31) + hashCode(this.y45_1) | 0;
|
|
536
537
|
return result;
|
|
537
538
|
};
|
|
538
539
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -540,17 +541,17 @@ protoOf(FlattenResponse).equals = function (other) {
|
|
|
540
541
|
return true;
|
|
541
542
|
if (!(other instanceof FlattenResponse))
|
|
542
543
|
return false;
|
|
543
|
-
if (!(this.
|
|
544
|
+
if (!(this.t45_1 === other.t45_1))
|
|
544
545
|
return false;
|
|
545
|
-
if (!equals(this.
|
|
546
|
+
if (!equals(this.u45_1, other.u45_1))
|
|
546
547
|
return false;
|
|
547
|
-
if (!this.
|
|
548
|
+
if (!this.v45_1.equals(other.v45_1))
|
|
548
549
|
return false;
|
|
549
|
-
if (!equals(this.
|
|
550
|
+
if (!equals(this.w45_1, other.w45_1))
|
|
550
551
|
return false;
|
|
551
|
-
if (!(this.
|
|
552
|
+
if (!(this.x45_1 === other.x45_1))
|
|
552
553
|
return false;
|
|
553
|
-
if (!equals(this.
|
|
554
|
+
if (!equals(this.y45_1, other.y45_1))
|
|
554
555
|
return false;
|
|
555
556
|
return true;
|
|
556
557
|
};
|
|
@@ -559,7 +560,7 @@ function toDict(_this__u8e3s4, isNullable) {
|
|
|
559
560
|
}
|
|
560
561
|
function getReference(_this__u8e3s4) {
|
|
561
562
|
// Inline function 'kotlin.let' call
|
|
562
|
-
var it = split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
563
|
+
var it = split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.h2z()), ['/']);
|
|
563
564
|
var tmp;
|
|
564
565
|
if (_this__u8e3s4 instanceof OpenAPIV20Reference) {
|
|
565
566
|
tmp = getOrNull(it, 2);
|
|
@@ -569,7 +570,7 @@ function getReference(_this__u8e3s4) {
|
|
|
569
570
|
var tmp0_elvis_lhs = tmp;
|
|
570
571
|
var tmp_0;
|
|
571
572
|
if (tmp0_elvis_lhs == null) {
|
|
572
|
-
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
573
|
+
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe(_this__u8e3s4.h2z());
|
|
573
574
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
574
575
|
} else {
|
|
575
576
|
tmp_0 = tmp0_elvis_lhs;
|
|
@@ -584,8 +585,8 @@ function isParam(_this__u8e3s4) {
|
|
|
584
585
|
}
|
|
585
586
|
function jsonDefault$lambda($strict) {
|
|
586
587
|
return function ($this$Json) {
|
|
587
|
-
$this$Json.
|
|
588
|
-
$this$Json.
|
|
588
|
+
$this$Json.y2l_1 = true;
|
|
589
|
+
$this$Json.w2l_1 = !$strict;
|
|
589
590
|
return Unit_instance;
|
|
590
591
|
};
|
|
591
592
|
}
|
|
@@ -621,7 +622,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
621
622
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
622
623
|
while (_iterator__ex2g4s.u()) {
|
|
623
624
|
var element = _iterator__ex2g4s.v();
|
|
624
|
-
if (element.
|
|
625
|
+
if (element.nu_1 === 'Description') {
|
|
625
626
|
tmp$ret$1 = element;
|
|
626
627
|
break $l$block;
|
|
627
628
|
}
|
|
@@ -629,7 +630,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
629
630
|
tmp$ret$1 = null;
|
|
630
631
|
}
|
|
631
632
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
632
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
633
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ou_1;
|
|
633
634
|
var tmp;
|
|
634
635
|
if (tmp1_safe_receiver == null) {
|
|
635
636
|
tmp = null;
|
|
@@ -641,7 +642,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
641
642
|
var _iterator__ex2g4s_0 = tmp1_safe_receiver.t();
|
|
642
643
|
while (_iterator__ex2g4s_0.u()) {
|
|
643
644
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
644
|
-
if (element_0.
|
|
645
|
+
if (element_0.lu_1 === 'default') {
|
|
645
646
|
tmp$ret$4 = element_0;
|
|
646
647
|
break $l$block_0;
|
|
647
648
|
}
|
|
@@ -651,7 +652,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
651
652
|
tmp = tmp$ret$4;
|
|
652
653
|
}
|
|
653
654
|
var tmp2_safe_receiver = tmp;
|
|
654
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
655
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.mu_1;
|
|
655
656
|
var tmp_0;
|
|
656
657
|
if (tmp3_safe_receiver == null) {
|
|
657
658
|
tmp_0 = null;
|
|
@@ -660,7 +661,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
660
661
|
tmp_0 = tmp3_safe_receiver instanceof Single ? tmp3_safe_receiver : null;
|
|
661
662
|
}
|
|
662
663
|
var tmp4_safe_receiver = tmp_0;
|
|
663
|
-
return tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
664
|
+
return tmp4_safe_receiver == null ? null : tmp4_safe_receiver.iu_1;
|
|
664
665
|
}
|
|
665
666
|
function resolveEndpointNameCollisions(_this__u8e3s4) {
|
|
666
667
|
_init_properties_Utils_kt__jo07cx();
|
|
@@ -680,7 +681,7 @@ function resolveEndpointNameCollisions(_this__u8e3s4) {
|
|
|
680
681
|
var _iterator__ex2g4s_0 = destination.t();
|
|
681
682
|
while (_iterator__ex2g4s_0.u()) {
|
|
682
683
|
var item = _iterator__ex2g4s_0.v();
|
|
683
|
-
var tmp$ret$3 = item.
|
|
684
|
+
var tmp$ret$3 = item.mr().m1();
|
|
684
685
|
destination_0.x(tmp$ret$3);
|
|
685
686
|
}
|
|
686
687
|
var nonEndpointNames = toSet(destination_0);
|
|
@@ -693,12 +694,12 @@ function resolveEndpointNameCollisions(_this__u8e3s4) {
|
|
|
693
694
|
var tmp;
|
|
694
695
|
var tmp_0;
|
|
695
696
|
if (item_0 instanceof Endpoint) {
|
|
696
|
-
tmp_0 = nonEndpointNames.v1(item_0.
|
|
697
|
+
tmp_0 = nonEndpointNames.v1(item_0.kq_1.m1());
|
|
697
698
|
} else {
|
|
698
699
|
tmp_0 = false;
|
|
699
700
|
}
|
|
700
701
|
if (tmp_0) {
|
|
701
|
-
tmp = item_0.
|
|
702
|
+
tmp = item_0.du(VOID, VOID, new DefinitionIdentifier(item_0.kq_1.m1() + 'Endpoint'));
|
|
702
703
|
} else {
|
|
703
704
|
tmp = item_0;
|
|
704
705
|
}
|
|
@@ -745,25 +746,25 @@ function toDescriptionAnnotationList(_this__u8e3s4) {
|
|
|
745
746
|
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
746
747
|
}
|
|
747
748
|
function LinkInfo(name, operationId, operationRef, parameters, requestBody, description, serverUrl) {
|
|
748
|
-
this.
|
|
749
|
-
this.
|
|
750
|
-
this.
|
|
751
|
-
this.
|
|
752
|
-
this.
|
|
753
|
-
this.
|
|
754
|
-
this.
|
|
749
|
+
this.z45_1 = name;
|
|
750
|
+
this.a46_1 = operationId;
|
|
751
|
+
this.b46_1 = operationRef;
|
|
752
|
+
this.c46_1 = parameters;
|
|
753
|
+
this.d46_1 = requestBody;
|
|
754
|
+
this.e46_1 = description;
|
|
755
|
+
this.f46_1 = serverUrl;
|
|
755
756
|
}
|
|
756
757
|
protoOf(LinkInfo).toString = function () {
|
|
757
|
-
return 'LinkInfo(name=' + this.
|
|
758
|
+
return 'LinkInfo(name=' + this.z45_1 + ', operationId=' + this.a46_1 + ', operationRef=' + this.b46_1 + ', parameters=' + toString(this.c46_1) + ', requestBody=' + this.d46_1 + ', description=' + this.e46_1 + ', serverUrl=' + this.f46_1 + ')';
|
|
758
759
|
};
|
|
759
760
|
protoOf(LinkInfo).hashCode = function () {
|
|
760
|
-
var result = getStringHashCode(this.
|
|
761
|
-
result = imul(result, 31) + (this.
|
|
762
|
-
result = imul(result, 31) + (this.
|
|
763
|
-
result = imul(result, 31) + hashCode(this.
|
|
764
|
-
result = imul(result, 31) + (this.
|
|
765
|
-
result = imul(result, 31) + (this.
|
|
766
|
-
result = imul(result, 31) + (this.
|
|
761
|
+
var result = getStringHashCode(this.z45_1);
|
|
762
|
+
result = imul(result, 31) + (this.a46_1 == null ? 0 : getStringHashCode(this.a46_1)) | 0;
|
|
763
|
+
result = imul(result, 31) + (this.b46_1 == null ? 0 : getStringHashCode(this.b46_1)) | 0;
|
|
764
|
+
result = imul(result, 31) + hashCode(this.c46_1) | 0;
|
|
765
|
+
result = imul(result, 31) + (this.d46_1 == null ? 0 : getStringHashCode(this.d46_1)) | 0;
|
|
766
|
+
result = imul(result, 31) + (this.e46_1 == null ? 0 : getStringHashCode(this.e46_1)) | 0;
|
|
767
|
+
result = imul(result, 31) + (this.f46_1 == null ? 0 : getStringHashCode(this.f46_1)) | 0;
|
|
767
768
|
return result;
|
|
768
769
|
};
|
|
769
770
|
protoOf(LinkInfo).equals = function (other) {
|
|
@@ -771,19 +772,19 @@ protoOf(LinkInfo).equals = function (other) {
|
|
|
771
772
|
return true;
|
|
772
773
|
if (!(other instanceof LinkInfo))
|
|
773
774
|
return false;
|
|
774
|
-
if (!(this.
|
|
775
|
+
if (!(this.z45_1 === other.z45_1))
|
|
775
776
|
return false;
|
|
776
|
-
if (!(this.
|
|
777
|
+
if (!(this.a46_1 == other.a46_1))
|
|
777
778
|
return false;
|
|
778
|
-
if (!(this.
|
|
779
|
+
if (!(this.b46_1 == other.b46_1))
|
|
779
780
|
return false;
|
|
780
|
-
if (!equals(this.
|
|
781
|
+
if (!equals(this.c46_1, other.c46_1))
|
|
781
782
|
return false;
|
|
782
|
-
if (!(this.
|
|
783
|
+
if (!(this.d46_1 == other.d46_1))
|
|
783
784
|
return false;
|
|
784
|
-
if (!(this.
|
|
785
|
+
if (!(this.e46_1 == other.e46_1))
|
|
785
786
|
return false;
|
|
786
|
-
if (!(this.
|
|
787
|
+
if (!(this.f46_1 == other.f46_1))
|
|
787
788
|
return false;
|
|
788
789
|
return true;
|
|
789
790
|
};
|
|
@@ -795,7 +796,7 @@ function findLinks(_this__u8e3s4) {
|
|
|
795
796
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
796
797
|
while (_iterator__ex2g4s.u()) {
|
|
797
798
|
var element = _iterator__ex2g4s.v();
|
|
798
|
-
if (element.
|
|
799
|
+
if (element.nu_1 === 'Link') {
|
|
799
800
|
destination.x(element);
|
|
800
801
|
}
|
|
801
802
|
}
|
|
@@ -818,8 +819,8 @@ function findLinks(_this__u8e3s4) {
|
|
|
818
819
|
}
|
|
819
820
|
function toAnnotation(_this__u8e3s4) {
|
|
820
821
|
_init_properties_Utils_kt__jo07cx();
|
|
821
|
-
var params = mutableListOf([new Parameter('default', new Single(_this__u8e3s4.
|
|
822
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
822
|
+
var params = mutableListOf([new Parameter('default', new Single(_this__u8e3s4.z45_1))]);
|
|
823
|
+
var tmp0_safe_receiver = _this__u8e3s4.a46_1;
|
|
823
824
|
if (tmp0_safe_receiver == null)
|
|
824
825
|
null;
|
|
825
826
|
else {
|
|
@@ -828,7 +829,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
828
829
|
var element = new Parameter('operationId', new Single(tmp0_safe_receiver));
|
|
829
830
|
params.x(element);
|
|
830
831
|
}
|
|
831
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
832
|
+
var tmp1_safe_receiver = _this__u8e3s4.b46_1;
|
|
832
833
|
if (tmp1_safe_receiver == null)
|
|
833
834
|
null;
|
|
834
835
|
else {
|
|
@@ -838,9 +839,9 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
838
839
|
params.x(element_0);
|
|
839
840
|
}
|
|
840
841
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
841
|
-
if (!_this__u8e3s4.
|
|
842
|
+
if (!_this__u8e3s4.c46_1.r()) {
|
|
842
843
|
// Inline function 'kotlin.collections.map' call
|
|
843
|
-
var this_0 = _this__u8e3s4.
|
|
844
|
+
var this_0 = _this__u8e3s4.c46_1;
|
|
844
845
|
// Inline function 'kotlin.collections.mapTo' call
|
|
845
846
|
var destination = ArrayList_init_$Create$_0(this_0.b1());
|
|
846
847
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -858,7 +859,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
858
859
|
var element_1 = new Parameter('parameters', new Dict_0(destination));
|
|
859
860
|
params.x(element_1);
|
|
860
861
|
}
|
|
861
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
862
|
+
var tmp2_safe_receiver = _this__u8e3s4.d46_1;
|
|
862
863
|
if (tmp2_safe_receiver == null)
|
|
863
864
|
null;
|
|
864
865
|
else {
|
|
@@ -867,7 +868,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
867
868
|
var element_2 = new Parameter('requestBody', new Single(tmp2_safe_receiver));
|
|
868
869
|
params.x(element_2);
|
|
869
870
|
}
|
|
870
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
871
|
+
var tmp3_safe_receiver = _this__u8e3s4.e46_1;
|
|
871
872
|
if (tmp3_safe_receiver == null)
|
|
872
873
|
null;
|
|
873
874
|
else {
|
|
@@ -876,7 +877,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
876
877
|
var element_3 = new Parameter('description', new Single(tmp3_safe_receiver));
|
|
877
878
|
params.x(element_3);
|
|
878
879
|
}
|
|
879
|
-
var tmp4_safe_receiver = _this__u8e3s4.
|
|
880
|
+
var tmp4_safe_receiver = _this__u8e3s4.f46_1;
|
|
880
881
|
if (tmp4_safe_receiver == null)
|
|
881
882
|
null;
|
|
882
883
|
else {
|
|
@@ -896,7 +897,7 @@ function toDescriptionAnnotation(description) {
|
|
|
896
897
|
}
|
|
897
898
|
function toLinkInfo(_this__u8e3s4) {
|
|
898
899
|
_init_properties_Utils_kt__jo07cx();
|
|
899
|
-
var tmp0_elvis_lhs = singleParam(_this__u8e3s4.
|
|
900
|
+
var tmp0_elvis_lhs = singleParam(_this__u8e3s4.ou_1, 'default');
|
|
900
901
|
var tmp;
|
|
901
902
|
if (tmp0_elvis_lhs == null) {
|
|
902
903
|
return null;
|
|
@@ -904,7 +905,7 @@ function toLinkInfo(_this__u8e3s4) {
|
|
|
904
905
|
tmp = tmp0_elvis_lhs;
|
|
905
906
|
}
|
|
906
907
|
var name = tmp;
|
|
907
|
-
return new LinkInfo(name, singleParam(_this__u8e3s4.
|
|
908
|
+
return new LinkInfo(name, singleParam(_this__u8e3s4.ou_1, 'operationId'), singleParam(_this__u8e3s4.ou_1, 'operationRef'), dictParam(_this__u8e3s4.ou_1, 'parameters'), singleParam(_this__u8e3s4.ou_1, 'requestBody'), singleParam(_this__u8e3s4.ou_1, 'description'), singleParam(_this__u8e3s4.ou_1, 'server'));
|
|
908
909
|
}
|
|
909
910
|
function singleParam(_this__u8e3s4, name) {
|
|
910
911
|
_init_properties_Utils_kt__jo07cx();
|
|
@@ -915,7 +916,7 @@ function singleParam(_this__u8e3s4, name) {
|
|
|
915
916
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
916
917
|
while (_iterator__ex2g4s.u()) {
|
|
917
918
|
var element = _iterator__ex2g4s.v();
|
|
918
|
-
if (element.
|
|
919
|
+
if (element.lu_1 === name) {
|
|
919
920
|
tmp$ret$1 = element;
|
|
920
921
|
break $l$block;
|
|
921
922
|
}
|
|
@@ -923,7 +924,7 @@ function singleParam(_this__u8e3s4, name) {
|
|
|
923
924
|
tmp$ret$1 = null;
|
|
924
925
|
}
|
|
925
926
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
926
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
927
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.mu_1;
|
|
927
928
|
var tmp;
|
|
928
929
|
if (tmp1_safe_receiver == null) {
|
|
929
930
|
tmp = null;
|
|
@@ -932,7 +933,7 @@ function singleParam(_this__u8e3s4, name) {
|
|
|
932
933
|
tmp = tmp1_safe_receiver instanceof Single ? tmp1_safe_receiver : null;
|
|
933
934
|
}
|
|
934
935
|
var tmp2_safe_receiver = tmp;
|
|
935
|
-
return tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
936
|
+
return tmp2_safe_receiver == null ? null : tmp2_safe_receiver.iu_1;
|
|
936
937
|
}
|
|
937
938
|
function dictParam(_this__u8e3s4, name) {
|
|
938
939
|
_init_properties_Utils_kt__jo07cx();
|
|
@@ -943,7 +944,7 @@ function dictParam(_this__u8e3s4, name) {
|
|
|
943
944
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
944
945
|
while (_iterator__ex2g4s.u()) {
|
|
945
946
|
var element = _iterator__ex2g4s.v();
|
|
946
|
-
if (element.
|
|
947
|
+
if (element.lu_1 === name) {
|
|
947
948
|
tmp$ret$1 = element;
|
|
948
949
|
break $l$block;
|
|
949
950
|
}
|
|
@@ -951,7 +952,7 @@ function dictParam(_this__u8e3s4, name) {
|
|
|
951
952
|
tmp$ret$1 = null;
|
|
952
953
|
}
|
|
953
954
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
954
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
955
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.mu_1;
|
|
955
956
|
var tmp;
|
|
956
957
|
if (tmp1_safe_receiver == null) {
|
|
957
958
|
tmp = null;
|
|
@@ -960,7 +961,7 @@ function dictParam(_this__u8e3s4, name) {
|
|
|
960
961
|
tmp = tmp1_safe_receiver instanceof Dict_0 ? tmp1_safe_receiver : null;
|
|
961
962
|
}
|
|
962
963
|
var tmp2_safe_receiver = tmp;
|
|
963
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
964
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.ku_1;
|
|
964
965
|
var tmp_0;
|
|
965
966
|
if (tmp3_safe_receiver == null) {
|
|
966
967
|
tmp_0 = null;
|
|
@@ -972,14 +973,14 @@ function dictParam(_this__u8e3s4, name) {
|
|
|
972
973
|
var _iterator__ex2g4s_0 = tmp3_safe_receiver.t();
|
|
973
974
|
while (_iterator__ex2g4s_0.u()) {
|
|
974
975
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
975
|
-
var tmp_1 = element_0.
|
|
976
|
+
var tmp_1 = element_0.mu_1;
|
|
976
977
|
var tmp0_safe_receiver_0 = tmp_1 instanceof Single ? tmp_1 : null;
|
|
977
978
|
var tmp_2;
|
|
978
979
|
if (tmp0_safe_receiver_0 == null) {
|
|
979
980
|
tmp_2 = null;
|
|
980
981
|
} else {
|
|
981
982
|
// Inline function 'kotlin.let' call
|
|
982
|
-
tmp_2 = to(element_0.
|
|
983
|
+
tmp_2 = to(element_0.lu_1, tmp0_safe_receiver_0.iu_1);
|
|
983
984
|
}
|
|
984
985
|
var tmp0_safe_receiver_1 = tmp_2;
|
|
985
986
|
if (tmp0_safe_receiver_1 == null)
|
|
@@ -1029,12 +1030,12 @@ function filterNotNullValues(_this__u8e3s4) {
|
|
|
1029
1030
|
}
|
|
1030
1031
|
function json$lambda($this$Json) {
|
|
1031
1032
|
_init_properties_Utils_kt__jo07cx();
|
|
1032
|
-
$this$Json.
|
|
1033
|
+
$this$Json.y2l_1 = true;
|
|
1033
1034
|
return Unit_instance;
|
|
1034
1035
|
}
|
|
1035
1036
|
function className$lambda(it) {
|
|
1036
1037
|
_init_properties_Utils_kt__jo07cx();
|
|
1037
|
-
return Companion_instance.
|
|
1038
|
+
return Companion_instance.dr(it);
|
|
1038
1039
|
}
|
|
1039
1040
|
var properties_initialized_Utils_kt_xvi83j;
|
|
1040
1041
|
function _init_properties_Utils_kt__jo07cx() {
|
|
@@ -1062,39 +1063,39 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1062
1063
|
var _iterator__ex2g4s_0 = destination.t();
|
|
1063
1064
|
while (_iterator__ex2g4s_0.u()) {
|
|
1064
1065
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1065
|
-
var type = element_0.
|
|
1066
|
+
var type = element_0.ur_1.wt_1;
|
|
1066
1067
|
var tmp;
|
|
1067
1068
|
if (equals(type, Boolean_instance)) {
|
|
1068
|
-
tmp = to(element_0.
|
|
1069
|
+
tmp = to(element_0.tr_1.m1(), new OpenAPIV20Schema(VOID, OpenAPIV20Type_BOOLEAN_getInstance()));
|
|
1069
1070
|
} else {
|
|
1070
1071
|
if (equals(type, Bytes_instance)) {
|
|
1071
|
-
tmp = to(element_0.
|
|
1072
|
+
tmp = to(element_0.tr_1.m1(), new OpenAPIV20Schema(VOID, OpenAPIV20Type_FILE_getInstance()));
|
|
1072
1073
|
} else {
|
|
1073
1074
|
if (type instanceof Integer) {
|
|
1074
|
-
var tmp_0 = element_0.
|
|
1075
|
+
var tmp_0 = element_0.tr_1.m1();
|
|
1075
1076
|
var tmp4_type = OpenAPIV20Type_INTEGER_getInstance();
|
|
1076
|
-
var tmp0_safe_receiver = type.
|
|
1077
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1077
|
+
var tmp0_safe_receiver = type.uu_1;
|
|
1078
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pu_1;
|
|
1078
1079
|
var tmp5_minimum = tmp1_safe_receiver == null ? null : toDouble(tmp1_safe_receiver);
|
|
1079
|
-
var tmp2_safe_receiver = type.
|
|
1080
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
1080
|
+
var tmp2_safe_receiver = type.uu_1;
|
|
1081
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.qu_1;
|
|
1081
1082
|
var tmp6_maximum = tmp3_safe_receiver == null ? null : toDouble(tmp3_safe_receiver);
|
|
1082
1083
|
tmp = to(tmp_0, new OpenAPIV20Schema(VOID, tmp4_type, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, 'int32', tmp6_maximum, VOID, tmp5_minimum));
|
|
1083
1084
|
} else {
|
|
1084
1085
|
if (type instanceof Number_0) {
|
|
1085
|
-
var tmp_1 = element_0.
|
|
1086
|
+
var tmp_1 = element_0.tr_1.m1();
|
|
1086
1087
|
var tmp11_type = OpenAPIV20Type_NUMBER_getInstance();
|
|
1087
|
-
var tmp7_safe_receiver = type.
|
|
1088
|
-
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.
|
|
1088
|
+
var tmp7_safe_receiver = type.xu_1;
|
|
1089
|
+
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.pu_1;
|
|
1089
1090
|
var tmp12_minimum = tmp8_safe_receiver == null ? null : toDouble(tmp8_safe_receiver);
|
|
1090
|
-
var tmp9_safe_receiver = type.
|
|
1091
|
-
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.
|
|
1091
|
+
var tmp9_safe_receiver = type.xu_1;
|
|
1092
|
+
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.qu_1;
|
|
1092
1093
|
var tmp13_maximum = tmp10_safe_receiver == null ? null : toDouble(tmp10_safe_receiver);
|
|
1093
1094
|
tmp = to(tmp_1, new OpenAPIV20Schema(VOID, tmp11_type, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, 'float', tmp13_maximum, VOID, tmp12_minimum));
|
|
1094
1095
|
} else {
|
|
1095
1096
|
if (type instanceof String_0) {
|
|
1096
|
-
var tmp_2 = element_0.
|
|
1097
|
-
var pattern = type.
|
|
1097
|
+
var tmp_2 = element_0.tr_1.m1();
|
|
1098
|
+
var pattern = type.ru_1;
|
|
1098
1099
|
var tmp_3;
|
|
1099
1100
|
var tmp_4 = pattern;
|
|
1100
1101
|
if ((tmp_4 == null ? null : new RegExp_0(tmp_4))instanceof RegExp_0) {
|
|
@@ -1117,7 +1118,7 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1117
1118
|
}
|
|
1118
1119
|
// Inline function 'kotlin.also' call
|
|
1119
1120
|
var this_0 = tmp;
|
|
1120
|
-
logger.
|
|
1121
|
+
logger.ir('Emitting Refined ' + element_0.tr_1.m1());
|
|
1121
1122
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1122
1123
|
destination_0.t2(this_0.ff_1, this_0.gf_1);
|
|
1123
1124
|
}
|
|
@@ -1140,11 +1141,11 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1140
1141
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
1141
1142
|
while (_iterator__ex2g4s_2.u()) {
|
|
1142
1143
|
var element_2 = _iterator__ex2g4s_2.v();
|
|
1143
|
-
var tmp_6 = element_2.
|
|
1144
|
-
var tmp0_elvis_lhs = findDescription(element_2.
|
|
1144
|
+
var tmp_6 = element_2.eq_1.m1();
|
|
1145
|
+
var tmp0_elvis_lhs = findDescription(element_2.dq_1);
|
|
1145
1146
|
var tmp_7;
|
|
1146
1147
|
if (tmp0_elvis_lhs == null) {
|
|
1147
|
-
var tmp1_safe_receiver_0 = element_2.
|
|
1148
|
+
var tmp1_safe_receiver_0 = element_2.cq_1;
|
|
1148
1149
|
var tmp_8;
|
|
1149
1150
|
var tmp_9 = tmp1_safe_receiver_0;
|
|
1150
1151
|
if ((tmp_9 == null ? null : new Comment(tmp_9)) == null) {
|
|
@@ -1158,7 +1159,7 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1158
1159
|
}
|
|
1159
1160
|
var tmp2_description = tmp_7;
|
|
1160
1161
|
// Inline function 'kotlin.collections.associate' call
|
|
1161
|
-
var this_1 = element_2.
|
|
1162
|
+
var this_1 = element_2.fq_1.kp_1;
|
|
1162
1163
|
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_1, 10)), 16);
|
|
1163
1164
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1164
1165
|
var destination_3 = LinkedHashMap_init_$Create$(capacity_1);
|
|
@@ -1170,13 +1171,13 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1170
1171
|
destination_3.t2(pair.ff_1, pair.gf_1);
|
|
1171
1172
|
}
|
|
1172
1173
|
// Inline function 'kotlin.collections.filter' call
|
|
1173
|
-
var tmp0_1 = element_2.
|
|
1174
|
+
var tmp0_1 = element_2.fq_1.kp_1;
|
|
1174
1175
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1175
1176
|
var destination_4 = ArrayList_init_$Create$();
|
|
1176
1177
|
var _iterator__ex2g4s_4 = tmp0_1.t();
|
|
1177
1178
|
while (_iterator__ex2g4s_4.u()) {
|
|
1178
1179
|
var element_4 = _iterator__ex2g4s_4.v();
|
|
1179
|
-
if (!element_4.
|
|
1180
|
+
if (!element_4.tp_1.dv()) {
|
|
1180
1181
|
destination_4.x(element_4);
|
|
1181
1182
|
}
|
|
1182
1183
|
}
|
|
@@ -1186,7 +1187,7 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1186
1187
|
var _iterator__ex2g4s_5 = destination_4.t();
|
|
1187
1188
|
while (_iterator__ex2g4s_5.u()) {
|
|
1188
1189
|
var item = _iterator__ex2g4s_5.v();
|
|
1189
|
-
var tmp$ret$17 = item.
|
|
1190
|
+
var tmp$ret$17 = item.sp_1.m1();
|
|
1190
1191
|
destination_5.x(tmp$ret$17);
|
|
1191
1192
|
}
|
|
1192
1193
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -1200,7 +1201,7 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1200
1201
|
var tmp4_required = tmp_10;
|
|
1201
1202
|
// Inline function 'kotlin.also' call
|
|
1202
1203
|
var this_2 = new OpenAPIV20Schema(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_description, VOID, VOID, VOID, VOID, VOID, tmp4_required, VOID, VOID, VOID, destination_3);
|
|
1203
|
-
logger.
|
|
1204
|
+
logger.ir('Emitting Type ' + element_2.eq_1.m1());
|
|
1204
1205
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1205
1206
|
var pair_0 = to(tmp_6, this_2);
|
|
1206
1207
|
destination_2.t2(pair_0.ff_1, pair_0.gf_1);
|
|
@@ -1224,10 +1225,10 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1224
1225
|
var _iterator__ex2g4s_7 = destination_6.t();
|
|
1225
1226
|
while (_iterator__ex2g4s_7.u()) {
|
|
1226
1227
|
var element_6 = _iterator__ex2g4s_7.v();
|
|
1227
|
-
var tmp_11 = element_6.
|
|
1228
|
+
var tmp_11 = element_6.yr_1.m1();
|
|
1228
1229
|
var tmp0_type = OpenAPIV20Type_STRING_getInstance();
|
|
1229
1230
|
// Inline function 'kotlin.collections.map' call
|
|
1230
|
-
var this_3 = element_6.
|
|
1231
|
+
var this_3 = element_6.zr_1;
|
|
1231
1232
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1232
1233
|
var destination_8 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_3, 10));
|
|
1233
1234
|
var _iterator__ex2g4s_8 = this_3.t();
|
|
@@ -1236,10 +1237,10 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1236
1237
|
var tmp$ret$31 = JsonPrimitive(item_0);
|
|
1237
1238
|
destination_8.x(tmp$ret$31);
|
|
1238
1239
|
}
|
|
1239
|
-
var tmp2_description_0 = findDescription(element_6.
|
|
1240
|
+
var tmp2_description_0 = findDescription(element_6.xr_1);
|
|
1240
1241
|
// Inline function 'kotlin.also' call
|
|
1241
1242
|
var this_4 = new OpenAPIV20Schema(VOID, tmp0_type, VOID, VOID, VOID, VOID, VOID, tmp2_description_0, VOID, VOID, VOID, VOID, VOID, VOID, destination_8);
|
|
1242
|
-
logger.
|
|
1243
|
+
logger.ir('Emitting Enum ' + element_6.yr_1.m1());
|
|
1243
1244
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1244
1245
|
var pair_1 = to(tmp_11, this_4);
|
|
1245
1246
|
destination_7.t2(pair_1.ff_1, pair_1.gf_1);
|
|
@@ -1265,7 +1266,7 @@ function emitPaths($this, _this__u8e3s4, logger) {
|
|
|
1265
1266
|
var _iterator__ex2g4s_0 = destination.t();
|
|
1266
1267
|
while (_iterator__ex2g4s_0.u()) {
|
|
1267
1268
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1268
|
-
var key = element_0.
|
|
1269
|
+
var key = element_0.mq_1;
|
|
1269
1270
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1270
1271
|
var value = destination_0.q2(key);
|
|
1271
1272
|
var tmp;
|
|
@@ -1290,7 +1291,7 @@ function emitPaths($this, _this__u8e3s4, logger) {
|
|
|
1290
1291
|
var path = item.l1();
|
|
1291
1292
|
// Inline function 'kotlin.collections.component2' call
|
|
1292
1293
|
var endpoints = item.m1();
|
|
1293
|
-
logger.
|
|
1294
|
+
logger.ir('Emitting endpoints for path ' + emitSegment(OpenAPIV2Emitter_getInstance(), path));
|
|
1294
1295
|
var tmp_0 = _Path___init__impl__6uf4pw(emitSegment(OpenAPIV2Emitter_getInstance(), path));
|
|
1295
1296
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1296
1297
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
@@ -1309,12 +1310,12 @@ function emitPaths($this, _this__u8e3s4, logger) {
|
|
|
1309
1310
|
while (_iterator__ex2g4s_3.u()) {
|
|
1310
1311
|
var item_0 = _iterator__ex2g4s_3.v();
|
|
1311
1312
|
var tmp0_in = OpenAPIV20ParameterLocation_PATH_getInstance();
|
|
1312
|
-
var tmp1_name = item_0.
|
|
1313
|
-
var tmp2_type = emitType_0(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1314
|
-
var tmp3_format = emitFormat(item_0.
|
|
1315
|
-
var tmp4_pattern = emitPattern(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1316
|
-
var tmp5_minimum = emitMinimum(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1317
|
-
var tmp6_maximum = emitMaximum(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1313
|
+
var tmp1_name = item_0.rq_1.m1();
|
|
1314
|
+
var tmp2_type = emitType_0(OpenAPIV2Emitter_getInstance(), item_0.sq_1);
|
|
1315
|
+
var tmp3_format = emitFormat(item_0.sq_1);
|
|
1316
|
+
var tmp4_pattern = emitPattern(OpenAPIV2Emitter_getInstance(), item_0.sq_1);
|
|
1317
|
+
var tmp5_minimum = emitMinimum(OpenAPIV2Emitter_getInstance(), item_0.sq_1);
|
|
1318
|
+
var tmp6_maximum = emitMaximum(OpenAPIV2Emitter_getInstance(), item_0.sq_1);
|
|
1318
1319
|
var tmp$ret$12 = new OpenAPIV20Parameter(VOID, VOID, tmp2_type, VOID, tmp3_format, VOID, VOID, VOID, tmp6_maximum, VOID, tmp5_minimum, VOID, VOID, VOID, tmp4_pattern, VOID, VOID, VOID, VOID, VOID, tmp0_in, VOID, tmp1_name);
|
|
1319
1320
|
destination_3.x(tmp$ret$12);
|
|
1320
1321
|
}
|
|
@@ -1332,12 +1333,12 @@ function emitPaths($this, _this__u8e3s4, logger) {
|
|
|
1332
1333
|
return toMap(destination_1);
|
|
1333
1334
|
}
|
|
1334
1335
|
function toProperties($this, _this__u8e3s4) {
|
|
1335
|
-
var tmp = _this__u8e3s4.
|
|
1336
|
+
var tmp = _this__u8e3s4.sp_1.m1();
|
|
1336
1337
|
// Inline function 'kotlin.let' call
|
|
1337
|
-
var it = toSchemaOrReference($this, _this__u8e3s4.
|
|
1338
|
+
var it = toSchemaOrReference($this, _this__u8e3s4.tp_1);
|
|
1338
1339
|
var tmp_0;
|
|
1339
1340
|
if (it instanceof OpenAPIV20Schema) {
|
|
1340
|
-
tmp_0 = it.
|
|
1341
|
+
tmp_0 = it.k35(VOID, VOID, VOID, VOID, VOID, VOID, VOID, findDescription(_this__u8e3s4.rp_1));
|
|
1341
1342
|
} else {
|
|
1342
1343
|
if (it instanceof OpenAPIV20Reference) {
|
|
1343
1344
|
tmp_0 = it;
|
|
@@ -1355,7 +1356,7 @@ function emit($this, _this__u8e3s4, method) {
|
|
|
1355
1356
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
1356
1357
|
while (_iterator__ex2g4s.u()) {
|
|
1357
1358
|
var element = _iterator__ex2g4s.v();
|
|
1358
|
-
if (element.
|
|
1359
|
+
if (element.lq_1.equals(method)) {
|
|
1359
1360
|
destination.x(element);
|
|
1360
1361
|
}
|
|
1361
1362
|
}
|
|
@@ -1371,11 +1372,11 @@ function emit($this, _this__u8e3s4, method) {
|
|
|
1371
1372
|
return firstOrNull(destination_0);
|
|
1372
1373
|
}
|
|
1373
1374
|
function emit_0($this, _this__u8e3s4) {
|
|
1374
|
-
var tmp2_operationId = _this__u8e3s4.
|
|
1375
|
-
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.
|
|
1375
|
+
var tmp2_operationId = _this__u8e3s4.kq_1.m1();
|
|
1376
|
+
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.jq_1);
|
|
1376
1377
|
var tmp;
|
|
1377
1378
|
if (tmp0_elvis_lhs == null) {
|
|
1378
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
1379
|
+
var tmp1_safe_receiver = _this__u8e3s4.iq_1;
|
|
1379
1380
|
var tmp_0;
|
|
1380
1381
|
var tmp_1 = tmp1_safe_receiver;
|
|
1381
1382
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -1389,15 +1390,15 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1389
1390
|
}
|
|
1390
1391
|
var tmp3_description = tmp;
|
|
1391
1392
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1392
|
-
var tmp0 = _this__u8e3s4.
|
|
1393
|
+
var tmp0 = _this__u8e3s4.pq_1;
|
|
1393
1394
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1394
1395
|
var destination = ArrayList_init_$Create$();
|
|
1395
1396
|
// Inline function 'kotlin.collections.forEach' call
|
|
1396
1397
|
var _iterator__ex2g4s = tmp0.t();
|
|
1397
1398
|
while (_iterator__ex2g4s.u()) {
|
|
1398
1399
|
var element = _iterator__ex2g4s.v();
|
|
1399
|
-
var tmp0_safe_receiver = element.
|
|
1400
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1400
|
+
var tmp0_safe_receiver = element.tq_1;
|
|
1401
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.uq_1;
|
|
1401
1402
|
if (tmp0_safe_receiver_0 == null)
|
|
1402
1403
|
null;
|
|
1403
1404
|
else {
|
|
@@ -1415,15 +1416,15 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1415
1416
|
}
|
|
1416
1417
|
var tmp4_consumes = tmp_2;
|
|
1417
1418
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1418
|
-
var tmp0_0 = _this__u8e3s4.
|
|
1419
|
+
var tmp0_0 = _this__u8e3s4.qq_1;
|
|
1419
1420
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1420
1421
|
var destination_0 = ArrayList_init_$Create$();
|
|
1421
1422
|
// Inline function 'kotlin.collections.forEach' call
|
|
1422
1423
|
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
1423
1424
|
while (_iterator__ex2g4s_0.u()) {
|
|
1424
1425
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1425
|
-
var tmp0_safe_receiver_1 = element_0.
|
|
1426
|
-
var tmp0_safe_receiver_2 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.
|
|
1426
|
+
var tmp0_safe_receiver_1 = element_0.yq_1;
|
|
1427
|
+
var tmp0_safe_receiver_2 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.uq_1;
|
|
1427
1428
|
if (tmp0_safe_receiver_2 == null)
|
|
1428
1429
|
null;
|
|
1429
1430
|
else {
|
|
@@ -1441,14 +1442,14 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1441
1442
|
}
|
|
1442
1443
|
var tmp5_produces = tmp_3;
|
|
1443
1444
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1444
|
-
var tmp0_1 = _this__u8e3s4.
|
|
1445
|
+
var tmp0_1 = _this__u8e3s4.pq_1;
|
|
1445
1446
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1446
1447
|
var destination_1 = ArrayList_init_$Create$();
|
|
1447
1448
|
// Inline function 'kotlin.collections.forEach' call
|
|
1448
1449
|
var _iterator__ex2g4s_1 = tmp0_1.t();
|
|
1449
1450
|
while (_iterator__ex2g4s_1.u()) {
|
|
1450
1451
|
var element_1 = _iterator__ex2g4s_1.v();
|
|
1451
|
-
var tmp0_safe_receiver_3 = element_1.
|
|
1452
|
+
var tmp0_safe_receiver_3 = element_1.tq_1;
|
|
1452
1453
|
if (tmp0_safe_receiver_3 == null)
|
|
1453
1454
|
null;
|
|
1454
1455
|
else {
|
|
@@ -1464,14 +1465,14 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1464
1465
|
while (_iterator__ex2g4s_2.u()) {
|
|
1465
1466
|
var item = _iterator__ex2g4s_2.v();
|
|
1466
1467
|
var tmp0_in = OpenAPIV20ParameterLocation_BODY_getInstance();
|
|
1467
|
-
var tmp1_schema = toSchemaOrReference(OpenAPIV2Emitter_getInstance(), item.
|
|
1468
|
-
var tmp2_required = !item.
|
|
1468
|
+
var tmp1_schema = toSchemaOrReference(OpenAPIV2Emitter_getInstance(), item.vq_1);
|
|
1469
|
+
var tmp2_required = !item.vq_1.dv();
|
|
1469
1470
|
var tmp$ret$25 = new OpenAPIV20Parameter(VOID, tmp2_required, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_in, tmp1_schema, 'RequestBody');
|
|
1470
1471
|
destination_2.x(tmp$ret$25);
|
|
1471
1472
|
}
|
|
1472
1473
|
var tmp_4 = destination_2;
|
|
1473
1474
|
// Inline function 'kotlin.collections.map' call
|
|
1474
|
-
var this_3 = _this__u8e3s4.
|
|
1475
|
+
var this_3 = _this__u8e3s4.nq_1;
|
|
1475
1476
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1476
1477
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_3, 10));
|
|
1477
1478
|
var _iterator__ex2g4s_3 = this_3.t();
|
|
@@ -1482,7 +1483,7 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1482
1483
|
}
|
|
1483
1484
|
var tmp_5 = plus_0(tmp_4, destination_3);
|
|
1484
1485
|
// Inline function 'kotlin.collections.map' call
|
|
1485
|
-
var this_4 = _this__u8e3s4.
|
|
1486
|
+
var this_4 = _this__u8e3s4.oq_1;
|
|
1486
1487
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1487
1488
|
var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_4, 10));
|
|
1488
1489
|
var _iterator__ex2g4s_4 = this_4.t();
|
|
@@ -1493,30 +1494,30 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1493
1494
|
}
|
|
1494
1495
|
var tmp6_parameters = plus_0(tmp_5, destination_4);
|
|
1495
1496
|
// Inline function 'kotlin.collections.associate' call
|
|
1496
|
-
var this_5 = _this__u8e3s4.
|
|
1497
|
+
var this_5 = _this__u8e3s4.qq_1;
|
|
1497
1498
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_5, 10)), 16);
|
|
1498
1499
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1499
1500
|
var destination_5 = LinkedHashMap_init_$Create$(capacity);
|
|
1500
1501
|
var _iterator__ex2g4s_5 = this_5.t();
|
|
1501
1502
|
while (_iterator__ex2g4s_5.u()) {
|
|
1502
1503
|
var element_2 = _iterator__ex2g4s_5.v();
|
|
1503
|
-
var tmp_6 = _StatusCode___init__impl__t1yi9q(element_2.
|
|
1504
|
-
var tmp0_elvis_lhs_0 = findDescription(element_2.
|
|
1505
|
-
var tmp3_description_0 = tmp0_elvis_lhs_0 == null ? _this__u8e3s4.
|
|
1504
|
+
var tmp_6 = _StatusCode___init__impl__t1yi9q(element_2.wq_1);
|
|
1505
|
+
var tmp0_elvis_lhs_0 = findDescription(element_2.zq_1);
|
|
1506
|
+
var tmp3_description_0 = tmp0_elvis_lhs_0 == null ? _this__u8e3s4.kq_1.m1() + ' ' + element_2.wq_1 + ' response' : tmp0_elvis_lhs_0;
|
|
1506
1507
|
// Inline function 'kotlin.collections.associate' call
|
|
1507
|
-
var this_6 = element_2.
|
|
1508
|
+
var this_6 = element_2.xq_1;
|
|
1508
1509
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_6, 10)), 16);
|
|
1509
1510
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1510
1511
|
var destination_6 = LinkedHashMap_init_$Create$(capacity_0);
|
|
1511
1512
|
var _iterator__ex2g4s_6 = this_6.t();
|
|
1512
1513
|
while (_iterator__ex2g4s_6.u()) {
|
|
1513
1514
|
var element_3 = _iterator__ex2g4s_6.v();
|
|
1514
|
-
var tmp_7 = element_3.
|
|
1515
|
-
var tmp2_description = findDescription(element_3.
|
|
1516
|
-
var tmp3_type = emitType_0(OpenAPIV2Emitter_getInstance(), element_3.
|
|
1517
|
-
var tmp4_format = emitFormat(element_3.
|
|
1518
|
-
var tmp5_pattern = emitPattern(OpenAPIV2Emitter_getInstance(), element_3.
|
|
1519
|
-
var tmp_8 = element_3.
|
|
1515
|
+
var tmp_7 = element_3.sp_1.m1();
|
|
1516
|
+
var tmp2_description = findDescription(element_3.rp_1);
|
|
1517
|
+
var tmp3_type = emitType_0(OpenAPIV2Emitter_getInstance(), element_3.tp_1);
|
|
1518
|
+
var tmp4_format = emitFormat(element_3.tp_1);
|
|
1519
|
+
var tmp5_pattern = emitPattern(OpenAPIV2Emitter_getInstance(), element_3.tp_1);
|
|
1520
|
+
var tmp_8 = element_3.tp_1;
|
|
1520
1521
|
var tmp0_safe_receiver_4 = tmp_8 instanceof Iterable ? tmp_8 : null;
|
|
1521
1522
|
var tmp1_safe_receiver_0 = tmp0_safe_receiver_4 == null ? null : tmp0_safe_receiver_4.yo_1;
|
|
1522
1523
|
var tmp6_items = tmp1_safe_receiver_0 == null ? null : toSchemaOrReference(OpenAPIV2Emitter_getInstance(), tmp1_safe_receiver_0);
|
|
@@ -1524,14 +1525,14 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1524
1525
|
var pair = to(tmp_7, new OpenAPIV20Header(tmp2_description, tmp3_type, tmp4_format, tmp6_items, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp5_pattern));
|
|
1525
1526
|
destination_6.t2(pair.ff_1, pair.gf_1);
|
|
1526
1527
|
}
|
|
1527
|
-
var tmp1_safe_receiver_1 = element_2.
|
|
1528
|
+
var tmp1_safe_receiver_1 = element_2.yq_1;
|
|
1528
1529
|
var tmp_9;
|
|
1529
1530
|
if (tmp1_safe_receiver_1 == null) {
|
|
1530
1531
|
tmp_9 = null;
|
|
1531
1532
|
} else {
|
|
1532
1533
|
// Inline function 'kotlin.takeIf' call
|
|
1533
1534
|
var tmp_10;
|
|
1534
|
-
var tmp_11 = tmp1_safe_receiver_1.
|
|
1535
|
+
var tmp_11 = tmp1_safe_receiver_1.vq_1;
|
|
1535
1536
|
if (!(tmp_11 instanceof Unit)) {
|
|
1536
1537
|
tmp_10 = tmp1_safe_receiver_1;
|
|
1537
1538
|
} else {
|
|
@@ -1545,7 +1546,7 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1545
1546
|
tmp_12 = null;
|
|
1546
1547
|
} else {
|
|
1547
1548
|
// Inline function 'kotlin.let' call
|
|
1548
|
-
var ref = tmp2_safe_receiver.
|
|
1549
|
+
var ref = tmp2_safe_receiver.vq_1;
|
|
1549
1550
|
var tmp_13;
|
|
1550
1551
|
if (ref instanceof Iterable) {
|
|
1551
1552
|
tmp_13 = new OpenAPIV20Schema(VOID, OpenAPIV20Type_ARRAY_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference(OpenAPIV2Emitter_getInstance(), ref.yo_1));
|
|
@@ -1565,11 +1566,11 @@ function emitSegment($this, _this__u8e3s4) {
|
|
|
1565
1566
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenAPIV2Emitter$emitSegment$lambda);
|
|
1566
1567
|
}
|
|
1567
1568
|
function emitParameter($this, _this__u8e3s4, location) {
|
|
1568
|
-
var tmp0_name = _this__u8e3s4.
|
|
1569
|
-
var tmp1_type = emitType_0($this, _this__u8e3s4.
|
|
1570
|
-
var tmp2_format = emitFormat(_this__u8e3s4.
|
|
1571
|
-
var tmp3_pattern = emitPattern($this, _this__u8e3s4.
|
|
1572
|
-
var ref = _this__u8e3s4.
|
|
1569
|
+
var tmp0_name = _this__u8e3s4.sp_1.m1();
|
|
1570
|
+
var tmp1_type = emitType_0($this, _this__u8e3s4.tp_1);
|
|
1571
|
+
var tmp2_format = emitFormat(_this__u8e3s4.tp_1);
|
|
1572
|
+
var tmp3_pattern = emitPattern($this, _this__u8e3s4.tp_1);
|
|
1573
|
+
var ref = _this__u8e3s4.tp_1;
|
|
1573
1574
|
var tmp;
|
|
1574
1575
|
if (ref instanceof Iterable) {
|
|
1575
1576
|
var emit = toSchemaOrReference($this, ref);
|
|
@@ -1578,7 +1579,7 @@ function emitParameter($this, _this__u8e3s4, location) {
|
|
|
1578
1579
|
tmp_0 = emit;
|
|
1579
1580
|
} else {
|
|
1580
1581
|
if (emit instanceof OpenAPIV20Schema) {
|
|
1581
|
-
tmp_0 = emit.
|
|
1582
|
+
tmp_0 = emit.u34_1;
|
|
1582
1583
|
} else {
|
|
1583
1584
|
noWhenBranchMatchedException();
|
|
1584
1585
|
}
|
|
@@ -1588,8 +1589,8 @@ function emitParameter($this, _this__u8e3s4, location) {
|
|
|
1588
1589
|
tmp = null;
|
|
1589
1590
|
}
|
|
1590
1591
|
var tmp4_items = tmp;
|
|
1591
|
-
var tmp5_required = !_this__u8e3s4.
|
|
1592
|
-
var tmp6_description = findDescription(_this__u8e3s4.
|
|
1592
|
+
var tmp5_required = !_this__u8e3s4.tp_1.dv();
|
|
1593
|
+
var tmp6_description = findDescription(_this__u8e3s4.rp_1);
|
|
1593
1594
|
return new OpenAPIV20Parameter(tmp6_description, tmp5_required, tmp1_type, tmp4_items, tmp2_format, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_pattern, VOID, VOID, VOID, VOID, VOID, location, VOID, tmp0_name);
|
|
1594
1595
|
}
|
|
1595
1596
|
function toSchemaOrReference($this, _this__u8e3s4) {
|
|
@@ -1601,10 +1602,10 @@ function toSchemaOrReference($this, _this__u8e3s4) {
|
|
|
1601
1602
|
tmp = new OpenAPIV20Schema(VOID, OpenAPIV20Type_ARRAY_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference($this, _this__u8e3s4.yo_1));
|
|
1602
1603
|
} else {
|
|
1603
1604
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1604
|
-
tmp = new OpenAPIV20Reference(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.
|
|
1605
|
+
tmp = new OpenAPIV20Reference(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.lv_1));
|
|
1605
1606
|
} else {
|
|
1606
1607
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1607
|
-
tmp = new OpenAPIV20Schema(VOID, emitType($this, _this__u8e3s4.
|
|
1608
|
+
tmp = new OpenAPIV20Schema(VOID, emitType($this, _this__u8e3s4.wt_1), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitFormat(_this__u8e3s4), VOID, VOID, VOID, VOID, VOID, VOID, emitPattern($this, _this__u8e3s4));
|
|
1608
1609
|
} else {
|
|
1609
1610
|
if (_this__u8e3s4 instanceof Any) {
|
|
1610
1611
|
var message = 'Cannot map Any';
|
|
@@ -1657,7 +1658,7 @@ function emitType_0($this, _this__u8e3s4) {
|
|
|
1657
1658
|
tmp = OpenAPIV20Type_ARRAY_getInstance();
|
|
1658
1659
|
} else {
|
|
1659
1660
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1660
|
-
tmp = emitType($this, _this__u8e3s4.
|
|
1661
|
+
tmp = emitType($this, _this__u8e3s4.wt_1);
|
|
1661
1662
|
} else {
|
|
1662
1663
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1663
1664
|
tmp = OpenAPIV20Type_OBJECT_getInstance();
|
|
@@ -1680,10 +1681,10 @@ function emitType_0($this, _this__u8e3s4) {
|
|
|
1680
1681
|
function emitPattern($this, _this__u8e3s4) {
|
|
1681
1682
|
var tmp;
|
|
1682
1683
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1683
|
-
var t = _this__u8e3s4.
|
|
1684
|
+
var t = _this__u8e3s4.wt_1;
|
|
1684
1685
|
var tmp_0;
|
|
1685
1686
|
if (t instanceof String_0) {
|
|
1686
|
-
var p = t.
|
|
1687
|
+
var p = t.ru_1;
|
|
1687
1688
|
var tmp_1;
|
|
1688
1689
|
var tmp_2 = p;
|
|
1689
1690
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2))instanceof RegExp_0) {
|
|
@@ -1704,16 +1705,16 @@ function emitPattern($this, _this__u8e3s4) {
|
|
|
1704
1705
|
function emitMinimum($this, _this__u8e3s4) {
|
|
1705
1706
|
var tmp;
|
|
1706
1707
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1707
|
-
var t = _this__u8e3s4.
|
|
1708
|
+
var t = _this__u8e3s4.wt_1;
|
|
1708
1709
|
var tmp_0;
|
|
1709
1710
|
if (t instanceof Number_0) {
|
|
1710
|
-
var tmp1_safe_receiver = t.
|
|
1711
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1711
|
+
var tmp1_safe_receiver = t.xu_1;
|
|
1712
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.pu_1;
|
|
1712
1713
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
1713
1714
|
} else {
|
|
1714
1715
|
if (t instanceof Integer) {
|
|
1715
|
-
var tmp3_safe_receiver = t.
|
|
1716
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
1716
|
+
var tmp3_safe_receiver = t.uu_1;
|
|
1717
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.pu_1;
|
|
1717
1718
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
1718
1719
|
} else {
|
|
1719
1720
|
tmp_0 = null;
|
|
@@ -1728,16 +1729,16 @@ function emitMinimum($this, _this__u8e3s4) {
|
|
|
1728
1729
|
function emitMaximum($this, _this__u8e3s4) {
|
|
1729
1730
|
var tmp;
|
|
1730
1731
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1731
|
-
var t = _this__u8e3s4.
|
|
1732
|
+
var t = _this__u8e3s4.wt_1;
|
|
1732
1733
|
var tmp_0;
|
|
1733
1734
|
if (t instanceof Number_0) {
|
|
1734
|
-
var tmp1_safe_receiver = t.
|
|
1735
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1735
|
+
var tmp1_safe_receiver = t.xu_1;
|
|
1736
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.qu_1;
|
|
1736
1737
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
1737
1738
|
} else {
|
|
1738
1739
|
if (t instanceof Integer) {
|
|
1739
|
-
var tmp3_safe_receiver = t.
|
|
1740
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
1740
|
+
var tmp3_safe_receiver = t.uu_1;
|
|
1741
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.qu_1;
|
|
1741
1742
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
1742
1743
|
} else {
|
|
1743
1744
|
tmp_0 = null;
|
|
@@ -1752,10 +1753,10 @@ function emitMaximum($this, _this__u8e3s4) {
|
|
|
1752
1753
|
function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
1753
1754
|
var tmp;
|
|
1754
1755
|
if (it instanceof Param) {
|
|
1755
|
-
tmp = '{' + it.
|
|
1756
|
+
tmp = '{' + it.rq_1.m1() + '}';
|
|
1756
1757
|
} else {
|
|
1757
1758
|
if (it instanceof Literal) {
|
|
1758
|
-
tmp = it.
|
|
1759
|
+
tmp = it.bu_1;
|
|
1759
1760
|
} else {
|
|
1760
1761
|
noWhenBranchMatchedException();
|
|
1761
1762
|
}
|
|
@@ -1764,14 +1765,14 @@ function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
|
1764
1765
|
}
|
|
1765
1766
|
function OpenAPIV2Emitter() {
|
|
1766
1767
|
OpenAPIV2Emitter_instance = this;
|
|
1767
|
-
this.
|
|
1768
|
+
this.g46_1 = FileExtension_JSON_getInstance();
|
|
1768
1769
|
}
|
|
1769
|
-
protoOf(OpenAPIV2Emitter).
|
|
1770
|
-
return this.
|
|
1770
|
+
protoOf(OpenAPIV2Emitter).kr = function () {
|
|
1771
|
+
return this.g46_1;
|
|
1771
1772
|
};
|
|
1772
1773
|
protoOf(OpenAPIV2Emitter).no = function (ast, logger) {
|
|
1773
1774
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
1774
|
-
var this_0 = ast.
|
|
1775
|
+
var this_0 = ast.hr_1;
|
|
1775
1776
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1776
1777
|
var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
1777
1778
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -1779,27 +1780,27 @@ protoOf(OpenAPIV2Emitter).no = function (ast, logger) {
|
|
|
1779
1780
|
var _iterator__ex2g4s = tmp0.t();
|
|
1780
1781
|
while (_iterator__ex2g4s.u()) {
|
|
1781
1782
|
var element = _iterator__ex2g4s.v();
|
|
1782
|
-
logger.
|
|
1783
|
-
var list = new NonEmptyList(element.
|
|
1783
|
+
logger.ir('Combining Nodes from ' + element.fr_1.co_1 + ' ');
|
|
1784
|
+
var list = new NonEmptyList(element.gr_1);
|
|
1784
1785
|
addAll(destination, list);
|
|
1785
1786
|
}
|
|
1786
1787
|
// Inline function 'kotlin.let' call
|
|
1787
1788
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
1788
|
-
var tmp = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().
|
|
1789
|
+
var tmp = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().g46_1.cr_1;
|
|
1789
1790
|
var tmp0_0 = get_json();
|
|
1790
1791
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
1791
|
-
var value = OpenAPIV2Emitter_getInstance().
|
|
1792
|
+
var value = OpenAPIV2Emitter_getInstance().h46(it, logger);
|
|
1792
1793
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
1793
|
-
var this_1 = tmp0_0.
|
|
1794
|
+
var this_1 = tmp0_0.w23();
|
|
1794
1795
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1795
1796
|
var this_2 = serializer(this_1, createKType(getKClass(OpenAPIV2Model), arrayOf([]), false));
|
|
1796
1797
|
var tmp$ret$5 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
1797
|
-
var tmp$ret$6 = tmp0_0.
|
|
1798
|
+
var tmp$ret$6 = tmp0_0.b2l(tmp$ret$5, value);
|
|
1798
1799
|
// Inline function 'kotlin.let' call
|
|
1799
1800
|
var it_0 = new Emitted(tmp, tmp$ret$6);
|
|
1800
1801
|
return nonEmptyListOf(it_0, []);
|
|
1801
1802
|
};
|
|
1802
|
-
protoOf(OpenAPIV2Emitter).
|
|
1803
|
+
protoOf(OpenAPIV2Emitter).h46 = function (statements, logger) {
|
|
1803
1804
|
var tmp0_info = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, VOID, '0.0.0');
|
|
1804
1805
|
var tmp1_consumes = listOf('application/json');
|
|
1805
1806
|
var tmp2_produces = listOf('application/json');
|
|
@@ -1815,15 +1816,15 @@ function OpenAPIV2Emitter_getInstance() {
|
|
|
1815
1816
|
}
|
|
1816
1817
|
function OpenAPIV2Parser$parse$lambda($strict) {
|
|
1817
1818
|
return function (it) {
|
|
1818
|
-
return new NonEmptyList(OpenAPIV2Parser_instance.
|
|
1819
|
+
return new NonEmptyList(OpenAPIV2Parser_instance.i46((new OpenAPIV2(jsonDefault($strict))).s31(it)));
|
|
1819
1820
|
};
|
|
1820
1821
|
}
|
|
1821
1822
|
function OpenAPIV2Parser() {
|
|
1822
1823
|
}
|
|
1823
|
-
protoOf(OpenAPIV2Parser).
|
|
1824
|
+
protoOf(OpenAPIV2Parser).j46 = function (moduleContent, strict) {
|
|
1824
1825
|
return parseOpenApi(moduleContent, OpenAPIV2Parser$parse$lambda(strict));
|
|
1825
1826
|
};
|
|
1826
|
-
protoOf(OpenAPIV2Parser).
|
|
1827
|
+
protoOf(OpenAPIV2Parser).i46 = function (_this__u8e3s4) {
|
|
1827
1828
|
// Inline function 'kotlin.collections.reduce' call
|
|
1828
1829
|
var iterator = listOf_0([parseEndpoints(_this__u8e3s4), parseParameters(_this__u8e3s4), parseRequestBody(_this__u8e3s4), parseResponseBody(_this__u8e3s4), parseDefinitions(_this__u8e3s4)]).t();
|
|
1829
1830
|
if (!iterator.u())
|
|
@@ -1859,7 +1860,7 @@ function OpenAPIV2Parser_getInstance() {
|
|
|
1859
1860
|
}
|
|
1860
1861
|
function parseEndpoints(_this__u8e3s4) {
|
|
1861
1862
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1862
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1863
|
+
var tmp0_elvis_lhs = _this__u8e3s4.y31();
|
|
1863
1864
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1864
1865
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1865
1866
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -1869,7 +1870,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1869
1870
|
while (_iterator__ex2g4s.u()) {
|
|
1870
1871
|
var element = _iterator__ex2g4s.v();
|
|
1871
1872
|
// Inline function 'kotlin.collections.component1' call
|
|
1872
|
-
var path = element.l1().
|
|
1873
|
+
var path = element.l1().y2y_1;
|
|
1873
1874
|
// Inline function 'kotlin.collections.component2' call
|
|
1874
1875
|
var pathItem = element.m1();
|
|
1875
1876
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -1884,7 +1885,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1884
1885
|
var method = element_0.l1();
|
|
1885
1886
|
// Inline function 'kotlin.collections.component2' call
|
|
1886
1887
|
var operation = element_0.m1();
|
|
1887
|
-
var parameters = plus_0(resolveParameters(_this__u8e3s4, pathItem.
|
|
1888
|
+
var parameters = plus_0(resolveParameters(_this__u8e3s4, pathItem.y2z()), resolveParameters(_this__u8e3s4, operation.y2z()));
|
|
1888
1889
|
var segments = toSegments(path, parameters);
|
|
1889
1890
|
var tmp0_elvis_lhs_0 = toName(operation);
|
|
1890
1891
|
var name = tmp0_elvis_lhs_0 == null ? toName_0(path) + method.b3_1 : tmp0_elvis_lhs_0;
|
|
@@ -1929,9 +1930,9 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1929
1930
|
}
|
|
1930
1931
|
var headers = destination_4;
|
|
1931
1932
|
var tmp1_safe_receiver = operation instanceof OpenAPIV20Operation ? operation : null;
|
|
1932
|
-
var operationConsumes = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1933
|
+
var operationConsumes = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q36_1;
|
|
1933
1934
|
var tmp2_safe_receiver = operation instanceof OpenAPIV20Operation ? operation : null;
|
|
1934
|
-
var operationProduces = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
1935
|
+
var operationProduces = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.r36_1;
|
|
1935
1936
|
// Inline function 'kotlin.collections.filter' call
|
|
1936
1937
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1937
1938
|
var destination_5 = ArrayList_init_$Create$();
|
|
@@ -1949,7 +1950,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1949
1950
|
while (_iterator__ex2g4s_6.u()) {
|
|
1950
1951
|
var element_4 = _iterator__ex2g4s_6.v();
|
|
1951
1952
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1952
|
-
var tmp0_elvis_lhs_1 = _this__u8e3s4.
|
|
1953
|
+
var tmp0_elvis_lhs_1 = _this__u8e3s4.v31();
|
|
1953
1954
|
var tmp = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
1954
1955
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1955
1956
|
var tmp$ret$23 = operationConsumes == null ? emptyList() : operationConsumes;
|
|
@@ -1969,7 +1970,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1969
1970
|
while (_iterator__ex2g4s_7.u()) {
|
|
1970
1971
|
var item_1 = _iterator__ex2g4s_7.v();
|
|
1971
1972
|
var isNullable = false;
|
|
1972
|
-
var schema = element_4.
|
|
1973
|
+
var schema = element_4.k36_1;
|
|
1973
1974
|
var tmp_1;
|
|
1974
1975
|
if (!(schema == null) ? isInterface(schema, Reference) : false) {
|
|
1975
1976
|
tmp_1 = toReference(_this__u8e3s4, schema, isNullable);
|
|
@@ -2000,7 +2001,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2000
2001
|
}
|
|
2001
2002
|
var requests = tmp_2;
|
|
2002
2003
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2003
|
-
var tmp0_elvis_lhs_2 = operation.
|
|
2004
|
+
var tmp0_elvis_lhs_2 = operation.tw();
|
|
2004
2005
|
// Inline function 'kotlin.collections.mapValues' call
|
|
2005
2006
|
var this_2 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
2006
2007
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
@@ -2021,11 +2022,11 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2021
2022
|
while (_iterator__ex2g4s_9.u()) {
|
|
2022
2023
|
var element_6 = _iterator__ex2g4s_9.v();
|
|
2023
2024
|
// Inline function 'kotlin.collections.component1' call
|
|
2024
|
-
var status = element_6.l1().
|
|
2025
|
+
var status = element_6.l1().c2z_1;
|
|
2025
2026
|
// Inline function 'kotlin.collections.component2' call
|
|
2026
2027
|
var res = element_6.m1();
|
|
2027
2028
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2028
|
-
var tmp0_elvis_lhs_3 = _this__u8e3s4.
|
|
2029
|
+
var tmp0_elvis_lhs_3 = _this__u8e3s4.w31();
|
|
2029
2030
|
var tmp_4 = tmp0_elvis_lhs_3 == null ? emptyList() : tmp0_elvis_lhs_3;
|
|
2030
2031
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2031
2032
|
var tmp$ret$44 = operationProduces == null ? emptyList() : operationProduces;
|
|
@@ -2044,9 +2045,9 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2044
2045
|
var _iterator__ex2g4s_10 = this_4.t();
|
|
2045
2046
|
while (_iterator__ex2g4s_10.u()) {
|
|
2046
2047
|
var item_2 = _iterator__ex2g4s_10.v();
|
|
2047
|
-
var tmp3_annotations = toDescriptionAnnotationList(res.
|
|
2048
|
+
var tmp3_annotations = toDescriptionAnnotationList(res.i2z());
|
|
2048
2049
|
var tmp4_status = _StatusCode___get_value__impl__we50mu(status);
|
|
2049
|
-
var tmp0_safe_receiver = res.
|
|
2050
|
+
var tmp0_safe_receiver = res.rw();
|
|
2050
2051
|
var tmp_6;
|
|
2051
2052
|
if (tmp0_safe_receiver == null) {
|
|
2052
2053
|
tmp_6 = null;
|
|
@@ -2071,7 +2072,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2071
2072
|
var tmp0_elvis_lhs_4 = tmp_6;
|
|
2072
2073
|
var tmp5_headers = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
2073
2074
|
var tmp1_safe_receiver_0 = res instanceof OpenAPIV20Response ? res : null;
|
|
2074
|
-
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
2075
|
+
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.m37_1;
|
|
2075
2076
|
var tmp_7;
|
|
2076
2077
|
if (tmp2_safe_receiver_0 == null) {
|
|
2077
2078
|
tmp_7 = null;
|
|
@@ -2102,13 +2103,13 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2102
2103
|
var _iterator__ex2g4s_12 = destination_9.t();
|
|
2103
2104
|
while (_iterator__ex2g4s_12.u()) {
|
|
2104
2105
|
var e = _iterator__ex2g4s_12.v();
|
|
2105
|
-
var key = to(e.
|
|
2106
|
+
var key = to(e.wq_1, e.yq_1);
|
|
2106
2107
|
if (set.x(key)) {
|
|
2107
2108
|
list_1.x(e);
|
|
2108
2109
|
}
|
|
2109
2110
|
}
|
|
2110
2111
|
var responses = list_1;
|
|
2111
|
-
var list_2 = listOf(new Endpoint(null, toDescriptionAnnotationList(operation.
|
|
2112
|
+
var list_2 = listOf(new Endpoint(null, toDescriptionAnnotationList(operation.i2z()), new DefinitionIdentifier(sanitize(name)), method, segments, query, headers, requests, responses));
|
|
2112
2113
|
addAll(destination_0, list_2);
|
|
2113
2114
|
}
|
|
2114
2115
|
var list_3 = destination_0;
|
|
@@ -2127,7 +2128,7 @@ function parseResponseBody(_this__u8e3s4) {
|
|
|
2127
2128
|
}
|
|
2128
2129
|
function parseDefinitions(_this__u8e3s4) {
|
|
2129
2130
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2130
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2131
|
+
var tmp0_elvis_lhs = _this__u8e3s4.x31();
|
|
2131
2132
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2132
2133
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2133
2134
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -2163,7 +2164,7 @@ function parseDefinitions(_this__u8e3s4) {
|
|
|
2163
2164
|
var _iterator__ex2g4s_0 = destination.t();
|
|
2164
2165
|
while (_iterator__ex2g4s_0.u()) {
|
|
2165
2166
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
2166
|
-
var tmp0_subject = element_0.gf_1.
|
|
2167
|
+
var tmp0_subject = element_0.gf_1.n2z();
|
|
2167
2168
|
var tmp_0;
|
|
2168
2169
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
2169
2170
|
tmp_0 = true;
|
|
@@ -2261,7 +2262,7 @@ function toSegments(_this__u8e3s4, parameters) {
|
|
|
2261
2262
|
var _iterator__ex2g4s_0 = parameters.t();
|
|
2262
2263
|
while (_iterator__ex2g4s_0.u()) {
|
|
2263
2264
|
var element = _iterator__ex2g4s_0.v();
|
|
2264
|
-
if (element.
|
|
2265
|
+
if (element.l36_1 === param) {
|
|
2265
2266
|
tmp$ret$2 = element;
|
|
2266
2267
|
break $l$block;
|
|
2267
2268
|
}
|
|
@@ -2303,18 +2304,18 @@ function toSegments(_this__u8e3s4, parameters) {
|
|
|
2303
2304
|
return destination;
|
|
2304
2305
|
}
|
|
2305
2306
|
function get_location(_this__u8e3s4) {
|
|
2306
|
-
return _this__u8e3s4.
|
|
2307
|
+
return _this__u8e3s4.j36_1;
|
|
2307
2308
|
}
|
|
2308
2309
|
function toField(_this__u8e3s4, parameter, name) {
|
|
2309
2310
|
// Inline function 'kotlin.let' call
|
|
2310
2311
|
var schema = resolveParameter(_this__u8e3s4, parameter);
|
|
2311
|
-
var tmp0_elvis_lhs = parameter.
|
|
2312
|
+
var tmp0_elvis_lhs = parameter.q35_1;
|
|
2312
2313
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
2313
2314
|
var tmp;
|
|
2314
|
-
if (!(parameter.
|
|
2315
|
-
tmp = new Custom(sanitize(className([name, 'Parameter', schema.
|
|
2315
|
+
if (!(parameter.h36_1 == null)) {
|
|
2316
|
+
tmp = new Custom(sanitize(className([name, 'Parameter', schema.l36_1])), isNullable);
|
|
2316
2317
|
} else {
|
|
2317
|
-
var tmp1_subject = schema.
|
|
2318
|
+
var tmp1_subject = schema.r35_1;
|
|
2318
2319
|
var tmp_0;
|
|
2319
2320
|
switch (tmp1_subject == null ? -1 : tmp1_subject.c3_1) {
|
|
2320
2321
|
case 0:
|
|
@@ -2327,7 +2328,7 @@ function toField(_this__u8e3s4, parameter, name) {
|
|
|
2327
2328
|
tmp_0 = new Primitive(primitive, isNullable);
|
|
2328
2329
|
break;
|
|
2329
2330
|
case 4:
|
|
2330
|
-
var tmp2_safe_receiver = schema.
|
|
2331
|
+
var tmp2_safe_receiver = schema.s35_1;
|
|
2331
2332
|
var tmp_1;
|
|
2332
2333
|
if (tmp2_safe_receiver == null) {
|
|
2333
2334
|
tmp_1 = null;
|
|
@@ -2374,8 +2375,8 @@ function toField(_this__u8e3s4, parameter, name) {
|
|
|
2374
2375
|
}
|
|
2375
2376
|
// Inline function 'kotlin.let' call
|
|
2376
2377
|
var it = tmp;
|
|
2377
|
-
var tmp0_identifier = new FieldIdentifier(parameter.
|
|
2378
|
-
var tmp1_annotations = toDescriptionAnnotationList(parameter.
|
|
2378
|
+
var tmp0_identifier = new FieldIdentifier(parameter.l36_1);
|
|
2379
|
+
var tmp1_annotations = toDescriptionAnnotationList(parameter.p35_1);
|
|
2379
2380
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
2380
2381
|
}
|
|
2381
2382
|
function toReference(_this__u8e3s4, reference, isNullable) {
|
|
@@ -2383,8 +2384,8 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2383
2384
|
var referencingObject = _destruct__k2r9zo.we();
|
|
2384
2385
|
var schema = _destruct__k2r9zo.xe();
|
|
2385
2386
|
var tmp;
|
|
2386
|
-
if (exists(schema.
|
|
2387
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2387
|
+
if (exists(schema.n2z())) {
|
|
2388
|
+
var additionalProperties = ensureNotNull(schema.n2z());
|
|
2388
2389
|
var tmp_0;
|
|
2389
2390
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
2390
2391
|
tmp_0 = new Dict(new Any(false), isNullable);
|
|
@@ -2400,7 +2401,7 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2400
2401
|
}
|
|
2401
2402
|
}
|
|
2402
2403
|
tmp = tmp_0;
|
|
2403
|
-
} else if (!(schema.
|
|
2404
|
+
} else if (!(schema.j2z() == null)) {
|
|
2404
2405
|
tmp = new Custom(sanitize(className([getReference(referencingObject)])), isNullable);
|
|
2405
2406
|
} else if (isPrimitive(get_primitiveType(schema))) {
|
|
2406
2407
|
tmp = new Primitive(toPrimitive_0(schema), isNullable);
|
|
@@ -2408,7 +2409,7 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2408
2409
|
var tmp0_subject = get_primitiveType(schema);
|
|
2409
2410
|
var tmp_1;
|
|
2410
2411
|
if ((tmp0_subject == null ? -1 : tmp0_subject.c3_1) === 4) {
|
|
2411
|
-
var items = schema.
|
|
2412
|
+
var items = schema.k2z();
|
|
2412
2413
|
var tmp_2;
|
|
2413
2414
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
2414
2415
|
tmp_2 = toIterable(toReference(_this__u8e3s4, items, false), isNullable);
|
|
@@ -2417,7 +2418,7 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2417
2418
|
tmp_2 = toIterable(toReference_0(_this__u8e3s4, items, className([getReference(referencingObject), 'Array']), isNullable), isNullable);
|
|
2418
2419
|
} else {
|
|
2419
2420
|
if (items == null) {
|
|
2420
|
-
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.
|
|
2421
|
+
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.h2z());
|
|
2421
2422
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2422
2423
|
} else {
|
|
2423
2424
|
noWhenBranchMatchedException();
|
|
@@ -2440,20 +2441,20 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2440
2441
|
var tmp_3;
|
|
2441
2442
|
var tmp_4;
|
|
2442
2443
|
var tmp_5;
|
|
2443
|
-
var tmp0_safe_receiver = schema.
|
|
2444
|
+
var tmp0_safe_receiver = schema.l2z();
|
|
2444
2445
|
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b1()) === 1) {
|
|
2445
|
-
var tmp_6 = first(ensureNotNull(schema.
|
|
2446
|
+
var tmp_6 = first(ensureNotNull(schema.l2z()));
|
|
2446
2447
|
tmp_5 = isInterface(tmp_6, Reference);
|
|
2447
2448
|
} else {
|
|
2448
2449
|
tmp_5 = false;
|
|
2449
2450
|
}
|
|
2450
2451
|
if (tmp_5) {
|
|
2451
|
-
tmp_4 = schema.
|
|
2452
|
+
tmp_4 = schema.m2z() == null;
|
|
2452
2453
|
} else {
|
|
2453
2454
|
tmp_4 = false;
|
|
2454
2455
|
}
|
|
2455
2456
|
if (tmp_4) {
|
|
2456
|
-
tmp_3 = schema.
|
|
2457
|
+
tmp_3 = schema.j2z() == null;
|
|
2457
2458
|
} else {
|
|
2458
2459
|
tmp_3 = false;
|
|
2459
2460
|
}
|
|
@@ -2463,21 +2464,21 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2463
2464
|
tmp_2 = false;
|
|
2464
2465
|
}
|
|
2465
2466
|
if (tmp_2) {
|
|
2466
|
-
tmp_1 = schema.
|
|
2467
|
+
tmp_1 = schema.k2z() == null;
|
|
2467
2468
|
} else {
|
|
2468
2469
|
tmp_1 = false;
|
|
2469
2470
|
}
|
|
2470
2471
|
if (tmp_1) {
|
|
2471
|
-
tmp_0 = schema.
|
|
2472
|
+
tmp_0 = schema.n2z() == null;
|
|
2472
2473
|
} else {
|
|
2473
2474
|
tmp_0 = false;
|
|
2474
2475
|
}
|
|
2475
2476
|
if (tmp_0) {
|
|
2476
|
-
var tmp_7 = first(ensureNotNull(schema.
|
|
2477
|
+
var tmp_7 = first(ensureNotNull(schema.l2z()));
|
|
2477
2478
|
tmp = toReference(_this__u8e3s4, isInterface(tmp_7, Reference) ? tmp_7 : THROW_CCE(), isNullable);
|
|
2478
2479
|
} else {
|
|
2479
|
-
if (!(schema.
|
|
2480
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2480
|
+
if (!(schema.n2z() == null)) {
|
|
2481
|
+
var additionalProperties = ensureNotNull(schema.n2z());
|
|
2481
2482
|
var tmp_8;
|
|
2482
2483
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
2483
2484
|
tmp_8 = new Dict(new Any(false), isNullable);
|
|
@@ -2488,7 +2489,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2488
2489
|
if (isInterface(additionalProperties, Schema)) {
|
|
2489
2490
|
// Inline function 'kotlin.takeIf' call
|
|
2490
2491
|
var tmp_9;
|
|
2491
|
-
if (isPrimitive(get_primitiveType(additionalProperties)) || !(additionalProperties.
|
|
2492
|
+
if (isPrimitive(get_primitiveType(additionalProperties)) || !(additionalProperties.m2z() == null)) {
|
|
2492
2493
|
tmp_9 = additionalProperties;
|
|
2493
2494
|
} else {
|
|
2494
2495
|
tmp_9 = null;
|
|
@@ -2510,9 +2511,9 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2510
2511
|
}
|
|
2511
2512
|
tmp = tmp_8;
|
|
2512
2513
|
} else {
|
|
2513
|
-
if (!(schema.
|
|
2514
|
+
if (!(schema.j2z() == null)) {
|
|
2514
2515
|
var tmp_11;
|
|
2515
|
-
if (!(schema.
|
|
2516
|
+
if (!(schema.n2z() == null)) {
|
|
2516
2517
|
tmp_11 = new Dict(new Custom(sanitize(name), false), isNullable);
|
|
2517
2518
|
} else {
|
|
2518
2519
|
tmp_11 = new Custom(sanitize(name), isNullable);
|
|
@@ -2527,7 +2528,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2527
2528
|
case 1:
|
|
2528
2529
|
case 3:
|
|
2529
2530
|
var tmp_13;
|
|
2530
|
-
if (!(schema.
|
|
2531
|
+
if (!(schema.n2z() == null)) {
|
|
2531
2532
|
tmp_13 = new Dict(new Primitive(toPrimitive_0(schema), false), isNullable);
|
|
2532
2533
|
} else {
|
|
2533
2534
|
tmp_13 = new Primitive(toPrimitive_0(schema), isNullable);
|
|
@@ -2538,17 +2539,17 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2538
2539
|
case -1:
|
|
2539
2540
|
case 5:
|
|
2540
2541
|
var tmp_14;
|
|
2541
|
-
var tmp_15 = schema.
|
|
2542
|
+
var tmp_15 = schema.n2z();
|
|
2542
2543
|
if (!(tmp_15 == null) ? isInterface(tmp_15, BooleanValue) : false) {
|
|
2543
2544
|
var tmp_16;
|
|
2544
|
-
if (!(schema.
|
|
2545
|
+
if (!(schema.n2z() == null)) {
|
|
2545
2546
|
tmp_16 = new Dict(new Any(isNullable), false);
|
|
2546
2547
|
} else {
|
|
2547
2548
|
tmp_16 = new Any(isNullable);
|
|
2548
2549
|
}
|
|
2549
2550
|
tmp_14 = tmp_16;
|
|
2550
2551
|
} else {
|
|
2551
|
-
if (!(schema.
|
|
2552
|
+
if (!(schema.n2z() == null)) {
|
|
2552
2553
|
new Dict(new Custom(sanitize(name), isNullable), false);
|
|
2553
2554
|
}
|
|
2554
2555
|
tmp_14 = new Custom(sanitize(name), isNullable);
|
|
@@ -2557,7 +2558,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2557
2558
|
tmp_12 = tmp_14;
|
|
2558
2559
|
break;
|
|
2559
2560
|
case 4:
|
|
2560
|
-
var items = schema.
|
|
2561
|
+
var items = schema.k2z();
|
|
2561
2562
|
var tmp_17;
|
|
2562
2563
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
2563
2564
|
tmp_17 = toIterable(toReference(_this__u8e3s4, items, false), isNullable);
|
|
@@ -2613,10 +2614,10 @@ function toField_0(_this__u8e3s4, header, identifier) {
|
|
|
2613
2614
|
}
|
|
2614
2615
|
var v20 = tmp;
|
|
2615
2616
|
var tmp5_identifier = new FieldIdentifier(identifier);
|
|
2616
|
-
var tmp6_annotations = toDescriptionAnnotationList(header.
|
|
2617
|
+
var tmp6_annotations = toDescriptionAnnotationList(header.v37_1);
|
|
2617
2618
|
var tmp_0;
|
|
2618
|
-
if (v20.
|
|
2619
|
-
var tmp2_safe_receiver = v20.
|
|
2619
|
+
if (v20.w37_1.c3_1 === 4) {
|
|
2620
|
+
var tmp2_safe_receiver = v20.y37_1;
|
|
2620
2621
|
var tmp_1;
|
|
2621
2622
|
if (tmp2_safe_receiver == null) {
|
|
2622
2623
|
tmp_1 = null;
|
|
@@ -2697,17 +2698,17 @@ function resolveParameter(_this__u8e3s4, parameterOrReference) {
|
|
|
2697
2698
|
}
|
|
2698
2699
|
function get_primitiveType(_this__u8e3s4) {
|
|
2699
2700
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof OpenAPIV20Schema ? _this__u8e3s4 : null;
|
|
2700
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2701
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g34_1;
|
|
2701
2702
|
}
|
|
2702
2703
|
function flatten(_this__u8e3s4, schemaObject, name) {
|
|
2703
2704
|
var tmp;
|
|
2704
|
-
if (exists(schemaObject.
|
|
2705
|
-
var tmp0_subject = schemaObject.
|
|
2705
|
+
if (exists(schemaObject.n2z())) {
|
|
2706
|
+
var tmp0_subject = schemaObject.n2z();
|
|
2706
2707
|
var tmp_0;
|
|
2707
2708
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
2708
2709
|
tmp_0 = emptyList();
|
|
2709
2710
|
} else {
|
|
2710
|
-
var tmp1_safe_receiver = schemaObject.
|
|
2711
|
+
var tmp1_safe_receiver = schemaObject.n2z();
|
|
2711
2712
|
var tmp_1;
|
|
2712
2713
|
if (tmp1_safe_receiver == null) {
|
|
2713
2714
|
tmp_1 = null;
|
|
@@ -2722,7 +2723,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2722
2723
|
} else {
|
|
2723
2724
|
// Inline function 'kotlin.takeIf' call
|
|
2724
2725
|
var tmp_3;
|
|
2725
|
-
if (!(tmp2_safe_receiver.
|
|
2726
|
+
if (!(tmp2_safe_receiver.m2z() == null)) {
|
|
2726
2727
|
tmp_3 = tmp2_safe_receiver;
|
|
2727
2728
|
} else {
|
|
2728
2729
|
tmp_3 = null;
|
|
@@ -2741,11 +2742,11 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2741
2742
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
2742
2743
|
}
|
|
2743
2744
|
tmp = tmp_0;
|
|
2744
|
-
} else if (!(schemaObject.
|
|
2745
|
-
var tmp_5 = toDescriptionAnnotationList(schemaObject.
|
|
2745
|
+
} else if (!(schemaObject.l2z() == null)) {
|
|
2746
|
+
var tmp_5 = toDescriptionAnnotationList(schemaObject.i2z());
|
|
2746
2747
|
var tmp_6 = new DefinitionIdentifier(sanitize(name));
|
|
2747
2748
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2748
|
-
var tmp0_elvis_lhs = schemaObject.
|
|
2749
|
+
var tmp0_elvis_lhs = schemaObject.l2z();
|
|
2749
2750
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2750
2751
|
var tmp0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2751
2752
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2772,14 +2773,14 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2772
2773
|
var _iterator__ex2g4s_0 = destination.t();
|
|
2773
2774
|
while (_iterator__ex2g4s_0.u()) {
|
|
2774
2775
|
var e = _iterator__ex2g4s_0.v();
|
|
2775
|
-
var key = e.
|
|
2776
|
+
var key = e.sp_1;
|
|
2776
2777
|
if (set.x(key)) {
|
|
2777
2778
|
list_0.x(e);
|
|
2778
2779
|
}
|
|
2779
2780
|
}
|
|
2780
2781
|
var tmp_8 = listOf(new Type(null, tmp_5, tmp_6, new Shape(list_0), emptyList()));
|
|
2781
2782
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2782
|
-
var tmp0_0 = ensureNotNull(schemaObject.
|
|
2783
|
+
var tmp0_0 = ensureNotNull(schemaObject.l2z());
|
|
2783
2784
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2784
2785
|
var destination_0 = ArrayList_init_$Create$();
|
|
2785
2786
|
var _iterator__ex2g4s_1 = tmp0_0.t();
|
|
@@ -2791,7 +2792,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2791
2792
|
} else {
|
|
2792
2793
|
if (isInterface(element_0, Schema)) {
|
|
2793
2794
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2794
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
2795
|
+
var tmp0_elvis_lhs_0 = element_0.m2z();
|
|
2795
2796
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2796
2797
|
var tmp0_1 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2797
2798
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2826,20 +2827,20 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2826
2827
|
addAll(destination_0, list_2);
|
|
2827
2828
|
}
|
|
2828
2829
|
tmp = plus_0(tmp_8, destination_0);
|
|
2829
|
-
} else if (!(schemaObject.
|
|
2830
|
+
} else if (!(schemaObject.j2z() == null)) {
|
|
2830
2831
|
// Inline function 'kotlin.collections.map' call
|
|
2831
|
-
var this_0 = ensureNotNull(schemaObject.
|
|
2832
|
+
var this_0 = ensureNotNull(schemaObject.j2z());
|
|
2832
2833
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2833
2834
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2834
2835
|
var _iterator__ex2g4s_3 = this_0.t();
|
|
2835
2836
|
while (_iterator__ex2g4s_3.u()) {
|
|
2836
2837
|
var item = _iterator__ex2g4s_3.v();
|
|
2837
|
-
var tmp$ret$22 = item.
|
|
2838
|
+
var tmp$ret$22 = item.vx();
|
|
2838
2839
|
destination_2.x(tmp$ret$22);
|
|
2839
2840
|
}
|
|
2840
2841
|
// Inline function 'kotlin.let' call
|
|
2841
2842
|
var it = toSet(destination_2);
|
|
2842
|
-
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.
|
|
2843
|
+
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.i2z()), new DefinitionIdentifier(sanitize(name)), it));
|
|
2843
2844
|
} else {
|
|
2844
2845
|
var tmp5_subject = get_primitiveType(schemaObject);
|
|
2845
2846
|
var tmp_11;
|
|
@@ -2848,7 +2849,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2848
2849
|
case 5:
|
|
2849
2850
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2850
2851
|
|
|
2851
|
-
var tmp0_elvis_lhs_1 = schemaObject.
|
|
2852
|
+
var tmp0_elvis_lhs_1 = schemaObject.m2z();
|
|
2852
2853
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2853
2854
|
|
|
2854
2855
|
var tmp0_2 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
@@ -2869,11 +2870,11 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2869
2870
|
}
|
|
2870
2871
|
|
|
2871
2872
|
var fields = destination_3;
|
|
2872
|
-
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.
|
|
2873
|
+
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.i2z()), new DefinitionIdentifier(sanitize(name)), new Shape(toField_1(_this__u8e3s4, schemaObject, name)), emptyList()));
|
|
2873
2874
|
tmp_11 = plus_0(schema, fields);
|
|
2874
2875
|
break;
|
|
2875
2876
|
case 4:
|
|
2876
|
-
var it_0 = schemaObject.
|
|
2877
|
+
var it_0 = schemaObject.k2z();
|
|
2877
2878
|
var tmp_12;
|
|
2878
2879
|
if (!(it_0 == null) ? isInterface(it_0, Reference) : false) {
|
|
2879
2880
|
tmp_12 = emptyList();
|
|
@@ -2900,7 +2901,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2900
2901
|
return tmp;
|
|
2901
2902
|
}
|
|
2902
2903
|
function resolveParameterObject(_this__u8e3s4, reference) {
|
|
2903
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2904
|
+
var tmp0_safe_receiver = _this__u8e3s4.y2z();
|
|
2904
2905
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q2(getReference(reference));
|
|
2905
2906
|
var tmp;
|
|
2906
2907
|
if (tmp1_safe_receiver == null) {
|
|
@@ -2912,7 +2913,7 @@ function resolveParameterObject(_this__u8e3s4, reference) {
|
|
|
2912
2913
|
var tmp2_elvis_lhs = tmp;
|
|
2913
2914
|
var tmp_0;
|
|
2914
2915
|
if (tmp2_elvis_lhs == null) {
|
|
2915
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
2916
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.h2z());
|
|
2916
2917
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2917
2918
|
} else {
|
|
2918
2919
|
tmp_0 = tmp2_elvis_lhs;
|
|
@@ -2920,17 +2921,17 @@ function resolveParameterObject(_this__u8e3s4, reference) {
|
|
|
2920
2921
|
return tmp_0;
|
|
2921
2922
|
}
|
|
2922
2923
|
function toPrimitive(_this__u8e3s4) {
|
|
2923
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2924
|
+
var tmp0_subject = _this__u8e3s4.px();
|
|
2924
2925
|
var tmp;
|
|
2925
2926
|
switch (tmp0_subject == null ? -1 : tmp0_subject.c3_1) {
|
|
2926
2927
|
case 0:
|
|
2927
|
-
tmp = !(_this__u8e3s4.
|
|
2928
|
+
tmp = !(_this__u8e3s4.p2z() == null) ? new String_0(_RegExp___init__impl__p22noo(ensureNotNull(_this__u8e3s4.p2z()))) : _this__u8e3s4.o2z() === 'binary' ? Bytes_instance : new String_0(null);
|
|
2928
2929
|
break;
|
|
2929
2930
|
case 2:
|
|
2930
|
-
tmp = new Integer(_this__u8e3s4.
|
|
2931
|
+
tmp = new Integer(_this__u8e3s4.o2z() === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
2931
2932
|
break;
|
|
2932
2933
|
case 1:
|
|
2933
|
-
tmp = new Number_0(_this__u8e3s4.
|
|
2934
|
+
tmp = new Number_0(_this__u8e3s4.o2z() === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
2934
2935
|
break;
|
|
2935
2936
|
case 3:
|
|
2936
2937
|
tmp = Boolean_instance;
|
|
@@ -2958,11 +2959,11 @@ function toPrimitive_0(_this__u8e3s4) {
|
|
|
2958
2959
|
return toPrimitive(isInterface(_this__u8e3s4, OpenAPIV20Base) ? _this__u8e3s4 : THROW_CCE());
|
|
2959
2960
|
}
|
|
2960
2961
|
function resolveSchemaRef(_this__u8e3s4, reference) {
|
|
2961
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2962
|
+
var tmp0_safe_receiver = _this__u8e3s4.x31();
|
|
2962
2963
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q2(getReference(reference));
|
|
2963
2964
|
var tmp;
|
|
2964
2965
|
if (tmp1_elvis_lhs == null) {
|
|
2965
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
2966
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.h2z());
|
|
2966
2967
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2967
2968
|
} else {
|
|
2968
2969
|
tmp = tmp1_elvis_lhs;
|
|
@@ -3036,11 +3037,11 @@ function isPrimitive(_this__u8e3s4) {
|
|
|
3036
3037
|
return tmp;
|
|
3037
3038
|
}
|
|
3038
3039
|
function resolveResponseObject(_this__u8e3s4, reference) {
|
|
3039
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3040
|
+
var tmp0_safe_receiver = _this__u8e3s4.tw();
|
|
3040
3041
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q2(getReference(reference));
|
|
3041
3042
|
var tmp;
|
|
3042
3043
|
if (tmp1_elvis_lhs == null) {
|
|
3043
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
3044
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.h2z());
|
|
3044
3045
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
3045
3046
|
} else {
|
|
3046
3047
|
tmp = tmp1_elvis_lhs;
|
|
@@ -3067,7 +3068,7 @@ function resolve_0(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
3067
3068
|
}
|
|
3068
3069
|
function toField_1(_this__u8e3s4, schema, name) {
|
|
3069
3070
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3070
|
-
var tmp0_elvis_lhs = schema.
|
|
3071
|
+
var tmp0_elvis_lhs = schema.m2z();
|
|
3071
3072
|
// Inline function 'kotlin.collections.map' call
|
|
3072
3073
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3073
3074
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3080,14 +3081,14 @@ function toField_1(_this__u8e3s4, schema, name) {
|
|
|
3080
3081
|
var key = item.l1();
|
|
3081
3082
|
// Inline function 'kotlin.collections.component2' call
|
|
3082
3083
|
var value = item.m1();
|
|
3083
|
-
var tmp0_safe_receiver = schema.
|
|
3084
|
+
var tmp0_safe_receiver = schema.m1b();
|
|
3084
3085
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v1(key);
|
|
3085
3086
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
3086
3087
|
var tmp;
|
|
3087
3088
|
if (isInterface(value, Schema)) {
|
|
3088
3089
|
var tmp3_identifier = new FieldIdentifier(key);
|
|
3089
3090
|
var tmp4_annotations = emptyList();
|
|
3090
|
-
var tmp5_reference = !(value.
|
|
3091
|
+
var tmp5_reference = !(value.j2z() == null) ? toReference_0(_this__u8e3s4, value, className([name, key]), isNullable) : equals(get_primitiveType(value), OpenAPIV20Type_ARRAY_getInstance()) ? toReference_0(_this__u8e3s4, value, className([name, key, 'Array']), isNullable) : toReference_0(_this__u8e3s4, value, className([name, key]), isNullable);
|
|
3091
3092
|
tmp = new Field(tmp4_annotations, tmp3_identifier, tmp5_reference);
|
|
3092
3093
|
} else {
|
|
3093
3094
|
if (isInterface(value, Reference)) {
|
|
@@ -3106,9 +3107,9 @@ function toField_1(_this__u8e3s4, schema, name) {
|
|
|
3106
3107
|
}
|
|
3107
3108
|
function parseParameters$lambda($this_parseParameters) {
|
|
3108
3109
|
return function ($this$flatMapRequests) {
|
|
3109
|
-
var parameters = plus_0(resolveParameters($this_parseParameters, $this$flatMapRequests.
|
|
3110
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
3111
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
3110
|
+
var parameters = plus_0(resolveParameters($this_parseParameters, $this$flatMapRequests.q45_1.y2z()), resolveParameters($this_parseParameters, $this$flatMapRequests.s45_1.y2z()));
|
|
3111
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.s45_1);
|
|
3112
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.p45_1) + $this$flatMapRequests.r45_1.b3_1 : tmp0_elvis_lhs;
|
|
3112
3113
|
// Inline function 'kotlin.collections.filter' call
|
|
3113
3114
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3114
3115
|
var destination = ArrayList_init_$Create$();
|
|
@@ -3125,13 +3126,13 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
3125
3126
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3126
3127
|
while (_iterator__ex2g4s_0.u()) {
|
|
3127
3128
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3128
|
-
var tmp0_safe_receiver = element_0.
|
|
3129
|
+
var tmp0_safe_receiver = element_0.k36_1;
|
|
3129
3130
|
var tmp;
|
|
3130
3131
|
if (tmp0_safe_receiver == null) {
|
|
3131
3132
|
tmp = null;
|
|
3132
3133
|
} else {
|
|
3133
3134
|
// Inline function 'kotlin.let' call
|
|
3134
|
-
tmp = flattenSchemaOrRef($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element_0.
|
|
3135
|
+
tmp = flattenSchemaOrRef($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element_0.l36_1]));
|
|
3135
3136
|
}
|
|
3136
3137
|
var tmp1_elvis_lhs = tmp;
|
|
3137
3138
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -3142,9 +3143,9 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
3142
3143
|
}
|
|
3143
3144
|
function parseRequestBody$lambda($this_parseRequestBody) {
|
|
3144
3145
|
return function ($this$flatMapRequests) {
|
|
3145
|
-
var parameters = plus_0(resolveParameters($this_parseRequestBody, $this$flatMapRequests.
|
|
3146
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
3147
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
3146
|
+
var parameters = plus_0(resolveParameters($this_parseRequestBody, $this$flatMapRequests.q45_1.y2z()), resolveParameters($this_parseRequestBody, $this$flatMapRequests.s45_1.y2z()));
|
|
3147
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.s45_1);
|
|
3148
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.p45_1) + $this$flatMapRequests.r45_1.b3_1 : tmp0_elvis_lhs;
|
|
3148
3149
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3149
3150
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3150
3151
|
var destination = ArrayList_init_$Create$();
|
|
@@ -3152,17 +3153,17 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3152
3153
|
while (_iterator__ex2g4s.u()) {
|
|
3153
3154
|
var element = _iterator__ex2g4s.v();
|
|
3154
3155
|
var tmp;
|
|
3155
|
-
if (!(element.
|
|
3156
|
-
var tmp_0 = toDescriptionAnnotationList(element.
|
|
3157
|
-
var tmp_1 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.
|
|
3156
|
+
if (!(element.h36_1 == null)) {
|
|
3157
|
+
var tmp_0 = toDescriptionAnnotationList(element.p35_1);
|
|
3158
|
+
var tmp_1 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.l36_1])));
|
|
3158
3159
|
// Inline function 'kotlin.collections.map' call
|
|
3159
|
-
var this_0 = ensureNotNull(element.
|
|
3160
|
+
var this_0 = ensureNotNull(element.h36_1);
|
|
3160
3161
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3161
3162
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3162
3163
|
var _iterator__ex2g4s_0 = this_0.t();
|
|
3163
3164
|
while (_iterator__ex2g4s_0.u()) {
|
|
3164
3165
|
var item = _iterator__ex2g4s_0.v();
|
|
3165
|
-
var tmp$ret$0 = item.
|
|
3166
|
+
var tmp$ret$0 = item.vx();
|
|
3166
3167
|
destination_0.x(tmp$ret$0);
|
|
3167
3168
|
}
|
|
3168
3169
|
tmp = listOf(new Enum(null, tmp_0, tmp_1, toSet(destination_0)));
|
|
@@ -3173,7 +3174,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3173
3174
|
addAll(destination, list);
|
|
3174
3175
|
}
|
|
3175
3176
|
var enums = destination;
|
|
3176
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
3177
|
+
var tmp1_safe_receiver = $this$flatMapRequests.s45_1.y2z();
|
|
3177
3178
|
var tmp_2;
|
|
3178
3179
|
if (tmp1_safe_receiver == null) {
|
|
3179
3180
|
tmp_2 = null;
|
|
@@ -3217,7 +3218,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3217
3218
|
var _iterator__ex2g4s_3 = tmp3_safe_receiver.t();
|
|
3218
3219
|
while (_iterator__ex2g4s_3.u()) {
|
|
3219
3220
|
var element_1 = _iterator__ex2g4s_3.v();
|
|
3220
|
-
var schema = element_1.
|
|
3221
|
+
var schema = element_1.k36_1;
|
|
3221
3222
|
var tmp_5;
|
|
3222
3223
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
3223
3224
|
var tmp0_subject = get_primitiveType(schema);
|
|
@@ -3228,7 +3229,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3228
3229
|
tmp_6 = flatten($this_parseRequestBody, schema, className([name, 'RequestBody']));
|
|
3229
3230
|
break;
|
|
3230
3231
|
case 4:
|
|
3231
|
-
var tmp1_safe_receiver_0 = schema.
|
|
3232
|
+
var tmp1_safe_receiver_0 = schema.k2z();
|
|
3232
3233
|
var tmp_7;
|
|
3233
3234
|
if (tmp1_safe_receiver_0 == null) {
|
|
3234
3235
|
tmp_7 = null;
|
|
@@ -3262,11 +3263,11 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3262
3263
|
}
|
|
3263
3264
|
function parseResponseBody$lambda($this_parseResponseBody) {
|
|
3264
3265
|
return function ($this$flatMapResponses) {
|
|
3265
|
-
var tmp = resolveResponse($this_parseResponseBody, $this$flatMapResponses.
|
|
3266
|
+
var tmp = resolveResponse($this_parseResponseBody, $this$flatMapResponses.y45_1);
|
|
3266
3267
|
var tmp0_safe_receiver = tmp instanceof OpenAPIV20Response ? tmp : null;
|
|
3267
|
-
var schema = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3268
|
-
var tmp1_elvis_lhs = toName($this$flatMapResponses.
|
|
3269
|
-
var name = tmp1_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
3268
|
+
var schema = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m37_1;
|
|
3269
|
+
var tmp1_elvis_lhs = toName($this$flatMapResponses.w45_1);
|
|
3270
|
+
var name = tmp1_elvis_lhs == null ? toName_0($this$flatMapResponses.t45_1) + $this$flatMapResponses.v45_1.b3_1 : tmp1_elvis_lhs;
|
|
3270
3271
|
var tmp_0;
|
|
3271
3272
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
3272
3273
|
var tmp3_subject = get_primitiveType(schema);
|
|
@@ -3274,16 +3275,16 @@ function parseResponseBody$lambda($this_parseResponseBody) {
|
|
|
3274
3275
|
switch (tmp3_subject == null ? -1 : tmp3_subject.c3_1) {
|
|
3275
3276
|
case -1:
|
|
3276
3277
|
case 5:
|
|
3277
|
-
tmp_1 = flatten($this_parseResponseBody, schema, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.
|
|
3278
|
+
tmp_1 = flatten($this_parseResponseBody, schema, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.x45_1), 'ResponseBody']));
|
|
3278
3279
|
break;
|
|
3279
3280
|
case 4:
|
|
3280
|
-
var tmp4_safe_receiver = schema.
|
|
3281
|
+
var tmp4_safe_receiver = schema.k2z();
|
|
3281
3282
|
var tmp_2;
|
|
3282
3283
|
if (tmp4_safe_receiver == null) {
|
|
3283
3284
|
tmp_2 = null;
|
|
3284
3285
|
} else {
|
|
3285
3286
|
// Inline function 'kotlin.let' call
|
|
3286
|
-
tmp_2 = flattenSchemaOrRef($this_parseResponseBody, tmp4_safe_receiver, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.
|
|
3287
|
+
tmp_2 = flattenSchemaOrRef($this_parseResponseBody, tmp4_safe_receiver, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.x45_1), 'ResponseBody']));
|
|
3287
3288
|
}
|
|
3288
3289
|
|
|
3289
3290
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -3311,8 +3312,14 @@ function emitComponents($this, _this__u8e3s4, logger) {
|
|
|
3311
3312
|
while (_iterator__ex2g4s.u()) {
|
|
3312
3313
|
var element = _iterator__ex2g4s.v();
|
|
3313
3314
|
var tmp;
|
|
3315
|
+
var tmp_0;
|
|
3314
3316
|
if (!(element instanceof Endpoint)) {
|
|
3315
|
-
|
|
3317
|
+
tmp_0 = !(element instanceof Channel);
|
|
3318
|
+
} else {
|
|
3319
|
+
tmp_0 = false;
|
|
3320
|
+
}
|
|
3321
|
+
if (tmp_0) {
|
|
3322
|
+
tmp = !(element instanceof Rpc);
|
|
3316
3323
|
} else {
|
|
3317
3324
|
tmp = false;
|
|
3318
3325
|
}
|
|
@@ -3327,19 +3334,19 @@ function emitComponents($this, _this__u8e3s4, logger) {
|
|
|
3327
3334
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3328
3335
|
while (_iterator__ex2g4s_0.u()) {
|
|
3329
3336
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3330
|
-
var
|
|
3331
|
-
var
|
|
3337
|
+
var tmp_1 = element_0.mr().m1();
|
|
3338
|
+
var tmp_2;
|
|
3332
3339
|
if (element_0 instanceof Enum) {
|
|
3333
|
-
|
|
3340
|
+
tmp_2 = emit_3(OpenAPIV3Emitter_getInstance(), element_0);
|
|
3334
3341
|
} else {
|
|
3335
3342
|
if (element_0 instanceof Refined) {
|
|
3336
|
-
|
|
3343
|
+
tmp_2 = emit_1(OpenAPIV3Emitter_getInstance(), element_0);
|
|
3337
3344
|
} else {
|
|
3338
3345
|
if (element_0 instanceof Type) {
|
|
3339
|
-
|
|
3346
|
+
tmp_2 = emit_2(OpenAPIV3Emitter_getInstance(), element_0);
|
|
3340
3347
|
} else {
|
|
3341
3348
|
if (element_0 instanceof Union) {
|
|
3342
|
-
|
|
3349
|
+
tmp_2 = emit_4(OpenAPIV3Emitter_getInstance(), element_0);
|
|
3343
3350
|
} else {
|
|
3344
3351
|
if (element_0 instanceof Endpoint) {
|
|
3345
3352
|
var message = 'Cannot emit endpoint';
|
|
@@ -3349,7 +3356,12 @@ function emitComponents($this, _this__u8e3s4, logger) {
|
|
|
3349
3356
|
var message_0 = 'Cannot emit channel';
|
|
3350
3357
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
3351
3358
|
} else {
|
|
3352
|
-
|
|
3359
|
+
if (element_0 instanceof Rpc) {
|
|
3360
|
+
var message_1 = 'Cannot emit rpc';
|
|
3361
|
+
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
3362
|
+
} else {
|
|
3363
|
+
noWhenBranchMatchedException();
|
|
3364
|
+
}
|
|
3353
3365
|
}
|
|
3354
3366
|
}
|
|
3355
3367
|
}
|
|
@@ -3357,10 +3369,10 @@ function emitComponents($this, _this__u8e3s4, logger) {
|
|
|
3357
3369
|
}
|
|
3358
3370
|
}
|
|
3359
3371
|
// Inline function 'kotlin.also' call
|
|
3360
|
-
var this_0 =
|
|
3361
|
-
logger.
|
|
3372
|
+
var this_0 = tmp_2;
|
|
3373
|
+
logger.ir('Emitting ' + getKClassFromExpression(element_0).o() + ' ' + element_0.mr().m1());
|
|
3362
3374
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3363
|
-
var pair = to(
|
|
3375
|
+
var pair = to(tmp_1, this_0);
|
|
3364
3376
|
destination_0.t2(pair.ff_1, pair.gf_1);
|
|
3365
3377
|
}
|
|
3366
3378
|
// Inline function 'kotlin.let' call
|
|
@@ -3384,7 +3396,7 @@ function emitPaths_0($this, _this__u8e3s4, logger) {
|
|
|
3384
3396
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3385
3397
|
while (_iterator__ex2g4s_0.u()) {
|
|
3386
3398
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3387
|
-
var key = element_0.
|
|
3399
|
+
var key = element_0.mq_1;
|
|
3388
3400
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
3389
3401
|
var value = destination_0.q2(key);
|
|
3390
3402
|
var tmp;
|
|
@@ -3409,7 +3421,7 @@ function emitPaths_0($this, _this__u8e3s4, logger) {
|
|
|
3409
3421
|
var path = item.l1();
|
|
3410
3422
|
// Inline function 'kotlin.collections.component2' call
|
|
3411
3423
|
var endpoints = item.m1();
|
|
3412
|
-
logger.
|
|
3424
|
+
logger.ir('Emitting endpoints for path ' + emitSegment_0(OpenAPIV3Emitter_getInstance(), path));
|
|
3413
3425
|
var tmp_0 = _Path___init__impl__6uf4pw(emitSegment_0(OpenAPIV3Emitter_getInstance(), path));
|
|
3414
3426
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3415
3427
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
@@ -3452,31 +3464,31 @@ function emitPaths_0($this, _this__u8e3s4, logger) {
|
|
|
3452
3464
|
return toMap(destination_1);
|
|
3453
3465
|
}
|
|
3454
3466
|
function emit_1($this, _this__u8e3s4) {
|
|
3455
|
-
var type = _this__u8e3s4.
|
|
3467
|
+
var type = _this__u8e3s4.ur_1.wt_1;
|
|
3456
3468
|
var tmp;
|
|
3457
3469
|
if (type instanceof Integer) {
|
|
3458
3470
|
var tmp4_type = asTypeDefinition($this, OpenAPIV30Type_INTEGER_getInstance());
|
|
3459
|
-
var tmp0_safe_receiver = type.
|
|
3460
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3471
|
+
var tmp0_safe_receiver = type.uu_1;
|
|
3472
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pu_1;
|
|
3461
3473
|
var tmp5_minimum = tmp1_safe_receiver == null ? null : toDouble(tmp1_safe_receiver);
|
|
3462
|
-
var tmp2_safe_receiver = type.
|
|
3463
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
3474
|
+
var tmp2_safe_receiver = type.uu_1;
|
|
3475
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.qu_1;
|
|
3464
3476
|
var tmp6_maximum = tmp3_safe_receiver == null ? null : toDouble(tmp3_safe_receiver);
|
|
3465
3477
|
tmp = new OpenAPIV30Schema(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp4_type, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, 'int32', tmp6_maximum, VOID, tmp5_minimum);
|
|
3466
3478
|
} else {
|
|
3467
3479
|
if (type instanceof Number_0) {
|
|
3468
3480
|
var tmp11_type = asTypeDefinition($this, OpenAPIV30Type_NUMBER_getInstance());
|
|
3469
|
-
var tmp7_safe_receiver = type.
|
|
3470
|
-
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.
|
|
3481
|
+
var tmp7_safe_receiver = type.xu_1;
|
|
3482
|
+
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.pu_1;
|
|
3471
3483
|
var tmp12_minimum = tmp8_safe_receiver == null ? null : toDouble(tmp8_safe_receiver);
|
|
3472
|
-
var tmp9_safe_receiver = type.
|
|
3473
|
-
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.
|
|
3484
|
+
var tmp9_safe_receiver = type.xu_1;
|
|
3485
|
+
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.qu_1;
|
|
3474
3486
|
var tmp13_maximum = tmp10_safe_receiver == null ? null : toDouble(tmp10_safe_receiver);
|
|
3475
3487
|
tmp = new OpenAPIV30Schema(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp11_type, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, 'float', tmp13_maximum, VOID, tmp12_minimum);
|
|
3476
3488
|
} else {
|
|
3477
3489
|
if (type instanceof String_0) {
|
|
3478
3490
|
var tmp_0 = asTypeDefinition($this, OpenAPIV30Type_STRING_getInstance());
|
|
3479
|
-
var tmp14_safe_receiver = type.
|
|
3491
|
+
var tmp14_safe_receiver = type.ru_1;
|
|
3480
3492
|
var tmp_1;
|
|
3481
3493
|
var tmp_2 = tmp14_safe_receiver;
|
|
3482
3494
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2)) == null) {
|
|
@@ -3504,10 +3516,10 @@ function asTypeDefinition($this, _this__u8e3s4) {
|
|
|
3504
3516
|
return new OpenAPIV30SingleType(_this__u8e3s4);
|
|
3505
3517
|
}
|
|
3506
3518
|
function emit_2($this, _this__u8e3s4) {
|
|
3507
|
-
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.
|
|
3519
|
+
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.dq_1);
|
|
3508
3520
|
var tmp;
|
|
3509
3521
|
if (tmp0_elvis_lhs == null) {
|
|
3510
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
3522
|
+
var tmp1_safe_receiver = _this__u8e3s4.cq_1;
|
|
3511
3523
|
var tmp_0;
|
|
3512
3524
|
var tmp_1 = tmp1_safe_receiver;
|
|
3513
3525
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3521,7 +3533,7 @@ function emit_2($this, _this__u8e3s4) {
|
|
|
3521
3533
|
}
|
|
3522
3534
|
var tmp2_description = tmp;
|
|
3523
3535
|
// Inline function 'kotlin.collections.associate' call
|
|
3524
|
-
var this_0 = _this__u8e3s4.
|
|
3536
|
+
var this_0 = _this__u8e3s4.fq_1.kp_1;
|
|
3525
3537
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
3526
3538
|
// Inline function 'kotlin.collections.associateTo' call
|
|
3527
3539
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -3533,13 +3545,13 @@ function emit_2($this, _this__u8e3s4) {
|
|
|
3533
3545
|
destination.t2(pair.ff_1, pair.gf_1);
|
|
3534
3546
|
}
|
|
3535
3547
|
// Inline function 'kotlin.collections.filter' call
|
|
3536
|
-
var tmp0 = _this__u8e3s4.
|
|
3548
|
+
var tmp0 = _this__u8e3s4.fq_1.kp_1;
|
|
3537
3549
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3538
3550
|
var destination_0 = ArrayList_init_$Create$();
|
|
3539
3551
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
3540
3552
|
while (_iterator__ex2g4s_0.u()) {
|
|
3541
3553
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3542
|
-
if (!element_0.
|
|
3554
|
+
if (!element_0.tp_1.dv()) {
|
|
3543
3555
|
destination_0.x(element_0);
|
|
3544
3556
|
}
|
|
3545
3557
|
}
|
|
@@ -3549,7 +3561,7 @@ function emit_2($this, _this__u8e3s4) {
|
|
|
3549
3561
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
3550
3562
|
while (_iterator__ex2g4s_1.u()) {
|
|
3551
3563
|
var item = _iterator__ex2g4s_1.v();
|
|
3552
|
-
var tmp$ret$7 = item.
|
|
3564
|
+
var tmp$ret$7 = item.sp_1.m1();
|
|
3553
3565
|
destination_1.x(tmp$ret$7);
|
|
3554
3566
|
}
|
|
3555
3567
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -3564,10 +3576,10 @@ function emit_2($this, _this__u8e3s4) {
|
|
|
3564
3576
|
return new OpenAPIV30Schema(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_description, VOID, VOID, VOID, VOID, VOID, tmp4_required, VOID, VOID, VOID, destination);
|
|
3565
3577
|
}
|
|
3566
3578
|
function emit_3($this, _this__u8e3s4) {
|
|
3567
|
-
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.
|
|
3579
|
+
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.xr_1);
|
|
3568
3580
|
var tmp;
|
|
3569
3581
|
if (tmp0_elvis_lhs == null) {
|
|
3570
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
3582
|
+
var tmp1_safe_receiver = _this__u8e3s4.wr_1;
|
|
3571
3583
|
var tmp_0;
|
|
3572
3584
|
var tmp_1 = tmp1_safe_receiver;
|
|
3573
3585
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3582,7 +3594,7 @@ function emit_3($this, _this__u8e3s4) {
|
|
|
3582
3594
|
var tmp2_description = tmp;
|
|
3583
3595
|
var tmp3_type = asTypeDefinition($this, OpenAPIV30Type_STRING_getInstance());
|
|
3584
3596
|
// Inline function 'kotlin.collections.map' call
|
|
3585
|
-
var this_0 = _this__u8e3s4.
|
|
3597
|
+
var this_0 = _this__u8e3s4.zr_1;
|
|
3586
3598
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3587
3599
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3588
3600
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -3594,10 +3606,10 @@ function emit_3($this, _this__u8e3s4) {
|
|
|
3594
3606
|
return new OpenAPIV30Schema(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_type, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_description, VOID, VOID, VOID, VOID, VOID, VOID, destination);
|
|
3595
3607
|
}
|
|
3596
3608
|
function emit_4($this, _this__u8e3s4) {
|
|
3597
|
-
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.
|
|
3609
|
+
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.zp_1);
|
|
3598
3610
|
var tmp;
|
|
3599
3611
|
if (tmp0_elvis_lhs == null) {
|
|
3600
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
3612
|
+
var tmp1_safe_receiver = _this__u8e3s4.yp_1;
|
|
3601
3613
|
var tmp_0;
|
|
3602
3614
|
var tmp_1 = tmp1_safe_receiver;
|
|
3603
3615
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3612,7 +3624,7 @@ function emit_4($this, _this__u8e3s4) {
|
|
|
3612
3624
|
var tmp2_description = tmp;
|
|
3613
3625
|
var tmp3_type = asTypeDefinition($this, OpenAPIV30Type_STRING_getInstance());
|
|
3614
3626
|
// Inline function 'kotlin.collections.map' call
|
|
3615
|
-
var this_0 = _this__u8e3s4.
|
|
3627
|
+
var this_0 = _this__u8e3s4.bq_1;
|
|
3616
3628
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3617
3629
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3618
3630
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -3630,7 +3642,7 @@ function emit_5($this, _this__u8e3s4, method) {
|
|
|
3630
3642
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
3631
3643
|
while (_iterator__ex2g4s.u()) {
|
|
3632
3644
|
var element = _iterator__ex2g4s.v();
|
|
3633
|
-
if (element.
|
|
3645
|
+
if (element.lq_1.equals(method)) {
|
|
3634
3646
|
destination.x(element);
|
|
3635
3647
|
}
|
|
3636
3648
|
}
|
|
@@ -3646,11 +3658,11 @@ function emit_5($this, _this__u8e3s4, method) {
|
|
|
3646
3658
|
return firstOrNull(destination_0);
|
|
3647
3659
|
}
|
|
3648
3660
|
function emit_6($this, _this__u8e3s4) {
|
|
3649
|
-
var tmp3_operationId = _this__u8e3s4.
|
|
3650
|
-
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.
|
|
3661
|
+
var tmp3_operationId = _this__u8e3s4.kq_1.m1();
|
|
3662
|
+
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.jq_1);
|
|
3651
3663
|
var tmp;
|
|
3652
3664
|
if (tmp0_elvis_lhs == null) {
|
|
3653
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
3665
|
+
var tmp1_safe_receiver = _this__u8e3s4.iq_1;
|
|
3654
3666
|
var tmp_0;
|
|
3655
3667
|
var tmp_1 = tmp1_safe_receiver;
|
|
3656
3668
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3664,7 +3676,7 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3664
3676
|
}
|
|
3665
3677
|
var tmp4_description = tmp;
|
|
3666
3678
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3667
|
-
var tmp0 = _this__u8e3s4.
|
|
3679
|
+
var tmp0 = _this__u8e3s4.mq_1;
|
|
3668
3680
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
3669
3681
|
var destination = ArrayList_init_$Create$();
|
|
3670
3682
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -3685,7 +3697,7 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3685
3697
|
}
|
|
3686
3698
|
var tmp_2 = destination_0;
|
|
3687
3699
|
// Inline function 'kotlin.collections.map' call
|
|
3688
|
-
var this_0 = _this__u8e3s4.
|
|
3700
|
+
var this_0 = _this__u8e3s4.nq_1;
|
|
3689
3701
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3690
3702
|
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3691
3703
|
var _iterator__ex2g4s_1 = this_0.t();
|
|
@@ -3696,7 +3708,7 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3696
3708
|
}
|
|
3697
3709
|
var tmp_3 = plus_0(tmp_2, destination_1);
|
|
3698
3710
|
// Inline function 'kotlin.collections.map' call
|
|
3699
|
-
var this_1 = _this__u8e3s4.
|
|
3711
|
+
var this_1 = _this__u8e3s4.oq_1;
|
|
3700
3712
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3701
3713
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
3702
3714
|
var _iterator__ex2g4s_2 = this_1.t();
|
|
@@ -3707,14 +3719,14 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3707
3719
|
}
|
|
3708
3720
|
var tmp5_parameters = plus_0(tmp_3, destination_2);
|
|
3709
3721
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3710
|
-
var tmp0_0 = _this__u8e3s4.
|
|
3722
|
+
var tmp0_0 = _this__u8e3s4.pq_1;
|
|
3711
3723
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3712
3724
|
var destination_3 = ArrayList_init_$Create$();
|
|
3713
3725
|
// Inline function 'kotlin.collections.forEach' call
|
|
3714
3726
|
var _iterator__ex2g4s_3 = tmp0_0.t();
|
|
3715
3727
|
while (_iterator__ex2g4s_3.u()) {
|
|
3716
3728
|
var element_0 = _iterator__ex2g4s_3.v();
|
|
3717
|
-
var tmp0_safe_receiver = element_0.
|
|
3729
|
+
var tmp0_safe_receiver = element_0.tq_1;
|
|
3718
3730
|
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : emit_7(OpenAPIV3Emitter_getInstance(), tmp0_safe_receiver);
|
|
3719
3731
|
if (tmp0_safe_receiver_0 == null)
|
|
3720
3732
|
null;
|
|
@@ -3738,7 +3750,7 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3738
3750
|
tmp_5 = null;
|
|
3739
3751
|
} else {
|
|
3740
3752
|
// Inline function 'kotlin.let' call
|
|
3741
|
-
var tmp0_1 = _this__u8e3s4.
|
|
3753
|
+
var tmp0_1 = _this__u8e3s4.pq_1;
|
|
3742
3754
|
var tmp$ret$21;
|
|
3743
3755
|
$l$block_0: {
|
|
3744
3756
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -3755,9 +3767,9 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3755
3767
|
var _iterator__ex2g4s_4 = tmp0_1.t();
|
|
3756
3768
|
while (_iterator__ex2g4s_4.u()) {
|
|
3757
3769
|
var element_1 = _iterator__ex2g4s_4.v();
|
|
3758
|
-
var tmp0_safe_receiver_1 = element_1.
|
|
3759
|
-
var tmp1_safe_receiver_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.
|
|
3760
|
-
if ((tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
3770
|
+
var tmp0_safe_receiver_1 = element_1.tq_1;
|
|
3771
|
+
var tmp1_safe_receiver_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.vq_1;
|
|
3772
|
+
if ((tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.dv()) === true) {
|
|
3761
3773
|
tmp$ret$21 = true;
|
|
3762
3774
|
break $l$block_0;
|
|
3763
3775
|
}
|
|
@@ -3768,13 +3780,13 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3768
3780
|
}
|
|
3769
3781
|
var tmp6_requestBody = tmp_5;
|
|
3770
3782
|
// Inline function 'kotlin.collections.groupBy' call
|
|
3771
|
-
var tmp0_2 = _this__u8e3s4.
|
|
3783
|
+
var tmp0_2 = _this__u8e3s4.qq_1;
|
|
3772
3784
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
3773
3785
|
var destination_4 = LinkedHashMap_init_$Create$_0();
|
|
3774
3786
|
var _iterator__ex2g4s_5 = tmp0_2.t();
|
|
3775
3787
|
while (_iterator__ex2g4s_5.u()) {
|
|
3776
3788
|
var element_2 = _iterator__ex2g4s_5.v();
|
|
3777
|
-
var key = element_2.
|
|
3789
|
+
var key = element_2.wq_1;
|
|
3778
3790
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
3779
3791
|
var value = destination_4.q2(key);
|
|
3780
3792
|
var tmp_7;
|
|
@@ -3806,7 +3818,7 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3806
3818
|
var _iterator__ex2g4s_7 = res.t();
|
|
3807
3819
|
while (_iterator__ex2g4s_7.u()) {
|
|
3808
3820
|
var element_3 = _iterator__ex2g4s_7.v();
|
|
3809
|
-
var list_0 = element_3.
|
|
3821
|
+
var list_0 = element_3.xq_1;
|
|
3810
3822
|
addAll(destination_6, list_0);
|
|
3811
3823
|
}
|
|
3812
3824
|
// Inline function 'kotlin.collections.associate' call
|
|
@@ -3820,8 +3832,8 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3820
3832
|
var pair = emitHeader(OpenAPIV3Emitter_getInstance(), element_4);
|
|
3821
3833
|
destination_7.t2(pair.ff_1, pair.gf_1);
|
|
3822
3834
|
}
|
|
3823
|
-
var tmp0_elvis_lhs_0 = findDescription(first(res).
|
|
3824
|
-
var tmp2_description = tmp0_elvis_lhs_0 == null ? _this__u8e3s4.
|
|
3835
|
+
var tmp0_elvis_lhs_0 = findDescription(first(res).zq_1);
|
|
3836
|
+
var tmp2_description = tmp0_elvis_lhs_0 == null ? _this__u8e3s4.kq_1.m1() + ' ' + statusCode + ' response' : tmp0_elvis_lhs_0;
|
|
3825
3837
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3826
3838
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3827
3839
|
var destination_8 = ArrayList_init_$Create$();
|
|
@@ -3829,7 +3841,7 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3829
3841
|
var _iterator__ex2g4s_9 = res.t();
|
|
3830
3842
|
while (_iterator__ex2g4s_9.u()) {
|
|
3831
3843
|
var element_5 = _iterator__ex2g4s_9.v();
|
|
3832
|
-
var tmp0_safe_receiver_2 = element_5.
|
|
3844
|
+
var tmp0_safe_receiver_2 = element_5.yq_1;
|
|
3833
3845
|
if (tmp0_safe_receiver_2 == null)
|
|
3834
3846
|
null;
|
|
3835
3847
|
else {
|
|
@@ -3863,7 +3875,7 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3863
3875
|
var _iterator__ex2g4s_11 = res.t();
|
|
3864
3876
|
while (_iterator__ex2g4s_11.u()) {
|
|
3865
3877
|
var element_7 = _iterator__ex2g4s_11.v();
|
|
3866
|
-
var list_1 = findLinks(element_7.
|
|
3878
|
+
var list_1 = findLinks(element_7.zq_1);
|
|
3867
3879
|
addAll(destination_10, list_1);
|
|
3868
3880
|
}
|
|
3869
3881
|
var tmp4_links = toOpenAPIV30Links(tmp_10, destination_10);
|
|
@@ -3881,9 +3893,9 @@ function toOpenAPIV30Links($this, _this__u8e3s4) {
|
|
|
3881
3893
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
3882
3894
|
while (_iterator__ex2g4s.u()) {
|
|
3883
3895
|
var element = _iterator__ex2g4s.v();
|
|
3884
|
-
var tmp2 = element.
|
|
3896
|
+
var tmp2 = element.z45_1;
|
|
3885
3897
|
// Inline function 'kotlin.collections.mapValues' call
|
|
3886
|
-
var this_0 = element.
|
|
3898
|
+
var this_0 = element.c46_1;
|
|
3887
3899
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
3888
3900
|
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.b1()));
|
|
3889
3901
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -3902,7 +3914,7 @@ function toOpenAPIV30Links($this, _this__u8e3s4) {
|
|
|
3902
3914
|
tmp_0 = destination;
|
|
3903
3915
|
}
|
|
3904
3916
|
var tmp_1 = tmp_0;
|
|
3905
|
-
var tmp0_safe_receiver = element.
|
|
3917
|
+
var tmp0_safe_receiver = element.d46_1;
|
|
3906
3918
|
var tmp_2;
|
|
3907
3919
|
if (tmp0_safe_receiver == null) {
|
|
3908
3920
|
tmp_2 = null;
|
|
@@ -3911,7 +3923,7 @@ function toOpenAPIV30Links($this, _this__u8e3s4) {
|
|
|
3911
3923
|
tmp_2 = JsonPrimitive(tmp0_safe_receiver);
|
|
3912
3924
|
}
|
|
3913
3925
|
// Inline function 'kotlin.collections.set' call
|
|
3914
|
-
var value = new OpenAPIV30Link(element.
|
|
3926
|
+
var value = new OpenAPIV30Link(element.b46_1, element.a46_1, tmp_1, tmp_2, element.e46_1);
|
|
3915
3927
|
byName.t2(tmp2, value);
|
|
3916
3928
|
}
|
|
3917
3929
|
return new OpenAPIV30Links(toSet(byName.k1()));
|
|
@@ -3920,29 +3932,29 @@ function emitSegment_0($this, _this__u8e3s4) {
|
|
|
3920
3932
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenAPIV3Emitter$emitSegment$lambda);
|
|
3921
3933
|
}
|
|
3922
3934
|
function emitParameter_0($this, _this__u8e3s4, location) {
|
|
3923
|
-
var tmp0_name = _this__u8e3s4.
|
|
3924
|
-
var tmp1_schema = emitSchema_0($this, _this__u8e3s4.
|
|
3925
|
-
var tmp2_description = findDescription(_this__u8e3s4.
|
|
3926
|
-
var tmp3_required = !_this__u8e3s4.
|
|
3935
|
+
var tmp0_name = _this__u8e3s4.sp_1.m1();
|
|
3936
|
+
var tmp1_schema = emitSchema_0($this, _this__u8e3s4.tp_1);
|
|
3937
|
+
var tmp2_description = findDescription(_this__u8e3s4.rp_1);
|
|
3938
|
+
var tmp3_required = !_this__u8e3s4.tp_1.dv();
|
|
3927
3939
|
return new OpenAPIV30Parameter(tmp2_description, tmp3_required, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, location, tmp1_schema, tmp0_name);
|
|
3928
3940
|
}
|
|
3929
3941
|
function emitParameter_1($this, _this__u8e3s4) {
|
|
3930
3942
|
var tmp0_in = OpenAPIV30ParameterLocation_PATH_getInstance();
|
|
3931
|
-
var tmp1_name = _this__u8e3s4.
|
|
3932
|
-
var tmp2_schema = emitSchema_0($this, _this__u8e3s4.
|
|
3933
|
-
var tmp3_required = !_this__u8e3s4.
|
|
3943
|
+
var tmp1_name = _this__u8e3s4.rq_1.m1();
|
|
3944
|
+
var tmp2_schema = emitSchema_0($this, _this__u8e3s4.sq_1);
|
|
3945
|
+
var tmp3_required = !_this__u8e3s4.sq_1.dv();
|
|
3934
3946
|
return new OpenAPIV30Parameter(VOID, tmp3_required, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_in, tmp2_schema, tmp1_name);
|
|
3935
3947
|
}
|
|
3936
3948
|
function emitHeader($this, _this__u8e3s4) {
|
|
3937
|
-
return to(_this__u8e3s4.
|
|
3949
|
+
return to(_this__u8e3s4.sp_1.m1(), emitHeader_0($this, _this__u8e3s4.tp_1, findDescription(_this__u8e3s4.rp_1)));
|
|
3938
3950
|
}
|
|
3939
3951
|
function emitSchema($this, _this__u8e3s4) {
|
|
3940
|
-
var tmp = _this__u8e3s4.
|
|
3952
|
+
var tmp = _this__u8e3s4.sp_1.m1();
|
|
3941
3953
|
// Inline function 'kotlin.let' call
|
|
3942
|
-
var it = emitSchema_0($this, _this__u8e3s4.
|
|
3954
|
+
var it = emitSchema_0($this, _this__u8e3s4.tp_1);
|
|
3943
3955
|
var tmp_0;
|
|
3944
3956
|
if (it instanceof OpenAPIV30Schema) {
|
|
3945
|
-
tmp_0 = it.
|
|
3957
|
+
tmp_0 = it.o3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, findDescription(_this__u8e3s4.rp_1));
|
|
3946
3958
|
} else {
|
|
3947
3959
|
if (it instanceof OpenAPIV30Reference) {
|
|
3948
3960
|
tmp_0 = it;
|
|
@@ -3962,7 +3974,7 @@ function emitHeader_0($this, _this__u8e3s4, description) {
|
|
|
3962
3974
|
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + _this__u8e3s4.ap_1));
|
|
3963
3975
|
} else {
|
|
3964
3976
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3965
|
-
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + _this__u8e3s4.
|
|
3977
|
+
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + _this__u8e3s4.lv_1));
|
|
3966
3978
|
} else {
|
|
3967
3979
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3968
3980
|
var tmp1_schema = emitSchema_0($this, _this__u8e3s4);
|
|
@@ -3988,19 +4000,19 @@ function emitHeader_0($this, _this__u8e3s4, description) {
|
|
|
3988
4000
|
function emitSchema_0($this, _this__u8e3s4) {
|
|
3989
4001
|
var tmp;
|
|
3990
4002
|
if (_this__u8e3s4 instanceof Dict) {
|
|
3991
|
-
var tmp_0 = _this__u8e3s4.bp_1.
|
|
4003
|
+
var tmp_0 = _this__u8e3s4.bp_1.dv();
|
|
3992
4004
|
var tmp_1 = asTypeDefinition($this, OpenAPIV30Type_OBJECT_getInstance());
|
|
3993
4005
|
var tmp_2 = emitSchema_0($this, _this__u8e3s4.bp_1);
|
|
3994
4006
|
tmp = new OpenAPIV30Schema(tmp_0, VOID, VOID, VOID, VOID, VOID, VOID, tmp_1, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, isInterface(tmp_2, OpenAPIV30SchemaOrReferenceOrBoolean) ? tmp_2 : THROW_CCE());
|
|
3995
4007
|
} else {
|
|
3996
4008
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
3997
|
-
tmp = new OpenAPIV30Schema(_this__u8e3s4.yo_1.
|
|
4009
|
+
tmp = new OpenAPIV30Schema(_this__u8e3s4.yo_1.dv(), VOID, VOID, VOID, VOID, VOID, VOID, asTypeDefinition($this, OpenAPIV30Type_ARRAY_getInstance()), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitSchema_0($this, _this__u8e3s4.yo_1));
|
|
3998
4010
|
} else {
|
|
3999
4011
|
if (_this__u8e3s4 instanceof Custom) {
|
|
4000
|
-
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/schemas/' + _this__u8e3s4.
|
|
4012
|
+
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/schemas/' + _this__u8e3s4.lv_1));
|
|
4001
4013
|
} else {
|
|
4002
4014
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
4003
|
-
var tmp1_type = asTypeDefinition($this, emitType_1($this, _this__u8e3s4.
|
|
4015
|
+
var tmp1_type = asTypeDefinition($this, emitType_1($this, _this__u8e3s4.wt_1));
|
|
4004
4016
|
var tmp2_format = emitFormat(_this__u8e3s4);
|
|
4005
4017
|
var tmp3_pattern = emitPattern_0($this, _this__u8e3s4);
|
|
4006
4018
|
var tmp4_minimum = emitMinimum_0($this, _this__u8e3s4);
|
|
@@ -4050,15 +4062,15 @@ function emitType_1($this, _this__u8e3s4) {
|
|
|
4050
4062
|
return tmp;
|
|
4051
4063
|
}
|
|
4052
4064
|
function emit_7($this, _this__u8e3s4) {
|
|
4053
|
-
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.
|
|
4065
|
+
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.uq_1)), new OpenAPIV30MediaType(emitSchema_0($this, _this__u8e3s4.vq_1)));
|
|
4054
4066
|
}
|
|
4055
4067
|
function emitPattern_0($this, _this__u8e3s4) {
|
|
4056
4068
|
var tmp;
|
|
4057
4069
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
4058
|
-
var t = _this__u8e3s4.
|
|
4070
|
+
var t = _this__u8e3s4.wt_1;
|
|
4059
4071
|
var tmp_0;
|
|
4060
4072
|
if (t instanceof String_0) {
|
|
4061
|
-
var p = t.
|
|
4073
|
+
var p = t.ru_1;
|
|
4062
4074
|
var tmp_1;
|
|
4063
4075
|
var tmp_2 = p;
|
|
4064
4076
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2))instanceof RegExp_0) {
|
|
@@ -4079,16 +4091,16 @@ function emitPattern_0($this, _this__u8e3s4) {
|
|
|
4079
4091
|
function emitMinimum_0($this, _this__u8e3s4) {
|
|
4080
4092
|
var tmp;
|
|
4081
4093
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
4082
|
-
var t = _this__u8e3s4.
|
|
4094
|
+
var t = _this__u8e3s4.wt_1;
|
|
4083
4095
|
var tmp_0;
|
|
4084
4096
|
if (t instanceof Number_0) {
|
|
4085
|
-
var tmp1_safe_receiver = t.
|
|
4086
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4097
|
+
var tmp1_safe_receiver = t.xu_1;
|
|
4098
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.pu_1;
|
|
4087
4099
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
4088
4100
|
} else {
|
|
4089
4101
|
if (t instanceof Integer) {
|
|
4090
|
-
var tmp3_safe_receiver = t.
|
|
4091
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
4102
|
+
var tmp3_safe_receiver = t.uu_1;
|
|
4103
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.pu_1;
|
|
4092
4104
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
4093
4105
|
} else {
|
|
4094
4106
|
tmp_0 = null;
|
|
@@ -4103,16 +4115,16 @@ function emitMinimum_0($this, _this__u8e3s4) {
|
|
|
4103
4115
|
function emitMaximum_0($this, _this__u8e3s4) {
|
|
4104
4116
|
var tmp;
|
|
4105
4117
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
4106
|
-
var t = _this__u8e3s4.
|
|
4118
|
+
var t = _this__u8e3s4.wt_1;
|
|
4107
4119
|
var tmp_0;
|
|
4108
4120
|
if (t instanceof Number_0) {
|
|
4109
|
-
var tmp1_safe_receiver = t.
|
|
4110
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4121
|
+
var tmp1_safe_receiver = t.xu_1;
|
|
4122
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.qu_1;
|
|
4111
4123
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
4112
4124
|
} else {
|
|
4113
4125
|
if (t instanceof Integer) {
|
|
4114
|
-
var tmp3_safe_receiver = t.
|
|
4115
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
4126
|
+
var tmp3_safe_receiver = t.uu_1;
|
|
4127
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.qu_1;
|
|
4116
4128
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
4117
4129
|
} else {
|
|
4118
4130
|
tmp_0 = null;
|
|
@@ -4127,10 +4139,10 @@ function emitMaximum_0($this, _this__u8e3s4) {
|
|
|
4127
4139
|
function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
4128
4140
|
var tmp;
|
|
4129
4141
|
if (it instanceof Param) {
|
|
4130
|
-
tmp = '{' + it.
|
|
4142
|
+
tmp = '{' + it.rq_1.m1() + '}';
|
|
4131
4143
|
} else {
|
|
4132
4144
|
if (it instanceof Literal) {
|
|
4133
|
-
tmp = it.
|
|
4145
|
+
tmp = it.bu_1;
|
|
4134
4146
|
} else {
|
|
4135
4147
|
noWhenBranchMatchedException();
|
|
4136
4148
|
}
|
|
@@ -4139,14 +4151,14 @@ function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
|
4139
4151
|
}
|
|
4140
4152
|
function OpenAPIV3Emitter() {
|
|
4141
4153
|
OpenAPIV3Emitter_instance = this;
|
|
4142
|
-
this.
|
|
4154
|
+
this.k46_1 = FileExtension_JSON_getInstance();
|
|
4143
4155
|
}
|
|
4144
|
-
protoOf(OpenAPIV3Emitter).
|
|
4145
|
-
return this.
|
|
4156
|
+
protoOf(OpenAPIV3Emitter).kr = function () {
|
|
4157
|
+
return this.k46_1;
|
|
4146
4158
|
};
|
|
4147
4159
|
protoOf(OpenAPIV3Emitter).no = function (ast, logger) {
|
|
4148
4160
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
4149
|
-
var this_0 = ast.
|
|
4161
|
+
var this_0 = ast.hr_1;
|
|
4150
4162
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4151
4163
|
var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
4152
4164
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -4154,30 +4166,30 @@ protoOf(OpenAPIV3Emitter).no = function (ast, logger) {
|
|
|
4154
4166
|
var _iterator__ex2g4s = tmp0.t();
|
|
4155
4167
|
while (_iterator__ex2g4s.u()) {
|
|
4156
4168
|
var element = _iterator__ex2g4s.v();
|
|
4157
|
-
logger.
|
|
4158
|
-
var list = new NonEmptyList(element.
|
|
4169
|
+
logger.ir('Combining Nodes from ' + element.fr_1.co_1 + ' ');
|
|
4170
|
+
var list = new NonEmptyList(element.gr_1);
|
|
4159
4171
|
addAll(destination, list);
|
|
4160
4172
|
}
|
|
4161
4173
|
// Inline function 'kotlin.let' call
|
|
4162
4174
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
4163
|
-
var tmp = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().
|
|
4175
|
+
var tmp = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().k46_1.cr_1;
|
|
4164
4176
|
var tmp0_0 = get_json();
|
|
4165
4177
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
4166
|
-
var value = OpenAPIV3Emitter_getInstance().
|
|
4178
|
+
var value = OpenAPIV3Emitter_getInstance().l46(it, null, logger);
|
|
4167
4179
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
4168
|
-
var this_1 = tmp0_0.
|
|
4180
|
+
var this_1 = tmp0_0.w23();
|
|
4169
4181
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
4170
4182
|
var this_2 = serializer(this_1, createKType(getKClass(OpenAPIV3Model), arrayOf([]), false));
|
|
4171
4183
|
var tmp$ret$5 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
4172
|
-
var tmp$ret$6 = tmp0_0.
|
|
4184
|
+
var tmp$ret$6 = tmp0_0.b2l(tmp$ret$5, value);
|
|
4173
4185
|
// Inline function 'kotlin.let' call
|
|
4174
4186
|
var it_0 = new Emitted(tmp, tmp$ret$6);
|
|
4175
4187
|
return nonEmptyListOf(it_0, []);
|
|
4176
4188
|
};
|
|
4177
|
-
protoOf(OpenAPIV3Emitter).
|
|
4178
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
4189
|
+
protoOf(OpenAPIV3Emitter).l46 = function (statements, options, logger) {
|
|
4190
|
+
var tmp1_elvis_lhs = options == null ? null : options.m46_1;
|
|
4179
4191
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
4180
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
4192
|
+
var tmp3_elvis_lhs = options == null ? null : options.n46_1;
|
|
4181
4193
|
var tmp4_info = new InfoObject(tmp, VOID, VOID, VOID, VOID, VOID, tmp3_elvis_lhs == null ? '0.0.0' : tmp3_elvis_lhs);
|
|
4182
4194
|
var tmp5_paths = emitPaths_0(this, statements, logger);
|
|
4183
4195
|
var tmp6_components = emitComponents(this, statements, logger);
|
|
@@ -4191,15 +4203,15 @@ function OpenAPIV3Emitter_getInstance() {
|
|
|
4191
4203
|
}
|
|
4192
4204
|
function OpenAPIV3Parser$parse$lambda($strict) {
|
|
4193
4205
|
return function (it) {
|
|
4194
|
-
return new NonEmptyList(OpenAPIV3Parser_instance.
|
|
4206
|
+
return new NonEmptyList(OpenAPIV3Parser_instance.o46((new OpenAPIV3(jsonDefault($strict))).s31(it)));
|
|
4195
4207
|
};
|
|
4196
4208
|
}
|
|
4197
4209
|
function OpenAPIV3Parser() {
|
|
4198
4210
|
}
|
|
4199
|
-
protoOf(OpenAPIV3Parser).
|
|
4211
|
+
protoOf(OpenAPIV3Parser).j46 = function (moduleContent, strict) {
|
|
4200
4212
|
return parseOpenApi(moduleContent, OpenAPIV3Parser$parse$lambda(strict));
|
|
4201
4213
|
};
|
|
4202
|
-
protoOf(OpenAPIV3Parser).
|
|
4214
|
+
protoOf(OpenAPIV3Parser).o46 = function (_this__u8e3s4) {
|
|
4203
4215
|
// Inline function 'kotlin.collections.reduce' call
|
|
4204
4216
|
var iterator = listOf_0([parseEndpoints_0(_this__u8e3s4), parseParameters_0(_this__u8e3s4), parseRequestBody_0(_this__u8e3s4), parseResponseBody_0(_this__u8e3s4), parseDefinitions_0(_this__u8e3s4)]).t();
|
|
4205
4217
|
if (!iterator.u())
|
|
@@ -4235,7 +4247,7 @@ function OpenAPIV3Parser_getInstance() {
|
|
|
4235
4247
|
}
|
|
4236
4248
|
function parseEndpoints_0(_this__u8e3s4) {
|
|
4237
4249
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4238
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
4250
|
+
var tmp0_elvis_lhs = _this__u8e3s4.y31();
|
|
4239
4251
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4240
4252
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
4241
4253
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -4245,7 +4257,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4245
4257
|
while (_iterator__ex2g4s.u()) {
|
|
4246
4258
|
var element = _iterator__ex2g4s.v();
|
|
4247
4259
|
// Inline function 'kotlin.collections.component1' call
|
|
4248
|
-
var path = element.l1().
|
|
4260
|
+
var path = element.l1().y2y_1;
|
|
4249
4261
|
// Inline function 'kotlin.collections.component2' call
|
|
4250
4262
|
var pathItem = element.m1();
|
|
4251
4263
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -4260,7 +4272,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4260
4272
|
var method = item.l1();
|
|
4261
4273
|
// Inline function 'kotlin.collections.component2' call
|
|
4262
4274
|
var operation = item.m1();
|
|
4263
|
-
var parameters = plus_0(resolveParameters_0(_this__u8e3s4, pathItem.
|
|
4275
|
+
var parameters = plus_0(resolveParameters_0(_this__u8e3s4, pathItem.y2z()), resolveParameters_0(_this__u8e3s4, operation.y2z()));
|
|
4264
4276
|
var tmp0_elvis_lhs_0 = toName(operation);
|
|
4265
4277
|
var segments = toSegments_0(_this__u8e3s4, path, parameters, tmp0_elvis_lhs_0 == null ? toName_0(path) + method.b3_1 : tmp0_elvis_lhs_0);
|
|
4266
4278
|
var tmp1_elvis_lhs = toName(operation);
|
|
@@ -4305,7 +4317,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4305
4317
|
destination_4.x(tmp$ret$16);
|
|
4306
4318
|
}
|
|
4307
4319
|
var headers = destination_4;
|
|
4308
|
-
var tmp2_safe_receiver = operation.
|
|
4320
|
+
var tmp2_safe_receiver = operation.z2z();
|
|
4309
4321
|
var tmp;
|
|
4310
4322
|
if (tmp2_safe_receiver == null) {
|
|
4311
4323
|
tmp = null;
|
|
@@ -4320,7 +4332,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4320
4332
|
} else {
|
|
4321
4333
|
// Inline function 'kotlin.let' call
|
|
4322
4334
|
var isNullable = false;
|
|
4323
|
-
var tmp0_safe_receiver = tmp3_safe_receiver.
|
|
4335
|
+
var tmp0_safe_receiver = tmp3_safe_receiver.vx();
|
|
4324
4336
|
var tmp_1;
|
|
4325
4337
|
if (tmp0_safe_receiver == null) {
|
|
4326
4338
|
tmp_1 = null;
|
|
@@ -4333,10 +4345,10 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4333
4345
|
while (_iterator__ex2g4s_5.u()) {
|
|
4334
4346
|
var item_2 = _iterator__ex2g4s_5.v();
|
|
4335
4347
|
// Inline function 'kotlin.collections.component1' call
|
|
4336
|
-
var mediaType = item_2.l1().
|
|
4348
|
+
var mediaType = item_2.l1().v2z_1;
|
|
4337
4349
|
// Inline function 'kotlin.collections.component2' call
|
|
4338
4350
|
var mediaObject = item_2.m1();
|
|
4339
|
-
var schema = mediaObject.
|
|
4351
|
+
var schema = mediaObject.r2z();
|
|
4340
4352
|
var tmp_2;
|
|
4341
4353
|
if (!(schema == null) ? isInterface(schema, Reference) : false) {
|
|
4342
4354
|
tmp_2 = toReference_1(_this__u8e3s4, schema, isNullable);
|
|
@@ -4370,7 +4382,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4370
4382
|
var tmp4_elvis_lhs = tmp_0;
|
|
4371
4383
|
var requests = tmp4_elvis_lhs == null ? listOf(new Request(null)) : tmp4_elvis_lhs;
|
|
4372
4384
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4373
|
-
var tmp0_elvis_lhs_1 = operation.
|
|
4385
|
+
var tmp0_elvis_lhs_1 = operation.tw();
|
|
4374
4386
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4375
4387
|
var tmp0_0 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
4376
4388
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -4380,7 +4392,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4380
4392
|
while (_iterator__ex2g4s_6.u()) {
|
|
4381
4393
|
var element_2 = _iterator__ex2g4s_6.v();
|
|
4382
4394
|
// Inline function 'kotlin.collections.component1' call
|
|
4383
|
-
var status = element_2.l1().
|
|
4395
|
+
var status = element_2.l1().c2z_1;
|
|
4384
4396
|
// Inline function 'kotlin.collections.component2' call
|
|
4385
4397
|
var res = element_2.m1();
|
|
4386
4398
|
// Inline function 'kotlin.let' call
|
|
@@ -4389,9 +4401,9 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4389
4401
|
var tmp_4;
|
|
4390
4402
|
// Inline function 'kotlin.collections.isNullOrEmpty' call
|
|
4391
4403
|
if (content == null || content.r()) {
|
|
4392
|
-
var tmp1_annotations = plus_0(toDescriptionAnnotationList(response.
|
|
4404
|
+
var tmp1_annotations = plus_0(toDescriptionAnnotationList(response.i2z()), toLinkAnnotationList(_this__u8e3s4, response.q2z()));
|
|
4393
4405
|
var tmp2_status = _StatusCode___get_value__impl__we50mu(status);
|
|
4394
|
-
var tmp0_safe_receiver_0 = response.
|
|
4406
|
+
var tmp0_safe_receiver_0 = response.rw();
|
|
4395
4407
|
var tmp_5;
|
|
4396
4408
|
if (tmp0_safe_receiver_0 == null) {
|
|
4397
4409
|
tmp_5 = null;
|
|
@@ -4421,10 +4433,10 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4421
4433
|
while (_iterator__ex2g4s_8.u()) {
|
|
4422
4434
|
var item_4 = _iterator__ex2g4s_8.v();
|
|
4423
4435
|
// Inline function 'kotlin.collections.component1' call
|
|
4424
|
-
var contentType = item_4.l1().
|
|
4436
|
+
var contentType = item_4.l1().v2z_1;
|
|
4425
4437
|
// Inline function 'kotlin.collections.component2' call
|
|
4426
4438
|
var media = item_4.m1();
|
|
4427
|
-
var tmp0_safe_receiver_1 = media.
|
|
4439
|
+
var tmp0_safe_receiver_1 = media.r2z();
|
|
4428
4440
|
var tmp_6;
|
|
4429
4441
|
if (tmp0_safe_receiver_1 == null) {
|
|
4430
4442
|
tmp_6 = null;
|
|
@@ -4435,9 +4447,9 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4435
4447
|
var tmp1_safe_receiver = tmp_6;
|
|
4436
4448
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : get_isNullable(tmp1_safe_receiver);
|
|
4437
4449
|
var isNullable_0 = tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs;
|
|
4438
|
-
var tmp4_annotations = plus_0(toDescriptionAnnotationList(response.
|
|
4450
|
+
var tmp4_annotations = plus_0(toDescriptionAnnotationList(response.i2z()), toLinkAnnotationList(_this__u8e3s4, response.q2z()));
|
|
4439
4451
|
var tmp5_status = _StatusCode___get_value__impl__we50mu(status);
|
|
4440
|
-
var tmp3_safe_receiver_0 = response.
|
|
4452
|
+
var tmp3_safe_receiver_0 = response.rw();
|
|
4441
4453
|
var tmp_7;
|
|
4442
4454
|
if (tmp3_safe_receiver_0 == null) {
|
|
4443
4455
|
tmp_7 = null;
|
|
@@ -4458,7 +4470,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4458
4470
|
var tmp0_elvis_lhs_3 = tmp_7;
|
|
4459
4471
|
var tmp6_headers = tmp0_elvis_lhs_3 == null ? emptyList() : tmp0_elvis_lhs_3;
|
|
4460
4472
|
var tmp_8 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
4461
|
-
var schema_0 = media.
|
|
4473
|
+
var schema_0 = media.r2z();
|
|
4462
4474
|
var tmp_9;
|
|
4463
4475
|
if (!(schema_0 == null) ? isInterface(schema_0, Reference) : false) {
|
|
4464
4476
|
tmp_9 = toReference_1(_this__u8e3s4, schema_0, isNullable_0);
|
|
@@ -4483,7 +4495,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4483
4495
|
addAll(destination_6, list);
|
|
4484
4496
|
}
|
|
4485
4497
|
var responses = destination_6;
|
|
4486
|
-
var tmp$ret$59 = new Endpoint(null, toDescriptionAnnotationList(operation.
|
|
4498
|
+
var tmp$ret$59 = new Endpoint(null, toDescriptionAnnotationList(operation.i2z()), new DefinitionIdentifier(name), method, segments, query, headers, requests, responses);
|
|
4487
4499
|
destination_0.x(tmp$ret$59);
|
|
4488
4500
|
}
|
|
4489
4501
|
var list_0 = destination_0;
|
|
@@ -4501,9 +4513,9 @@ function parseResponseBody_0(_this__u8e3s4) {
|
|
|
4501
4513
|
return flatMapResponses(_this__u8e3s4, parseResponseBody$lambda_0(_this__u8e3s4));
|
|
4502
4514
|
}
|
|
4503
4515
|
function parseDefinitions_0(_this__u8e3s4) {
|
|
4504
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
4516
|
+
var tmp0_safe_receiver = _this__u8e3s4.e32();
|
|
4505
4517
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4506
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4518
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w3c();
|
|
4507
4519
|
// Inline function 'kotlin.collections.filter' call
|
|
4508
4520
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
4509
4521
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -4515,7 +4527,7 @@ function parseDefinitions_0(_this__u8e3s4) {
|
|
|
4515
4527
|
var s = element.m1();
|
|
4516
4528
|
var tmp;
|
|
4517
4529
|
if (isInterface(s, Schema)) {
|
|
4518
|
-
var tmp0_subject = s.
|
|
4530
|
+
var tmp0_subject = s.n2z();
|
|
4519
4531
|
var tmp_0;
|
|
4520
4532
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
4521
4533
|
tmp_0 = true;
|
|
@@ -4628,7 +4640,7 @@ function toSegments_0(_this__u8e3s4, path, parameters, name) {
|
|
|
4628
4640
|
}
|
|
4629
4641
|
|
|
4630
4642
|
var tmp1_safe_receiver = tmp$ret$5;
|
|
4631
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4643
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r2z();
|
|
4632
4644
|
var tmp_0;
|
|
4633
4645
|
if (tmp2_safe_receiver == null) {
|
|
4634
4646
|
tmp_0 = null;
|
|
@@ -4681,13 +4693,13 @@ function toSegments_0(_this__u8e3s4, path, parameters, name) {
|
|
|
4681
4693
|
function get_location_0(_this__u8e3s4) {
|
|
4682
4694
|
var tmp;
|
|
4683
4695
|
if (_this__u8e3s4 instanceof OpenAPIV30Parameter) {
|
|
4684
|
-
tmp = _this__u8e3s4.
|
|
4696
|
+
tmp = _this__u8e3s4.e3f_1;
|
|
4685
4697
|
} else {
|
|
4686
4698
|
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
4687
|
-
tmp = valueOf(_this__u8e3s4.
|
|
4699
|
+
tmp = valueOf(_this__u8e3s4.s3l_1.b3_1);
|
|
4688
4700
|
} else {
|
|
4689
4701
|
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
4690
|
-
tmp = valueOf(_this__u8e3s4.
|
|
4702
|
+
tmp = valueOf(_this__u8e3s4.x3v_1.b3_1);
|
|
4691
4703
|
} else {
|
|
4692
4704
|
var message = 'Unsupported parameter type: ' + toString(_this__u8e3s4);
|
|
4693
4705
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -4699,7 +4711,7 @@ function get_location_0(_this__u8e3s4) {
|
|
|
4699
4711
|
function toField_2(_this__u8e3s4, parameter, name) {
|
|
4700
4712
|
var tmp0_elvis_lhs = get_required(parameter);
|
|
4701
4713
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
4702
|
-
var s = parameter.
|
|
4714
|
+
var s = parameter.r2z();
|
|
4703
4715
|
var tmp;
|
|
4704
4716
|
if (!(s == null) ? isInterface(s, Reference) : false) {
|
|
4705
4717
|
tmp = toReference_1(_this__u8e3s4, s, isNullable);
|
|
@@ -4740,8 +4752,8 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4740
4752
|
var schema = destruct.xe();
|
|
4741
4753
|
var nullable = get_isNullable(schema);
|
|
4742
4754
|
var tmp;
|
|
4743
|
-
if (exists_0(schema.
|
|
4744
|
-
var additionalProperties = ensureNotNull(schema.
|
|
4755
|
+
if (exists_0(schema.n2z())) {
|
|
4756
|
+
var additionalProperties = ensureNotNull(schema.n2z());
|
|
4745
4757
|
var tmp_0;
|
|
4746
4758
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
4747
4759
|
tmp_0 = new Dict(new Any(isNullable), false);
|
|
@@ -4757,12 +4769,12 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4757
4769
|
}
|
|
4758
4770
|
}
|
|
4759
4771
|
tmp = tmp_0;
|
|
4760
|
-
} else if (!(schema.
|
|
4772
|
+
} else if (!(schema.j2z() == null)) {
|
|
4761
4773
|
tmp = new Custom(sanitize(className([getReference(referencingObject)])), isNullable);
|
|
4762
4774
|
} else if (isPrimitive_0(get_primitiveType_0(schema))) {
|
|
4763
4775
|
tmp = new Primitive(toPrimitive_1(schema), isNullable);
|
|
4764
4776
|
} else if (equals(get_primitiveType_0(schema), OpenAPIV30Type_ARRAY_getInstance())) {
|
|
4765
|
-
var items = schema.
|
|
4777
|
+
var items = schema.k2z();
|
|
4766
4778
|
var tmp_1;
|
|
4767
4779
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
4768
4780
|
tmp_1 = toIterable(toReference_1(_this__u8e3s4, items, nullable), isNullable);
|
|
@@ -4771,7 +4783,7 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4771
4783
|
tmp_1 = toIterable(new Custom(sanitize(className([getReference(referencingObject), 'Array'])), nullable), isNullable);
|
|
4772
4784
|
} else {
|
|
4773
4785
|
if (items == null) {
|
|
4774
|
-
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.
|
|
4786
|
+
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.h2z());
|
|
4775
4787
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4776
4788
|
} else {
|
|
4777
4789
|
noWhenBranchMatchedException();
|
|
@@ -4789,7 +4801,7 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4789
4801
|
var nullable = get_isNullable(schema);
|
|
4790
4802
|
var tmp;
|
|
4791
4803
|
if (equals(get_primitiveType_0(schema), OpenAPIV30Type_ARRAY_getInstance())) {
|
|
4792
|
-
var items = schema.
|
|
4804
|
+
var items = schema.k2z();
|
|
4793
4805
|
var tmp_0;
|
|
4794
4806
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
4795
4807
|
tmp_0 = toIterable(toReference_1(_this__u8e3s4, items, nullable), isNullable);
|
|
@@ -4806,8 +4818,8 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4806
4818
|
}
|
|
4807
4819
|
}
|
|
4808
4820
|
tmp = tmp_0;
|
|
4809
|
-
} else if (!(schema.
|
|
4810
|
-
var additionalProperties = ensureNotNull(schema.
|
|
4821
|
+
} else if (!(schema.n2z() == null)) {
|
|
4822
|
+
var additionalProperties = ensureNotNull(schema.n2z());
|
|
4811
4823
|
var tmp_1;
|
|
4812
4824
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
4813
4825
|
tmp_1 = new Dict(new Any(nullable), isNullable);
|
|
@@ -4818,7 +4830,7 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4818
4830
|
if (isInterface(additionalProperties, Schema)) {
|
|
4819
4831
|
// Inline function 'kotlin.takeIf' call
|
|
4820
4832
|
var tmp_2;
|
|
4821
|
-
if (isPrimitive_0(get_primitiveType_0(additionalProperties)) || !(additionalProperties.
|
|
4833
|
+
if (isPrimitive_0(get_primitiveType_0(additionalProperties)) || !(additionalProperties.m2z() == null)) {
|
|
4822
4834
|
tmp_2 = additionalProperties;
|
|
4823
4835
|
} else {
|
|
4824
4836
|
tmp_2 = null;
|
|
@@ -4839,10 +4851,10 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4839
4851
|
}
|
|
4840
4852
|
}
|
|
4841
4853
|
tmp = tmp_1;
|
|
4842
|
-
} else if (!(schema.
|
|
4854
|
+
} else if (!(schema.j2z() == null)) {
|
|
4843
4855
|
// Inline function 'kotlin.let' call
|
|
4844
4856
|
var it = new Custom(sanitize(name), isNullable);
|
|
4845
|
-
tmp = !(schema.
|
|
4857
|
+
tmp = !(schema.n2z() == null) ? new Dict(it, false) : it;
|
|
4846
4858
|
} else {
|
|
4847
4859
|
var tmp2_subject = get_primitiveType_0(schema);
|
|
4848
4860
|
var tmp_4;
|
|
@@ -4854,26 +4866,26 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4854
4866
|
// Inline function 'kotlin.let' call
|
|
4855
4867
|
|
|
4856
4868
|
var it_0 = new Primitive(toPrimitive_1(schema), isNullable);
|
|
4857
|
-
tmp_4 = !(schema.
|
|
4869
|
+
tmp_4 = !(schema.n2z() == null) ? new Dict(it_0, false) : it_0;
|
|
4858
4870
|
break;
|
|
4859
4871
|
case -1:
|
|
4860
4872
|
case 5:
|
|
4861
4873
|
var tmp_5;
|
|
4862
|
-
var tmp_6 = schema.
|
|
4874
|
+
var tmp_6 = schema.n2z();
|
|
4863
4875
|
if (!(tmp_6 == null) ? isInterface(tmp_6, BooleanValue) : false) {
|
|
4864
4876
|
// Inline function 'kotlin.let' call
|
|
4865
4877
|
var it_1 = new Any(false);
|
|
4866
|
-
tmp_5 = !(schema.
|
|
4878
|
+
tmp_5 = !(schema.n2z() == null) ? new Dict(it_1, false) : it_1;
|
|
4867
4879
|
} else {
|
|
4868
4880
|
// Inline function 'kotlin.let' call
|
|
4869
4881
|
var it_2 = new Custom(sanitize(name), isNullable);
|
|
4870
|
-
tmp_5 = !(schema.
|
|
4882
|
+
tmp_5 = !(schema.n2z() == null) ? new Dict(it_2, false) : it_2;
|
|
4871
4883
|
}
|
|
4872
4884
|
|
|
4873
4885
|
tmp_4 = tmp_5;
|
|
4874
4886
|
break;
|
|
4875
4887
|
case 4:
|
|
4876
|
-
var it_3 = schema.
|
|
4888
|
+
var it_3 = schema.k2z();
|
|
4877
4889
|
var tmp_7;
|
|
4878
4890
|
if (!(it_3 == null) ? isInterface(it_3, Reference) : false) {
|
|
4879
4891
|
tmp_7 = toIterable(toReference_1(_this__u8e3s4, it_3, nullable), isNullable);
|
|
@@ -4919,13 +4931,13 @@ function resolve_2(_this__u8e3s4, responseOrReference) {
|
|
|
4919
4931
|
function get_content(_this__u8e3s4) {
|
|
4920
4932
|
var tmp;
|
|
4921
4933
|
if (_this__u8e3s4 instanceof OpenAPIV30Response) {
|
|
4922
|
-
tmp = _this__u8e3s4.
|
|
4934
|
+
tmp = _this__u8e3s4.r3g_1;
|
|
4923
4935
|
} else {
|
|
4924
4936
|
if (_this__u8e3s4 instanceof OpenAPIV31Response) {
|
|
4925
|
-
tmp = _this__u8e3s4.
|
|
4937
|
+
tmp = _this__u8e3s4.z3l_1;
|
|
4926
4938
|
} else {
|
|
4927
4939
|
if (_this__u8e3s4 instanceof OpenAPIV32Response) {
|
|
4928
|
-
tmp = _this__u8e3s4.
|
|
4940
|
+
tmp = _this__u8e3s4.e3w_1;
|
|
4929
4941
|
} else {
|
|
4930
4942
|
tmp = null;
|
|
4931
4943
|
}
|
|
@@ -4975,7 +4987,7 @@ function toField_3(_this__u8e3s4, header, identifier, name) {
|
|
|
4975
4987
|
// Inline function 'kotlin.let' call
|
|
4976
4988
|
var it = tmp;
|
|
4977
4989
|
var tmp0_identifier = new FieldIdentifier(identifier);
|
|
4978
|
-
var tmp1_annotations = toDescriptionAnnotationList(header.
|
|
4990
|
+
var tmp1_annotations = toDescriptionAnnotationList(header.i2z());
|
|
4979
4991
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
4980
4992
|
}
|
|
4981
4993
|
function resolve_3(_this__u8e3s4, headerOrReference) {
|
|
@@ -5007,20 +5019,20 @@ function resolve_4(_this__u8e3s4, schemaOrReference) {
|
|
|
5007
5019
|
function get_isNullable(_this__u8e3s4) {
|
|
5008
5020
|
var tmp;
|
|
5009
5021
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5010
|
-
var tmp1_elvis_lhs = _this__u8e3s4.
|
|
5022
|
+
var tmp1_elvis_lhs = _this__u8e3s4.b3d_1;
|
|
5011
5023
|
tmp = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
5012
5024
|
} else {
|
|
5013
5025
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5014
|
-
var tmp_0 = _this__u8e3s4.
|
|
5026
|
+
var tmp_0 = _this__u8e3s4.u3m_1;
|
|
5015
5027
|
var tmp2_safe_receiver = tmp_0 instanceof OpenAPIV31TypeArray ? tmp_0 : null;
|
|
5016
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
5028
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.k3o_1;
|
|
5017
5029
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.v1(OpenAPIV31Type_NULL_getInstance());
|
|
5018
5030
|
tmp = tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs;
|
|
5019
5031
|
} else {
|
|
5020
5032
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5021
|
-
var tmp_1 = _this__u8e3s4.
|
|
5033
|
+
var tmp_1 = _this__u8e3s4.z3w_1;
|
|
5022
5034
|
var tmp5_safe_receiver = tmp_1 instanceof OpenAPIV32TypeArray ? tmp_1 : null;
|
|
5023
|
-
var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.
|
|
5035
|
+
var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.p3y_1;
|
|
5024
5036
|
var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.v1(OpenAPIV32Type_NULL_getInstance());
|
|
5025
5037
|
tmp = tmp7_elvis_lhs == null ? false : tmp7_elvis_lhs;
|
|
5026
5038
|
} else {
|
|
@@ -5046,13 +5058,13 @@ function flattenSchemaOrRef_0(_this__u8e3s4, schemaOrReference, name) {
|
|
|
5046
5058
|
function get_primitiveType_0(_this__u8e3s4) {
|
|
5047
5059
|
var tmp;
|
|
5048
5060
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5049
|
-
var t = _this__u8e3s4.
|
|
5061
|
+
var t = _this__u8e3s4.i3d_1;
|
|
5050
5062
|
var tmp_0;
|
|
5051
5063
|
if (t instanceof OpenAPIV30SingleType) {
|
|
5052
|
-
tmp_0 = t.
|
|
5064
|
+
tmp_0 = t.z3f_1;
|
|
5053
5065
|
} else {
|
|
5054
5066
|
if (t instanceof OpenAPIV30TypeArray) {
|
|
5055
|
-
var tmp0 = t.
|
|
5067
|
+
var tmp0 = t.e3i_1;
|
|
5056
5068
|
var tmp$ret$1;
|
|
5057
5069
|
$l$block: {
|
|
5058
5070
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -5078,13 +5090,13 @@ function get_primitiveType_0(_this__u8e3s4) {
|
|
|
5078
5090
|
tmp = tmp_0;
|
|
5079
5091
|
} else {
|
|
5080
5092
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5081
|
-
var t_0 = _this__u8e3s4.
|
|
5093
|
+
var t_0 = _this__u8e3s4.u3m_1;
|
|
5082
5094
|
var tmp_1;
|
|
5083
5095
|
if (t_0 instanceof OpenAPIV31SingleType) {
|
|
5084
|
-
tmp_1 = toV30(t_0.
|
|
5096
|
+
tmp_1 = toV30(t_0.l3o_1);
|
|
5085
5097
|
} else {
|
|
5086
5098
|
if (t_0 instanceof OpenAPIV31TypeArray) {
|
|
5087
|
-
var tmp0_0 = t_0.
|
|
5099
|
+
var tmp0_0 = t_0.k3o_1;
|
|
5088
5100
|
var tmp$ret$3;
|
|
5089
5101
|
$l$block_0: {
|
|
5090
5102
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -5111,13 +5123,13 @@ function get_primitiveType_0(_this__u8e3s4) {
|
|
|
5111
5123
|
tmp = tmp_1;
|
|
5112
5124
|
} else {
|
|
5113
5125
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5114
|
-
var t_1 = _this__u8e3s4.
|
|
5126
|
+
var t_1 = _this__u8e3s4.z3w_1;
|
|
5115
5127
|
var tmp_2;
|
|
5116
5128
|
if (t_1 instanceof OpenAPIV32SingleType) {
|
|
5117
|
-
tmp_2 = toV30_0(t_1.
|
|
5129
|
+
tmp_2 = toV30_0(t_1.q3y_1);
|
|
5118
5130
|
} else {
|
|
5119
5131
|
if (t_1 instanceof OpenAPIV32TypeArray) {
|
|
5120
|
-
var tmp0_1 = t_1.
|
|
5132
|
+
var tmp0_1 = t_1.p3y_1;
|
|
5121
5133
|
var tmp$ret$5;
|
|
5122
5134
|
$l$block_1: {
|
|
5123
5135
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -5153,13 +5165,13 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5153
5165
|
var oneOf = get_oneOf(schemaObject);
|
|
5154
5166
|
var anyOf = get_anyOf(schemaObject);
|
|
5155
5167
|
var tmp;
|
|
5156
|
-
if (exists_0(schemaObject.
|
|
5157
|
-
var tmp0_subject = schemaObject.
|
|
5168
|
+
if (exists_0(schemaObject.n2z())) {
|
|
5169
|
+
var tmp0_subject = schemaObject.n2z();
|
|
5158
5170
|
var tmp_0;
|
|
5159
5171
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
5160
5172
|
tmp_0 = emptyList();
|
|
5161
5173
|
} else {
|
|
5162
|
-
var tmp1_safe_receiver = schemaObject.
|
|
5174
|
+
var tmp1_safe_receiver = schemaObject.n2z();
|
|
5163
5175
|
var tmp_1;
|
|
5164
5176
|
if (tmp1_safe_receiver == null) {
|
|
5165
5177
|
tmp_1 = null;
|
|
@@ -5174,7 +5186,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5174
5186
|
} else {
|
|
5175
5187
|
// Inline function 'kotlin.takeIf' call
|
|
5176
5188
|
var tmp_3;
|
|
5177
|
-
if (!(tmp2_safe_receiver.
|
|
5189
|
+
if (!(tmp2_safe_receiver.m2z() == null)) {
|
|
5178
5190
|
tmp_3 = tmp2_safe_receiver;
|
|
5179
5191
|
} else {
|
|
5180
5192
|
tmp_3 = null;
|
|
@@ -5194,7 +5206,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5194
5206
|
}
|
|
5195
5207
|
tmp = tmp_0;
|
|
5196
5208
|
} else if (!(oneOf == null) || !(anyOf == null)) {
|
|
5197
|
-
var tmp_5 = toDescriptionAnnotationList(schemaObject.
|
|
5209
|
+
var tmp_5 = toDescriptionAnnotationList(schemaObject.i2z());
|
|
5198
5210
|
var tmp_6 = new DefinitionIdentifier(sanitize(name));
|
|
5199
5211
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5200
5212
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
@@ -5248,11 +5260,11 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5248
5260
|
addAll(destination_0, list);
|
|
5249
5261
|
}
|
|
5250
5262
|
tmp = plus_0(tmp_8, destination_0);
|
|
5251
|
-
} else if (!(schemaObject.
|
|
5252
|
-
var tmp_10 = toDescriptionAnnotationList(schemaObject.
|
|
5263
|
+
} else if (!(schemaObject.l2z() == null)) {
|
|
5264
|
+
var tmp_10 = toDescriptionAnnotationList(schemaObject.i2z());
|
|
5253
5265
|
var tmp_11 = new DefinitionIdentifier(sanitize(name));
|
|
5254
5266
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5255
|
-
var tmp0_elvis_lhs = schemaObject.
|
|
5267
|
+
var tmp0_elvis_lhs = schemaObject.l2z();
|
|
5256
5268
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5257
5269
|
var tmp0_0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
5258
5270
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -5269,14 +5281,14 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5269
5281
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
5270
5282
|
while (_iterator__ex2g4s_2.u()) {
|
|
5271
5283
|
var e = _iterator__ex2g4s_2.v();
|
|
5272
|
-
var key = e.
|
|
5284
|
+
var key = e.sp_1;
|
|
5273
5285
|
if (set.x(key)) {
|
|
5274
5286
|
list_1.x(e);
|
|
5275
5287
|
}
|
|
5276
5288
|
}
|
|
5277
5289
|
var tmp_12 = listOf(new Type(null, tmp_10, tmp_11, new Shape(list_1), emptyList()));
|
|
5278
5290
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5279
|
-
var tmp0_1 = ensureNotNull(schemaObject.
|
|
5291
|
+
var tmp0_1 = ensureNotNull(schemaObject.l2z());
|
|
5280
5292
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5281
5293
|
var destination_2 = ArrayList_init_$Create$();
|
|
5282
5294
|
var _iterator__ex2g4s_3 = tmp0_1.t();
|
|
@@ -5285,12 +5297,12 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5285
5297
|
var tmp_13;
|
|
5286
5298
|
if (isInterface(element_1, Reference)) {
|
|
5287
5299
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5288
|
-
var tmp0_elvis_lhs_0 = resolveSchemaRef_0(_this__u8e3s4, element_1).gf_1.
|
|
5300
|
+
var tmp0_elvis_lhs_0 = resolveSchemaRef_0(_this__u8e3s4, element_1).gf_1.m2z();
|
|
5289
5301
|
tmp_13 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
5290
5302
|
} else {
|
|
5291
5303
|
if (isInterface(element_1, Schema)) {
|
|
5292
5304
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5293
|
-
var tmp0_elvis_lhs_1 = element_1.
|
|
5305
|
+
var tmp0_elvis_lhs_1 = element_1.m2z();
|
|
5294
5306
|
tmp_13 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
5295
5307
|
} else {
|
|
5296
5308
|
noWhenBranchMatchedException();
|
|
@@ -5315,20 +5327,20 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5315
5327
|
addAll(destination_2, list_3);
|
|
5316
5328
|
}
|
|
5317
5329
|
tmp = plus_0(tmp_12, destination_2);
|
|
5318
|
-
} else if (!(schemaObject.
|
|
5330
|
+
} else if (!(schemaObject.j2z() == null)) {
|
|
5319
5331
|
// Inline function 'kotlin.collections.map' call
|
|
5320
|
-
var this_1 = ensureNotNull(schemaObject.
|
|
5332
|
+
var this_1 = ensureNotNull(schemaObject.j2z());
|
|
5321
5333
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5322
5334
|
var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
5323
5335
|
var _iterator__ex2g4s_5 = this_1.t();
|
|
5324
5336
|
while (_iterator__ex2g4s_5.u()) {
|
|
5325
5337
|
var item_0 = _iterator__ex2g4s_5.v();
|
|
5326
|
-
var tmp$ret$31 = item_0.
|
|
5338
|
+
var tmp$ret$31 = item_0.vx();
|
|
5327
5339
|
destination_4.x(tmp$ret$31);
|
|
5328
5340
|
}
|
|
5329
5341
|
// Inline function 'kotlin.let' call
|
|
5330
5342
|
var it = toSet(destination_4);
|
|
5331
|
-
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.
|
|
5343
|
+
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.i2z()), new DefinitionIdentifier(name), it));
|
|
5332
5344
|
} else {
|
|
5333
5345
|
var tmp5_subject = get_primitiveType_0(schemaObject);
|
|
5334
5346
|
var tmp_14;
|
|
@@ -5337,7 +5349,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5337
5349
|
case 5:
|
|
5338
5350
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5339
5351
|
|
|
5340
|
-
var tmp0_elvis_lhs_2 = schemaObject.
|
|
5352
|
+
var tmp0_elvis_lhs_2 = schemaObject.m2z();
|
|
5341
5353
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5342
5354
|
|
|
5343
5355
|
var tmp0_3 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
@@ -5358,11 +5370,11 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5358
5370
|
}
|
|
5359
5371
|
|
|
5360
5372
|
var fields = destination_5;
|
|
5361
|
-
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.
|
|
5373
|
+
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.i2z()), new DefinitionIdentifier(name), new Shape(toField_4(_this__u8e3s4, schemaObject, name)), emptyList()));
|
|
5362
5374
|
tmp_14 = plus_0(schema, fields);
|
|
5363
5375
|
break;
|
|
5364
5376
|
case 4:
|
|
5365
|
-
var tmp6_safe_receiver = schemaObject.
|
|
5377
|
+
var tmp6_safe_receiver = schemaObject.k2z();
|
|
5366
5378
|
var tmp_15;
|
|
5367
5379
|
if (tmp6_safe_receiver == null) {
|
|
5368
5380
|
tmp_15 = null;
|
|
@@ -5405,7 +5417,7 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5405
5417
|
var element = _iterator__ex2g4s.v();
|
|
5406
5418
|
// Inline function 'kotlin.collections.component2' call
|
|
5407
5419
|
var mediaObject = element.m1();
|
|
5408
|
-
var schema = mediaObject.
|
|
5420
|
+
var schema = mediaObject.r2z();
|
|
5409
5421
|
var tmp;
|
|
5410
5422
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
5411
5423
|
var tmp0_subject = get_primitiveType_0(schema);
|
|
@@ -5416,7 +5428,7 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5416
5428
|
tmp_0 = flatten_0(_this__u8e3s4, schema, className([name, _StatusCode___get_value__impl__we50mu(statusCode), 'ResponseBody']));
|
|
5417
5429
|
break;
|
|
5418
5430
|
case 4:
|
|
5419
|
-
var tmp1_safe_receiver = schema.
|
|
5431
|
+
var tmp1_safe_receiver = schema.k2z();
|
|
5420
5432
|
var tmp_1;
|
|
5421
5433
|
if (tmp1_safe_receiver == null) {
|
|
5422
5434
|
tmp_1 = null;
|
|
@@ -5444,8 +5456,8 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5444
5456
|
return destination;
|
|
5445
5457
|
}
|
|
5446
5458
|
function resolveResponse_0(_this__u8e3s4, reference) {
|
|
5447
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5448
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5459
|
+
var tmp0_safe_receiver = _this__u8e3s4.e32();
|
|
5460
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tw();
|
|
5449
5461
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference(reference));
|
|
5450
5462
|
var tmp;
|
|
5451
5463
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5467,7 +5479,7 @@ function resolveResponse_0(_this__u8e3s4, reference) {
|
|
|
5467
5479
|
var tmp3_elvis_lhs = tmp;
|
|
5468
5480
|
var tmp_1;
|
|
5469
5481
|
if (tmp3_elvis_lhs == null) {
|
|
5470
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5482
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.h2z());
|
|
5471
5483
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5472
5484
|
} else {
|
|
5473
5485
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5475,8 +5487,8 @@ function resolveResponse_0(_this__u8e3s4, reference) {
|
|
|
5475
5487
|
return tmp_1;
|
|
5476
5488
|
}
|
|
5477
5489
|
function resolveParameter_0(_this__u8e3s4, reference) {
|
|
5478
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5479
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5490
|
+
var tmp0_safe_receiver = _this__u8e3s4.e32();
|
|
5491
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y2z();
|
|
5480
5492
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference(reference));
|
|
5481
5493
|
var tmp;
|
|
5482
5494
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5500,13 +5512,13 @@ function resolveParameter_0(_this__u8e3s4, reference) {
|
|
|
5500
5512
|
function get_required(_this__u8e3s4) {
|
|
5501
5513
|
var tmp;
|
|
5502
5514
|
if (_this__u8e3s4 instanceof OpenAPIV30Parameter) {
|
|
5503
|
-
tmp = _this__u8e3s4.
|
|
5515
|
+
tmp = _this__u8e3s4.v3e_1;
|
|
5504
5516
|
} else {
|
|
5505
5517
|
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
5506
|
-
tmp = _this__u8e3s4.
|
|
5518
|
+
tmp = _this__u8e3s4.j3l_1;
|
|
5507
5519
|
} else {
|
|
5508
5520
|
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
5509
|
-
tmp = _this__u8e3s4.
|
|
5521
|
+
tmp = _this__u8e3s4.o3v_1;
|
|
5510
5522
|
} else {
|
|
5511
5523
|
tmp = null;
|
|
5512
5524
|
}
|
|
@@ -5517,13 +5529,13 @@ function get_required(_this__u8e3s4) {
|
|
|
5517
5529
|
function get_description(_this__u8e3s4) {
|
|
5518
5530
|
var tmp;
|
|
5519
5531
|
if (_this__u8e3s4 instanceof OpenAPIV30Parameter) {
|
|
5520
|
-
tmp = _this__u8e3s4.
|
|
5532
|
+
tmp = _this__u8e3s4.u3e_1;
|
|
5521
5533
|
} else {
|
|
5522
5534
|
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
5523
|
-
tmp = _this__u8e3s4.
|
|
5535
|
+
tmp = _this__u8e3s4.i3l_1;
|
|
5524
5536
|
} else {
|
|
5525
5537
|
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
5526
|
-
tmp = _this__u8e3s4.
|
|
5538
|
+
tmp = _this__u8e3s4.n3v_1;
|
|
5527
5539
|
} else {
|
|
5528
5540
|
tmp = null;
|
|
5529
5541
|
}
|
|
@@ -5532,8 +5544,8 @@ function get_description(_this__u8e3s4) {
|
|
|
5532
5544
|
return tmp;
|
|
5533
5545
|
}
|
|
5534
5546
|
function resolveRequestBody(_this__u8e3s4, reference) {
|
|
5535
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5536
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5547
|
+
var tmp0_safe_receiver = _this__u8e3s4.e32();
|
|
5548
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x3c();
|
|
5537
5549
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference(reference));
|
|
5538
5550
|
var tmp;
|
|
5539
5551
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5555,7 +5567,7 @@ function resolveRequestBody(_this__u8e3s4, reference) {
|
|
|
5555
5567
|
var tmp3_elvis_lhs = tmp;
|
|
5556
5568
|
var tmp_1;
|
|
5557
5569
|
if (tmp3_elvis_lhs == null) {
|
|
5558
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5570
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.h2z());
|
|
5559
5571
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5560
5572
|
} else {
|
|
5561
5573
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5563,8 +5575,8 @@ function resolveRequestBody(_this__u8e3s4, reference) {
|
|
|
5563
5575
|
return tmp_1;
|
|
5564
5576
|
}
|
|
5565
5577
|
function resolveSchemaRef_0(_this__u8e3s4, reference) {
|
|
5566
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5567
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5578
|
+
var tmp0_safe_receiver = _this__u8e3s4.e32();
|
|
5579
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w3c();
|
|
5568
5580
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference(reference));
|
|
5569
5581
|
var tmp;
|
|
5570
5582
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5586,7 +5598,7 @@ function resolveSchemaRef_0(_this__u8e3s4, reference) {
|
|
|
5586
5598
|
var tmp3_elvis_lhs = tmp;
|
|
5587
5599
|
var tmp_1;
|
|
5588
5600
|
if (tmp3_elvis_lhs == null) {
|
|
5589
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5601
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.h2z());
|
|
5590
5602
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5591
5603
|
} else {
|
|
5592
5604
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5652,13 +5664,13 @@ function toPrimitive_1(_this__u8e3s4) {
|
|
|
5652
5664
|
var tmp;
|
|
5653
5665
|
switch (tmp0_subject == null ? -1 : tmp0_subject.c3_1) {
|
|
5654
5666
|
case 0:
|
|
5655
|
-
tmp = !(_this__u8e3s4.
|
|
5667
|
+
tmp = !(_this__u8e3s4.p2z() == null) ? new String_0(_RegExp___init__impl__p22noo(ensureNotNull(_this__u8e3s4.p2z()))) : _this__u8e3s4.o2z() === 'binary' ? Bytes_instance : new String_0(null);
|
|
5656
5668
|
break;
|
|
5657
5669
|
case 2:
|
|
5658
|
-
tmp = new Integer(_this__u8e3s4.
|
|
5670
|
+
tmp = new Integer(_this__u8e3s4.o2z() === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
5659
5671
|
break;
|
|
5660
5672
|
case 1:
|
|
5661
|
-
tmp = new Number_0(_this__u8e3s4.
|
|
5673
|
+
tmp = new Number_0(_this__u8e3s4.o2z() === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
5662
5674
|
break;
|
|
5663
5675
|
case 3:
|
|
5664
5676
|
tmp = Boolean_instance;
|
|
@@ -5670,10 +5682,10 @@ function toPrimitive_1(_this__u8e3s4) {
|
|
|
5670
5682
|
return tmp;
|
|
5671
5683
|
}
|
|
5672
5684
|
function toLinkInfo_0(_this__u8e3s4, name) {
|
|
5673
|
-
var tmp = _this__u8e3s4.
|
|
5674
|
-
var tmp_0 = _this__u8e3s4.
|
|
5685
|
+
var tmp = _this__u8e3s4.x2z();
|
|
5686
|
+
var tmp_0 = _this__u8e3s4.w2z();
|
|
5675
5687
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5676
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
5688
|
+
var tmp0_elvis_lhs = _this__u8e3s4.y2z();
|
|
5677
5689
|
// Inline function 'kotlin.collections.mapValues' call
|
|
5678
5690
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
5679
5691
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
@@ -5687,11 +5699,11 @@ function toLinkInfo_0(_this__u8e3s4, name) {
|
|
|
5687
5699
|
destination.t2(tmp_1, tmp$ret$2);
|
|
5688
5700
|
}
|
|
5689
5701
|
var tmp_2 = destination;
|
|
5690
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5702
|
+
var tmp0_safe_receiver = _this__u8e3s4.z2z();
|
|
5691
5703
|
var tmp_3 = tmp0_safe_receiver == null ? null : asLinkExpression(tmp0_safe_receiver);
|
|
5692
|
-
var tmp_4 = _this__u8e3s4.
|
|
5693
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
5694
|
-
return new LinkInfo(name, tmp, tmp_0, tmp_2, tmp_3, tmp_4, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5704
|
+
var tmp_4 = _this__u8e3s4.i2z();
|
|
5705
|
+
var tmp1_safe_receiver = _this__u8e3s4.a30();
|
|
5706
|
+
return new LinkInfo(name, tmp, tmp_0, tmp_2, tmp_3, tmp_4, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.e30_1);
|
|
5695
5707
|
}
|
|
5696
5708
|
function resolve_5(_this__u8e3s4, linkOrReference) {
|
|
5697
5709
|
var tmp;
|
|
@@ -5709,13 +5721,13 @@ function resolve_5(_this__u8e3s4, linkOrReference) {
|
|
|
5709
5721
|
function get_required_0(_this__u8e3s4) {
|
|
5710
5722
|
var tmp;
|
|
5711
5723
|
if (_this__u8e3s4 instanceof OpenAPIV30Header) {
|
|
5712
|
-
tmp = _this__u8e3s4.
|
|
5724
|
+
tmp = _this__u8e3s4.t3h_1;
|
|
5713
5725
|
} else {
|
|
5714
5726
|
if (_this__u8e3s4 instanceof OpenAPIV31Header) {
|
|
5715
|
-
tmp = _this__u8e3s4.
|
|
5727
|
+
tmp = _this__u8e3s4.q3o_1;
|
|
5716
5728
|
} else {
|
|
5717
5729
|
if (_this__u8e3s4 instanceof OpenAPIV32Header) {
|
|
5718
|
-
tmp = _this__u8e3s4.
|
|
5730
|
+
tmp = _this__u8e3s4.v3y_1;
|
|
5719
5731
|
} else {
|
|
5720
5732
|
tmp = null;
|
|
5721
5733
|
}
|
|
@@ -5726,13 +5738,13 @@ function get_required_0(_this__u8e3s4) {
|
|
|
5726
5738
|
function get_schema(_this__u8e3s4) {
|
|
5727
5739
|
var tmp;
|
|
5728
5740
|
if (_this__u8e3s4 instanceof OpenAPIV30Header) {
|
|
5729
|
-
tmp = _this__u8e3s4.
|
|
5741
|
+
tmp = _this__u8e3s4.z3h_1;
|
|
5730
5742
|
} else {
|
|
5731
5743
|
if (_this__u8e3s4 instanceof OpenAPIV31Header) {
|
|
5732
|
-
tmp = _this__u8e3s4.
|
|
5744
|
+
tmp = _this__u8e3s4.w3o_1;
|
|
5733
5745
|
} else {
|
|
5734
5746
|
if (_this__u8e3s4 instanceof OpenAPIV32Header) {
|
|
5735
|
-
tmp = _this__u8e3s4.
|
|
5747
|
+
tmp = _this__u8e3s4.b3z_1;
|
|
5736
5748
|
} else {
|
|
5737
5749
|
tmp = null;
|
|
5738
5750
|
}
|
|
@@ -5741,8 +5753,8 @@ function get_schema(_this__u8e3s4) {
|
|
|
5741
5753
|
return tmp;
|
|
5742
5754
|
}
|
|
5743
5755
|
function resolveHeader_0(_this__u8e3s4, reference) {
|
|
5744
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5745
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5756
|
+
var tmp0_safe_receiver = _this__u8e3s4.e32();
|
|
5757
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.rw();
|
|
5746
5758
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference(reference));
|
|
5747
5759
|
var tmp;
|
|
5748
5760
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5764,7 +5776,7 @@ function resolveHeader_0(_this__u8e3s4, reference) {
|
|
|
5764
5776
|
var tmp3_elvis_lhs = tmp;
|
|
5765
5777
|
var tmp_1;
|
|
5766
5778
|
if (tmp3_elvis_lhs == null) {
|
|
5767
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5779
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.h2z());
|
|
5768
5780
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5769
5781
|
} else {
|
|
5770
5782
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5780,7 +5792,7 @@ function toV30_0(_this__u8e3s4) {
|
|
|
5780
5792
|
function get_oneOf(_this__u8e3s4) {
|
|
5781
5793
|
var tmp;
|
|
5782
5794
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5783
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
5795
|
+
var tmp1_safe_receiver = _this__u8e3s4.e3d_1;
|
|
5784
5796
|
var tmp_0;
|
|
5785
5797
|
if (tmp1_safe_receiver == null) {
|
|
5786
5798
|
tmp_0 = null;
|
|
@@ -5799,7 +5811,7 @@ function get_oneOf(_this__u8e3s4) {
|
|
|
5799
5811
|
tmp = tmp_0;
|
|
5800
5812
|
} else {
|
|
5801
5813
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5802
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
5814
|
+
var tmp2_safe_receiver = _this__u8e3s4.q3m_1;
|
|
5803
5815
|
var tmp_1;
|
|
5804
5816
|
if (tmp2_safe_receiver == null) {
|
|
5805
5817
|
tmp_1 = null;
|
|
@@ -5818,7 +5830,7 @@ function get_oneOf(_this__u8e3s4) {
|
|
|
5818
5830
|
tmp = tmp_1;
|
|
5819
5831
|
} else {
|
|
5820
5832
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5821
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
5833
|
+
var tmp3_safe_receiver = _this__u8e3s4.v3w_1;
|
|
5822
5834
|
var tmp_2;
|
|
5823
5835
|
if (tmp3_safe_receiver == null) {
|
|
5824
5836
|
tmp_2 = null;
|
|
@@ -5845,7 +5857,7 @@ function get_oneOf(_this__u8e3s4) {
|
|
|
5845
5857
|
function get_anyOf(_this__u8e3s4) {
|
|
5846
5858
|
var tmp;
|
|
5847
5859
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5848
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
5860
|
+
var tmp1_safe_receiver = _this__u8e3s4.f3d_1;
|
|
5849
5861
|
var tmp_0;
|
|
5850
5862
|
if (tmp1_safe_receiver == null) {
|
|
5851
5863
|
tmp_0 = null;
|
|
@@ -5864,7 +5876,7 @@ function get_anyOf(_this__u8e3s4) {
|
|
|
5864
5876
|
tmp = tmp_0;
|
|
5865
5877
|
} else {
|
|
5866
5878
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5867
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
5879
|
+
var tmp2_safe_receiver = _this__u8e3s4.r3m_1;
|
|
5868
5880
|
var tmp_1;
|
|
5869
5881
|
if (tmp2_safe_receiver == null) {
|
|
5870
5882
|
tmp_1 = null;
|
|
@@ -5883,7 +5895,7 @@ function get_anyOf(_this__u8e3s4) {
|
|
|
5883
5895
|
tmp = tmp_1;
|
|
5884
5896
|
} else {
|
|
5885
5897
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5886
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
5898
|
+
var tmp3_safe_receiver = _this__u8e3s4.w3w_1;
|
|
5887
5899
|
var tmp_2;
|
|
5888
5900
|
if (tmp3_safe_receiver == null) {
|
|
5889
5901
|
tmp_2 = null;
|
|
@@ -5927,7 +5939,7 @@ function resolve_6(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
5927
5939
|
}
|
|
5928
5940
|
function toField_4(_this__u8e3s4, schema, name) {
|
|
5929
5941
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5930
|
-
var tmp0_elvis_lhs = schema.
|
|
5942
|
+
var tmp0_elvis_lhs = schema.m2z();
|
|
5931
5943
|
// Inline function 'kotlin.collections.map' call
|
|
5932
5944
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
5933
5945
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -5940,14 +5952,14 @@ function toField_4(_this__u8e3s4, schema, name) {
|
|
|
5940
5952
|
var key = item.l1();
|
|
5941
5953
|
// Inline function 'kotlin.collections.component2' call
|
|
5942
5954
|
var value = item.m1();
|
|
5943
|
-
var tmp0_safe_receiver = schema.
|
|
5955
|
+
var tmp0_safe_receiver = schema.m1b();
|
|
5944
5956
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v1(key);
|
|
5945
5957
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
5946
5958
|
var tmp;
|
|
5947
5959
|
if (isInterface(value, Schema)) {
|
|
5948
5960
|
var tmp3_identifier = new FieldIdentifier(key);
|
|
5949
|
-
var tmp4_annotations = toDescriptionAnnotationList(value.
|
|
5950
|
-
var tmp5_reference = !(value.
|
|
5961
|
+
var tmp4_annotations = toDescriptionAnnotationList(value.i2z());
|
|
5962
|
+
var tmp5_reference = !(value.j2z() == null) ? toReference_2(_this__u8e3s4, value, isNullable, className([name, key])) : equals(get_primitiveType_0(value), OpenAPIV30Type_ARRAY_getInstance()) ? toReference_2(_this__u8e3s4, value, isNullable, className([name, key, 'Array'])) : toReference_2(_this__u8e3s4, value, isNullable, className([name, key]));
|
|
5951
5963
|
tmp = new Field(tmp4_annotations, tmp3_identifier, tmp5_reference);
|
|
5952
5964
|
} else {
|
|
5953
5965
|
if (isInterface(value, Reference)) {
|
|
@@ -5970,8 +5982,8 @@ function asLinkExpression(_this__u8e3s4) {
|
|
|
5970
5982
|
return tmp1_elvis_lhs == null ? toString(_this__u8e3s4) : tmp1_elvis_lhs;
|
|
5971
5983
|
}
|
|
5972
5984
|
function resolveLink(_this__u8e3s4, reference) {
|
|
5973
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5974
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5985
|
+
var tmp0_safe_receiver = _this__u8e3s4.e32();
|
|
5986
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q2z();
|
|
5975
5987
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference(reference));
|
|
5976
5988
|
var tmp;
|
|
5977
5989
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5993,7 +6005,7 @@ function resolveLink(_this__u8e3s4, reference) {
|
|
|
5993
6005
|
var tmp3_elvis_lhs = tmp;
|
|
5994
6006
|
var tmp_1;
|
|
5995
6007
|
if (tmp3_elvis_lhs == null) {
|
|
5996
|
-
var message = 'Cannot resolve link ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
6008
|
+
var message = 'Cannot resolve link ref: ' + Ref__toString_impl_irb7zi(reference.h2z());
|
|
5997
6009
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5998
6010
|
} else {
|
|
5999
6011
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -6041,16 +6053,16 @@ function toCommon_1(_this__u8e3s4) {
|
|
|
6041
6053
|
}
|
|
6042
6054
|
function parseParameters$lambda_0($this_parseParameters) {
|
|
6043
6055
|
return function ($this$flatMapRequests) {
|
|
6044
|
-
var parameters = plus_0(resolveParameters_0($this_parseParameters, $this$flatMapRequests.
|
|
6045
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
6046
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
6056
|
+
var parameters = plus_0(resolveParameters_0($this_parseParameters, $this$flatMapRequests.q45_1.y2z()), resolveParameters_0($this_parseParameters, $this$flatMapRequests.s45_1.y2z()));
|
|
6057
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.s45_1);
|
|
6058
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.p45_1) + $this$flatMapRequests.r45_1.b3_1 : tmp0_elvis_lhs;
|
|
6047
6059
|
// Inline function 'kotlin.collections.flatMap' call
|
|
6048
6060
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
6049
6061
|
var destination = ArrayList_init_$Create$();
|
|
6050
6062
|
var _iterator__ex2g4s = parameters.t();
|
|
6051
6063
|
while (_iterator__ex2g4s.u()) {
|
|
6052
6064
|
var element = _iterator__ex2g4s.v();
|
|
6053
|
-
var tmp0_safe_receiver = element.
|
|
6065
|
+
var tmp0_safe_receiver = element.r2z();
|
|
6054
6066
|
var tmp;
|
|
6055
6067
|
if (tmp0_safe_receiver == null) {
|
|
6056
6068
|
tmp = null;
|
|
@@ -6067,9 +6079,9 @@ function parseParameters$lambda_0($this_parseParameters) {
|
|
|
6067
6079
|
}
|
|
6068
6080
|
function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
6069
6081
|
return function ($this$flatMapRequests) {
|
|
6070
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
6071
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
6072
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
6082
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.s45_1);
|
|
6083
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.p45_1) + $this$flatMapRequests.r45_1.b3_1 : tmp0_elvis_lhs;
|
|
6084
|
+
var tmp1_safe_receiver = $this$flatMapRequests.s45_1.z2z();
|
|
6073
6085
|
var tmp;
|
|
6074
6086
|
if (tmp1_safe_receiver == null) {
|
|
6075
6087
|
tmp = null;
|
|
@@ -6079,7 +6091,7 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
6079
6091
|
}
|
|
6080
6092
|
var tmp2_safe_receiver = tmp;
|
|
6081
6093
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
6082
|
-
var tmp0_elvis_lhs_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
6094
|
+
var tmp0_elvis_lhs_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.vx();
|
|
6083
6095
|
// Inline function 'kotlin.collections.flatMap' call
|
|
6084
6096
|
var tmp0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
6085
6097
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -6090,7 +6102,7 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
6090
6102
|
var element = _iterator__ex2g4s.v();
|
|
6091
6103
|
// Inline function 'kotlin.collections.component2' call
|
|
6092
6104
|
var mediaObject = element.m1();
|
|
6093
|
-
var schema = mediaObject.
|
|
6105
|
+
var schema = mediaObject.r2z();
|
|
6094
6106
|
var tmp_0;
|
|
6095
6107
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
6096
6108
|
var tmp0_subject = get_primitiveType_0(schema);
|
|
@@ -6101,7 +6113,7 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
6101
6113
|
tmp_1 = flatten_0($this_parseRequestBody, schema, className([name, 'RequestBody']));
|
|
6102
6114
|
break;
|
|
6103
6115
|
case 4:
|
|
6104
|
-
var tmp1_safe_receiver_0 = schema.
|
|
6116
|
+
var tmp1_safe_receiver_0 = schema.k2z();
|
|
6105
6117
|
var tmp_2;
|
|
6106
6118
|
if (tmp1_safe_receiver_0 == null) {
|
|
6107
6119
|
tmp_2 = null;
|
|
@@ -6141,15 +6153,15 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
6141
6153
|
}
|
|
6142
6154
|
function parseResponseBody$lambda_0($this_parseResponseBody) {
|
|
6143
6155
|
return function ($this$flatMapResponses) {
|
|
6144
|
-
var tmp0_elvis_lhs = toName($this$flatMapResponses.
|
|
6145
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
6146
|
-
var res = $this$flatMapResponses.
|
|
6156
|
+
var tmp0_elvis_lhs = toName($this$flatMapResponses.w45_1);
|
|
6157
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.t45_1) + $this$flatMapResponses.v45_1.b3_1 : tmp0_elvis_lhs;
|
|
6158
|
+
var res = $this$flatMapResponses.y45_1;
|
|
6147
6159
|
var tmp;
|
|
6148
6160
|
if (isInterface(res, Reference)) {
|
|
6149
|
-
tmp = flatMapResponse($this_parseResponseBody, resolveResponse_0($this_parseResponseBody, res).gf_1, name, $this$flatMapResponses.
|
|
6161
|
+
tmp = flatMapResponse($this_parseResponseBody, resolveResponse_0($this_parseResponseBody, res).gf_1, name, $this$flatMapResponses.x45_1);
|
|
6150
6162
|
} else {
|
|
6151
6163
|
if (isInterface(res, Response_0)) {
|
|
6152
|
-
tmp = flatMapResponse($this_parseResponseBody, res, name, $this$flatMapResponses.
|
|
6164
|
+
tmp = flatMapResponse($this_parseResponseBody, res, name, $this$flatMapResponses.x45_1);
|
|
6153
6165
|
} else {
|
|
6154
6166
|
noWhenBranchMatchedException();
|
|
6155
6167
|
}
|