@flock/wirespec 0.22.1 → 0.22.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arrow-arrow-core.mjs +11 -5
- package/arrow-arrow-core.mjs.map +1 -1
- package/clikt-clikt-mordant.mjs +79 -79
- package/clikt-clikt.mjs +1343 -1343
- package/colormath-root-colormath.mjs +437 -437
- package/kotlin-kotlin-stdlib.mjs +259 -253
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10004 -10004
- package/kotlin-rgxgen.mjs +1762 -1762
- package/kotlinx-io-kotlinx-io-core.mjs +404 -404
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1786 -1786
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1514 -1508
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant.mjs +1231 -1225
- package/mordant-mordant.mjs.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +4940 -4889
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +180 -180
- package/wirespec-src-compiler-emitters-kotlin.mjs +134 -134
- package/wirespec-src-compiler-emitters-python.mjs +157 -157
- package/wirespec-src-compiler-emitters-rust.mjs +392 -392
- package/wirespec-src-compiler-emitters-scala.mjs +168 -168
- package/wirespec-src-compiler-emitters-typescript.mjs +229 -229
- package/wirespec-src-compiler-emitters-wirespec.mjs +125 -125
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +388 -326
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-asyncapi.mjs +639 -639
- package/wirespec-src-converter-avro.mjs +548 -548
- package/wirespec-src-converter-common.mjs +16 -16
- package/wirespec-src-converter-graphql.mjs +2546 -1342
- package/wirespec-src-converter-graphql.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +593 -593
- package/wirespec-src-ide-lsp.mjs +1371 -1371
- package/wirespec-src-plugin-arguments.mjs +146 -146
- package/wirespec-src-plugin-cli.mjs +89 -89
- package/wirespec-src-plugin-npm.d.mts +21 -3
- package/wirespec-src-plugin-npm.mjs +26 -26
- package/wirespec-src-tools-generator.mjs +24 -24
|
@@ -249,11 +249,11 @@ initMetadataForObject(OpenAPIV3Parser, 'OpenAPIV3Parser');
|
|
|
249
249
|
function emitFormat(_this__u8e3s4) {
|
|
250
250
|
var tmp;
|
|
251
251
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
252
|
-
var t = _this__u8e3s4.
|
|
252
|
+
var t = _this__u8e3s4.t18_1;
|
|
253
253
|
var tmp_0;
|
|
254
254
|
if (t instanceof Number_0) {
|
|
255
255
|
var tmp_1;
|
|
256
|
-
switch (t.
|
|
256
|
+
switch (t.w18_1.e3_1) {
|
|
257
257
|
case 0:
|
|
258
258
|
tmp_1 = 'float';
|
|
259
259
|
break;
|
|
@@ -268,7 +268,7 @@ function emitFormat(_this__u8e3s4) {
|
|
|
268
268
|
} else {
|
|
269
269
|
if (t instanceof Integer) {
|
|
270
270
|
var tmp_2;
|
|
271
|
-
switch (t.
|
|
271
|
+
switch (t.b19_1.e3_1) {
|
|
272
272
|
case 0:
|
|
273
273
|
tmp_2 = 'int32';
|
|
274
274
|
break;
|
|
@@ -325,28 +325,28 @@ function toOperationList(_this__u8e3s4) {
|
|
|
325
325
|
var tmp;
|
|
326
326
|
switch (element.e3_1) {
|
|
327
327
|
case 0:
|
|
328
|
-
tmp = _this__u8e3s4.
|
|
328
|
+
tmp = _this__u8e3s4.f36();
|
|
329
329
|
break;
|
|
330
330
|
case 1:
|
|
331
|
-
tmp = _this__u8e3s4.
|
|
331
|
+
tmp = _this__u8e3s4.h36();
|
|
332
332
|
break;
|
|
333
333
|
case 2:
|
|
334
|
-
tmp = _this__u8e3s4.
|
|
334
|
+
tmp = _this__u8e3s4.g36();
|
|
335
335
|
break;
|
|
336
336
|
case 3:
|
|
337
|
-
tmp = _this__u8e3s4.
|
|
337
|
+
tmp = _this__u8e3s4.i36();
|
|
338
338
|
break;
|
|
339
339
|
case 4:
|
|
340
|
-
tmp = _this__u8e3s4.
|
|
340
|
+
tmp = _this__u8e3s4.j36();
|
|
341
341
|
break;
|
|
342
342
|
case 5:
|
|
343
|
-
tmp = _this__u8e3s4.
|
|
343
|
+
tmp = _this__u8e3s4.k36();
|
|
344
344
|
break;
|
|
345
345
|
case 6:
|
|
346
|
-
tmp = _this__u8e3s4.
|
|
346
|
+
tmp = _this__u8e3s4.l36();
|
|
347
347
|
break;
|
|
348
348
|
case 7:
|
|
349
|
-
tmp = _this__u8e3s4.
|
|
349
|
+
tmp = _this__u8e3s4.m36();
|
|
350
350
|
break;
|
|
351
351
|
default:
|
|
352
352
|
noWhenBranchMatchedException();
|
|
@@ -358,7 +358,7 @@ function toOperationList(_this__u8e3s4) {
|
|
|
358
358
|
return filterNotNullValues(result);
|
|
359
359
|
}
|
|
360
360
|
function toName(_this__u8e3s4) {
|
|
361
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
361
|
+
var tmp0_safe_receiver = _this__u8e3s4.k32();
|
|
362
362
|
var tmp;
|
|
363
363
|
if (tmp0_safe_receiver == null) {
|
|
364
364
|
tmp = null;
|
|
@@ -395,7 +395,7 @@ function sanitize(_this__u8e3s4) {
|
|
|
395
395
|
var item = _iterator__ex2g4s.v();
|
|
396
396
|
var _unary__edvuaz = index;
|
|
397
397
|
index = _unary__edvuaz + 1 | 0;
|
|
398
|
-
var tmp$ret$2 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.
|
|
398
|
+
var tmp$ret$2 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.yr(item) : item;
|
|
399
399
|
destination.x(tmp$ret$2);
|
|
400
400
|
}
|
|
401
401
|
var tmp = asSequence(joinToString(destination, ''));
|
|
@@ -403,7 +403,7 @@ function sanitize(_this__u8e3s4) {
|
|
|
403
403
|
}
|
|
404
404
|
function flatMapRequests(_this__u8e3s4, f) {
|
|
405
405
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
406
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
406
|
+
var tmp0_elvis_lhs = _this__u8e3s4.k34();
|
|
407
407
|
// Inline function 'kotlin.collections.flatMap' call
|
|
408
408
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
409
409
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -413,7 +413,7 @@ function flatMapRequests(_this__u8e3s4, f) {
|
|
|
413
413
|
while (_iterator__ex2g4s.u()) {
|
|
414
414
|
var element = _iterator__ex2g4s.v();
|
|
415
415
|
// Inline function 'kotlin.collections.component1' call
|
|
416
|
-
var path = element.n1().
|
|
416
|
+
var path = element.n1().k31_1;
|
|
417
417
|
// Inline function 'kotlin.collections.component2' call
|
|
418
418
|
var pathItem = element.o1();
|
|
419
419
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -446,19 +446,19 @@ function flatMapRequests(_this__u8e3s4, f) {
|
|
|
446
446
|
return destination_1;
|
|
447
447
|
}
|
|
448
448
|
function FlattenRequest(path, pathItem, method, operation) {
|
|
449
|
-
this.
|
|
450
|
-
this.
|
|
451
|
-
this.
|
|
452
|
-
this.
|
|
449
|
+
this.b48_1 = path;
|
|
450
|
+
this.c48_1 = pathItem;
|
|
451
|
+
this.d48_1 = method;
|
|
452
|
+
this.e48_1 = operation;
|
|
453
453
|
}
|
|
454
454
|
protoOf(FlattenRequest).toString = function () {
|
|
455
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
455
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.b48_1) + ', pathItem=' + toString(this.c48_1) + ', method=' + this.d48_1.toString() + ', operation=' + toString(this.e48_1) + ')';
|
|
456
456
|
};
|
|
457
457
|
protoOf(FlattenRequest).hashCode = function () {
|
|
458
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
459
|
-
result = imul(result, 31) + hashCode(this.
|
|
460
|
-
result = imul(result, 31) + this.
|
|
461
|
-
result = imul(result, 31) + hashCode(this.
|
|
458
|
+
var result = Path__hashCode_impl_go73kd(this.b48_1);
|
|
459
|
+
result = imul(result, 31) + hashCode(this.c48_1) | 0;
|
|
460
|
+
result = imul(result, 31) + this.d48_1.hashCode() | 0;
|
|
461
|
+
result = imul(result, 31) + hashCode(this.e48_1) | 0;
|
|
462
462
|
return result;
|
|
463
463
|
};
|
|
464
464
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -466,19 +466,19 @@ protoOf(FlattenRequest).equals = function (other) {
|
|
|
466
466
|
return true;
|
|
467
467
|
if (!(other instanceof FlattenRequest))
|
|
468
468
|
return false;
|
|
469
|
-
if (!(this.
|
|
469
|
+
if (!(this.b48_1 === other.b48_1))
|
|
470
470
|
return false;
|
|
471
|
-
if (!equals(this.
|
|
471
|
+
if (!equals(this.c48_1, other.c48_1))
|
|
472
472
|
return false;
|
|
473
|
-
if (!this.
|
|
473
|
+
if (!this.d48_1.equals(other.d48_1))
|
|
474
474
|
return false;
|
|
475
|
-
if (!equals(this.
|
|
475
|
+
if (!equals(this.e48_1, other.e48_1))
|
|
476
476
|
return false;
|
|
477
477
|
return true;
|
|
478
478
|
};
|
|
479
479
|
function flatMapResponses(_this__u8e3s4, f) {
|
|
480
480
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
481
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
481
|
+
var tmp0_elvis_lhs = _this__u8e3s4.k34();
|
|
482
482
|
// Inline function 'kotlin.collections.flatMap' call
|
|
483
483
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
484
484
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -488,7 +488,7 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
488
488
|
while (_iterator__ex2g4s.u()) {
|
|
489
489
|
var element = _iterator__ex2g4s.v();
|
|
490
490
|
// Inline function 'kotlin.collections.component1' call
|
|
491
|
-
var path = element.n1().
|
|
491
|
+
var path = element.n1().k31_1;
|
|
492
492
|
// Inline function 'kotlin.collections.component2' call
|
|
493
493
|
var pathItem = element.o1();
|
|
494
494
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -504,7 +504,7 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
504
504
|
// Inline function 'kotlin.collections.component2' call
|
|
505
505
|
var operation = element_0.o1();
|
|
506
506
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
507
|
-
var tmp0_elvis_lhs_0 = operation.
|
|
507
|
+
var tmp0_elvis_lhs_0 = operation.h1f();
|
|
508
508
|
// Inline function 'kotlin.collections.map' call
|
|
509
509
|
var this_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
510
510
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -514,7 +514,7 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
514
514
|
while (_iterator__ex2g4s_1.u()) {
|
|
515
515
|
var item = _iterator__ex2g4s_1.v();
|
|
516
516
|
// Inline function 'kotlin.collections.component1' call
|
|
517
|
-
var statusCode = item.n1().
|
|
517
|
+
var statusCode = item.n1().o31_1;
|
|
518
518
|
// Inline function 'kotlin.collections.component2' call
|
|
519
519
|
var response = item.o1();
|
|
520
520
|
var tmp$ret$17 = new FlattenResponse(path, pathItem, method, operation, statusCode, response);
|
|
@@ -538,23 +538,23 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
538
538
|
return destination_2;
|
|
539
539
|
}
|
|
540
540
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response) {
|
|
541
|
-
this.
|
|
542
|
-
this.
|
|
543
|
-
this.
|
|
544
|
-
this.
|
|
545
|
-
this.
|
|
546
|
-
this.
|
|
541
|
+
this.f48_1 = path;
|
|
542
|
+
this.g48_1 = pathItem;
|
|
543
|
+
this.h48_1 = method;
|
|
544
|
+
this.i48_1 = operation;
|
|
545
|
+
this.j48_1 = statusCode;
|
|
546
|
+
this.k48_1 = response;
|
|
547
547
|
}
|
|
548
548
|
protoOf(FlattenResponse).toString = function () {
|
|
549
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
549
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.f48_1) + ', pathItem=' + toString(this.g48_1) + ', method=' + this.h48_1.toString() + ', operation=' + toString(this.i48_1) + ', statusCode=' + StatusCode__toString_impl_6caewy(this.j48_1) + ', response=' + toString(this.k48_1) + ')';
|
|
550
550
|
};
|
|
551
551
|
protoOf(FlattenResponse).hashCode = function () {
|
|
552
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
553
|
-
result = imul(result, 31) + hashCode(this.
|
|
554
|
-
result = imul(result, 31) + this.
|
|
555
|
-
result = imul(result, 31) + hashCode(this.
|
|
556
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
557
|
-
result = imul(result, 31) + hashCode(this.
|
|
552
|
+
var result = Path__hashCode_impl_go73kd(this.f48_1);
|
|
553
|
+
result = imul(result, 31) + hashCode(this.g48_1) | 0;
|
|
554
|
+
result = imul(result, 31) + this.h48_1.hashCode() | 0;
|
|
555
|
+
result = imul(result, 31) + hashCode(this.i48_1) | 0;
|
|
556
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.j48_1) | 0;
|
|
557
|
+
result = imul(result, 31) + hashCode(this.k48_1) | 0;
|
|
558
558
|
return result;
|
|
559
559
|
};
|
|
560
560
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -562,17 +562,17 @@ protoOf(FlattenResponse).equals = function (other) {
|
|
|
562
562
|
return true;
|
|
563
563
|
if (!(other instanceof FlattenResponse))
|
|
564
564
|
return false;
|
|
565
|
-
if (!(this.
|
|
565
|
+
if (!(this.f48_1 === other.f48_1))
|
|
566
566
|
return false;
|
|
567
|
-
if (!equals(this.
|
|
567
|
+
if (!equals(this.g48_1, other.g48_1))
|
|
568
568
|
return false;
|
|
569
|
-
if (!this.
|
|
569
|
+
if (!this.h48_1.equals(other.h48_1))
|
|
570
570
|
return false;
|
|
571
|
-
if (!equals(this.
|
|
571
|
+
if (!equals(this.i48_1, other.i48_1))
|
|
572
572
|
return false;
|
|
573
|
-
if (!(this.
|
|
573
|
+
if (!(this.j48_1 === other.j48_1))
|
|
574
574
|
return false;
|
|
575
|
-
if (!equals(this.
|
|
575
|
+
if (!equals(this.k48_1, other.k48_1))
|
|
576
576
|
return false;
|
|
577
577
|
return true;
|
|
578
578
|
};
|
|
@@ -581,7 +581,7 @@ function toDict(_this__u8e3s4, isNullable) {
|
|
|
581
581
|
}
|
|
582
582
|
function getReference(_this__u8e3s4) {
|
|
583
583
|
// Inline function 'kotlin.let' call
|
|
584
|
-
var it = split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
584
|
+
var it = split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.t31()), ['/']);
|
|
585
585
|
var tmp;
|
|
586
586
|
if (_this__u8e3s4 instanceof OpenAPIV20Reference) {
|
|
587
587
|
tmp = getOrNull(it, 2);
|
|
@@ -592,7 +592,7 @@ function getReference(_this__u8e3s4) {
|
|
|
592
592
|
var tmp_0;
|
|
593
593
|
if (tmp0_elvis_lhs == null) {
|
|
594
594
|
// Inline function 'kotlin.error' call
|
|
595
|
-
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
595
|
+
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe(_this__u8e3s4.t31());
|
|
596
596
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
597
597
|
} else {
|
|
598
598
|
tmp_0 = tmp0_elvis_lhs;
|
|
@@ -607,8 +607,8 @@ function isParam(_this__u8e3s4) {
|
|
|
607
607
|
}
|
|
608
608
|
function jsonDefault$lambda($strict) {
|
|
609
609
|
return function ($this$Json) {
|
|
610
|
-
$this$Json.
|
|
611
|
-
$this$Json.
|
|
610
|
+
$this$Json.e2o_1 = true;
|
|
611
|
+
$this$Json.c2o_1 = !$strict;
|
|
612
612
|
return Unit_instance;
|
|
613
613
|
};
|
|
614
614
|
}
|
|
@@ -644,7 +644,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
644
644
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
645
645
|
while (_iterator__ex2g4s.u()) {
|
|
646
646
|
var element = _iterator__ex2g4s.v();
|
|
647
|
-
if (element.
|
|
647
|
+
if (element.g19_1 === 'Description') {
|
|
648
648
|
tmp$ret$1 = element;
|
|
649
649
|
break $l$block;
|
|
650
650
|
}
|
|
@@ -652,7 +652,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
652
652
|
tmp$ret$1 = null;
|
|
653
653
|
}
|
|
654
654
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
655
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
655
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h19_1;
|
|
656
656
|
var tmp;
|
|
657
657
|
if (tmp1_safe_receiver == null) {
|
|
658
658
|
tmp = null;
|
|
@@ -664,7 +664,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
664
664
|
var _iterator__ex2g4s_0 = tmp1_safe_receiver.t();
|
|
665
665
|
while (_iterator__ex2g4s_0.u()) {
|
|
666
666
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
667
|
-
if (element_0.
|
|
667
|
+
if (element_0.i19_1 === 'default') {
|
|
668
668
|
tmp$ret$4 = element_0;
|
|
669
669
|
break $l$block_0;
|
|
670
670
|
}
|
|
@@ -674,7 +674,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
674
674
|
tmp = tmp$ret$4;
|
|
675
675
|
}
|
|
676
676
|
var tmp2_safe_receiver = tmp;
|
|
677
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
677
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.j19_1;
|
|
678
678
|
var tmp_0;
|
|
679
679
|
if (tmp3_safe_receiver == null) {
|
|
680
680
|
tmp_0 = null;
|
|
@@ -683,7 +683,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
683
683
|
tmp_0 = tmp3_safe_receiver instanceof Single ? tmp3_safe_receiver : null;
|
|
684
684
|
}
|
|
685
685
|
var tmp4_safe_receiver = tmp_0;
|
|
686
|
-
return tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
686
|
+
return tmp4_safe_receiver == null ? null : tmp4_safe_receiver.m19_1;
|
|
687
687
|
}
|
|
688
688
|
function toSchemaDefault(_this__u8e3s4) {
|
|
689
689
|
_init_properties_Utils_kt__jo07cx();
|
|
@@ -721,7 +721,7 @@ function resolveEndpointNameCollisions(_this__u8e3s4) {
|
|
|
721
721
|
var _iterator__ex2g4s_0 = destination.t();
|
|
722
722
|
while (_iterator__ex2g4s_0.u()) {
|
|
723
723
|
var item = _iterator__ex2g4s_0.v();
|
|
724
|
-
var tmp$ret$5 = item.
|
|
724
|
+
var tmp$ret$5 = item.ds().o1();
|
|
725
725
|
destination_0.x(tmp$ret$5);
|
|
726
726
|
}
|
|
727
727
|
var nonEndpointNames = toSet(destination_0);
|
|
@@ -734,12 +734,12 @@ function resolveEndpointNameCollisions(_this__u8e3s4) {
|
|
|
734
734
|
var tmp;
|
|
735
735
|
var tmp_0;
|
|
736
736
|
if (item_0 instanceof Endpoint) {
|
|
737
|
-
tmp_0 = nonEndpointNames.i1(item_0.
|
|
737
|
+
tmp_0 = nonEndpointNames.i1(item_0.fr_1.o1());
|
|
738
738
|
} else {
|
|
739
739
|
tmp_0 = false;
|
|
740
740
|
}
|
|
741
741
|
if (tmp_0) {
|
|
742
|
-
tmp = item_0.p1c(VOID, VOID, new DefinitionIdentifier(item_0.
|
|
742
|
+
tmp = item_0.p1c(VOID, VOID, new DefinitionIdentifier(item_0.fr_1.o1() + 'Endpoint'));
|
|
743
743
|
} else {
|
|
744
744
|
tmp = item_0;
|
|
745
745
|
}
|
|
@@ -786,25 +786,25 @@ function toDescriptionAnnotationList(_this__u8e3s4) {
|
|
|
786
786
|
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
787
787
|
}
|
|
788
788
|
function LinkInfo(name, operationId, operationRef, parameters, requestBody, description, serverUrl) {
|
|
789
|
-
this.
|
|
790
|
-
this.
|
|
791
|
-
this.
|
|
792
|
-
this.
|
|
793
|
-
this.
|
|
794
|
-
this.
|
|
795
|
-
this.
|
|
789
|
+
this.l48_1 = name;
|
|
790
|
+
this.m48_1 = operationId;
|
|
791
|
+
this.n48_1 = operationRef;
|
|
792
|
+
this.o48_1 = parameters;
|
|
793
|
+
this.p48_1 = requestBody;
|
|
794
|
+
this.q48_1 = description;
|
|
795
|
+
this.r48_1 = serverUrl;
|
|
796
796
|
}
|
|
797
797
|
protoOf(LinkInfo).toString = function () {
|
|
798
|
-
return 'LinkInfo(name=' + this.
|
|
798
|
+
return 'LinkInfo(name=' + this.l48_1 + ', operationId=' + this.m48_1 + ', operationRef=' + this.n48_1 + ', parameters=' + toString(this.o48_1) + ', requestBody=' + this.p48_1 + ', description=' + this.q48_1 + ', serverUrl=' + this.r48_1 + ')';
|
|
799
799
|
};
|
|
800
800
|
protoOf(LinkInfo).hashCode = function () {
|
|
801
|
-
var result = getStringHashCode(this.
|
|
802
|
-
result = imul(result, 31) + (this.h48_1 == null ? 0 : getStringHashCode(this.h48_1)) | 0;
|
|
803
|
-
result = imul(result, 31) + (this.i48_1 == null ? 0 : getStringHashCode(this.i48_1)) | 0;
|
|
804
|
-
result = imul(result, 31) + hashCode(this.j48_1) | 0;
|
|
805
|
-
result = imul(result, 31) + (this.k48_1 == null ? 0 : getStringHashCode(this.k48_1)) | 0;
|
|
806
|
-
result = imul(result, 31) + (this.l48_1 == null ? 0 : getStringHashCode(this.l48_1)) | 0;
|
|
801
|
+
var result = getStringHashCode(this.l48_1);
|
|
807
802
|
result = imul(result, 31) + (this.m48_1 == null ? 0 : getStringHashCode(this.m48_1)) | 0;
|
|
803
|
+
result = imul(result, 31) + (this.n48_1 == null ? 0 : getStringHashCode(this.n48_1)) | 0;
|
|
804
|
+
result = imul(result, 31) + hashCode(this.o48_1) | 0;
|
|
805
|
+
result = imul(result, 31) + (this.p48_1 == null ? 0 : getStringHashCode(this.p48_1)) | 0;
|
|
806
|
+
result = imul(result, 31) + (this.q48_1 == null ? 0 : getStringHashCode(this.q48_1)) | 0;
|
|
807
|
+
result = imul(result, 31) + (this.r48_1 == null ? 0 : getStringHashCode(this.r48_1)) | 0;
|
|
808
808
|
return result;
|
|
809
809
|
};
|
|
810
810
|
protoOf(LinkInfo).equals = function (other) {
|
|
@@ -812,19 +812,19 @@ protoOf(LinkInfo).equals = function (other) {
|
|
|
812
812
|
return true;
|
|
813
813
|
if (!(other instanceof LinkInfo))
|
|
814
814
|
return false;
|
|
815
|
-
if (!(this.
|
|
815
|
+
if (!(this.l48_1 === other.l48_1))
|
|
816
816
|
return false;
|
|
817
|
-
if (!(this.
|
|
817
|
+
if (!(this.m48_1 == other.m48_1))
|
|
818
818
|
return false;
|
|
819
|
-
if (!(this.
|
|
819
|
+
if (!(this.n48_1 == other.n48_1))
|
|
820
820
|
return false;
|
|
821
|
-
if (!equals(this.
|
|
821
|
+
if (!equals(this.o48_1, other.o48_1))
|
|
822
822
|
return false;
|
|
823
|
-
if (!(this.
|
|
823
|
+
if (!(this.p48_1 == other.p48_1))
|
|
824
824
|
return false;
|
|
825
|
-
if (!(this.
|
|
825
|
+
if (!(this.q48_1 == other.q48_1))
|
|
826
826
|
return false;
|
|
827
|
-
if (!(this.
|
|
827
|
+
if (!(this.r48_1 == other.r48_1))
|
|
828
828
|
return false;
|
|
829
829
|
return true;
|
|
830
830
|
};
|
|
@@ -836,7 +836,7 @@ function findLinks(_this__u8e3s4) {
|
|
|
836
836
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
837
837
|
while (_iterator__ex2g4s.u()) {
|
|
838
838
|
var element = _iterator__ex2g4s.v();
|
|
839
|
-
if (element.
|
|
839
|
+
if (element.g19_1 === 'Link') {
|
|
840
840
|
destination.x(element);
|
|
841
841
|
}
|
|
842
842
|
}
|
|
@@ -859,8 +859,8 @@ function findLinks(_this__u8e3s4) {
|
|
|
859
859
|
}
|
|
860
860
|
function toAnnotation(_this__u8e3s4) {
|
|
861
861
|
_init_properties_Utils_kt__jo07cx();
|
|
862
|
-
var params = mutableListOf([new Parameter('default', new Single(_this__u8e3s4.
|
|
863
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
862
|
+
var params = mutableListOf([new Parameter('default', new Single(_this__u8e3s4.l48_1))]);
|
|
863
|
+
var tmp0_safe_receiver = _this__u8e3s4.m48_1;
|
|
864
864
|
if (tmp0_safe_receiver == null)
|
|
865
865
|
null;
|
|
866
866
|
else {
|
|
@@ -869,7 +869,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
869
869
|
var element = new Parameter('operationId', new Single(tmp0_safe_receiver));
|
|
870
870
|
params.x(element);
|
|
871
871
|
}
|
|
872
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
872
|
+
var tmp1_safe_receiver = _this__u8e3s4.n48_1;
|
|
873
873
|
if (tmp1_safe_receiver == null)
|
|
874
874
|
null;
|
|
875
875
|
else {
|
|
@@ -879,9 +879,9 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
879
879
|
params.x(element_0);
|
|
880
880
|
}
|
|
881
881
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
882
|
-
if (!_this__u8e3s4.
|
|
882
|
+
if (!_this__u8e3s4.o48_1.r()) {
|
|
883
883
|
// Inline function 'kotlin.collections.map' call
|
|
884
|
-
var this_0 = _this__u8e3s4.
|
|
884
|
+
var this_0 = _this__u8e3s4.o48_1;
|
|
885
885
|
// Inline function 'kotlin.collections.mapTo' call
|
|
886
886
|
var destination = ArrayList_init_$Create$(this_0.b1());
|
|
887
887
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -899,7 +899,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
899
899
|
var element_1 = new Parameter('parameters', new Dict_0(destination));
|
|
900
900
|
params.x(element_1);
|
|
901
901
|
}
|
|
902
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
902
|
+
var tmp2_safe_receiver = _this__u8e3s4.p48_1;
|
|
903
903
|
if (tmp2_safe_receiver == null)
|
|
904
904
|
null;
|
|
905
905
|
else {
|
|
@@ -908,7 +908,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
908
908
|
var element_2 = new Parameter('requestBody', new Single(tmp2_safe_receiver));
|
|
909
909
|
params.x(element_2);
|
|
910
910
|
}
|
|
911
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
911
|
+
var tmp3_safe_receiver = _this__u8e3s4.q48_1;
|
|
912
912
|
if (tmp3_safe_receiver == null)
|
|
913
913
|
null;
|
|
914
914
|
else {
|
|
@@ -917,7 +917,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
917
917
|
var element_3 = new Parameter('description', new Single(tmp3_safe_receiver));
|
|
918
918
|
params.x(element_3);
|
|
919
919
|
}
|
|
920
|
-
var tmp4_safe_receiver = _this__u8e3s4.
|
|
920
|
+
var tmp4_safe_receiver = _this__u8e3s4.r48_1;
|
|
921
921
|
if (tmp4_safe_receiver == null)
|
|
922
922
|
null;
|
|
923
923
|
else {
|
|
@@ -937,7 +937,7 @@ function toDescriptionAnnotation(description) {
|
|
|
937
937
|
}
|
|
938
938
|
function toLinkInfo(_this__u8e3s4) {
|
|
939
939
|
_init_properties_Utils_kt__jo07cx();
|
|
940
|
-
var tmp0_elvis_lhs = singleParam(_this__u8e3s4.
|
|
940
|
+
var tmp0_elvis_lhs = singleParam(_this__u8e3s4.h19_1, 'default');
|
|
941
941
|
var tmp;
|
|
942
942
|
if (tmp0_elvis_lhs == null) {
|
|
943
943
|
return null;
|
|
@@ -945,7 +945,7 @@ function toLinkInfo(_this__u8e3s4) {
|
|
|
945
945
|
tmp = tmp0_elvis_lhs;
|
|
946
946
|
}
|
|
947
947
|
var name = tmp;
|
|
948
|
-
return new LinkInfo(name, singleParam(_this__u8e3s4.
|
|
948
|
+
return new LinkInfo(name, singleParam(_this__u8e3s4.h19_1, 'operationId'), singleParam(_this__u8e3s4.h19_1, 'operationRef'), dictParam(_this__u8e3s4.h19_1, 'parameters'), singleParam(_this__u8e3s4.h19_1, 'requestBody'), singleParam(_this__u8e3s4.h19_1, 'description'), singleParam(_this__u8e3s4.h19_1, 'server'));
|
|
949
949
|
}
|
|
950
950
|
function singleParam(_this__u8e3s4, name) {
|
|
951
951
|
_init_properties_Utils_kt__jo07cx();
|
|
@@ -956,7 +956,7 @@ function singleParam(_this__u8e3s4, name) {
|
|
|
956
956
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
957
957
|
while (_iterator__ex2g4s.u()) {
|
|
958
958
|
var element = _iterator__ex2g4s.v();
|
|
959
|
-
if (element.
|
|
959
|
+
if (element.i19_1 === name) {
|
|
960
960
|
tmp$ret$1 = element;
|
|
961
961
|
break $l$block;
|
|
962
962
|
}
|
|
@@ -964,7 +964,7 @@ function singleParam(_this__u8e3s4, name) {
|
|
|
964
964
|
tmp$ret$1 = null;
|
|
965
965
|
}
|
|
966
966
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
967
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
967
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j19_1;
|
|
968
968
|
var tmp;
|
|
969
969
|
if (tmp1_safe_receiver == null) {
|
|
970
970
|
tmp = null;
|
|
@@ -973,7 +973,7 @@ function singleParam(_this__u8e3s4, name) {
|
|
|
973
973
|
tmp = tmp1_safe_receiver instanceof Single ? tmp1_safe_receiver : null;
|
|
974
974
|
}
|
|
975
975
|
var tmp2_safe_receiver = tmp;
|
|
976
|
-
return tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
976
|
+
return tmp2_safe_receiver == null ? null : tmp2_safe_receiver.m19_1;
|
|
977
977
|
}
|
|
978
978
|
function dictParam(_this__u8e3s4, name) {
|
|
979
979
|
_init_properties_Utils_kt__jo07cx();
|
|
@@ -984,7 +984,7 @@ function dictParam(_this__u8e3s4, name) {
|
|
|
984
984
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
985
985
|
while (_iterator__ex2g4s.u()) {
|
|
986
986
|
var element = _iterator__ex2g4s.v();
|
|
987
|
-
if (element.
|
|
987
|
+
if (element.i19_1 === name) {
|
|
988
988
|
tmp$ret$1 = element;
|
|
989
989
|
break $l$block;
|
|
990
990
|
}
|
|
@@ -992,7 +992,7 @@ function dictParam(_this__u8e3s4, name) {
|
|
|
992
992
|
tmp$ret$1 = null;
|
|
993
993
|
}
|
|
994
994
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
995
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
995
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j19_1;
|
|
996
996
|
var tmp;
|
|
997
997
|
if (tmp1_safe_receiver == null) {
|
|
998
998
|
tmp = null;
|
|
@@ -1001,7 +1001,7 @@ function dictParam(_this__u8e3s4, name) {
|
|
|
1001
1001
|
tmp = tmp1_safe_receiver instanceof Dict_0 ? tmp1_safe_receiver : null;
|
|
1002
1002
|
}
|
|
1003
1003
|
var tmp2_safe_receiver = tmp;
|
|
1004
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
1004
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.k19_1;
|
|
1005
1005
|
var tmp_0;
|
|
1006
1006
|
if (tmp3_safe_receiver == null) {
|
|
1007
1007
|
tmp_0 = null;
|
|
@@ -1013,14 +1013,14 @@ function dictParam(_this__u8e3s4, name) {
|
|
|
1013
1013
|
var _iterator__ex2g4s_0 = tmp3_safe_receiver.t();
|
|
1014
1014
|
while (_iterator__ex2g4s_0.u()) {
|
|
1015
1015
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1016
|
-
var tmp_1 = element_0.
|
|
1016
|
+
var tmp_1 = element_0.j19_1;
|
|
1017
1017
|
var tmp0_safe_receiver_0 = tmp_1 instanceof Single ? tmp_1 : null;
|
|
1018
1018
|
var tmp_2;
|
|
1019
1019
|
if (tmp0_safe_receiver_0 == null) {
|
|
1020
1020
|
tmp_2 = null;
|
|
1021
1021
|
} else {
|
|
1022
1022
|
// Inline function 'kotlin.let' call
|
|
1023
|
-
tmp_2 = to(element_0.
|
|
1023
|
+
tmp_2 = to(element_0.i19_1, tmp0_safe_receiver_0.m19_1);
|
|
1024
1024
|
}
|
|
1025
1025
|
var tmp0_safe_receiver_1 = tmp_2;
|
|
1026
1026
|
if (tmp0_safe_receiver_1 == null)
|
|
@@ -1070,12 +1070,12 @@ function filterNotNullValues(_this__u8e3s4) {
|
|
|
1070
1070
|
}
|
|
1071
1071
|
function json$lambda($this$Json) {
|
|
1072
1072
|
_init_properties_Utils_kt__jo07cx();
|
|
1073
|
-
$this$Json.
|
|
1073
|
+
$this$Json.e2o_1 = true;
|
|
1074
1074
|
return Unit_instance;
|
|
1075
1075
|
}
|
|
1076
1076
|
function className$lambda(it) {
|
|
1077
1077
|
_init_properties_Utils_kt__jo07cx();
|
|
1078
|
-
return Companion_instance.
|
|
1078
|
+
return Companion_instance.yr(it);
|
|
1079
1079
|
}
|
|
1080
1080
|
var properties_initialized_Utils_kt_xvi83j;
|
|
1081
1081
|
function _init_properties_Utils_kt__jo07cx() {
|
|
@@ -1103,39 +1103,39 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1103
1103
|
var _iterator__ex2g4s_0 = destination.t();
|
|
1104
1104
|
while (_iterator__ex2g4s_0.u()) {
|
|
1105
1105
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1106
|
-
var type = element_0.
|
|
1106
|
+
var type = element_0.ms_1.t18_1;
|
|
1107
1107
|
var tmp;
|
|
1108
1108
|
if (equals(type, Boolean_instance)) {
|
|
1109
|
-
tmp = to(element_0.
|
|
1109
|
+
tmp = to(element_0.ls_1.o1(), new OpenAPIV20Schema(VOID, OpenAPIV20Type_BOOLEAN_getInstance()));
|
|
1110
1110
|
} else {
|
|
1111
1111
|
if (equals(type, Bytes_instance)) {
|
|
1112
|
-
tmp = to(element_0.
|
|
1112
|
+
tmp = to(element_0.ls_1.o1(), new OpenAPIV20Schema(VOID, OpenAPIV20Type_FILE_getInstance()));
|
|
1113
1113
|
} else {
|
|
1114
1114
|
if (type instanceof Integer) {
|
|
1115
|
-
var tmp_0 = element_0.
|
|
1115
|
+
var tmp_0 = element_0.ls_1.o1();
|
|
1116
1116
|
var tmp4_type = OpenAPIV20Type_INTEGER_getInstance();
|
|
1117
|
-
var tmp0_safe_receiver = type.
|
|
1118
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1117
|
+
var tmp0_safe_receiver = type.c19_1;
|
|
1118
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z18_1;
|
|
1119
1119
|
var tmp5_minimum = tmp1_safe_receiver == null ? null : toDouble(tmp1_safe_receiver);
|
|
1120
|
-
var tmp2_safe_receiver = type.
|
|
1121
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
1120
|
+
var tmp2_safe_receiver = type.c19_1;
|
|
1121
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.a19_1;
|
|
1122
1122
|
var tmp6_maximum = tmp3_safe_receiver == null ? null : toDouble(tmp3_safe_receiver);
|
|
1123
1123
|
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));
|
|
1124
1124
|
} else {
|
|
1125
1125
|
if (type instanceof Number_0) {
|
|
1126
|
-
var tmp_1 = element_0.
|
|
1126
|
+
var tmp_1 = element_0.ls_1.o1();
|
|
1127
1127
|
var tmp11_type = OpenAPIV20Type_NUMBER_getInstance();
|
|
1128
|
-
var tmp7_safe_receiver = type.
|
|
1129
|
-
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.
|
|
1128
|
+
var tmp7_safe_receiver = type.x18_1;
|
|
1129
|
+
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.z18_1;
|
|
1130
1130
|
var tmp12_minimum = tmp8_safe_receiver == null ? null : toDouble(tmp8_safe_receiver);
|
|
1131
|
-
var tmp9_safe_receiver = type.
|
|
1132
|
-
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.
|
|
1131
|
+
var tmp9_safe_receiver = type.x18_1;
|
|
1132
|
+
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.a19_1;
|
|
1133
1133
|
var tmp13_maximum = tmp10_safe_receiver == null ? null : toDouble(tmp10_safe_receiver);
|
|
1134
1134
|
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));
|
|
1135
1135
|
} else {
|
|
1136
1136
|
if (type instanceof String_0) {
|
|
1137
|
-
var tmp_2 = element_0.
|
|
1138
|
-
var pattern = type.
|
|
1137
|
+
var tmp_2 = element_0.ls_1.o1();
|
|
1138
|
+
var pattern = type.e19_1;
|
|
1139
1139
|
var tmp_3;
|
|
1140
1140
|
var tmp_4 = pattern;
|
|
1141
1141
|
if ((tmp_4 == null ? null : new RegExp_0(tmp_4))instanceof RegExp_0) {
|
|
@@ -1158,9 +1158,9 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1158
1158
|
}
|
|
1159
1159
|
// Inline function 'kotlin.also' call
|
|
1160
1160
|
var this_0 = tmp;
|
|
1161
|
-
logger.
|
|
1161
|
+
logger.as('Emitting Refined ' + element_0.ls_1.o1());
|
|
1162
1162
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1163
|
-
destination_0.v2(this_0.
|
|
1163
|
+
destination_0.v2(this_0.ff_1, this_0.gf_1);
|
|
1164
1164
|
}
|
|
1165
1165
|
var refined = destination_0;
|
|
1166
1166
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
@@ -1181,11 +1181,11 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1181
1181
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
1182
1182
|
while (_iterator__ex2g4s_2.u()) {
|
|
1183
1183
|
var element_2 = _iterator__ex2g4s_2.v();
|
|
1184
|
-
var tmp_6 = element_2.
|
|
1185
|
-
var tmp0_elvis_lhs = findDescription(element_2.
|
|
1184
|
+
var tmp_6 = element_2.kp_1.o1();
|
|
1185
|
+
var tmp0_elvis_lhs = findDescription(element_2.jp_1);
|
|
1186
1186
|
var tmp_7;
|
|
1187
1187
|
if (tmp0_elvis_lhs == null) {
|
|
1188
|
-
var tmp1_safe_receiver_0 = element_2.
|
|
1188
|
+
var tmp1_safe_receiver_0 = element_2.ip_1;
|
|
1189
1189
|
var tmp_8;
|
|
1190
1190
|
var tmp_9 = tmp1_safe_receiver_0;
|
|
1191
1191
|
if ((tmp_9 == null ? null : new Comment(tmp_9)) == null) {
|
|
@@ -1199,7 +1199,7 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1199
1199
|
}
|
|
1200
1200
|
var tmp2_description = tmp_7;
|
|
1201
1201
|
// Inline function 'kotlin.collections.associate' call
|
|
1202
|
-
var this_1 = get_fields(element_2.
|
|
1202
|
+
var this_1 = get_fields(element_2.lp_1);
|
|
1203
1203
|
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_1, 10)), 16);
|
|
1204
1204
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1205
1205
|
var destination_3 = LinkedHashMap_init_$Create$(capacity_1);
|
|
@@ -1208,16 +1208,16 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1208
1208
|
var element_3 = _iterator__ex2g4s_3.v();
|
|
1209
1209
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1210
1210
|
var pair = toProperties(OpenAPIV2Emitter_getInstance(), element_3);
|
|
1211
|
-
destination_3.v2(pair.
|
|
1211
|
+
destination_3.v2(pair.ff_1, pair.gf_1);
|
|
1212
1212
|
}
|
|
1213
1213
|
// Inline function 'kotlin.collections.filter' call
|
|
1214
|
-
var tmp0_1 = get_fields(element_2.
|
|
1214
|
+
var tmp0_1 = get_fields(element_2.lp_1);
|
|
1215
1215
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1216
1216
|
var destination_4 = ArrayList_init_$Create$_0();
|
|
1217
1217
|
var _iterator__ex2g4s_4 = tmp0_1.t();
|
|
1218
1218
|
while (_iterator__ex2g4s_4.u()) {
|
|
1219
1219
|
var element_4 = _iterator__ex2g4s_4.v();
|
|
1220
|
-
if (!element_4.
|
|
1220
|
+
if (!element_4.pp_1.ot()) {
|
|
1221
1221
|
destination_4.x(element_4);
|
|
1222
1222
|
}
|
|
1223
1223
|
}
|
|
@@ -1227,7 +1227,7 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1227
1227
|
var _iterator__ex2g4s_5 = destination_4.t();
|
|
1228
1228
|
while (_iterator__ex2g4s_5.u()) {
|
|
1229
1229
|
var item = _iterator__ex2g4s_5.v();
|
|
1230
|
-
var tmp$ret$22 = item.
|
|
1230
|
+
var tmp$ret$22 = item.op_1.o1();
|
|
1231
1231
|
destination_5.x(tmp$ret$22);
|
|
1232
1232
|
}
|
|
1233
1233
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -1241,10 +1241,10 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1241
1241
|
var tmp4_required = tmp_10;
|
|
1242
1242
|
// Inline function 'kotlin.also' call
|
|
1243
1243
|
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);
|
|
1244
|
-
logger.
|
|
1244
|
+
logger.as('Emitting Type ' + element_2.kp_1.o1());
|
|
1245
1245
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1246
1246
|
var pair_0 = to(tmp_6, this_2);
|
|
1247
|
-
destination_2.v2(pair_0.
|
|
1247
|
+
destination_2.v2(pair_0.ff_1, pair_0.gf_1);
|
|
1248
1248
|
}
|
|
1249
1249
|
var types = destination_2;
|
|
1250
1250
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
@@ -1265,10 +1265,10 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1265
1265
|
var _iterator__ex2g4s_7 = destination_6.t();
|
|
1266
1266
|
while (_iterator__ex2g4s_7.u()) {
|
|
1267
1267
|
var element_6 = _iterator__ex2g4s_7.v();
|
|
1268
|
-
var tmp_11 = element_6.
|
|
1268
|
+
var tmp_11 = element_6.qs_1.o1();
|
|
1269
1269
|
var tmp0_type = OpenAPIV20Type_STRING_getInstance();
|
|
1270
1270
|
// Inline function 'kotlin.collections.map' call
|
|
1271
|
-
var this_3 = element_6.
|
|
1271
|
+
var this_3 = element_6.rs_1;
|
|
1272
1272
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1273
1273
|
var destination_8 = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
1274
1274
|
var _iterator__ex2g4s_8 = this_3.t();
|
|
@@ -1277,13 +1277,13 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1277
1277
|
var tmp$ret$36 = JsonPrimitive(item_0);
|
|
1278
1278
|
destination_8.x(tmp$ret$36);
|
|
1279
1279
|
}
|
|
1280
|
-
var tmp2_description_0 = findDescription(element_6.
|
|
1280
|
+
var tmp2_description_0 = findDescription(element_6.ps_1);
|
|
1281
1281
|
// Inline function 'kotlin.also' call
|
|
1282
1282
|
var this_4 = new OpenAPIV20Schema(VOID, tmp0_type, VOID, VOID, VOID, VOID, VOID, tmp2_description_0, VOID, VOID, VOID, VOID, VOID, VOID, destination_8);
|
|
1283
|
-
logger.
|
|
1283
|
+
logger.as('Emitting Enum ' + element_6.qs_1.o1());
|
|
1284
1284
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1285
1285
|
var pair_1 = to(tmp_11, this_4);
|
|
1286
|
-
destination_7.v2(pair_1.
|
|
1286
|
+
destination_7.v2(pair_1.ff_1, pair_1.gf_1);
|
|
1287
1287
|
}
|
|
1288
1288
|
var enums = destination_7;
|
|
1289
1289
|
return plus(plus(refined, types), enums);
|
|
@@ -1306,7 +1306,7 @@ function emitPaths($this, $receiver, logger) {
|
|
|
1306
1306
|
var _iterator__ex2g4s_0 = destination.t();
|
|
1307
1307
|
while (_iterator__ex2g4s_0.u()) {
|
|
1308
1308
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1309
|
-
var key = element_0.
|
|
1309
|
+
var key = element_0.hr_1;
|
|
1310
1310
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1311
1311
|
var value = destination_0.s2(key);
|
|
1312
1312
|
var tmp;
|
|
@@ -1331,7 +1331,7 @@ function emitPaths($this, $receiver, logger) {
|
|
|
1331
1331
|
var path = item.n1();
|
|
1332
1332
|
// Inline function 'kotlin.collections.component2' call
|
|
1333
1333
|
var endpoints = item.o1();
|
|
1334
|
-
logger.
|
|
1334
|
+
logger.as('Emitting endpoints for path ' + emitSegment(OpenAPIV2Emitter_getInstance(), path));
|
|
1335
1335
|
var tmp_0 = _Path___init__impl__6uf4pw(emitSegment(OpenAPIV2Emitter_getInstance(), path));
|
|
1336
1336
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1337
1337
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
@@ -1350,12 +1350,12 @@ function emitPaths($this, $receiver, logger) {
|
|
|
1350
1350
|
while (_iterator__ex2g4s_3.u()) {
|
|
1351
1351
|
var item_0 = _iterator__ex2g4s_3.v();
|
|
1352
1352
|
var tmp0_in = OpenAPIV20ParameterLocation_PATH_getInstance();
|
|
1353
|
-
var tmp1_name = item_0.
|
|
1354
|
-
var tmp2_type = emitType_0(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1355
|
-
var tmp3_format = emitFormat(item_0.
|
|
1356
|
-
var tmp4_pattern = emitPattern(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1357
|
-
var tmp5_minimum = emitMinimum(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1358
|
-
var tmp6_maximum = emitMaximum(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1353
|
+
var tmp1_name = item_0.mr_1.o1();
|
|
1354
|
+
var tmp2_type = emitType_0(OpenAPIV2Emitter_getInstance(), item_0.nr_1);
|
|
1355
|
+
var tmp3_format = emitFormat(item_0.nr_1);
|
|
1356
|
+
var tmp4_pattern = emitPattern(OpenAPIV2Emitter_getInstance(), item_0.nr_1);
|
|
1357
|
+
var tmp5_minimum = emitMinimum(OpenAPIV2Emitter_getInstance(), item_0.nr_1);
|
|
1358
|
+
var tmp6_maximum = emitMaximum(OpenAPIV2Emitter_getInstance(), item_0.nr_1);
|
|
1359
1359
|
var tmp$ret$17 = 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);
|
|
1360
1360
|
destination_3.x(tmp$ret$17);
|
|
1361
1361
|
}
|
|
@@ -1373,12 +1373,12 @@ function emitPaths($this, $receiver, logger) {
|
|
|
1373
1373
|
return toMap(destination_1);
|
|
1374
1374
|
}
|
|
1375
1375
|
function toProperties($this, $receiver) {
|
|
1376
|
-
var tmp = $receiver.
|
|
1376
|
+
var tmp = $receiver.op_1.o1();
|
|
1377
1377
|
// Inline function 'kotlin.let' call
|
|
1378
|
-
var it = toSchemaOrReference($this, $receiver.
|
|
1378
|
+
var it = toSchemaOrReference($this, $receiver.pp_1);
|
|
1379
1379
|
var tmp_0;
|
|
1380
1380
|
if (it instanceof OpenAPIV20Schema) {
|
|
1381
|
-
tmp_0 = it.
|
|
1381
|
+
tmp_0 = it.w37(VOID, VOID, VOID, VOID, VOID, VOID, VOID, findDescription($receiver.np_1), toSchemaDefault($receiver.qp_1));
|
|
1382
1382
|
} else {
|
|
1383
1383
|
if (it instanceof OpenAPIV20Reference) {
|
|
1384
1384
|
tmp_0 = it;
|
|
@@ -1396,7 +1396,7 @@ function emit($this, $receiver, method) {
|
|
|
1396
1396
|
var _iterator__ex2g4s = $receiver.t();
|
|
1397
1397
|
while (_iterator__ex2g4s.u()) {
|
|
1398
1398
|
var element = _iterator__ex2g4s.v();
|
|
1399
|
-
if (element.
|
|
1399
|
+
if (element.gr_1.equals(method)) {
|
|
1400
1400
|
destination.x(element);
|
|
1401
1401
|
}
|
|
1402
1402
|
}
|
|
@@ -1412,11 +1412,11 @@ function emit($this, $receiver, method) {
|
|
|
1412
1412
|
return firstOrNull(destination_0);
|
|
1413
1413
|
}
|
|
1414
1414
|
function emit_0($this, $receiver) {
|
|
1415
|
-
var tmp2_operationId = $receiver.
|
|
1416
|
-
var tmp0_elvis_lhs = findDescription($receiver.
|
|
1415
|
+
var tmp2_operationId = $receiver.fr_1.o1();
|
|
1416
|
+
var tmp0_elvis_lhs = findDescription($receiver.er_1);
|
|
1417
1417
|
var tmp;
|
|
1418
1418
|
if (tmp0_elvis_lhs == null) {
|
|
1419
|
-
var tmp1_safe_receiver = $receiver.
|
|
1419
|
+
var tmp1_safe_receiver = $receiver.dr_1;
|
|
1420
1420
|
var tmp_0;
|
|
1421
1421
|
var tmp_1 = tmp1_safe_receiver;
|
|
1422
1422
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -1430,15 +1430,15 @@ function emit_0($this, $receiver) {
|
|
|
1430
1430
|
}
|
|
1431
1431
|
var tmp3_description = tmp;
|
|
1432
1432
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1433
|
-
var tmp0 = $receiver.
|
|
1433
|
+
var tmp0 = $receiver.kr_1;
|
|
1434
1434
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1435
1435
|
var destination = ArrayList_init_$Create$_0();
|
|
1436
1436
|
// Inline function 'kotlin.collections.forEach' call
|
|
1437
1437
|
var _iterator__ex2g4s = tmp0.t();
|
|
1438
1438
|
while (_iterator__ex2g4s.u()) {
|
|
1439
1439
|
var element = _iterator__ex2g4s.v();
|
|
1440
|
-
var tmp0_safe_receiver = element.
|
|
1441
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1440
|
+
var tmp0_safe_receiver = element.or_1;
|
|
1441
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pr_1;
|
|
1442
1442
|
if (tmp0_safe_receiver_0 == null)
|
|
1443
1443
|
null;
|
|
1444
1444
|
else {
|
|
@@ -1456,15 +1456,15 @@ function emit_0($this, $receiver) {
|
|
|
1456
1456
|
}
|
|
1457
1457
|
var tmp4_consumes = tmp_2;
|
|
1458
1458
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1459
|
-
var tmp0_0 = $receiver.
|
|
1459
|
+
var tmp0_0 = $receiver.lr_1;
|
|
1460
1460
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1461
1461
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
1462
1462
|
// Inline function 'kotlin.collections.forEach' call
|
|
1463
1463
|
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
1464
1464
|
while (_iterator__ex2g4s_0.u()) {
|
|
1465
1465
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1466
|
-
var tmp0_safe_receiver_1 = element_0.
|
|
1467
|
-
var tmp0_safe_receiver_2 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.
|
|
1466
|
+
var tmp0_safe_receiver_1 = element_0.tr_1;
|
|
1467
|
+
var tmp0_safe_receiver_2 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.pr_1;
|
|
1468
1468
|
if (tmp0_safe_receiver_2 == null)
|
|
1469
1469
|
null;
|
|
1470
1470
|
else {
|
|
@@ -1482,14 +1482,14 @@ function emit_0($this, $receiver) {
|
|
|
1482
1482
|
}
|
|
1483
1483
|
var tmp5_produces = tmp_3;
|
|
1484
1484
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1485
|
-
var tmp0_1 = $receiver.
|
|
1485
|
+
var tmp0_1 = $receiver.kr_1;
|
|
1486
1486
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1487
1487
|
var destination_1 = ArrayList_init_$Create$_0();
|
|
1488
1488
|
// Inline function 'kotlin.collections.forEach' call
|
|
1489
1489
|
var _iterator__ex2g4s_1 = tmp0_1.t();
|
|
1490
1490
|
while (_iterator__ex2g4s_1.u()) {
|
|
1491
1491
|
var element_1 = _iterator__ex2g4s_1.v();
|
|
1492
|
-
var tmp0_safe_receiver_3 = element_1.
|
|
1492
|
+
var tmp0_safe_receiver_3 = element_1.or_1;
|
|
1493
1493
|
if (tmp0_safe_receiver_3 == null)
|
|
1494
1494
|
null;
|
|
1495
1495
|
else {
|
|
@@ -1505,14 +1505,14 @@ function emit_0($this, $receiver) {
|
|
|
1505
1505
|
while (_iterator__ex2g4s_2.u()) {
|
|
1506
1506
|
var item = _iterator__ex2g4s_2.v();
|
|
1507
1507
|
var tmp0_in = OpenAPIV20ParameterLocation_BODY_getInstance();
|
|
1508
|
-
var tmp1_schema = toSchemaOrReference(OpenAPIV2Emitter_getInstance(), item.
|
|
1509
|
-
var tmp2_required = !item.
|
|
1508
|
+
var tmp1_schema = toSchemaOrReference(OpenAPIV2Emitter_getInstance(), item.qr_1);
|
|
1509
|
+
var tmp2_required = !item.qr_1.ot();
|
|
1510
1510
|
var tmp$ret$27 = 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');
|
|
1511
1511
|
destination_2.x(tmp$ret$27);
|
|
1512
1512
|
}
|
|
1513
1513
|
var tmp_4 = destination_2;
|
|
1514
1514
|
// Inline function 'kotlin.collections.map' call
|
|
1515
|
-
var this_3 = get_fields($receiver.
|
|
1515
|
+
var this_3 = get_fields($receiver.ir_1);
|
|
1516
1516
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1517
1517
|
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
1518
1518
|
var _iterator__ex2g4s_3 = this_3.t();
|
|
@@ -1523,7 +1523,7 @@ function emit_0($this, $receiver) {
|
|
|
1523
1523
|
}
|
|
1524
1524
|
var tmp_5 = plus_0(tmp_4, destination_3);
|
|
1525
1525
|
// Inline function 'kotlin.collections.map' call
|
|
1526
|
-
var this_4 = get_fields($receiver.
|
|
1526
|
+
var this_4 = get_fields($receiver.jr_1);
|
|
1527
1527
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1528
1528
|
var destination_4 = ArrayList_init_$Create$(collectionSizeOrDefault(this_4, 10));
|
|
1529
1529
|
var _iterator__ex2g4s_4 = this_4.t();
|
|
@@ -1534,45 +1534,45 @@ function emit_0($this, $receiver) {
|
|
|
1534
1534
|
}
|
|
1535
1535
|
var tmp6_parameters = plus_0(tmp_5, destination_4);
|
|
1536
1536
|
// Inline function 'kotlin.collections.associate' call
|
|
1537
|
-
var this_5 = $receiver.
|
|
1537
|
+
var this_5 = $receiver.lr_1;
|
|
1538
1538
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_5, 10)), 16);
|
|
1539
1539
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1540
1540
|
var destination_5 = LinkedHashMap_init_$Create$(capacity);
|
|
1541
1541
|
var _iterator__ex2g4s_5 = this_5.t();
|
|
1542
1542
|
while (_iterator__ex2g4s_5.u()) {
|
|
1543
1543
|
var element_2 = _iterator__ex2g4s_5.v();
|
|
1544
|
-
var tmp_6 = _StatusCode___init__impl__t1yi9q(element_2.
|
|
1545
|
-
var tmp0_elvis_lhs_0 = findDescription(element_2.
|
|
1546
|
-
var tmp3_description_0 = tmp0_elvis_lhs_0 == null ? $receiver.
|
|
1544
|
+
var tmp_6 = _StatusCode___init__impl__t1yi9q(element_2.rr_1);
|
|
1545
|
+
var tmp0_elvis_lhs_0 = findDescription(element_2.ur_1);
|
|
1546
|
+
var tmp3_description_0 = tmp0_elvis_lhs_0 == null ? $receiver.fr_1.o1() + ' ' + element_2.rr_1 + ' response' : tmp0_elvis_lhs_0;
|
|
1547
1547
|
// Inline function 'kotlin.collections.associate' call
|
|
1548
|
-
var this_6 = get_fields(element_2.
|
|
1548
|
+
var this_6 = get_fields(element_2.sr_1);
|
|
1549
1549
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_6, 10)), 16);
|
|
1550
1550
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1551
1551
|
var destination_6 = LinkedHashMap_init_$Create$(capacity_0);
|
|
1552
1552
|
var _iterator__ex2g4s_6 = this_6.t();
|
|
1553
1553
|
while (_iterator__ex2g4s_6.u()) {
|
|
1554
1554
|
var element_3 = _iterator__ex2g4s_6.v();
|
|
1555
|
-
var tmp_7 = element_3.
|
|
1556
|
-
var tmp2_description = findDescription(element_3.
|
|
1557
|
-
var tmp3_type = emitType_0(OpenAPIV2Emitter_getInstance(), element_3.
|
|
1558
|
-
var tmp4_format = emitFormat(element_3.
|
|
1559
|
-
var tmp5_pattern = emitPattern(OpenAPIV2Emitter_getInstance(), element_3.
|
|
1560
|
-
var tmp_8 = element_3.
|
|
1555
|
+
var tmp_7 = element_3.op_1.o1();
|
|
1556
|
+
var tmp2_description = findDescription(element_3.np_1);
|
|
1557
|
+
var tmp3_type = emitType_0(OpenAPIV2Emitter_getInstance(), element_3.pp_1);
|
|
1558
|
+
var tmp4_format = emitFormat(element_3.pp_1);
|
|
1559
|
+
var tmp5_pattern = emitPattern(OpenAPIV2Emitter_getInstance(), element_3.pp_1);
|
|
1560
|
+
var tmp_8 = element_3.pp_1;
|
|
1561
1561
|
var tmp0_safe_receiver_4 = tmp_8 instanceof Iterable ? tmp_8 : null;
|
|
1562
|
-
var tmp1_safe_receiver_0 = tmp0_safe_receiver_4 == null ? null : tmp0_safe_receiver_4.
|
|
1562
|
+
var tmp1_safe_receiver_0 = tmp0_safe_receiver_4 == null ? null : tmp0_safe_receiver_4.yp_1;
|
|
1563
1563
|
var tmp6_items = tmp1_safe_receiver_0 == null ? null : toSchemaOrReference(OpenAPIV2Emitter_getInstance(), tmp1_safe_receiver_0);
|
|
1564
1564
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1565
1565
|
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));
|
|
1566
|
-
destination_6.v2(pair.
|
|
1566
|
+
destination_6.v2(pair.ff_1, pair.gf_1);
|
|
1567
1567
|
}
|
|
1568
|
-
var tmp1_safe_receiver_1 = element_2.
|
|
1568
|
+
var tmp1_safe_receiver_1 = element_2.tr_1;
|
|
1569
1569
|
var tmp_9;
|
|
1570
1570
|
if (tmp1_safe_receiver_1 == null) {
|
|
1571
1571
|
tmp_9 = null;
|
|
1572
1572
|
} else {
|
|
1573
1573
|
// Inline function 'kotlin.takeIf' call
|
|
1574
1574
|
var tmp_10;
|
|
1575
|
-
var tmp_11 = tmp1_safe_receiver_1.
|
|
1575
|
+
var tmp_11 = tmp1_safe_receiver_1.qr_1;
|
|
1576
1576
|
if (!(tmp_11 instanceof Unit)) {
|
|
1577
1577
|
tmp_10 = tmp1_safe_receiver_1;
|
|
1578
1578
|
} else {
|
|
@@ -1586,10 +1586,10 @@ function emit_0($this, $receiver) {
|
|
|
1586
1586
|
tmp_12 = null;
|
|
1587
1587
|
} else {
|
|
1588
1588
|
// Inline function 'kotlin.let' call
|
|
1589
|
-
var ref = tmp2_safe_receiver.
|
|
1589
|
+
var ref = tmp2_safe_receiver.qr_1;
|
|
1590
1590
|
var tmp_13;
|
|
1591
1591
|
if (ref instanceof Iterable) {
|
|
1592
|
-
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.
|
|
1592
|
+
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.yp_1));
|
|
1593
1593
|
} else {
|
|
1594
1594
|
tmp_13 = toSchemaOrReference(OpenAPIV2Emitter_getInstance(), ref);
|
|
1595
1595
|
}
|
|
@@ -1598,7 +1598,7 @@ function emit_0($this, $receiver) {
|
|
|
1598
1598
|
var tmp5_schema = tmp_12;
|
|
1599
1599
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1600
1600
|
var pair_0 = to(new StatusCode(tmp_6), new OpenAPIV20Response(tmp5_schema, VOID, tmp3_description_0, destination_6));
|
|
1601
|
-
destination_5.v2(pair_0.
|
|
1601
|
+
destination_5.v2(pair_0.ff_1, pair_0.gf_1);
|
|
1602
1602
|
}
|
|
1603
1603
|
return new OpenAPIV20Operation(tmp4_consumes, tmp5_produces, tmp6_parameters, VOID, destination_5, VOID, VOID, VOID, tmp3_description, VOID, tmp2_operationId);
|
|
1604
1604
|
}
|
|
@@ -1606,11 +1606,11 @@ function emitSegment($this, $receiver) {
|
|
|
1606
1606
|
return '/' + joinToString($receiver, '/', VOID, VOID, VOID, VOID, OpenAPIV2Emitter$emitSegment$lambda);
|
|
1607
1607
|
}
|
|
1608
1608
|
function emitParameter($this, $receiver, location) {
|
|
1609
|
-
var tmp0_name = $receiver.
|
|
1610
|
-
var tmp1_type = emitType_0($this, $receiver.
|
|
1611
|
-
var tmp2_format = emitFormat($receiver.
|
|
1612
|
-
var tmp3_pattern = emitPattern($this, $receiver.
|
|
1613
|
-
var ref = $receiver.
|
|
1609
|
+
var tmp0_name = $receiver.op_1.o1();
|
|
1610
|
+
var tmp1_type = emitType_0($this, $receiver.pp_1);
|
|
1611
|
+
var tmp2_format = emitFormat($receiver.pp_1);
|
|
1612
|
+
var tmp3_pattern = emitPattern($this, $receiver.pp_1);
|
|
1613
|
+
var ref = $receiver.pp_1;
|
|
1614
1614
|
var tmp;
|
|
1615
1615
|
if (ref instanceof Iterable) {
|
|
1616
1616
|
var emit = toSchemaOrReference($this, ref);
|
|
@@ -1619,7 +1619,7 @@ function emitParameter($this, $receiver, location) {
|
|
|
1619
1619
|
tmp_0 = emit;
|
|
1620
1620
|
} else {
|
|
1621
1621
|
if (emit instanceof OpenAPIV20Schema) {
|
|
1622
|
-
tmp_0 = emit.
|
|
1622
|
+
tmp_0 = emit.g37_1;
|
|
1623
1623
|
} else {
|
|
1624
1624
|
noWhenBranchMatchedException();
|
|
1625
1625
|
}
|
|
@@ -1629,23 +1629,23 @@ function emitParameter($this, $receiver, location) {
|
|
|
1629
1629
|
tmp = null;
|
|
1630
1630
|
}
|
|
1631
1631
|
var tmp4_items = tmp;
|
|
1632
|
-
var tmp5_required = !$receiver.
|
|
1633
|
-
var tmp6_description = findDescription($receiver.
|
|
1632
|
+
var tmp5_required = !$receiver.pp_1.ot();
|
|
1633
|
+
var tmp6_description = findDescription($receiver.np_1);
|
|
1634
1634
|
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);
|
|
1635
1635
|
}
|
|
1636
1636
|
function toSchemaOrReference($this, $receiver) {
|
|
1637
1637
|
var tmp;
|
|
1638
1638
|
if ($receiver instanceof Dict) {
|
|
1639
|
-
tmp = new OpenAPIV20Schema(VOID, OpenAPIV20Type_OBJECT_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference($this, $receiver.
|
|
1639
|
+
tmp = new OpenAPIV20Schema(VOID, OpenAPIV20Type_OBJECT_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference($this, $receiver.bq_1));
|
|
1640
1640
|
} else {
|
|
1641
1641
|
if ($receiver instanceof Iterable) {
|
|
1642
|
-
tmp = new OpenAPIV20Schema(VOID, OpenAPIV20Type_ARRAY_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference($this, $receiver.
|
|
1642
|
+
tmp = new OpenAPIV20Schema(VOID, OpenAPIV20Type_ARRAY_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference($this, $receiver.yp_1));
|
|
1643
1643
|
} else {
|
|
1644
1644
|
if ($receiver instanceof Custom) {
|
|
1645
|
-
tmp = new OpenAPIV20Reference(_Ref___init__impl__7qfl46('#/definitions/' + $receiver.
|
|
1645
|
+
tmp = new OpenAPIV20Reference(_Ref___init__impl__7qfl46('#/definitions/' + $receiver.r18_1));
|
|
1646
1646
|
} else {
|
|
1647
1647
|
if ($receiver instanceof Primitive) {
|
|
1648
|
-
tmp = new OpenAPIV20Schema(VOID, emitType($this, $receiver.
|
|
1648
|
+
tmp = new OpenAPIV20Schema(VOID, emitType($this, $receiver.t18_1), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitFormat($receiver), VOID, VOID, VOID, VOID, VOID, VOID, emitPattern($this, $receiver));
|
|
1649
1649
|
} else {
|
|
1650
1650
|
if ($receiver instanceof Any) {
|
|
1651
1651
|
// Inline function 'kotlin.error' call
|
|
@@ -1700,7 +1700,7 @@ function emitType_0($this, $receiver) {
|
|
|
1700
1700
|
tmp = OpenAPIV20Type_ARRAY_getInstance();
|
|
1701
1701
|
} else {
|
|
1702
1702
|
if ($receiver instanceof Primitive) {
|
|
1703
|
-
tmp = emitType($this, $receiver.
|
|
1703
|
+
tmp = emitType($this, $receiver.t18_1);
|
|
1704
1704
|
} else {
|
|
1705
1705
|
if ($receiver instanceof Custom) {
|
|
1706
1706
|
tmp = OpenAPIV20Type_OBJECT_getInstance();
|
|
@@ -1723,10 +1723,10 @@ function emitType_0($this, $receiver) {
|
|
|
1723
1723
|
function emitPattern($this, $receiver) {
|
|
1724
1724
|
var tmp;
|
|
1725
1725
|
if ($receiver instanceof Primitive) {
|
|
1726
|
-
var t = $receiver.
|
|
1726
|
+
var t = $receiver.t18_1;
|
|
1727
1727
|
var tmp_0;
|
|
1728
1728
|
if (t instanceof String_0) {
|
|
1729
|
-
var p = t.
|
|
1729
|
+
var p = t.e19_1;
|
|
1730
1730
|
var tmp_1;
|
|
1731
1731
|
var tmp_2 = p;
|
|
1732
1732
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2))instanceof RegExp_0) {
|
|
@@ -1747,16 +1747,16 @@ function emitPattern($this, $receiver) {
|
|
|
1747
1747
|
function emitMinimum($this, $receiver) {
|
|
1748
1748
|
var tmp;
|
|
1749
1749
|
if ($receiver instanceof Primitive) {
|
|
1750
|
-
var t = $receiver.
|
|
1750
|
+
var t = $receiver.t18_1;
|
|
1751
1751
|
var tmp_0;
|
|
1752
1752
|
if (t instanceof Number_0) {
|
|
1753
|
-
var tmp1_safe_receiver = t.
|
|
1754
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1753
|
+
var tmp1_safe_receiver = t.x18_1;
|
|
1754
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.z18_1;
|
|
1755
1755
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
1756
1756
|
} else {
|
|
1757
1757
|
if (t instanceof Integer) {
|
|
1758
|
-
var tmp3_safe_receiver = t.
|
|
1759
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
1758
|
+
var tmp3_safe_receiver = t.c19_1;
|
|
1759
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.z18_1;
|
|
1760
1760
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
1761
1761
|
} else {
|
|
1762
1762
|
tmp_0 = null;
|
|
@@ -1771,16 +1771,16 @@ function emitMinimum($this, $receiver) {
|
|
|
1771
1771
|
function emitMaximum($this, $receiver) {
|
|
1772
1772
|
var tmp;
|
|
1773
1773
|
if ($receiver instanceof Primitive) {
|
|
1774
|
-
var t = $receiver.
|
|
1774
|
+
var t = $receiver.t18_1;
|
|
1775
1775
|
var tmp_0;
|
|
1776
1776
|
if (t instanceof Number_0) {
|
|
1777
|
-
var tmp1_safe_receiver = t.
|
|
1778
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1777
|
+
var tmp1_safe_receiver = t.x18_1;
|
|
1778
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.a19_1;
|
|
1779
1779
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
1780
1780
|
} else {
|
|
1781
1781
|
if (t instanceof Integer) {
|
|
1782
|
-
var tmp3_safe_receiver = t.
|
|
1783
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
1782
|
+
var tmp3_safe_receiver = t.c19_1;
|
|
1783
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.a19_1;
|
|
1784
1784
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
1785
1785
|
} else {
|
|
1786
1786
|
tmp_0 = null;
|
|
@@ -1795,10 +1795,10 @@ function emitMaximum($this, $receiver) {
|
|
|
1795
1795
|
function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
1796
1796
|
var tmp;
|
|
1797
1797
|
if (it instanceof Param) {
|
|
1798
|
-
tmp = '{' + it.
|
|
1798
|
+
tmp = '{' + it.mr_1.o1() + '}';
|
|
1799
1799
|
} else {
|
|
1800
1800
|
if (it instanceof Literal) {
|
|
1801
|
-
tmp = it.
|
|
1801
|
+
tmp = it.a1a_1;
|
|
1802
1802
|
} else {
|
|
1803
1803
|
noWhenBranchMatchedException();
|
|
1804
1804
|
}
|
|
@@ -1807,14 +1807,14 @@ function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
|
1807
1807
|
}
|
|
1808
1808
|
function OpenAPIV2Emitter() {
|
|
1809
1809
|
OpenAPIV2Emitter_instance = this;
|
|
1810
|
-
this.
|
|
1811
|
-
this.
|
|
1810
|
+
this.s48_1 = FileExtension_JSON_getInstance();
|
|
1811
|
+
this.t48_1 = true;
|
|
1812
1812
|
}
|
|
1813
|
-
protoOf(OpenAPIV2Emitter).
|
|
1814
|
-
return this.
|
|
1813
|
+
protoOf(OpenAPIV2Emitter).wp = function () {
|
|
1814
|
+
return this.s48_1;
|
|
1815
1815
|
};
|
|
1816
|
-
protoOf(OpenAPIV2Emitter).
|
|
1817
|
-
return this.
|
|
1816
|
+
protoOf(OpenAPIV2Emitter).vp = function () {
|
|
1817
|
+
return this.t48_1;
|
|
1818
1818
|
};
|
|
1819
1819
|
protoOf(OpenAPIV2Emitter).to = function (ast, logger) {
|
|
1820
1820
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
@@ -1826,27 +1826,27 @@ protoOf(OpenAPIV2Emitter).to = function (ast, logger) {
|
|
|
1826
1826
|
var _iterator__ex2g4s = tmp0.t();
|
|
1827
1827
|
while (_iterator__ex2g4s.u()) {
|
|
1828
1828
|
var element = _iterator__ex2g4s.v();
|
|
1829
|
-
logger.
|
|
1829
|
+
logger.as('Combining Nodes from ' + element.fp_1.io_1 + ' ');
|
|
1830
1830
|
var list = new NonEmptyList(element.gp_1);
|
|
1831
1831
|
addAll(destination, list);
|
|
1832
1832
|
}
|
|
1833
1833
|
// Inline function 'kotlin.let' call
|
|
1834
1834
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
1835
|
-
var tmp = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().
|
|
1835
|
+
var tmp = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().s48_1.xr_1;
|
|
1836
1836
|
var tmp0_0 = get_json();
|
|
1837
1837
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
1838
|
-
var value = OpenAPIV2Emitter_getInstance().
|
|
1838
|
+
var value = OpenAPIV2Emitter_getInstance().u48(it, logger);
|
|
1839
1839
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
1840
|
-
var this_1 = tmp0_0.
|
|
1840
|
+
var this_1 = tmp0_0.b26();
|
|
1841
1841
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1842
1842
|
var this_2 = serializer(this_1, createKType(getKClass(OpenAPIV2Model), arrayOf([]), false));
|
|
1843
1843
|
var tmp$ret$7 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
1844
|
-
var tmp$ret$6 = tmp0_0.
|
|
1844
|
+
var tmp$ret$6 = tmp0_0.g2n(tmp$ret$7, value);
|
|
1845
1845
|
// Inline function 'kotlin.let' call
|
|
1846
1846
|
var it_0 = new Emitted(tmp, tmp$ret$6);
|
|
1847
1847
|
return nonEmptyListOf(it_0, []);
|
|
1848
1848
|
};
|
|
1849
|
-
protoOf(OpenAPIV2Emitter).
|
|
1849
|
+
protoOf(OpenAPIV2Emitter).u48 = function (statements, logger) {
|
|
1850
1850
|
var tmp0_info = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, VOID, '0.0.0');
|
|
1851
1851
|
var tmp1_consumes = listOf('application/json');
|
|
1852
1852
|
var tmp2_produces = listOf('application/json');
|
|
@@ -1862,15 +1862,15 @@ function OpenAPIV2Emitter_getInstance() {
|
|
|
1862
1862
|
}
|
|
1863
1863
|
function OpenAPIV2Parser$parse$lambda($strict) {
|
|
1864
1864
|
return function (it) {
|
|
1865
|
-
return new NonEmptyList(OpenAPIV2Parser_instance.
|
|
1865
|
+
return new NonEmptyList(OpenAPIV2Parser_instance.v48((new OpenAPIV2(jsonDefault($strict))).e34(it)));
|
|
1866
1866
|
};
|
|
1867
1867
|
}
|
|
1868
1868
|
function OpenAPIV2Parser() {
|
|
1869
1869
|
}
|
|
1870
|
-
protoOf(OpenAPIV2Parser).
|
|
1870
|
+
protoOf(OpenAPIV2Parser).w48 = function (moduleContent, strict) {
|
|
1871
1871
|
return parseOpenApi(moduleContent, OpenAPIV2Parser$parse$lambda(strict));
|
|
1872
1872
|
};
|
|
1873
|
-
protoOf(OpenAPIV2Parser).
|
|
1873
|
+
protoOf(OpenAPIV2Parser).v48 = function (_this__u8e3s4) {
|
|
1874
1874
|
// Inline function 'kotlin.collections.reduce' call
|
|
1875
1875
|
var iterator = listOf_0([parseEndpoints(_this__u8e3s4), parseParameters(_this__u8e3s4), parseRequestBody(_this__u8e3s4), parseResponseBody(_this__u8e3s4), parseDefinitions(_this__u8e3s4)]).t();
|
|
1876
1876
|
if (!iterator.u())
|
|
@@ -1906,7 +1906,7 @@ function OpenAPIV2Parser_getInstance() {
|
|
|
1906
1906
|
}
|
|
1907
1907
|
function parseEndpoints(_this__u8e3s4) {
|
|
1908
1908
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1909
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1909
|
+
var tmp0_elvis_lhs = _this__u8e3s4.k34();
|
|
1910
1910
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1911
1911
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1912
1912
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -1916,7 +1916,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1916
1916
|
while (_iterator__ex2g4s.u()) {
|
|
1917
1917
|
var element = _iterator__ex2g4s.v();
|
|
1918
1918
|
// Inline function 'kotlin.collections.component1' call
|
|
1919
|
-
var path = element.n1().
|
|
1919
|
+
var path = element.n1().k31_1;
|
|
1920
1920
|
// Inline function 'kotlin.collections.component2' call
|
|
1921
1921
|
var pathItem = element.o1();
|
|
1922
1922
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -1931,7 +1931,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1931
1931
|
var method = element_0.n1();
|
|
1932
1932
|
// Inline function 'kotlin.collections.component2' call
|
|
1933
1933
|
var operation = element_0.o1();
|
|
1934
|
-
var parameters = plus_0(resolveParameters(_this__u8e3s4, pathItem.
|
|
1934
|
+
var parameters = plus_0(resolveParameters(_this__u8e3s4, pathItem.l1g()), resolveParameters(_this__u8e3s4, operation.l1g()));
|
|
1935
1935
|
var segments = toSegments(path, parameters);
|
|
1936
1936
|
var tmp0_elvis_lhs_0 = toName(operation);
|
|
1937
1937
|
var name = tmp0_elvis_lhs_0 == null ? toName_0(path) + method.d3_1 : tmp0_elvis_lhs_0;
|
|
@@ -1978,9 +1978,9 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1978
1978
|
// Inline function 'kotlin.let' call
|
|
1979
1979
|
var headers = new Shape(destination_4);
|
|
1980
1980
|
var tmp1_safe_receiver = operation instanceof OpenAPIV20Operation ? operation : null;
|
|
1981
|
-
var operationConsumes = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1981
|
+
var operationConsumes = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.c39_1;
|
|
1982
1982
|
var tmp2_safe_receiver = operation instanceof OpenAPIV20Operation ? operation : null;
|
|
1983
|
-
var operationProduces = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
1983
|
+
var operationProduces = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.d39_1;
|
|
1984
1984
|
// Inline function 'kotlin.collections.filter' call
|
|
1985
1985
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1986
1986
|
var destination_5 = ArrayList_init_$Create$_0();
|
|
@@ -1998,7 +1998,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1998
1998
|
while (_iterator__ex2g4s_6.u()) {
|
|
1999
1999
|
var element_4 = _iterator__ex2g4s_6.v();
|
|
2000
2000
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2001
|
-
var tmp0_elvis_lhs_1 = _this__u8e3s4.
|
|
2001
|
+
var tmp0_elvis_lhs_1 = _this__u8e3s4.h34();
|
|
2002
2002
|
var tmp = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
2003
2003
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2004
2004
|
var tmp$ret$36 = operationConsumes == null ? emptyList() : operationConsumes;
|
|
@@ -2018,7 +2018,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2018
2018
|
while (_iterator__ex2g4s_7.u()) {
|
|
2019
2019
|
var item_1 = _iterator__ex2g4s_7.v();
|
|
2020
2020
|
var isNullable = false;
|
|
2021
|
-
var schema = element_4.
|
|
2021
|
+
var schema = element_4.w38_1;
|
|
2022
2022
|
var tmp_1;
|
|
2023
2023
|
if (!(schema == null) ? isInterface(schema, Reference) : false) {
|
|
2024
2024
|
tmp_1 = toReference(_this__u8e3s4, schema, isNullable);
|
|
@@ -2050,7 +2050,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2050
2050
|
}
|
|
2051
2051
|
var requests = tmp_2;
|
|
2052
2052
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2053
|
-
var tmp0_elvis_lhs_2 = operation.
|
|
2053
|
+
var tmp0_elvis_lhs_2 = operation.h1f();
|
|
2054
2054
|
// Inline function 'kotlin.collections.mapValues' call
|
|
2055
2055
|
var this_2 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
2056
2056
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
@@ -2071,11 +2071,11 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2071
2071
|
while (_iterator__ex2g4s_9.u()) {
|
|
2072
2072
|
var element_6 = _iterator__ex2g4s_9.v();
|
|
2073
2073
|
// Inline function 'kotlin.collections.component1' call
|
|
2074
|
-
var status = element_6.n1().
|
|
2074
|
+
var status = element_6.n1().o31_1;
|
|
2075
2075
|
// Inline function 'kotlin.collections.component2' call
|
|
2076
2076
|
var res = element_6.o1();
|
|
2077
2077
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2078
|
-
var tmp0_elvis_lhs_3 = _this__u8e3s4.
|
|
2078
|
+
var tmp0_elvis_lhs_3 = _this__u8e3s4.i34();
|
|
2079
2079
|
var tmp_4 = tmp0_elvis_lhs_3 == null ? emptyList() : tmp0_elvis_lhs_3;
|
|
2080
2080
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2081
2081
|
var tmp$ret$58 = operationProduces == null ? emptyList() : operationProduces;
|
|
@@ -2094,9 +2094,9 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2094
2094
|
var _iterator__ex2g4s_10 = this_4.t();
|
|
2095
2095
|
while (_iterator__ex2g4s_10.u()) {
|
|
2096
2096
|
var item_2 = _iterator__ex2g4s_10.v();
|
|
2097
|
-
var tmp3_annotations = toDescriptionAnnotationList(res.
|
|
2097
|
+
var tmp3_annotations = toDescriptionAnnotationList(res.u31());
|
|
2098
2098
|
var tmp4_status = _StatusCode___get_value__impl__we50mu(status);
|
|
2099
|
-
var tmp0_safe_receiver = res.
|
|
2099
|
+
var tmp0_safe_receiver = res.f1f();
|
|
2100
2100
|
var tmp_6;
|
|
2101
2101
|
if (tmp0_safe_receiver == null) {
|
|
2102
2102
|
tmp_6 = null;
|
|
@@ -2123,7 +2123,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2123
2123
|
var p0 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
2124
2124
|
var tmp5_headers = new Shape(p0);
|
|
2125
2125
|
var tmp1_safe_receiver_0 = res instanceof OpenAPIV20Response ? res : null;
|
|
2126
|
-
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
2126
|
+
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.y39_1;
|
|
2127
2127
|
var tmp_7;
|
|
2128
2128
|
if (tmp2_safe_receiver_0 == null) {
|
|
2129
2129
|
tmp_7 = null;
|
|
@@ -2154,13 +2154,13 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2154
2154
|
var _iterator__ex2g4s_12 = destination_9.t();
|
|
2155
2155
|
while (_iterator__ex2g4s_12.u()) {
|
|
2156
2156
|
var e = _iterator__ex2g4s_12.v();
|
|
2157
|
-
var key = to(e.
|
|
2157
|
+
var key = to(e.rr_1, e.tr_1);
|
|
2158
2158
|
if (set.x(key)) {
|
|
2159
2159
|
list_1.x(e);
|
|
2160
2160
|
}
|
|
2161
2161
|
}
|
|
2162
2162
|
var responses = list_1;
|
|
2163
|
-
var list_2 = listOf(new Endpoint(null, toDescriptionAnnotationList(operation.
|
|
2163
|
+
var list_2 = listOf(new Endpoint(null, toDescriptionAnnotationList(operation.u31()), new DefinitionIdentifier(sanitize(name)), method, segments, query, headers, requests, responses));
|
|
2164
2164
|
addAll(destination_0, list_2);
|
|
2165
2165
|
}
|
|
2166
2166
|
var list_3 = destination_0;
|
|
@@ -2179,7 +2179,7 @@ function parseResponseBody(_this__u8e3s4) {
|
|
|
2179
2179
|
}
|
|
2180
2180
|
function parseDefinitions(_this__u8e3s4) {
|
|
2181
2181
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2182
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2182
|
+
var tmp0_elvis_lhs = _this__u8e3s4.j34();
|
|
2183
2183
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2184
2184
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2185
2185
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -2215,7 +2215,7 @@ function parseDefinitions(_this__u8e3s4) {
|
|
|
2215
2215
|
var _iterator__ex2g4s_0 = destination.t();
|
|
2216
2216
|
while (_iterator__ex2g4s_0.u()) {
|
|
2217
2217
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
2218
|
-
var tmp0_subject = element_0.
|
|
2218
|
+
var tmp0_subject = element_0.gf_1.a32();
|
|
2219
2219
|
var tmp_0;
|
|
2220
2220
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
2221
2221
|
tmp_0 = true;
|
|
@@ -2244,7 +2244,7 @@ function parseDefinitions(_this__u8e3s4) {
|
|
|
2244
2244
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
2245
2245
|
while (_iterator__ex2g4s_1.u()) {
|
|
2246
2246
|
var element_1 = _iterator__ex2g4s_1.v();
|
|
2247
|
-
var list = flatten(_this__u8e3s4, element_1.
|
|
2247
|
+
var list = flatten(_this__u8e3s4, element_1.gf_1, className([element_1.ff_1]));
|
|
2248
2248
|
addAll(destination_1, list);
|
|
2249
2249
|
}
|
|
2250
2250
|
return destination_1;
|
|
@@ -2313,7 +2313,7 @@ function toSegments(_this__u8e3s4, parameters) {
|
|
|
2313
2313
|
var _iterator__ex2g4s_0 = parameters.t();
|
|
2314
2314
|
while (_iterator__ex2g4s_0.u()) {
|
|
2315
2315
|
var element = _iterator__ex2g4s_0.v();
|
|
2316
|
-
if (element.
|
|
2316
|
+
if (element.x38_1 === param) {
|
|
2317
2317
|
tmp$ret$5 = element;
|
|
2318
2318
|
break $l$block;
|
|
2319
2319
|
}
|
|
@@ -2356,18 +2356,18 @@ function toSegments(_this__u8e3s4, parameters) {
|
|
|
2356
2356
|
return destination;
|
|
2357
2357
|
}
|
|
2358
2358
|
function get_location(_this__u8e3s4) {
|
|
2359
|
-
return _this__u8e3s4.
|
|
2359
|
+
return _this__u8e3s4.v38_1;
|
|
2360
2360
|
}
|
|
2361
2361
|
function toField(_this__u8e3s4, parameter, name) {
|
|
2362
2362
|
// Inline function 'kotlin.let' call
|
|
2363
2363
|
var schema = resolveParameter(_this__u8e3s4, parameter);
|
|
2364
|
-
var tmp0_elvis_lhs = parameter.
|
|
2364
|
+
var tmp0_elvis_lhs = parameter.c38_1;
|
|
2365
2365
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
2366
2366
|
var tmp;
|
|
2367
|
-
if (!(parameter.
|
|
2368
|
-
tmp = new Custom(sanitize(className([name, 'Parameter', schema.
|
|
2367
|
+
if (!(parameter.t38_1 == null)) {
|
|
2368
|
+
tmp = new Custom(sanitize(className([name, 'Parameter', schema.x38_1])), isNullable);
|
|
2369
2369
|
} else {
|
|
2370
|
-
var tmp1_subject = schema.
|
|
2370
|
+
var tmp1_subject = schema.d38_1;
|
|
2371
2371
|
var tmp_0;
|
|
2372
2372
|
switch (tmp1_subject == null ? -1 : tmp1_subject.e3_1) {
|
|
2373
2373
|
case 0:
|
|
@@ -2380,7 +2380,7 @@ function toField(_this__u8e3s4, parameter, name) {
|
|
|
2380
2380
|
tmp_0 = new Primitive(primitive, isNullable);
|
|
2381
2381
|
break;
|
|
2382
2382
|
case 4:
|
|
2383
|
-
var tmp2_safe_receiver = schema.
|
|
2383
|
+
var tmp2_safe_receiver = schema.e38_1;
|
|
2384
2384
|
var tmp_1;
|
|
2385
2385
|
if (tmp2_safe_receiver == null) {
|
|
2386
2386
|
tmp_1 = null;
|
|
@@ -2434,17 +2434,17 @@ function toField(_this__u8e3s4, parameter, name) {
|
|
|
2434
2434
|
}
|
|
2435
2435
|
// Inline function 'kotlin.let' call
|
|
2436
2436
|
var it = tmp;
|
|
2437
|
-
var tmp0_identifier = new FieldIdentifier(parameter.
|
|
2438
|
-
var tmp1_annotations = toDescriptionAnnotationList(parameter.
|
|
2437
|
+
var tmp0_identifier = new FieldIdentifier(parameter.x38_1);
|
|
2438
|
+
var tmp1_annotations = toDescriptionAnnotationList(parameter.b38_1);
|
|
2439
2439
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
2440
2440
|
}
|
|
2441
2441
|
function toReference(_this__u8e3s4, reference, isNullable) {
|
|
2442
2442
|
var _destruct__k2r9zo = resolveSchemaRef(_this__u8e3s4, reference);
|
|
2443
|
-
var referencingObject = _destruct__k2r9zo.
|
|
2444
|
-
var schema = _destruct__k2r9zo.
|
|
2443
|
+
var referencingObject = _destruct__k2r9zo.ze();
|
|
2444
|
+
var schema = _destruct__k2r9zo.af();
|
|
2445
2445
|
var tmp;
|
|
2446
|
-
if (exists(schema.
|
|
2447
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2446
|
+
if (exists(schema.a32())) {
|
|
2447
|
+
var additionalProperties = ensureNotNull(schema.a32());
|
|
2448
2448
|
var tmp_0;
|
|
2449
2449
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
2450
2450
|
tmp_0 = new Dict(new Any(false), isNullable);
|
|
@@ -2460,7 +2460,7 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2460
2460
|
}
|
|
2461
2461
|
}
|
|
2462
2462
|
tmp = tmp_0;
|
|
2463
|
-
} else if (!(schema.
|
|
2463
|
+
} else if (!(schema.w31() == null)) {
|
|
2464
2464
|
tmp = new Custom(sanitize(className([getReference(referencingObject)])), isNullable);
|
|
2465
2465
|
} else if (isPrimitive(get_primitiveType(schema))) {
|
|
2466
2466
|
tmp = new Primitive(toPrimitive_0(schema), isNullable);
|
|
@@ -2468,7 +2468,7 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2468
2468
|
var tmp0_subject = get_primitiveType(schema);
|
|
2469
2469
|
var tmp_1;
|
|
2470
2470
|
if ((tmp0_subject == null ? -1 : tmp0_subject.e3_1) === 4) {
|
|
2471
|
-
var items = schema.
|
|
2471
|
+
var items = schema.x31();
|
|
2472
2472
|
var tmp_2;
|
|
2473
2473
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
2474
2474
|
tmp_2 = toIterable(toReference(_this__u8e3s4, items, false), isNullable);
|
|
@@ -2478,7 +2478,7 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2478
2478
|
} else {
|
|
2479
2479
|
if (items == null) {
|
|
2480
2480
|
// Inline function 'kotlin.error' call
|
|
2481
|
-
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.
|
|
2481
|
+
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.t31());
|
|
2482
2482
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2483
2483
|
} else {
|
|
2484
2484
|
noWhenBranchMatchedException();
|
|
@@ -2501,20 +2501,20 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2501
2501
|
var tmp_3;
|
|
2502
2502
|
var tmp_4;
|
|
2503
2503
|
var tmp_5;
|
|
2504
|
-
var tmp0_safe_receiver = schema.
|
|
2504
|
+
var tmp0_safe_receiver = schema.y31();
|
|
2505
2505
|
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b1()) === 1) {
|
|
2506
|
-
var tmp_6 = first(ensureNotNull(schema.
|
|
2506
|
+
var tmp_6 = first(ensureNotNull(schema.y31()));
|
|
2507
2507
|
tmp_5 = isInterface(tmp_6, Reference);
|
|
2508
2508
|
} else {
|
|
2509
2509
|
tmp_5 = false;
|
|
2510
2510
|
}
|
|
2511
2511
|
if (tmp_5) {
|
|
2512
|
-
tmp_4 = schema.
|
|
2512
|
+
tmp_4 = schema.z31() == null;
|
|
2513
2513
|
} else {
|
|
2514
2514
|
tmp_4 = false;
|
|
2515
2515
|
}
|
|
2516
2516
|
if (tmp_4) {
|
|
2517
|
-
tmp_3 = schema.
|
|
2517
|
+
tmp_3 = schema.w31() == null;
|
|
2518
2518
|
} else {
|
|
2519
2519
|
tmp_3 = false;
|
|
2520
2520
|
}
|
|
@@ -2524,21 +2524,21 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2524
2524
|
tmp_2 = false;
|
|
2525
2525
|
}
|
|
2526
2526
|
if (tmp_2) {
|
|
2527
|
-
tmp_1 = schema.
|
|
2527
|
+
tmp_1 = schema.x31() == null;
|
|
2528
2528
|
} else {
|
|
2529
2529
|
tmp_1 = false;
|
|
2530
2530
|
}
|
|
2531
2531
|
if (tmp_1) {
|
|
2532
|
-
tmp_0 = schema.
|
|
2532
|
+
tmp_0 = schema.a32() == null;
|
|
2533
2533
|
} else {
|
|
2534
2534
|
tmp_0 = false;
|
|
2535
2535
|
}
|
|
2536
2536
|
if (tmp_0) {
|
|
2537
|
-
var tmp_7 = first(ensureNotNull(schema.
|
|
2537
|
+
var tmp_7 = first(ensureNotNull(schema.y31()));
|
|
2538
2538
|
tmp = toReference(_this__u8e3s4, isInterface(tmp_7, Reference) ? tmp_7 : THROW_CCE(), isNullable);
|
|
2539
2539
|
} else {
|
|
2540
|
-
if (!(schema.
|
|
2541
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2540
|
+
if (!(schema.a32() == null)) {
|
|
2541
|
+
var additionalProperties = ensureNotNull(schema.a32());
|
|
2542
2542
|
var tmp_8;
|
|
2543
2543
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
2544
2544
|
tmp_8 = new Dict(new Any(false), isNullable);
|
|
@@ -2549,7 +2549,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2549
2549
|
if (isInterface(additionalProperties, Schema)) {
|
|
2550
2550
|
// Inline function 'kotlin.takeIf' call
|
|
2551
2551
|
var tmp_9;
|
|
2552
|
-
if (isPrimitive(get_primitiveType(additionalProperties)) || !(additionalProperties.
|
|
2552
|
+
if (isPrimitive(get_primitiveType(additionalProperties)) || !(additionalProperties.z31() == null)) {
|
|
2553
2553
|
tmp_9 = additionalProperties;
|
|
2554
2554
|
} else {
|
|
2555
2555
|
tmp_9 = null;
|
|
@@ -2571,9 +2571,9 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2571
2571
|
}
|
|
2572
2572
|
tmp = tmp_8;
|
|
2573
2573
|
} else {
|
|
2574
|
-
if (!(schema.
|
|
2574
|
+
if (!(schema.w31() == null)) {
|
|
2575
2575
|
var tmp_11;
|
|
2576
|
-
if (!(schema.
|
|
2576
|
+
if (!(schema.a32() == null)) {
|
|
2577
2577
|
tmp_11 = new Dict(new Custom(sanitize(name), false), isNullable);
|
|
2578
2578
|
} else {
|
|
2579
2579
|
tmp_11 = new Custom(sanitize(name), isNullable);
|
|
@@ -2588,7 +2588,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2588
2588
|
case 1:
|
|
2589
2589
|
case 3:
|
|
2590
2590
|
var tmp_13;
|
|
2591
|
-
if (!(schema.
|
|
2591
|
+
if (!(schema.a32() == null)) {
|
|
2592
2592
|
tmp_13 = new Dict(new Primitive(toPrimitive_0(schema), false), isNullable);
|
|
2593
2593
|
} else {
|
|
2594
2594
|
tmp_13 = new Primitive(toPrimitive_0(schema), isNullable);
|
|
@@ -2599,17 +2599,17 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2599
2599
|
case -1:
|
|
2600
2600
|
case 5:
|
|
2601
2601
|
var tmp_14;
|
|
2602
|
-
var tmp_15 = schema.
|
|
2602
|
+
var tmp_15 = schema.a32();
|
|
2603
2603
|
if (!(tmp_15 == null) ? isInterface(tmp_15, BooleanValue) : false) {
|
|
2604
2604
|
var tmp_16;
|
|
2605
|
-
if (!(schema.
|
|
2605
|
+
if (!(schema.a32() == null)) {
|
|
2606
2606
|
tmp_16 = new Dict(new Any(isNullable), false);
|
|
2607
2607
|
} else {
|
|
2608
2608
|
tmp_16 = new Any(isNullable);
|
|
2609
2609
|
}
|
|
2610
2610
|
tmp_14 = tmp_16;
|
|
2611
2611
|
} else {
|
|
2612
|
-
if (!(schema.
|
|
2612
|
+
if (!(schema.a32() == null)) {
|
|
2613
2613
|
new Dict(new Custom(sanitize(name), isNullable), false);
|
|
2614
2614
|
}
|
|
2615
2615
|
tmp_14 = new Custom(sanitize(name), isNullable);
|
|
@@ -2618,7 +2618,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2618
2618
|
tmp_12 = tmp_14;
|
|
2619
2619
|
break;
|
|
2620
2620
|
case 4:
|
|
2621
|
-
var items = schema.
|
|
2621
|
+
var items = schema.x31();
|
|
2622
2622
|
var tmp_17;
|
|
2623
2623
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
2624
2624
|
tmp_17 = toIterable(toReference(_this__u8e3s4, items, false), isNullable);
|
|
@@ -2678,10 +2678,10 @@ function toField_0(_this__u8e3s4, header, identifier) {
|
|
|
2678
2678
|
}
|
|
2679
2679
|
var v20 = tmp;
|
|
2680
2680
|
var tmp5_identifier = new FieldIdentifier(identifier);
|
|
2681
|
-
var tmp6_annotations = toDescriptionAnnotationList(header.
|
|
2681
|
+
var tmp6_annotations = toDescriptionAnnotationList(header.h3a_1);
|
|
2682
2682
|
var tmp_0;
|
|
2683
|
-
if (v20.
|
|
2684
|
-
var tmp2_safe_receiver = v20.
|
|
2683
|
+
if (v20.i3a_1.e3_1 === 4) {
|
|
2684
|
+
var tmp2_safe_receiver = v20.k3a_1;
|
|
2685
2685
|
var tmp_1;
|
|
2686
2686
|
if (tmp2_safe_receiver == null) {
|
|
2687
2687
|
tmp_1 = null;
|
|
@@ -2765,17 +2765,17 @@ function resolveParameter(_this__u8e3s4, parameterOrReference) {
|
|
|
2765
2765
|
}
|
|
2766
2766
|
function get_primitiveType(_this__u8e3s4) {
|
|
2767
2767
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof OpenAPIV20Schema ? _this__u8e3s4 : null;
|
|
2768
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2768
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s36_1;
|
|
2769
2769
|
}
|
|
2770
2770
|
function flatten(_this__u8e3s4, schemaObject, name) {
|
|
2771
2771
|
var tmp;
|
|
2772
|
-
if (exists(schemaObject.
|
|
2773
|
-
var tmp0_subject = schemaObject.
|
|
2772
|
+
if (exists(schemaObject.a32())) {
|
|
2773
|
+
var tmp0_subject = schemaObject.a32();
|
|
2774
2774
|
var tmp_0;
|
|
2775
2775
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
2776
2776
|
tmp_0 = emptyList();
|
|
2777
2777
|
} else {
|
|
2778
|
-
var tmp1_safe_receiver = schemaObject.
|
|
2778
|
+
var tmp1_safe_receiver = schemaObject.a32();
|
|
2779
2779
|
var tmp_1;
|
|
2780
2780
|
if (tmp1_safe_receiver == null) {
|
|
2781
2781
|
tmp_1 = null;
|
|
@@ -2790,7 +2790,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2790
2790
|
} else {
|
|
2791
2791
|
// Inline function 'kotlin.takeIf' call
|
|
2792
2792
|
var tmp_3;
|
|
2793
|
-
if (!(tmp2_safe_receiver.
|
|
2793
|
+
if (!(tmp2_safe_receiver.z31() == null)) {
|
|
2794
2794
|
tmp_3 = tmp2_safe_receiver;
|
|
2795
2795
|
} else {
|
|
2796
2796
|
tmp_3 = null;
|
|
@@ -2809,11 +2809,11 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2809
2809
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
2810
2810
|
}
|
|
2811
2811
|
tmp = tmp_0;
|
|
2812
|
-
} else if (!(schemaObject.
|
|
2813
|
-
var tmp_5 = toDescriptionAnnotationList(schemaObject.
|
|
2812
|
+
} else if (!(schemaObject.y31() == null)) {
|
|
2813
|
+
var tmp_5 = toDescriptionAnnotationList(schemaObject.u31());
|
|
2814
2814
|
var tmp_6 = new DefinitionIdentifier(sanitize(name));
|
|
2815
2815
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2816
|
-
var tmp0_elvis_lhs = schemaObject.
|
|
2816
|
+
var tmp0_elvis_lhs = schemaObject.y31();
|
|
2817
2817
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2818
2818
|
var tmp0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2819
2819
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2826,7 +2826,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2826
2826
|
tmp_7 = toField_1(_this__u8e3s4, element, name);
|
|
2827
2827
|
} else {
|
|
2828
2828
|
if (isInterface(element, Reference)) {
|
|
2829
|
-
tmp_7 = toField_1(_this__u8e3s4, resolveSchemaRef(_this__u8e3s4, element).
|
|
2829
|
+
tmp_7 = toField_1(_this__u8e3s4, resolveSchemaRef(_this__u8e3s4, element).gf_1, getReference(element));
|
|
2830
2830
|
} else {
|
|
2831
2831
|
noWhenBranchMatchedException();
|
|
2832
2832
|
}
|
|
@@ -2840,14 +2840,14 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2840
2840
|
var _iterator__ex2g4s_0 = destination.t();
|
|
2841
2841
|
while (_iterator__ex2g4s_0.u()) {
|
|
2842
2842
|
var e = _iterator__ex2g4s_0.v();
|
|
2843
|
-
var key = e.
|
|
2843
|
+
var key = e.op_1;
|
|
2844
2844
|
if (set.x(key)) {
|
|
2845
2845
|
list_0.x(e);
|
|
2846
2846
|
}
|
|
2847
2847
|
}
|
|
2848
2848
|
var tmp_8 = listOf(new Type(null, tmp_5, tmp_6, new Shape(list_0), emptyList()));
|
|
2849
2849
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2850
|
-
var tmp0_0 = ensureNotNull(schemaObject.
|
|
2850
|
+
var tmp0_0 = ensureNotNull(schemaObject.y31());
|
|
2851
2851
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2852
2852
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
2853
2853
|
var _iterator__ex2g4s_1 = tmp0_0.t();
|
|
@@ -2859,7 +2859,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2859
2859
|
} else {
|
|
2860
2860
|
if (isInterface(element_0, Schema)) {
|
|
2861
2861
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2862
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
2862
|
+
var tmp0_elvis_lhs_0 = element_0.z31();
|
|
2863
2863
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2864
2864
|
var tmp0_1 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2865
2865
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2894,20 +2894,20 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2894
2894
|
addAll(destination_0, list_2);
|
|
2895
2895
|
}
|
|
2896
2896
|
tmp = plus_0(tmp_8, destination_0);
|
|
2897
|
-
} else if (!(schemaObject.
|
|
2897
|
+
} else if (!(schemaObject.w31() == null)) {
|
|
2898
2898
|
// Inline function 'kotlin.collections.map' call
|
|
2899
|
-
var this_0 = ensureNotNull(schemaObject.
|
|
2899
|
+
var this_0 = ensureNotNull(schemaObject.w31());
|
|
2900
2900
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2901
2901
|
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
2902
2902
|
var _iterator__ex2g4s_3 = this_0.t();
|
|
2903
2903
|
while (_iterator__ex2g4s_3.u()) {
|
|
2904
2904
|
var item = _iterator__ex2g4s_3.v();
|
|
2905
|
-
var tmp$ret$24 = item.
|
|
2905
|
+
var tmp$ret$24 = item.j1g();
|
|
2906
2906
|
destination_2.x(tmp$ret$24);
|
|
2907
2907
|
}
|
|
2908
2908
|
// Inline function 'kotlin.let' call
|
|
2909
2909
|
var it = toSet(destination_2);
|
|
2910
|
-
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.
|
|
2910
|
+
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.u31()), new DefinitionIdentifier(sanitize(name)), it));
|
|
2911
2911
|
} else {
|
|
2912
2912
|
var tmp5_subject = get_primitiveType(schemaObject);
|
|
2913
2913
|
var tmp_11;
|
|
@@ -2916,7 +2916,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2916
2916
|
case 5:
|
|
2917
2917
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2918
2918
|
|
|
2919
|
-
var tmp0_elvis_lhs_1 = schemaObject.
|
|
2919
|
+
var tmp0_elvis_lhs_1 = schemaObject.z31();
|
|
2920
2920
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2921
2921
|
|
|
2922
2922
|
var tmp0_2 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
@@ -2937,11 +2937,11 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2937
2937
|
}
|
|
2938
2938
|
|
|
2939
2939
|
var fields = destination_3;
|
|
2940
|
-
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.
|
|
2940
|
+
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.u31()), new DefinitionIdentifier(sanitize(name)), new Shape(toField_1(_this__u8e3s4, schemaObject, name)), emptyList()));
|
|
2941
2941
|
tmp_11 = plus_0(schema, fields);
|
|
2942
2942
|
break;
|
|
2943
2943
|
case 4:
|
|
2944
|
-
var it_0 = schemaObject.
|
|
2944
|
+
var it_0 = schemaObject.x31();
|
|
2945
2945
|
var tmp_12;
|
|
2946
2946
|
if (!(it_0 == null) ? isInterface(it_0, Reference) : false) {
|
|
2947
2947
|
tmp_12 = emptyList();
|
|
@@ -2968,7 +2968,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2968
2968
|
return tmp;
|
|
2969
2969
|
}
|
|
2970
2970
|
function resolveParameterObject(_this__u8e3s4, reference) {
|
|
2971
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2971
|
+
var tmp0_safe_receiver = _this__u8e3s4.l1g();
|
|
2972
2972
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s2(getReference(reference));
|
|
2973
2973
|
var tmp;
|
|
2974
2974
|
if (tmp1_safe_receiver == null) {
|
|
@@ -2981,7 +2981,7 @@ function resolveParameterObject(_this__u8e3s4, reference) {
|
|
|
2981
2981
|
var tmp_0;
|
|
2982
2982
|
if (tmp2_elvis_lhs == null) {
|
|
2983
2983
|
// Inline function 'kotlin.error' call
|
|
2984
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
2984
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.t31());
|
|
2985
2985
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2986
2986
|
} else {
|
|
2987
2987
|
tmp_0 = tmp2_elvis_lhs;
|
|
@@ -2989,17 +2989,17 @@ function resolveParameterObject(_this__u8e3s4, reference) {
|
|
|
2989
2989
|
return tmp_0;
|
|
2990
2990
|
}
|
|
2991
2991
|
function toPrimitive(_this__u8e3s4) {
|
|
2992
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2992
|
+
var tmp0_subject = _this__u8e3s4.d1g();
|
|
2993
2993
|
var tmp;
|
|
2994
2994
|
switch (tmp0_subject == null ? -1 : tmp0_subject.e3_1) {
|
|
2995
2995
|
case 0:
|
|
2996
|
-
tmp = !(_this__u8e3s4.
|
|
2996
|
+
tmp = !(_this__u8e3s4.c32() == null) ? new String_0(_RegExp___init__impl__p22noo(ensureNotNull(_this__u8e3s4.c32()))) : _this__u8e3s4.b32() === 'binary' ? Bytes_instance : new String_0(null);
|
|
2997
2997
|
break;
|
|
2998
2998
|
case 2:
|
|
2999
|
-
tmp = new Integer(_this__u8e3s4.
|
|
2999
|
+
tmp = new Integer(_this__u8e3s4.b32() === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
3000
3000
|
break;
|
|
3001
3001
|
case 1:
|
|
3002
|
-
tmp = new Number_0(_this__u8e3s4.
|
|
3002
|
+
tmp = new Number_0(_this__u8e3s4.b32() === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
3003
3003
|
break;
|
|
3004
3004
|
case 3:
|
|
3005
3005
|
tmp = Boolean_instance;
|
|
@@ -3018,7 +3018,7 @@ function resolve(_this__u8e3s4, schemaOrReference) {
|
|
|
3018
3018
|
tmp = schemaOrReference;
|
|
3019
3019
|
} else {
|
|
3020
3020
|
if (isInterface(schemaOrReference, Reference)) {
|
|
3021
|
-
tmp = resolveSchemaRef(_this__u8e3s4, schemaOrReference).
|
|
3021
|
+
tmp = resolveSchemaRef(_this__u8e3s4, schemaOrReference).gf_1;
|
|
3022
3022
|
} else {
|
|
3023
3023
|
noWhenBranchMatchedException();
|
|
3024
3024
|
}
|
|
@@ -3029,12 +3029,12 @@ function toPrimitive_0(_this__u8e3s4) {
|
|
|
3029
3029
|
return toPrimitive(isInterface(_this__u8e3s4, OpenAPIV20Base) ? _this__u8e3s4 : THROW_CCE());
|
|
3030
3030
|
}
|
|
3031
3031
|
function resolveSchemaRef(_this__u8e3s4, reference) {
|
|
3032
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3032
|
+
var tmp0_safe_receiver = _this__u8e3s4.j34();
|
|
3033
3033
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s2(getReference(reference));
|
|
3034
3034
|
var tmp;
|
|
3035
3035
|
if (tmp1_elvis_lhs == null) {
|
|
3036
3036
|
// Inline function 'kotlin.error' call
|
|
3037
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
3037
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.t31());
|
|
3038
3038
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
3039
3039
|
} else {
|
|
3040
3040
|
tmp = tmp1_elvis_lhs;
|
|
@@ -3108,12 +3108,12 @@ function isPrimitive(_this__u8e3s4) {
|
|
|
3108
3108
|
return tmp;
|
|
3109
3109
|
}
|
|
3110
3110
|
function resolveResponseObject(_this__u8e3s4, reference) {
|
|
3111
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3111
|
+
var tmp0_safe_receiver = _this__u8e3s4.h1f();
|
|
3112
3112
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s2(getReference(reference));
|
|
3113
3113
|
var tmp;
|
|
3114
3114
|
if (tmp1_elvis_lhs == null) {
|
|
3115
3115
|
// Inline function 'kotlin.error' call
|
|
3116
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
3116
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.t31());
|
|
3117
3117
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
3118
3118
|
} else {
|
|
3119
3119
|
tmp = tmp1_elvis_lhs;
|
|
@@ -3126,7 +3126,7 @@ function resolve_0(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
3126
3126
|
tmp = schemaOrReferenceOrBoolean;
|
|
3127
3127
|
} else {
|
|
3128
3128
|
if (isInterface(schemaOrReferenceOrBoolean, Reference)) {
|
|
3129
|
-
tmp = resolveSchemaRef(_this__u8e3s4, schemaOrReferenceOrBoolean).
|
|
3129
|
+
tmp = resolveSchemaRef(_this__u8e3s4, schemaOrReferenceOrBoolean).gf_1;
|
|
3130
3130
|
} else {
|
|
3131
3131
|
if (isInterface(schemaOrReferenceOrBoolean, BooleanValue)) {
|
|
3132
3132
|
// Inline function 'kotlin.TODO' call
|
|
@@ -3141,7 +3141,7 @@ function resolve_0(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
3141
3141
|
}
|
|
3142
3142
|
function toField_1(_this__u8e3s4, schema, name) {
|
|
3143
3143
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3144
|
-
var tmp0_elvis_lhs = schema.
|
|
3144
|
+
var tmp0_elvis_lhs = schema.z31();
|
|
3145
3145
|
// Inline function 'kotlin.collections.map' call
|
|
3146
3146
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3147
3147
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3154,16 +3154,16 @@ function toField_1(_this__u8e3s4, schema, name) {
|
|
|
3154
3154
|
var key = item.n1();
|
|
3155
3155
|
// Inline function 'kotlin.collections.component2' call
|
|
3156
3156
|
var value = item.o1();
|
|
3157
|
-
var tmp0_safe_receiver = schema.
|
|
3157
|
+
var tmp0_safe_receiver = schema.b1u();
|
|
3158
3158
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i1(key);
|
|
3159
3159
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
3160
3160
|
var tmp;
|
|
3161
3161
|
if (isInterface(value, Schema)) {
|
|
3162
3162
|
// Inline function 'kotlin.let' call
|
|
3163
|
-
var reference = !(value.
|
|
3163
|
+
var reference = !(value.w31() == 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);
|
|
3164
3164
|
var tmp1_identifier = new FieldIdentifier(key);
|
|
3165
3165
|
var tmp2_annotations = emptyList();
|
|
3166
|
-
var tmp0_safe_receiver_0 = value.
|
|
3166
|
+
var tmp0_safe_receiver_0 = value.v31();
|
|
3167
3167
|
var tmp3_defaultValue = tmp0_safe_receiver_0 == null ? null : toDefaultValue(tmp0_safe_receiver_0, reference);
|
|
3168
3168
|
tmp = new Field(tmp2_annotations, tmp1_identifier, reference, tmp3_defaultValue);
|
|
3169
3169
|
} else {
|
|
@@ -3183,9 +3183,9 @@ function toField_1(_this__u8e3s4, schema, name) {
|
|
|
3183
3183
|
}
|
|
3184
3184
|
function parseParameters$lambda($this_parseParameters) {
|
|
3185
3185
|
return function ($this$flatMapRequests) {
|
|
3186
|
-
var parameters = plus_0(resolveParameters($this_parseParameters, $this$flatMapRequests.
|
|
3187
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
3188
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
3186
|
+
var parameters = plus_0(resolveParameters($this_parseParameters, $this$flatMapRequests.c48_1.l1g()), resolveParameters($this_parseParameters, $this$flatMapRequests.e48_1.l1g()));
|
|
3187
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.e48_1);
|
|
3188
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.b48_1) + $this$flatMapRequests.d48_1.d3_1 : tmp0_elvis_lhs;
|
|
3189
3189
|
// Inline function 'kotlin.collections.filter' call
|
|
3190
3190
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3191
3191
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -3202,13 +3202,13 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
3202
3202
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3203
3203
|
while (_iterator__ex2g4s_0.u()) {
|
|
3204
3204
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3205
|
-
var tmp0_safe_receiver = element_0.
|
|
3205
|
+
var tmp0_safe_receiver = element_0.w38_1;
|
|
3206
3206
|
var tmp;
|
|
3207
3207
|
if (tmp0_safe_receiver == null) {
|
|
3208
3208
|
tmp = null;
|
|
3209
3209
|
} else {
|
|
3210
3210
|
// Inline function 'kotlin.let' call
|
|
3211
|
-
tmp = flattenSchemaOrRef($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element_0.
|
|
3211
|
+
tmp = flattenSchemaOrRef($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element_0.x38_1]));
|
|
3212
3212
|
}
|
|
3213
3213
|
var tmp1_elvis_lhs = tmp;
|
|
3214
3214
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -3219,9 +3219,9 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
3219
3219
|
}
|
|
3220
3220
|
function parseRequestBody$lambda($this_parseRequestBody) {
|
|
3221
3221
|
return function ($this$flatMapRequests) {
|
|
3222
|
-
var parameters = plus_0(resolveParameters($this_parseRequestBody, $this$flatMapRequests.
|
|
3223
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
3224
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
3222
|
+
var parameters = plus_0(resolveParameters($this_parseRequestBody, $this$flatMapRequests.c48_1.l1g()), resolveParameters($this_parseRequestBody, $this$flatMapRequests.e48_1.l1g()));
|
|
3223
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.e48_1);
|
|
3224
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.b48_1) + $this$flatMapRequests.d48_1.d3_1 : tmp0_elvis_lhs;
|
|
3225
3225
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3226
3226
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3227
3227
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -3229,17 +3229,17 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3229
3229
|
while (_iterator__ex2g4s.u()) {
|
|
3230
3230
|
var element = _iterator__ex2g4s.v();
|
|
3231
3231
|
var tmp;
|
|
3232
|
-
if (!(element.
|
|
3233
|
-
var tmp_0 = toDescriptionAnnotationList(element.
|
|
3234
|
-
var tmp_1 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.
|
|
3232
|
+
if (!(element.t38_1 == null)) {
|
|
3233
|
+
var tmp_0 = toDescriptionAnnotationList(element.b38_1);
|
|
3234
|
+
var tmp_1 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.x38_1])));
|
|
3235
3235
|
// Inline function 'kotlin.collections.map' call
|
|
3236
|
-
var this_0 = ensureNotNull(element.
|
|
3236
|
+
var this_0 = ensureNotNull(element.t38_1);
|
|
3237
3237
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3238
3238
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3239
3239
|
var _iterator__ex2g4s_0 = this_0.t();
|
|
3240
3240
|
while (_iterator__ex2g4s_0.u()) {
|
|
3241
3241
|
var item = _iterator__ex2g4s_0.v();
|
|
3242
|
-
var tmp$ret$5 = item.
|
|
3242
|
+
var tmp$ret$5 = item.j1g();
|
|
3243
3243
|
destination_0.x(tmp$ret$5);
|
|
3244
3244
|
}
|
|
3245
3245
|
tmp = listOf(new Enum(null, tmp_0, tmp_1, toSet(destination_0)));
|
|
@@ -3250,7 +3250,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3250
3250
|
addAll(destination, list);
|
|
3251
3251
|
}
|
|
3252
3252
|
var enums = destination;
|
|
3253
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
3253
|
+
var tmp1_safe_receiver = $this$flatMapRequests.e48_1.l1g();
|
|
3254
3254
|
var tmp_2;
|
|
3255
3255
|
if (tmp1_safe_receiver == null) {
|
|
3256
3256
|
tmp_2 = null;
|
|
@@ -3294,7 +3294,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3294
3294
|
var _iterator__ex2g4s_3 = tmp3_safe_receiver.t();
|
|
3295
3295
|
while (_iterator__ex2g4s_3.u()) {
|
|
3296
3296
|
var element_1 = _iterator__ex2g4s_3.v();
|
|
3297
|
-
var schema = element_1.
|
|
3297
|
+
var schema = element_1.w38_1;
|
|
3298
3298
|
var tmp_5;
|
|
3299
3299
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
3300
3300
|
var tmp0_subject = get_primitiveType(schema);
|
|
@@ -3305,7 +3305,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3305
3305
|
tmp_6 = flatten($this_parseRequestBody, schema, className([name, 'RequestBody']));
|
|
3306
3306
|
break;
|
|
3307
3307
|
case 4:
|
|
3308
|
-
var tmp1_safe_receiver_0 = schema.
|
|
3308
|
+
var tmp1_safe_receiver_0 = schema.x31();
|
|
3309
3309
|
var tmp_7;
|
|
3310
3310
|
if (tmp1_safe_receiver_0 == null) {
|
|
3311
3311
|
tmp_7 = null;
|
|
@@ -3339,11 +3339,11 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3339
3339
|
}
|
|
3340
3340
|
function parseResponseBody$lambda($this_parseResponseBody) {
|
|
3341
3341
|
return function ($this$flatMapResponses) {
|
|
3342
|
-
var tmp = resolveResponse($this_parseResponseBody, $this$flatMapResponses.
|
|
3342
|
+
var tmp = resolveResponse($this_parseResponseBody, $this$flatMapResponses.k48_1);
|
|
3343
3343
|
var tmp0_safe_receiver = tmp instanceof OpenAPIV20Response ? tmp : null;
|
|
3344
|
-
var schema = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3345
|
-
var tmp1_elvis_lhs = toName($this$flatMapResponses.
|
|
3346
|
-
var name = tmp1_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
3344
|
+
var schema = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y39_1;
|
|
3345
|
+
var tmp1_elvis_lhs = toName($this$flatMapResponses.i48_1);
|
|
3346
|
+
var name = tmp1_elvis_lhs == null ? toName_0($this$flatMapResponses.f48_1) + $this$flatMapResponses.h48_1.d3_1 : tmp1_elvis_lhs;
|
|
3347
3347
|
var tmp_0;
|
|
3348
3348
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
3349
3349
|
var tmp3_subject = get_primitiveType(schema);
|
|
@@ -3351,16 +3351,16 @@ function parseResponseBody$lambda($this_parseResponseBody) {
|
|
|
3351
3351
|
switch (tmp3_subject == null ? -1 : tmp3_subject.e3_1) {
|
|
3352
3352
|
case -1:
|
|
3353
3353
|
case 5:
|
|
3354
|
-
tmp_1 = flatten($this_parseResponseBody, schema, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.
|
|
3354
|
+
tmp_1 = flatten($this_parseResponseBody, schema, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.j48_1), 'ResponseBody']));
|
|
3355
3355
|
break;
|
|
3356
3356
|
case 4:
|
|
3357
|
-
var tmp4_safe_receiver = schema.
|
|
3357
|
+
var tmp4_safe_receiver = schema.x31();
|
|
3358
3358
|
var tmp_2;
|
|
3359
3359
|
if (tmp4_safe_receiver == null) {
|
|
3360
3360
|
tmp_2 = null;
|
|
3361
3361
|
} else {
|
|
3362
3362
|
// Inline function 'kotlin.let' call
|
|
3363
|
-
tmp_2 = flattenSchemaOrRef($this_parseResponseBody, tmp4_safe_receiver, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.
|
|
3363
|
+
tmp_2 = flattenSchemaOrRef($this_parseResponseBody, tmp4_safe_receiver, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.j48_1), 'ResponseBody']));
|
|
3364
3364
|
}
|
|
3365
3365
|
|
|
3366
3366
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -3398,7 +3398,7 @@ function emitComponents($this, $receiver, logger) {
|
|
|
3398
3398
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3399
3399
|
while (_iterator__ex2g4s_0.u()) {
|
|
3400
3400
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3401
|
-
var tmp = element_0.
|
|
3401
|
+
var tmp = element_0.ds().o1();
|
|
3402
3402
|
var tmp_0;
|
|
3403
3403
|
if (element_0 instanceof Enum) {
|
|
3404
3404
|
tmp_0 = emit_3(OpenAPIV3Emitter_getInstance(), element_0);
|
|
@@ -3419,10 +3419,10 @@ function emitComponents($this, $receiver, logger) {
|
|
|
3419
3419
|
}
|
|
3420
3420
|
// Inline function 'kotlin.also' call
|
|
3421
3421
|
var this_0 = tmp_0;
|
|
3422
|
-
logger.
|
|
3422
|
+
logger.as('Emitting ' + getKClassFromExpression(element_0).o() + ' ' + element_0.ds().o1());
|
|
3423
3423
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3424
3424
|
var pair = to(tmp, this_0);
|
|
3425
|
-
destination_0.v2(pair.
|
|
3425
|
+
destination_0.v2(pair.ff_1, pair.gf_1);
|
|
3426
3426
|
}
|
|
3427
3427
|
// Inline function 'kotlin.let' call
|
|
3428
3428
|
return new OpenAPIV30Components(destination_0);
|
|
@@ -3445,7 +3445,7 @@ function emitPaths_0($this, $receiver, logger) {
|
|
|
3445
3445
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3446
3446
|
while (_iterator__ex2g4s_0.u()) {
|
|
3447
3447
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3448
|
-
var key = element_0.
|
|
3448
|
+
var key = element_0.hr_1;
|
|
3449
3449
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
3450
3450
|
var value = destination_0.s2(key);
|
|
3451
3451
|
var tmp;
|
|
@@ -3470,7 +3470,7 @@ function emitPaths_0($this, $receiver, logger) {
|
|
|
3470
3470
|
var path = item.n1();
|
|
3471
3471
|
// Inline function 'kotlin.collections.component2' call
|
|
3472
3472
|
var endpoints = item.o1();
|
|
3473
|
-
logger.
|
|
3473
|
+
logger.as('Emitting endpoints for path ' + emitSegment_0(OpenAPIV3Emitter_getInstance(), path));
|
|
3474
3474
|
var tmp_0 = _Path___init__impl__6uf4pw(emitSegment_0(OpenAPIV3Emitter_getInstance(), path));
|
|
3475
3475
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3476
3476
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
@@ -3513,31 +3513,31 @@ function emitPaths_0($this, $receiver, logger) {
|
|
|
3513
3513
|
return toMap(destination_1);
|
|
3514
3514
|
}
|
|
3515
3515
|
function emit_1($this, $receiver) {
|
|
3516
|
-
var type = $receiver.
|
|
3516
|
+
var type = $receiver.ms_1.t18_1;
|
|
3517
3517
|
var tmp;
|
|
3518
3518
|
if (type instanceof Integer) {
|
|
3519
3519
|
var tmp4_type = asTypeDefinition($this, OpenAPIV30Type_INTEGER_getInstance());
|
|
3520
|
-
var tmp0_safe_receiver = type.
|
|
3521
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3520
|
+
var tmp0_safe_receiver = type.c19_1;
|
|
3521
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z18_1;
|
|
3522
3522
|
var tmp5_minimum = tmp1_safe_receiver == null ? null : toDouble(tmp1_safe_receiver);
|
|
3523
|
-
var tmp2_safe_receiver = type.
|
|
3524
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
3523
|
+
var tmp2_safe_receiver = type.c19_1;
|
|
3524
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.a19_1;
|
|
3525
3525
|
var tmp6_maximum = tmp3_safe_receiver == null ? null : toDouble(tmp3_safe_receiver);
|
|
3526
3526
|
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);
|
|
3527
3527
|
} else {
|
|
3528
3528
|
if (type instanceof Number_0) {
|
|
3529
3529
|
var tmp11_type = asTypeDefinition($this, OpenAPIV30Type_NUMBER_getInstance());
|
|
3530
|
-
var tmp7_safe_receiver = type.
|
|
3531
|
-
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.
|
|
3530
|
+
var tmp7_safe_receiver = type.x18_1;
|
|
3531
|
+
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.z18_1;
|
|
3532
3532
|
var tmp12_minimum = tmp8_safe_receiver == null ? null : toDouble(tmp8_safe_receiver);
|
|
3533
|
-
var tmp9_safe_receiver = type.
|
|
3534
|
-
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.
|
|
3533
|
+
var tmp9_safe_receiver = type.x18_1;
|
|
3534
|
+
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.a19_1;
|
|
3535
3535
|
var tmp13_maximum = tmp10_safe_receiver == null ? null : toDouble(tmp10_safe_receiver);
|
|
3536
3536
|
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);
|
|
3537
3537
|
} else {
|
|
3538
3538
|
if (type instanceof String_0) {
|
|
3539
3539
|
var tmp_0 = asTypeDefinition($this, OpenAPIV30Type_STRING_getInstance());
|
|
3540
|
-
var tmp14_safe_receiver = type.
|
|
3540
|
+
var tmp14_safe_receiver = type.e19_1;
|
|
3541
3541
|
var tmp_1;
|
|
3542
3542
|
var tmp_2 = tmp14_safe_receiver;
|
|
3543
3543
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2)) == null) {
|
|
@@ -3565,10 +3565,10 @@ function asTypeDefinition($this, $receiver) {
|
|
|
3565
3565
|
return new OpenAPIV30SingleType($receiver);
|
|
3566
3566
|
}
|
|
3567
3567
|
function emit_2($this, $receiver) {
|
|
3568
|
-
var tmp0_elvis_lhs = findDescription($receiver.
|
|
3568
|
+
var tmp0_elvis_lhs = findDescription($receiver.jp_1);
|
|
3569
3569
|
var tmp;
|
|
3570
3570
|
if (tmp0_elvis_lhs == null) {
|
|
3571
|
-
var tmp1_safe_receiver = $receiver.
|
|
3571
|
+
var tmp1_safe_receiver = $receiver.ip_1;
|
|
3572
3572
|
var tmp_0;
|
|
3573
3573
|
var tmp_1 = tmp1_safe_receiver;
|
|
3574
3574
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3582,7 +3582,7 @@ function emit_2($this, $receiver) {
|
|
|
3582
3582
|
}
|
|
3583
3583
|
var tmp2_description = tmp;
|
|
3584
3584
|
// Inline function 'kotlin.collections.associate' call
|
|
3585
|
-
var this_0 = get_fields($receiver.
|
|
3585
|
+
var this_0 = get_fields($receiver.lp_1);
|
|
3586
3586
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
3587
3587
|
// Inline function 'kotlin.collections.associateTo' call
|
|
3588
3588
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -3591,16 +3591,16 @@ function emit_2($this, $receiver) {
|
|
|
3591
3591
|
var element = _iterator__ex2g4s.v();
|
|
3592
3592
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3593
3593
|
var pair = emitSchema(OpenAPIV3Emitter_getInstance(), element);
|
|
3594
|
-
destination.v2(pair.
|
|
3594
|
+
destination.v2(pair.ff_1, pair.gf_1);
|
|
3595
3595
|
}
|
|
3596
3596
|
// Inline function 'kotlin.collections.filter' call
|
|
3597
|
-
var tmp0 = get_fields($receiver.
|
|
3597
|
+
var tmp0 = get_fields($receiver.lp_1);
|
|
3598
3598
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3599
3599
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
3600
3600
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
3601
3601
|
while (_iterator__ex2g4s_0.u()) {
|
|
3602
3602
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3603
|
-
if (!element_0.
|
|
3603
|
+
if (!element_0.pp_1.ot()) {
|
|
3604
3604
|
destination_0.x(element_0);
|
|
3605
3605
|
}
|
|
3606
3606
|
}
|
|
@@ -3610,7 +3610,7 @@ function emit_2($this, $receiver) {
|
|
|
3610
3610
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
3611
3611
|
while (_iterator__ex2g4s_1.u()) {
|
|
3612
3612
|
var item = _iterator__ex2g4s_1.v();
|
|
3613
|
-
var tmp$ret$9 = item.
|
|
3613
|
+
var tmp$ret$9 = item.op_1.o1();
|
|
3614
3614
|
destination_1.x(tmp$ret$9);
|
|
3615
3615
|
}
|
|
3616
3616
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -3625,10 +3625,10 @@ function emit_2($this, $receiver) {
|
|
|
3625
3625
|
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);
|
|
3626
3626
|
}
|
|
3627
3627
|
function emit_3($this, $receiver) {
|
|
3628
|
-
var tmp0_elvis_lhs = findDescription($receiver.
|
|
3628
|
+
var tmp0_elvis_lhs = findDescription($receiver.ps_1);
|
|
3629
3629
|
var tmp;
|
|
3630
3630
|
if (tmp0_elvis_lhs == null) {
|
|
3631
|
-
var tmp1_safe_receiver = $receiver.
|
|
3631
|
+
var tmp1_safe_receiver = $receiver.os_1;
|
|
3632
3632
|
var tmp_0;
|
|
3633
3633
|
var tmp_1 = tmp1_safe_receiver;
|
|
3634
3634
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3643,7 +3643,7 @@ function emit_3($this, $receiver) {
|
|
|
3643
3643
|
var tmp2_description = tmp;
|
|
3644
3644
|
var tmp3_type = asTypeDefinition($this, OpenAPIV30Type_STRING_getInstance());
|
|
3645
3645
|
// Inline function 'kotlin.collections.map' call
|
|
3646
|
-
var this_0 = $receiver.
|
|
3646
|
+
var this_0 = $receiver.rs_1;
|
|
3647
3647
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3648
3648
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3649
3649
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -3655,10 +3655,10 @@ function emit_3($this, $receiver) {
|
|
|
3655
3655
|
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);
|
|
3656
3656
|
}
|
|
3657
3657
|
function emit_4($this, $receiver) {
|
|
3658
|
-
var tmp0_elvis_lhs = findDescription($receiver.
|
|
3658
|
+
var tmp0_elvis_lhs = findDescription($receiver.ar_1);
|
|
3659
3659
|
var tmp;
|
|
3660
3660
|
if (tmp0_elvis_lhs == null) {
|
|
3661
|
-
var tmp1_safe_receiver = $receiver.
|
|
3661
|
+
var tmp1_safe_receiver = $receiver.zq_1;
|
|
3662
3662
|
var tmp_0;
|
|
3663
3663
|
var tmp_1 = tmp1_safe_receiver;
|
|
3664
3664
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3673,7 +3673,7 @@ function emit_4($this, $receiver) {
|
|
|
3673
3673
|
var tmp2_description = tmp;
|
|
3674
3674
|
var tmp3_type = asTypeDefinition($this, OpenAPIV30Type_STRING_getInstance());
|
|
3675
3675
|
// Inline function 'kotlin.collections.map' call
|
|
3676
|
-
var this_0 = $receiver.
|
|
3676
|
+
var this_0 = $receiver.cr_1;
|
|
3677
3677
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3678
3678
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3679
3679
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -3691,7 +3691,7 @@ function emit_5($this, $receiver, method) {
|
|
|
3691
3691
|
var _iterator__ex2g4s = $receiver.t();
|
|
3692
3692
|
while (_iterator__ex2g4s.u()) {
|
|
3693
3693
|
var element = _iterator__ex2g4s.v();
|
|
3694
|
-
if (element.
|
|
3694
|
+
if (element.gr_1.equals(method)) {
|
|
3695
3695
|
destination.x(element);
|
|
3696
3696
|
}
|
|
3697
3697
|
}
|
|
@@ -3707,11 +3707,11 @@ function emit_5($this, $receiver, method) {
|
|
|
3707
3707
|
return firstOrNull(destination_0);
|
|
3708
3708
|
}
|
|
3709
3709
|
function emit_6($this, $receiver) {
|
|
3710
|
-
var tmp3_operationId = $receiver.
|
|
3711
|
-
var tmp0_elvis_lhs = findDescription($receiver.
|
|
3710
|
+
var tmp3_operationId = $receiver.fr_1.o1();
|
|
3711
|
+
var tmp0_elvis_lhs = findDescription($receiver.er_1);
|
|
3712
3712
|
var tmp;
|
|
3713
3713
|
if (tmp0_elvis_lhs == null) {
|
|
3714
|
-
var tmp1_safe_receiver = $receiver.
|
|
3714
|
+
var tmp1_safe_receiver = $receiver.dr_1;
|
|
3715
3715
|
var tmp_0;
|
|
3716
3716
|
var tmp_1 = tmp1_safe_receiver;
|
|
3717
3717
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3725,7 +3725,7 @@ function emit_6($this, $receiver) {
|
|
|
3725
3725
|
}
|
|
3726
3726
|
var tmp4_description = tmp;
|
|
3727
3727
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3728
|
-
var tmp0 = $receiver.
|
|
3728
|
+
var tmp0 = $receiver.hr_1;
|
|
3729
3729
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
3730
3730
|
var destination = ArrayList_init_$Create$_0();
|
|
3731
3731
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -3746,7 +3746,7 @@ function emit_6($this, $receiver) {
|
|
|
3746
3746
|
}
|
|
3747
3747
|
var tmp_2 = destination_0;
|
|
3748
3748
|
// Inline function 'kotlin.collections.map' call
|
|
3749
|
-
var this_0 = get_fields($receiver.
|
|
3749
|
+
var this_0 = get_fields($receiver.ir_1);
|
|
3750
3750
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3751
3751
|
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3752
3752
|
var _iterator__ex2g4s_1 = this_0.t();
|
|
@@ -3757,7 +3757,7 @@ function emit_6($this, $receiver) {
|
|
|
3757
3757
|
}
|
|
3758
3758
|
var tmp_3 = plus_0(tmp_2, destination_1);
|
|
3759
3759
|
// Inline function 'kotlin.collections.map' call
|
|
3760
|
-
var this_1 = get_fields($receiver.
|
|
3760
|
+
var this_1 = get_fields($receiver.jr_1);
|
|
3761
3761
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3762
3762
|
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
3763
3763
|
var _iterator__ex2g4s_2 = this_1.t();
|
|
@@ -3768,14 +3768,14 @@ function emit_6($this, $receiver) {
|
|
|
3768
3768
|
}
|
|
3769
3769
|
var tmp5_parameters = plus_0(tmp_3, destination_2);
|
|
3770
3770
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3771
|
-
var tmp0_0 = $receiver.
|
|
3771
|
+
var tmp0_0 = $receiver.kr_1;
|
|
3772
3772
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3773
3773
|
var destination_3 = ArrayList_init_$Create$_0();
|
|
3774
3774
|
// Inline function 'kotlin.collections.forEach' call
|
|
3775
3775
|
var _iterator__ex2g4s_3 = tmp0_0.t();
|
|
3776
3776
|
while (_iterator__ex2g4s_3.u()) {
|
|
3777
3777
|
var element_0 = _iterator__ex2g4s_3.v();
|
|
3778
|
-
var tmp0_safe_receiver = element_0.
|
|
3778
|
+
var tmp0_safe_receiver = element_0.or_1;
|
|
3779
3779
|
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : emit_7(OpenAPIV3Emitter_getInstance(), tmp0_safe_receiver);
|
|
3780
3780
|
if (tmp0_safe_receiver_0 == null)
|
|
3781
3781
|
null;
|
|
@@ -3799,7 +3799,7 @@ function emit_6($this, $receiver) {
|
|
|
3799
3799
|
tmp_5 = null;
|
|
3800
3800
|
} else {
|
|
3801
3801
|
// Inline function 'kotlin.let' call
|
|
3802
|
-
var tmp0_1 = $receiver.
|
|
3802
|
+
var tmp0_1 = $receiver.kr_1;
|
|
3803
3803
|
var tmp$ret$23;
|
|
3804
3804
|
$l$block_0: {
|
|
3805
3805
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -3816,9 +3816,9 @@ function emit_6($this, $receiver) {
|
|
|
3816
3816
|
var _iterator__ex2g4s_4 = tmp0_1.t();
|
|
3817
3817
|
while (_iterator__ex2g4s_4.u()) {
|
|
3818
3818
|
var element_1 = _iterator__ex2g4s_4.v();
|
|
3819
|
-
var tmp0_safe_receiver_1 = element_1.
|
|
3820
|
-
var tmp1_safe_receiver_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.
|
|
3821
|
-
if ((tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
3819
|
+
var tmp0_safe_receiver_1 = element_1.or_1;
|
|
3820
|
+
var tmp1_safe_receiver_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.qr_1;
|
|
3821
|
+
if ((tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.ot()) === true) {
|
|
3822
3822
|
tmp$ret$23 = true;
|
|
3823
3823
|
break $l$block_0;
|
|
3824
3824
|
}
|
|
@@ -3829,13 +3829,13 @@ function emit_6($this, $receiver) {
|
|
|
3829
3829
|
}
|
|
3830
3830
|
var tmp6_requestBody = tmp_5;
|
|
3831
3831
|
// Inline function 'kotlin.collections.groupBy' call
|
|
3832
|
-
var tmp0_2 = $receiver.
|
|
3832
|
+
var tmp0_2 = $receiver.lr_1;
|
|
3833
3833
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
3834
3834
|
var destination_4 = LinkedHashMap_init_$Create$_0();
|
|
3835
3835
|
var _iterator__ex2g4s_5 = tmp0_2.t();
|
|
3836
3836
|
while (_iterator__ex2g4s_5.u()) {
|
|
3837
3837
|
var element_2 = _iterator__ex2g4s_5.v();
|
|
3838
|
-
var key = element_2.
|
|
3838
|
+
var key = element_2.rr_1;
|
|
3839
3839
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
3840
3840
|
var value = destination_4.s2(key);
|
|
3841
3841
|
var tmp_7;
|
|
@@ -3867,7 +3867,7 @@ function emit_6($this, $receiver) {
|
|
|
3867
3867
|
var _iterator__ex2g4s_7 = res.t();
|
|
3868
3868
|
while (_iterator__ex2g4s_7.u()) {
|
|
3869
3869
|
var element_3 = _iterator__ex2g4s_7.v();
|
|
3870
|
-
var list_0 = get_fields(element_3.
|
|
3870
|
+
var list_0 = get_fields(element_3.sr_1);
|
|
3871
3871
|
addAll(destination_6, list_0);
|
|
3872
3872
|
}
|
|
3873
3873
|
// Inline function 'kotlin.collections.associate' call
|
|
@@ -3879,10 +3879,10 @@ function emit_6($this, $receiver) {
|
|
|
3879
3879
|
var element_4 = _iterator__ex2g4s_8.v();
|
|
3880
3880
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3881
3881
|
var pair = emitHeader(OpenAPIV3Emitter_getInstance(), element_4);
|
|
3882
|
-
destination_7.v2(pair.
|
|
3882
|
+
destination_7.v2(pair.ff_1, pair.gf_1);
|
|
3883
3883
|
}
|
|
3884
|
-
var tmp0_elvis_lhs_0 = findDescription(first(res).
|
|
3885
|
-
var tmp2_description = tmp0_elvis_lhs_0 == null ? $receiver.
|
|
3884
|
+
var tmp0_elvis_lhs_0 = findDescription(first(res).ur_1);
|
|
3885
|
+
var tmp2_description = tmp0_elvis_lhs_0 == null ? $receiver.fr_1.o1() + ' ' + statusCode + ' response' : tmp0_elvis_lhs_0;
|
|
3886
3886
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3887
3887
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3888
3888
|
var destination_8 = ArrayList_init_$Create$_0();
|
|
@@ -3890,7 +3890,7 @@ function emit_6($this, $receiver) {
|
|
|
3890
3890
|
var _iterator__ex2g4s_9 = res.t();
|
|
3891
3891
|
while (_iterator__ex2g4s_9.u()) {
|
|
3892
3892
|
var element_5 = _iterator__ex2g4s_9.v();
|
|
3893
|
-
var tmp0_safe_receiver_2 = element_5.
|
|
3893
|
+
var tmp0_safe_receiver_2 = element_5.tr_1;
|
|
3894
3894
|
if (tmp0_safe_receiver_2 == null)
|
|
3895
3895
|
null;
|
|
3896
3896
|
else {
|
|
@@ -3907,7 +3907,7 @@ function emit_6($this, $receiver) {
|
|
|
3907
3907
|
var element_6 = _iterator__ex2g4s_10.v();
|
|
3908
3908
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3909
3909
|
var pair_0 = emit_7(OpenAPIV3Emitter_getInstance(), element_6);
|
|
3910
|
-
destination_9.v2(pair_0.
|
|
3910
|
+
destination_9.v2(pair_0.ff_1, pair_0.gf_1);
|
|
3911
3911
|
}
|
|
3912
3912
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
3913
3913
|
var tmp_9;
|
|
@@ -3924,7 +3924,7 @@ function emit_6($this, $receiver) {
|
|
|
3924
3924
|
var _iterator__ex2g4s_11 = res.t();
|
|
3925
3925
|
while (_iterator__ex2g4s_11.u()) {
|
|
3926
3926
|
var element_7 = _iterator__ex2g4s_11.v();
|
|
3927
|
-
var list_1 = findLinks(element_7.
|
|
3927
|
+
var list_1 = findLinks(element_7.ur_1);
|
|
3928
3928
|
addAll(destination_10, list_1);
|
|
3929
3929
|
}
|
|
3930
3930
|
var tmp4_links = toOpenAPIV30Links(tmp_10, destination_10);
|
|
@@ -3942,9 +3942,9 @@ function toOpenAPIV30Links($this, $receiver) {
|
|
|
3942
3942
|
var _iterator__ex2g4s = $receiver.t();
|
|
3943
3943
|
while (_iterator__ex2g4s.u()) {
|
|
3944
3944
|
var element = _iterator__ex2g4s.v();
|
|
3945
|
-
var tmp2 = element.
|
|
3945
|
+
var tmp2 = element.l48_1;
|
|
3946
3946
|
// Inline function 'kotlin.collections.mapValues' call
|
|
3947
|
-
var this_0 = element.
|
|
3947
|
+
var this_0 = element.o48_1;
|
|
3948
3948
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
3949
3949
|
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.b1()));
|
|
3950
3950
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -3963,7 +3963,7 @@ function toOpenAPIV30Links($this, $receiver) {
|
|
|
3963
3963
|
tmp_0 = destination;
|
|
3964
3964
|
}
|
|
3965
3965
|
var tmp_1 = tmp_0;
|
|
3966
|
-
var tmp0_safe_receiver = element.
|
|
3966
|
+
var tmp0_safe_receiver = element.p48_1;
|
|
3967
3967
|
var tmp_2;
|
|
3968
3968
|
if (tmp0_safe_receiver == null) {
|
|
3969
3969
|
tmp_2 = null;
|
|
@@ -3972,7 +3972,7 @@ function toOpenAPIV30Links($this, $receiver) {
|
|
|
3972
3972
|
tmp_2 = JsonPrimitive(tmp0_safe_receiver);
|
|
3973
3973
|
}
|
|
3974
3974
|
// Inline function 'kotlin.collections.set' call
|
|
3975
|
-
var value = new OpenAPIV30Link(element.
|
|
3975
|
+
var value = new OpenAPIV30Link(element.n48_1, element.m48_1, tmp_1, tmp_2, element.q48_1);
|
|
3976
3976
|
byName.v2(tmp2, value);
|
|
3977
3977
|
}
|
|
3978
3978
|
return new OpenAPIV30Links(toSet(byName.m1()));
|
|
@@ -3981,29 +3981,29 @@ function emitSegment_0($this, $receiver) {
|
|
|
3981
3981
|
return '/' + joinToString($receiver, '/', VOID, VOID, VOID, VOID, OpenAPIV3Emitter$emitSegment$lambda);
|
|
3982
3982
|
}
|
|
3983
3983
|
function emitParameter_0($this, $receiver, location) {
|
|
3984
|
-
var tmp0_name = $receiver.
|
|
3985
|
-
var tmp1_schema = emitSchema_0($this, $receiver.
|
|
3986
|
-
var tmp2_description = findDescription($receiver.
|
|
3987
|
-
var tmp3_required = !$receiver.
|
|
3984
|
+
var tmp0_name = $receiver.op_1.o1();
|
|
3985
|
+
var tmp1_schema = emitSchema_0($this, $receiver.pp_1);
|
|
3986
|
+
var tmp2_description = findDescription($receiver.np_1);
|
|
3987
|
+
var tmp3_required = !$receiver.pp_1.ot();
|
|
3988
3988
|
return new OpenAPIV30Parameter(tmp2_description, tmp3_required, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, location, tmp1_schema, tmp0_name);
|
|
3989
3989
|
}
|
|
3990
3990
|
function emitParameter_1($this, $receiver) {
|
|
3991
3991
|
var tmp0_in = OpenAPIV30ParameterLocation_PATH_getInstance();
|
|
3992
|
-
var tmp1_name = $receiver.
|
|
3993
|
-
var tmp2_schema = emitSchema_0($this, $receiver.
|
|
3994
|
-
var tmp3_required = !$receiver.
|
|
3992
|
+
var tmp1_name = $receiver.mr_1.o1();
|
|
3993
|
+
var tmp2_schema = emitSchema_0($this, $receiver.nr_1);
|
|
3994
|
+
var tmp3_required = !$receiver.nr_1.ot();
|
|
3995
3995
|
return new OpenAPIV30Parameter(VOID, tmp3_required, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_in, tmp2_schema, tmp1_name);
|
|
3996
3996
|
}
|
|
3997
3997
|
function emitHeader($this, $receiver) {
|
|
3998
|
-
return to($receiver.
|
|
3998
|
+
return to($receiver.op_1.o1(), emitHeader_0($this, $receiver.pp_1, findDescription($receiver.np_1)));
|
|
3999
3999
|
}
|
|
4000
4000
|
function emitSchema($this, $receiver) {
|
|
4001
|
-
var tmp = $receiver.
|
|
4001
|
+
var tmp = $receiver.op_1.o1();
|
|
4002
4002
|
// Inline function 'kotlin.let' call
|
|
4003
|
-
var it = emitSchema_0($this, $receiver.
|
|
4003
|
+
var it = emitSchema_0($this, $receiver.pp_1);
|
|
4004
4004
|
var tmp_0;
|
|
4005
4005
|
if (it instanceof OpenAPIV30Schema) {
|
|
4006
|
-
tmp_0 = it.
|
|
4006
|
+
tmp_0 = it.a3h(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, findDescription($receiver.np_1), toSchemaDefault($receiver.qp_1));
|
|
4007
4007
|
} else {
|
|
4008
4008
|
if (it instanceof OpenAPIV30Reference) {
|
|
4009
4009
|
tmp_0 = it;
|
|
@@ -4017,13 +4017,13 @@ function emitSchema($this, $receiver) {
|
|
|
4017
4017
|
function emitHeader_0($this, $receiver, description) {
|
|
4018
4018
|
var tmp;
|
|
4019
4019
|
if ($receiver instanceof Dict) {
|
|
4020
|
-
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + $receiver.
|
|
4020
|
+
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + $receiver.dq_1));
|
|
4021
4021
|
} else {
|
|
4022
4022
|
if ($receiver instanceof Iterable) {
|
|
4023
|
-
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + $receiver.
|
|
4023
|
+
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + $receiver.aq_1));
|
|
4024
4024
|
} else {
|
|
4025
4025
|
if ($receiver instanceof Custom) {
|
|
4026
|
-
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + $receiver.
|
|
4026
|
+
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + $receiver.r18_1));
|
|
4027
4027
|
} else {
|
|
4028
4028
|
if ($receiver instanceof Primitive) {
|
|
4029
4029
|
var tmp1_schema = emitSchema_0($this, $receiver);
|
|
@@ -4051,19 +4051,19 @@ function emitHeader_0($this, $receiver, description) {
|
|
|
4051
4051
|
function emitSchema_0($this, $receiver) {
|
|
4052
4052
|
var tmp;
|
|
4053
4053
|
if ($receiver instanceof Dict) {
|
|
4054
|
-
var tmp_0 = $receiver.
|
|
4054
|
+
var tmp_0 = $receiver.bq_1.ot();
|
|
4055
4055
|
var tmp_1 = asTypeDefinition($this, OpenAPIV30Type_OBJECT_getInstance());
|
|
4056
|
-
var tmp_2 = emitSchema_0($this, $receiver.
|
|
4056
|
+
var tmp_2 = emitSchema_0($this, $receiver.bq_1);
|
|
4057
4057
|
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());
|
|
4058
4058
|
} else {
|
|
4059
4059
|
if ($receiver instanceof Iterable) {
|
|
4060
|
-
tmp = new OpenAPIV30Schema($receiver.
|
|
4060
|
+
tmp = new OpenAPIV30Schema($receiver.yp_1.ot(), 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, $receiver.yp_1));
|
|
4061
4061
|
} else {
|
|
4062
4062
|
if ($receiver instanceof Custom) {
|
|
4063
|
-
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/schemas/' + $receiver.
|
|
4063
|
+
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/schemas/' + $receiver.r18_1));
|
|
4064
4064
|
} else {
|
|
4065
4065
|
if ($receiver instanceof Primitive) {
|
|
4066
|
-
var tmp1_type = asTypeDefinition($this, emitType_1($this, $receiver.
|
|
4066
|
+
var tmp1_type = asTypeDefinition($this, emitType_1($this, $receiver.t18_1));
|
|
4067
4067
|
var tmp2_format = emitFormat($receiver);
|
|
4068
4068
|
var tmp3_pattern = emitPattern_0($this, $receiver);
|
|
4069
4069
|
var tmp4_minimum = emitMinimum_0($this, $receiver);
|
|
@@ -4115,15 +4115,15 @@ function emitType_1($this, $receiver) {
|
|
|
4115
4115
|
return tmp;
|
|
4116
4116
|
}
|
|
4117
4117
|
function emit_7($this, $receiver) {
|
|
4118
|
-
return to(new MediaType(_MediaType___init__impl__i9gzb9($receiver.
|
|
4118
|
+
return to(new MediaType(_MediaType___init__impl__i9gzb9($receiver.pr_1)), new OpenAPIV30MediaType(emitSchema_0($this, $receiver.qr_1)));
|
|
4119
4119
|
}
|
|
4120
4120
|
function emitPattern_0($this, $receiver) {
|
|
4121
4121
|
var tmp;
|
|
4122
4122
|
if ($receiver instanceof Primitive) {
|
|
4123
|
-
var t = $receiver.
|
|
4123
|
+
var t = $receiver.t18_1;
|
|
4124
4124
|
var tmp_0;
|
|
4125
4125
|
if (t instanceof String_0) {
|
|
4126
|
-
var p = t.
|
|
4126
|
+
var p = t.e19_1;
|
|
4127
4127
|
var tmp_1;
|
|
4128
4128
|
var tmp_2 = p;
|
|
4129
4129
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2))instanceof RegExp_0) {
|
|
@@ -4144,16 +4144,16 @@ function emitPattern_0($this, $receiver) {
|
|
|
4144
4144
|
function emitMinimum_0($this, $receiver) {
|
|
4145
4145
|
var tmp;
|
|
4146
4146
|
if ($receiver instanceof Primitive) {
|
|
4147
|
-
var t = $receiver.
|
|
4147
|
+
var t = $receiver.t18_1;
|
|
4148
4148
|
var tmp_0;
|
|
4149
4149
|
if (t instanceof Number_0) {
|
|
4150
|
-
var tmp1_safe_receiver = t.
|
|
4151
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4150
|
+
var tmp1_safe_receiver = t.x18_1;
|
|
4151
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.z18_1;
|
|
4152
4152
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
4153
4153
|
} else {
|
|
4154
4154
|
if (t instanceof Integer) {
|
|
4155
|
-
var tmp3_safe_receiver = t.
|
|
4156
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
4155
|
+
var tmp3_safe_receiver = t.c19_1;
|
|
4156
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.z18_1;
|
|
4157
4157
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
4158
4158
|
} else {
|
|
4159
4159
|
tmp_0 = null;
|
|
@@ -4168,16 +4168,16 @@ function emitMinimum_0($this, $receiver) {
|
|
|
4168
4168
|
function emitMaximum_0($this, $receiver) {
|
|
4169
4169
|
var tmp;
|
|
4170
4170
|
if ($receiver instanceof Primitive) {
|
|
4171
|
-
var t = $receiver.
|
|
4171
|
+
var t = $receiver.t18_1;
|
|
4172
4172
|
var tmp_0;
|
|
4173
4173
|
if (t instanceof Number_0) {
|
|
4174
|
-
var tmp1_safe_receiver = t.
|
|
4175
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4174
|
+
var tmp1_safe_receiver = t.x18_1;
|
|
4175
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.a19_1;
|
|
4176
4176
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
4177
4177
|
} else {
|
|
4178
4178
|
if (t instanceof Integer) {
|
|
4179
|
-
var tmp3_safe_receiver = t.
|
|
4180
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
4179
|
+
var tmp3_safe_receiver = t.c19_1;
|
|
4180
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.a19_1;
|
|
4181
4181
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
4182
4182
|
} else {
|
|
4183
4183
|
tmp_0 = null;
|
|
@@ -4192,10 +4192,10 @@ function emitMaximum_0($this, $receiver) {
|
|
|
4192
4192
|
function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
4193
4193
|
var tmp;
|
|
4194
4194
|
if (it instanceof Param) {
|
|
4195
|
-
tmp = '{' + it.
|
|
4195
|
+
tmp = '{' + it.mr_1.o1() + '}';
|
|
4196
4196
|
} else {
|
|
4197
4197
|
if (it instanceof Literal) {
|
|
4198
|
-
tmp = it.
|
|
4198
|
+
tmp = it.a1a_1;
|
|
4199
4199
|
} else {
|
|
4200
4200
|
noWhenBranchMatchedException();
|
|
4201
4201
|
}
|
|
@@ -4204,14 +4204,14 @@ function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
|
4204
4204
|
}
|
|
4205
4205
|
function OpenAPIV3Emitter() {
|
|
4206
4206
|
OpenAPIV3Emitter_instance = this;
|
|
4207
|
-
this.
|
|
4208
|
-
this.
|
|
4207
|
+
this.x48_1 = FileExtension_JSON_getInstance();
|
|
4208
|
+
this.y48_1 = true;
|
|
4209
4209
|
}
|
|
4210
|
-
protoOf(OpenAPIV3Emitter).
|
|
4211
|
-
return this.
|
|
4210
|
+
protoOf(OpenAPIV3Emitter).wp = function () {
|
|
4211
|
+
return this.x48_1;
|
|
4212
4212
|
};
|
|
4213
|
-
protoOf(OpenAPIV3Emitter).
|
|
4214
|
-
return this.
|
|
4213
|
+
protoOf(OpenAPIV3Emitter).vp = function () {
|
|
4214
|
+
return this.y48_1;
|
|
4215
4215
|
};
|
|
4216
4216
|
protoOf(OpenAPIV3Emitter).to = function (ast, logger) {
|
|
4217
4217
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
@@ -4223,30 +4223,30 @@ protoOf(OpenAPIV3Emitter).to = function (ast, logger) {
|
|
|
4223
4223
|
var _iterator__ex2g4s = tmp0.t();
|
|
4224
4224
|
while (_iterator__ex2g4s.u()) {
|
|
4225
4225
|
var element = _iterator__ex2g4s.v();
|
|
4226
|
-
logger.
|
|
4226
|
+
logger.as('Combining Nodes from ' + element.fp_1.io_1 + ' ');
|
|
4227
4227
|
var list = new NonEmptyList(element.gp_1);
|
|
4228
4228
|
addAll(destination, list);
|
|
4229
4229
|
}
|
|
4230
4230
|
// Inline function 'kotlin.let' call
|
|
4231
4231
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
4232
|
-
var tmp = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().
|
|
4232
|
+
var tmp = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().x48_1.xr_1;
|
|
4233
4233
|
var tmp0_0 = get_json();
|
|
4234
4234
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
4235
|
-
var value = OpenAPIV3Emitter_getInstance().
|
|
4235
|
+
var value = OpenAPIV3Emitter_getInstance().z48(it, null, logger);
|
|
4236
4236
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
4237
|
-
var this_1 = tmp0_0.
|
|
4237
|
+
var this_1 = tmp0_0.b26();
|
|
4238
4238
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
4239
4239
|
var this_2 = serializer(this_1, createKType(getKClass(OpenAPIV3Model), arrayOf([]), false));
|
|
4240
4240
|
var tmp$ret$7 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
4241
|
-
var tmp$ret$6 = tmp0_0.
|
|
4241
|
+
var tmp$ret$6 = tmp0_0.g2n(tmp$ret$7, value);
|
|
4242
4242
|
// Inline function 'kotlin.let' call
|
|
4243
4243
|
var it_0 = new Emitted(tmp, tmp$ret$6);
|
|
4244
4244
|
return nonEmptyListOf(it_0, []);
|
|
4245
4245
|
};
|
|
4246
|
-
protoOf(OpenAPIV3Emitter).
|
|
4247
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
4246
|
+
protoOf(OpenAPIV3Emitter).z48 = function (statements, options, logger) {
|
|
4247
|
+
var tmp1_elvis_lhs = options == null ? null : options.a49_1;
|
|
4248
4248
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
4249
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
4249
|
+
var tmp3_elvis_lhs = options == null ? null : options.b49_1;
|
|
4250
4250
|
var tmp4_info = new InfoObject(tmp, VOID, VOID, VOID, VOID, VOID, tmp3_elvis_lhs == null ? '0.0.0' : tmp3_elvis_lhs);
|
|
4251
4251
|
var tmp5_paths = emitPaths_0(this, statements, logger);
|
|
4252
4252
|
var tmp6_components = emitComponents(this, statements, logger);
|
|
@@ -4260,15 +4260,15 @@ function OpenAPIV3Emitter_getInstance() {
|
|
|
4260
4260
|
}
|
|
4261
4261
|
function OpenAPIV3Parser$parse$lambda($strict) {
|
|
4262
4262
|
return function (it) {
|
|
4263
|
-
return new NonEmptyList(OpenAPIV3Parser_instance.
|
|
4263
|
+
return new NonEmptyList(OpenAPIV3Parser_instance.c49((new OpenAPIV3(jsonDefault($strict))).e34(it)));
|
|
4264
4264
|
};
|
|
4265
4265
|
}
|
|
4266
4266
|
function OpenAPIV3Parser() {
|
|
4267
4267
|
}
|
|
4268
|
-
protoOf(OpenAPIV3Parser).
|
|
4268
|
+
protoOf(OpenAPIV3Parser).w48 = function (moduleContent, strict) {
|
|
4269
4269
|
return parseOpenApi(moduleContent, OpenAPIV3Parser$parse$lambda(strict));
|
|
4270
4270
|
};
|
|
4271
|
-
protoOf(OpenAPIV3Parser).
|
|
4271
|
+
protoOf(OpenAPIV3Parser).c49 = function (_this__u8e3s4) {
|
|
4272
4272
|
// Inline function 'kotlin.collections.reduce' call
|
|
4273
4273
|
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();
|
|
4274
4274
|
if (!iterator.u())
|
|
@@ -4304,7 +4304,7 @@ function OpenAPIV3Parser_getInstance() {
|
|
|
4304
4304
|
}
|
|
4305
4305
|
function parseEndpoints_0(_this__u8e3s4) {
|
|
4306
4306
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4307
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
4307
|
+
var tmp0_elvis_lhs = _this__u8e3s4.k34();
|
|
4308
4308
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4309
4309
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
4310
4310
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -4314,7 +4314,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4314
4314
|
while (_iterator__ex2g4s.u()) {
|
|
4315
4315
|
var element = _iterator__ex2g4s.v();
|
|
4316
4316
|
// Inline function 'kotlin.collections.component1' call
|
|
4317
|
-
var path = element.n1().
|
|
4317
|
+
var path = element.n1().k31_1;
|
|
4318
4318
|
// Inline function 'kotlin.collections.component2' call
|
|
4319
4319
|
var pathItem = element.o1();
|
|
4320
4320
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -4329,7 +4329,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4329
4329
|
var method = item.n1();
|
|
4330
4330
|
// Inline function 'kotlin.collections.component2' call
|
|
4331
4331
|
var operation = item.o1();
|
|
4332
|
-
var parameters = plus_0(resolveParameters_0(_this__u8e3s4, pathItem.
|
|
4332
|
+
var parameters = plus_0(resolveParameters_0(_this__u8e3s4, pathItem.l1g()), resolveParameters_0(_this__u8e3s4, operation.l1g()));
|
|
4333
4333
|
var tmp0_elvis_lhs_0 = toName(operation);
|
|
4334
4334
|
var segments = toSegments_0(_this__u8e3s4, path, parameters, tmp0_elvis_lhs_0 == null ? toName_0(path) + method.d3_1 : tmp0_elvis_lhs_0);
|
|
4335
4335
|
var tmp1_elvis_lhs = toName(operation);
|
|
@@ -4376,7 +4376,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4376
4376
|
}
|
|
4377
4377
|
// Inline function 'kotlin.let' call
|
|
4378
4378
|
var headers = new Shape(destination_4);
|
|
4379
|
-
var tmp2_safe_receiver = operation.
|
|
4379
|
+
var tmp2_safe_receiver = operation.l32();
|
|
4380
4380
|
var tmp;
|
|
4381
4381
|
if (tmp2_safe_receiver == null) {
|
|
4382
4382
|
tmp = null;
|
|
@@ -4391,7 +4391,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4391
4391
|
} else {
|
|
4392
4392
|
// Inline function 'kotlin.let' call
|
|
4393
4393
|
var isNullable = false;
|
|
4394
|
-
var tmp0_safe_receiver = tmp3_safe_receiver.
|
|
4394
|
+
var tmp0_safe_receiver = tmp3_safe_receiver.j1g();
|
|
4395
4395
|
var tmp_1;
|
|
4396
4396
|
if (tmp0_safe_receiver == null) {
|
|
4397
4397
|
tmp_1 = null;
|
|
@@ -4404,10 +4404,10 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4404
4404
|
while (_iterator__ex2g4s_5.u()) {
|
|
4405
4405
|
var item_2 = _iterator__ex2g4s_5.v();
|
|
4406
4406
|
// Inline function 'kotlin.collections.component1' call
|
|
4407
|
-
var mediaType = item_2.n1().
|
|
4407
|
+
var mediaType = item_2.n1().i32_1;
|
|
4408
4408
|
// Inline function 'kotlin.collections.component2' call
|
|
4409
4409
|
var mediaObject = item_2.o1();
|
|
4410
|
-
var schema = mediaObject.
|
|
4410
|
+
var schema = mediaObject.e32();
|
|
4411
4411
|
var tmp_2;
|
|
4412
4412
|
if (!(schema == null) ? isInterface(schema, Reference) : false) {
|
|
4413
4413
|
tmp_2 = toReference_1(_this__u8e3s4, schema, isNullable);
|
|
@@ -4441,7 +4441,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4441
4441
|
var tmp4_elvis_lhs = tmp_0;
|
|
4442
4442
|
var requests = tmp4_elvis_lhs == null ? listOf(new Request(null)) : tmp4_elvis_lhs;
|
|
4443
4443
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4444
|
-
var tmp0_elvis_lhs_1 = operation.
|
|
4444
|
+
var tmp0_elvis_lhs_1 = operation.h1f();
|
|
4445
4445
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4446
4446
|
var tmp0_0 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
4447
4447
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -4451,7 +4451,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4451
4451
|
while (_iterator__ex2g4s_6.u()) {
|
|
4452
4452
|
var element_2 = _iterator__ex2g4s_6.v();
|
|
4453
4453
|
// Inline function 'kotlin.collections.component1' call
|
|
4454
|
-
var status = element_2.n1().
|
|
4454
|
+
var status = element_2.n1().o31_1;
|
|
4455
4455
|
// Inline function 'kotlin.collections.component2' call
|
|
4456
4456
|
var res = element_2.o1();
|
|
4457
4457
|
// Inline function 'kotlin.let' call
|
|
@@ -4460,9 +4460,9 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4460
4460
|
var tmp_4;
|
|
4461
4461
|
// Inline function 'kotlin.collections.isNullOrEmpty' call
|
|
4462
4462
|
if (content == null || content.r()) {
|
|
4463
|
-
var tmp1_annotations = plus_0(toDescriptionAnnotationList(response.
|
|
4463
|
+
var tmp1_annotations = plus_0(toDescriptionAnnotationList(response.u31()), toLinkAnnotationList(_this__u8e3s4, response.d32()));
|
|
4464
4464
|
var tmp2_status = _StatusCode___get_value__impl__we50mu(status);
|
|
4465
|
-
var tmp0_safe_receiver_0 = response.
|
|
4465
|
+
var tmp0_safe_receiver_0 = response.f1f();
|
|
4466
4466
|
var tmp_5;
|
|
4467
4467
|
if (tmp0_safe_receiver_0 == null) {
|
|
4468
4468
|
tmp_5 = null;
|
|
@@ -4494,10 +4494,10 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4494
4494
|
while (_iterator__ex2g4s_8.u()) {
|
|
4495
4495
|
var item_4 = _iterator__ex2g4s_8.v();
|
|
4496
4496
|
// Inline function 'kotlin.collections.component1' call
|
|
4497
|
-
var contentType = item_4.n1().
|
|
4497
|
+
var contentType = item_4.n1().i32_1;
|
|
4498
4498
|
// Inline function 'kotlin.collections.component2' call
|
|
4499
4499
|
var media = item_4.o1();
|
|
4500
|
-
var tmp0_safe_receiver_1 = media.
|
|
4500
|
+
var tmp0_safe_receiver_1 = media.e32();
|
|
4501
4501
|
var tmp_6;
|
|
4502
4502
|
if (tmp0_safe_receiver_1 == null) {
|
|
4503
4503
|
tmp_6 = null;
|
|
@@ -4508,9 +4508,9 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4508
4508
|
var tmp1_safe_receiver = tmp_6;
|
|
4509
4509
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : get_isNullable(tmp1_safe_receiver);
|
|
4510
4510
|
var isNullable_0 = tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs;
|
|
4511
|
-
var tmp4_annotations = plus_0(toDescriptionAnnotationList(response.
|
|
4511
|
+
var tmp4_annotations = plus_0(toDescriptionAnnotationList(response.u31()), toLinkAnnotationList(_this__u8e3s4, response.d32()));
|
|
4512
4512
|
var tmp5_status = _StatusCode___get_value__impl__we50mu(status);
|
|
4513
|
-
var tmp3_safe_receiver_0 = response.
|
|
4513
|
+
var tmp3_safe_receiver_0 = response.f1f();
|
|
4514
4514
|
var tmp_7;
|
|
4515
4515
|
if (tmp3_safe_receiver_0 == null) {
|
|
4516
4516
|
tmp_7 = null;
|
|
@@ -4533,7 +4533,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4533
4533
|
var p0_0 = tmp0_elvis_lhs_3 == null ? emptyList() : tmp0_elvis_lhs_3;
|
|
4534
4534
|
var tmp6_headers = new Shape(p0_0);
|
|
4535
4535
|
var tmp_8 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
4536
|
-
var schema_0 = media.
|
|
4536
|
+
var schema_0 = media.e32();
|
|
4537
4537
|
var tmp_9;
|
|
4538
4538
|
if (!(schema_0 == null) ? isInterface(schema_0, Reference) : false) {
|
|
4539
4539
|
tmp_9 = toReference_1(_this__u8e3s4, schema_0, isNullable_0);
|
|
@@ -4558,7 +4558,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4558
4558
|
addAll(destination_6, list);
|
|
4559
4559
|
}
|
|
4560
4560
|
var responses = destination_6;
|
|
4561
|
-
var tmp$ret$10 = new Endpoint(null, toDescriptionAnnotationList(operation.
|
|
4561
|
+
var tmp$ret$10 = new Endpoint(null, toDescriptionAnnotationList(operation.u31()), new DefinitionIdentifier(name), method, segments, query, headers, requests, responses);
|
|
4562
4562
|
destination_0.x(tmp$ret$10);
|
|
4563
4563
|
}
|
|
4564
4564
|
var list_0 = destination_0;
|
|
@@ -4576,9 +4576,9 @@ function parseResponseBody_0(_this__u8e3s4) {
|
|
|
4576
4576
|
return flatMapResponses(_this__u8e3s4, parseResponseBody$lambda_0(_this__u8e3s4));
|
|
4577
4577
|
}
|
|
4578
4578
|
function parseDefinitions_0(_this__u8e3s4) {
|
|
4579
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
4579
|
+
var tmp0_safe_receiver = _this__u8e3s4.q34();
|
|
4580
4580
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4581
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4581
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i3f();
|
|
4582
4582
|
// Inline function 'kotlin.collections.filter' call
|
|
4583
4583
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
4584
4584
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -4590,7 +4590,7 @@ function parseDefinitions_0(_this__u8e3s4) {
|
|
|
4590
4590
|
var s = element.o1();
|
|
4591
4591
|
var tmp;
|
|
4592
4592
|
if (isInterface(s, Schema)) {
|
|
4593
|
-
var tmp0_subject = s.
|
|
4593
|
+
var tmp0_subject = s.a32();
|
|
4594
4594
|
var tmp_0;
|
|
4595
4595
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
4596
4596
|
tmp_0 = true;
|
|
@@ -4703,7 +4703,7 @@ function toSegments_0(_this__u8e3s4, path, parameters, name) {
|
|
|
4703
4703
|
}
|
|
4704
4704
|
|
|
4705
4705
|
var tmp1_safe_receiver = tmp$ret$8;
|
|
4706
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4706
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.e32();
|
|
4707
4707
|
var tmp_0;
|
|
4708
4708
|
if (tmp2_safe_receiver == null) {
|
|
4709
4709
|
tmp_0 = null;
|
|
@@ -4757,13 +4757,13 @@ function toSegments_0(_this__u8e3s4, path, parameters, name) {
|
|
|
4757
4757
|
function get_location_0(_this__u8e3s4) {
|
|
4758
4758
|
var tmp;
|
|
4759
4759
|
if (_this__u8e3s4 instanceof OpenAPIV30Parameter) {
|
|
4760
|
-
tmp = _this__u8e3s4.
|
|
4760
|
+
tmp = _this__u8e3s4.q3h_1;
|
|
4761
4761
|
} else {
|
|
4762
4762
|
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
4763
|
-
tmp = valueOf(_this__u8e3s4.
|
|
4763
|
+
tmp = valueOf(_this__u8e3s4.e3o_1.d3_1);
|
|
4764
4764
|
} else {
|
|
4765
4765
|
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
4766
|
-
tmp = valueOf(_this__u8e3s4.
|
|
4766
|
+
tmp = valueOf(_this__u8e3s4.j3y_1.d3_1);
|
|
4767
4767
|
} else {
|
|
4768
4768
|
// Inline function 'kotlin.error' call
|
|
4769
4769
|
var message = 'Unsupported parameter type: ' + toString(_this__u8e3s4);
|
|
@@ -4776,7 +4776,7 @@ function get_location_0(_this__u8e3s4) {
|
|
|
4776
4776
|
function toField_2(_this__u8e3s4, parameter, name) {
|
|
4777
4777
|
var tmp0_elvis_lhs = get_required(parameter);
|
|
4778
4778
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
4779
|
-
var s = parameter.
|
|
4779
|
+
var s = parameter.e32();
|
|
4780
4780
|
var tmp;
|
|
4781
4781
|
if (!(s == null) ? isInterface(s, Reference) : false) {
|
|
4782
4782
|
tmp = toReference_1(_this__u8e3s4, s, isNullable);
|
|
@@ -4803,7 +4803,7 @@ function resolve_1(_this__u8e3s4, requestBodyOrReference) {
|
|
|
4803
4803
|
tmp = requestBodyOrReference;
|
|
4804
4804
|
} else {
|
|
4805
4805
|
if (isInterface(requestBodyOrReference, Reference)) {
|
|
4806
|
-
tmp = resolveRequestBody(_this__u8e3s4, requestBodyOrReference).
|
|
4806
|
+
tmp = resolveRequestBody(_this__u8e3s4, requestBodyOrReference).gf_1;
|
|
4807
4807
|
} else {
|
|
4808
4808
|
noWhenBranchMatchedException();
|
|
4809
4809
|
}
|
|
@@ -4813,12 +4813,12 @@ function resolve_1(_this__u8e3s4, requestBodyOrReference) {
|
|
|
4813
4813
|
function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
4814
4814
|
// Inline function 'kotlin.let' call
|
|
4815
4815
|
var destruct = resolveSchemaRef_0(_this__u8e3s4, reference);
|
|
4816
|
-
var referencingObject = destruct.
|
|
4817
|
-
var schema = destruct.
|
|
4816
|
+
var referencingObject = destruct.ze();
|
|
4817
|
+
var schema = destruct.af();
|
|
4818
4818
|
var nullable = get_isNullable(schema);
|
|
4819
4819
|
var tmp;
|
|
4820
|
-
if (exists_0(schema.
|
|
4821
|
-
var additionalProperties = ensureNotNull(schema.
|
|
4820
|
+
if (exists_0(schema.a32())) {
|
|
4821
|
+
var additionalProperties = ensureNotNull(schema.a32());
|
|
4822
4822
|
var tmp_0;
|
|
4823
4823
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
4824
4824
|
tmp_0 = new Dict(new Any(isNullable), false);
|
|
@@ -4834,12 +4834,12 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4834
4834
|
}
|
|
4835
4835
|
}
|
|
4836
4836
|
tmp = tmp_0;
|
|
4837
|
-
} else if (!(schema.
|
|
4837
|
+
} else if (!(schema.w31() == null)) {
|
|
4838
4838
|
tmp = new Custom(sanitize(className([getReference(referencingObject)])), isNullable);
|
|
4839
4839
|
} else if (isPrimitive_0(get_primitiveType_0(schema))) {
|
|
4840
4840
|
tmp = new Primitive(toPrimitive_1(schema), isNullable);
|
|
4841
4841
|
} else if (equals(get_primitiveType_0(schema), OpenAPIV30Type_ARRAY_getInstance())) {
|
|
4842
|
-
var items = schema.
|
|
4842
|
+
var items = schema.x31();
|
|
4843
4843
|
var tmp_1;
|
|
4844
4844
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
4845
4845
|
tmp_1 = toIterable(toReference_1(_this__u8e3s4, items, nullable), isNullable);
|
|
@@ -4849,7 +4849,7 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4849
4849
|
} else {
|
|
4850
4850
|
if (items == null) {
|
|
4851
4851
|
// Inline function 'kotlin.error' call
|
|
4852
|
-
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.
|
|
4852
|
+
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.t31());
|
|
4853
4853
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4854
4854
|
} else {
|
|
4855
4855
|
noWhenBranchMatchedException();
|
|
@@ -4867,7 +4867,7 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4867
4867
|
var nullable = get_isNullable(schema);
|
|
4868
4868
|
var tmp;
|
|
4869
4869
|
if (equals(get_primitiveType_0(schema), OpenAPIV30Type_ARRAY_getInstance())) {
|
|
4870
|
-
var items = schema.
|
|
4870
|
+
var items = schema.x31();
|
|
4871
4871
|
var tmp_0;
|
|
4872
4872
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
4873
4873
|
tmp_0 = toIterable(toReference_1(_this__u8e3s4, items, nullable), isNullable);
|
|
@@ -4885,8 +4885,8 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4885
4885
|
}
|
|
4886
4886
|
}
|
|
4887
4887
|
tmp = tmp_0;
|
|
4888
|
-
} else if (!(schema.
|
|
4889
|
-
var additionalProperties = ensureNotNull(schema.
|
|
4888
|
+
} else if (!(schema.a32() == null)) {
|
|
4889
|
+
var additionalProperties = ensureNotNull(schema.a32());
|
|
4890
4890
|
var tmp_1;
|
|
4891
4891
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
4892
4892
|
tmp_1 = new Dict(new Any(nullable), isNullable);
|
|
@@ -4897,7 +4897,7 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4897
4897
|
if (isInterface(additionalProperties, Schema)) {
|
|
4898
4898
|
// Inline function 'kotlin.takeIf' call
|
|
4899
4899
|
var tmp_2;
|
|
4900
|
-
if (isPrimitive_0(get_primitiveType_0(additionalProperties)) || !(additionalProperties.
|
|
4900
|
+
if (isPrimitive_0(get_primitiveType_0(additionalProperties)) || !(additionalProperties.z31() == null)) {
|
|
4901
4901
|
tmp_2 = additionalProperties;
|
|
4902
4902
|
} else {
|
|
4903
4903
|
tmp_2 = null;
|
|
@@ -4918,10 +4918,10 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4918
4918
|
}
|
|
4919
4919
|
}
|
|
4920
4920
|
tmp = tmp_1;
|
|
4921
|
-
} else if (!(schema.
|
|
4921
|
+
} else if (!(schema.w31() == null)) {
|
|
4922
4922
|
// Inline function 'kotlin.let' call
|
|
4923
4923
|
var it = new Custom(sanitize(name), isNullable);
|
|
4924
|
-
tmp = !(schema.
|
|
4924
|
+
tmp = !(schema.a32() == null) ? new Dict(it, false) : it;
|
|
4925
4925
|
} else {
|
|
4926
4926
|
var tmp2_subject = get_primitiveType_0(schema);
|
|
4927
4927
|
var tmp_4;
|
|
@@ -4933,26 +4933,26 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4933
4933
|
// Inline function 'kotlin.let' call
|
|
4934
4934
|
|
|
4935
4935
|
var it_0 = new Primitive(toPrimitive_1(schema), isNullable);
|
|
4936
|
-
tmp_4 = !(schema.
|
|
4936
|
+
tmp_4 = !(schema.a32() == null) ? new Dict(it_0, false) : it_0;
|
|
4937
4937
|
break;
|
|
4938
4938
|
case -1:
|
|
4939
4939
|
case 5:
|
|
4940
4940
|
var tmp_5;
|
|
4941
|
-
var tmp_6 = schema.
|
|
4941
|
+
var tmp_6 = schema.a32();
|
|
4942
4942
|
if (!(tmp_6 == null) ? isInterface(tmp_6, BooleanValue) : false) {
|
|
4943
4943
|
// Inline function 'kotlin.let' call
|
|
4944
4944
|
var it_1 = new Any(false);
|
|
4945
|
-
tmp_5 = !(schema.
|
|
4945
|
+
tmp_5 = !(schema.a32() == null) ? new Dict(it_1, false) : it_1;
|
|
4946
4946
|
} else {
|
|
4947
4947
|
// Inline function 'kotlin.let' call
|
|
4948
4948
|
var it_2 = new Custom(sanitize(name), isNullable);
|
|
4949
|
-
tmp_5 = !(schema.
|
|
4949
|
+
tmp_5 = !(schema.a32() == null) ? new Dict(it_2, false) : it_2;
|
|
4950
4950
|
}
|
|
4951
4951
|
|
|
4952
4952
|
tmp_4 = tmp_5;
|
|
4953
4953
|
break;
|
|
4954
4954
|
case 4:
|
|
4955
|
-
var it_3 = schema.
|
|
4955
|
+
var it_3 = schema.x31();
|
|
4956
4956
|
var tmp_7;
|
|
4957
4957
|
if (!(it_3 == null) ? isInterface(it_3, Reference) : false) {
|
|
4958
4958
|
tmp_7 = toIterable(toReference_1(_this__u8e3s4, it_3, nullable), isNullable);
|
|
@@ -4989,7 +4989,7 @@ function resolve_2(_this__u8e3s4, responseOrReference) {
|
|
|
4989
4989
|
tmp = responseOrReference;
|
|
4990
4990
|
} else {
|
|
4991
4991
|
if (isInterface(responseOrReference, Reference)) {
|
|
4992
|
-
tmp = resolveResponse_0(_this__u8e3s4, responseOrReference).
|
|
4992
|
+
tmp = resolveResponse_0(_this__u8e3s4, responseOrReference).gf_1;
|
|
4993
4993
|
} else {
|
|
4994
4994
|
noWhenBranchMatchedException();
|
|
4995
4995
|
}
|
|
@@ -4999,13 +4999,13 @@ function resolve_2(_this__u8e3s4, responseOrReference) {
|
|
|
4999
4999
|
function get_content(_this__u8e3s4) {
|
|
5000
5000
|
var tmp;
|
|
5001
5001
|
if (_this__u8e3s4 instanceof OpenAPIV30Response) {
|
|
5002
|
-
tmp = _this__u8e3s4.
|
|
5002
|
+
tmp = _this__u8e3s4.d3j_1;
|
|
5003
5003
|
} else {
|
|
5004
5004
|
if (_this__u8e3s4 instanceof OpenAPIV31Response) {
|
|
5005
|
-
tmp = _this__u8e3s4.
|
|
5005
|
+
tmp = _this__u8e3s4.l3o_1;
|
|
5006
5006
|
} else {
|
|
5007
5007
|
if (_this__u8e3s4 instanceof OpenAPIV32Response) {
|
|
5008
|
-
tmp = _this__u8e3s4.
|
|
5008
|
+
tmp = _this__u8e3s4.q3y_1;
|
|
5009
5009
|
} else {
|
|
5010
5010
|
tmp = null;
|
|
5011
5011
|
}
|
|
@@ -5055,7 +5055,7 @@ function toField_3(_this__u8e3s4, header, identifier, name) {
|
|
|
5055
5055
|
// Inline function 'kotlin.let' call
|
|
5056
5056
|
var it = tmp;
|
|
5057
5057
|
var tmp0_identifier = new FieldIdentifier(identifier);
|
|
5058
|
-
var tmp1_annotations = toDescriptionAnnotationList(header.
|
|
5058
|
+
var tmp1_annotations = toDescriptionAnnotationList(header.u31());
|
|
5059
5059
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
5060
5060
|
}
|
|
5061
5061
|
function resolve_3(_this__u8e3s4, headerOrReference) {
|
|
@@ -5064,7 +5064,7 @@ function resolve_3(_this__u8e3s4, headerOrReference) {
|
|
|
5064
5064
|
tmp = headerOrReference;
|
|
5065
5065
|
} else {
|
|
5066
5066
|
if (isInterface(headerOrReference, Reference)) {
|
|
5067
|
-
tmp = resolveHeader_0(_this__u8e3s4, headerOrReference).
|
|
5067
|
+
tmp = resolveHeader_0(_this__u8e3s4, headerOrReference).gf_1;
|
|
5068
5068
|
} else {
|
|
5069
5069
|
noWhenBranchMatchedException();
|
|
5070
5070
|
}
|
|
@@ -5077,7 +5077,7 @@ function resolve_4(_this__u8e3s4, schemaOrReference) {
|
|
|
5077
5077
|
tmp = schemaOrReference;
|
|
5078
5078
|
} else {
|
|
5079
5079
|
if (isInterface(schemaOrReference, Reference)) {
|
|
5080
|
-
tmp = resolveSchemaRef_0(_this__u8e3s4, schemaOrReference).
|
|
5080
|
+
tmp = resolveSchemaRef_0(_this__u8e3s4, schemaOrReference).gf_1;
|
|
5081
5081
|
} else {
|
|
5082
5082
|
noWhenBranchMatchedException();
|
|
5083
5083
|
}
|
|
@@ -5087,20 +5087,20 @@ function resolve_4(_this__u8e3s4, schemaOrReference) {
|
|
|
5087
5087
|
function get_isNullable(_this__u8e3s4) {
|
|
5088
5088
|
var tmp;
|
|
5089
5089
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5090
|
-
var tmp1_elvis_lhs = _this__u8e3s4.
|
|
5090
|
+
var tmp1_elvis_lhs = _this__u8e3s4.n3f_1;
|
|
5091
5091
|
tmp = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
5092
5092
|
} else {
|
|
5093
5093
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5094
|
-
var tmp_0 = _this__u8e3s4.
|
|
5094
|
+
var tmp_0 = _this__u8e3s4.g3p_1;
|
|
5095
5095
|
var tmp2_safe_receiver = tmp_0 instanceof OpenAPIV31TypeArray ? tmp_0 : null;
|
|
5096
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
5096
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.w3q_1;
|
|
5097
5097
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.i1(OpenAPIV31Type_NULL_getInstance());
|
|
5098
5098
|
tmp = tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs;
|
|
5099
5099
|
} else {
|
|
5100
5100
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5101
|
-
var tmp_1 = _this__u8e3s4.
|
|
5101
|
+
var tmp_1 = _this__u8e3s4.l3z_1;
|
|
5102
5102
|
var tmp5_safe_receiver = tmp_1 instanceof OpenAPIV32TypeArray ? tmp_1 : null;
|
|
5103
|
-
var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.
|
|
5103
|
+
var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.b41_1;
|
|
5104
5104
|
var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.i1(OpenAPIV32Type_NULL_getInstance());
|
|
5105
5105
|
tmp = tmp7_elvis_lhs == null ? false : tmp7_elvis_lhs;
|
|
5106
5106
|
} else {
|
|
@@ -5126,13 +5126,13 @@ function flattenSchemaOrRef_0(_this__u8e3s4, schemaOrReference, name) {
|
|
|
5126
5126
|
function get_primitiveType_0(_this__u8e3s4) {
|
|
5127
5127
|
var tmp;
|
|
5128
5128
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5129
|
-
var t = _this__u8e3s4.
|
|
5129
|
+
var t = _this__u8e3s4.u3f_1;
|
|
5130
5130
|
var tmp_0;
|
|
5131
5131
|
if (t instanceof OpenAPIV30SingleType) {
|
|
5132
|
-
tmp_0 = t.
|
|
5132
|
+
tmp_0 = t.l3i_1;
|
|
5133
5133
|
} else {
|
|
5134
5134
|
if (t instanceof OpenAPIV30TypeArray) {
|
|
5135
|
-
var tmp0 = t.
|
|
5135
|
+
var tmp0 = t.q3k_1;
|
|
5136
5136
|
var tmp$ret$0;
|
|
5137
5137
|
$l$block: {
|
|
5138
5138
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -5158,13 +5158,13 @@ function get_primitiveType_0(_this__u8e3s4) {
|
|
|
5158
5158
|
tmp = tmp_0;
|
|
5159
5159
|
} else {
|
|
5160
5160
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5161
|
-
var t_0 = _this__u8e3s4.
|
|
5161
|
+
var t_0 = _this__u8e3s4.g3p_1;
|
|
5162
5162
|
var tmp_1;
|
|
5163
5163
|
if (t_0 instanceof OpenAPIV31SingleType) {
|
|
5164
|
-
tmp_1 = toV30(t_0.
|
|
5164
|
+
tmp_1 = toV30(t_0.x3q_1);
|
|
5165
5165
|
} else {
|
|
5166
5166
|
if (t_0 instanceof OpenAPIV31TypeArray) {
|
|
5167
|
-
var tmp0_0 = t_0.
|
|
5167
|
+
var tmp0_0 = t_0.w3q_1;
|
|
5168
5168
|
var tmp$ret$2;
|
|
5169
5169
|
$l$block_0: {
|
|
5170
5170
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -5191,13 +5191,13 @@ function get_primitiveType_0(_this__u8e3s4) {
|
|
|
5191
5191
|
tmp = tmp_1;
|
|
5192
5192
|
} else {
|
|
5193
5193
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5194
|
-
var t_1 = _this__u8e3s4.
|
|
5194
|
+
var t_1 = _this__u8e3s4.l3z_1;
|
|
5195
5195
|
var tmp_2;
|
|
5196
5196
|
if (t_1 instanceof OpenAPIV32SingleType) {
|
|
5197
|
-
tmp_2 = toV30_0(t_1.
|
|
5197
|
+
tmp_2 = toV30_0(t_1.c41_1);
|
|
5198
5198
|
} else {
|
|
5199
5199
|
if (t_1 instanceof OpenAPIV32TypeArray) {
|
|
5200
|
-
var tmp0_1 = t_1.
|
|
5200
|
+
var tmp0_1 = t_1.b41_1;
|
|
5201
5201
|
var tmp$ret$4;
|
|
5202
5202
|
$l$block_1: {
|
|
5203
5203
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -5233,13 +5233,13 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5233
5233
|
var oneOf = get_oneOf(schemaObject);
|
|
5234
5234
|
var anyOf = get_anyOf(schemaObject);
|
|
5235
5235
|
var tmp;
|
|
5236
|
-
if (exists_0(schemaObject.
|
|
5237
|
-
var tmp0_subject = schemaObject.
|
|
5236
|
+
if (exists_0(schemaObject.a32())) {
|
|
5237
|
+
var tmp0_subject = schemaObject.a32();
|
|
5238
5238
|
var tmp_0;
|
|
5239
5239
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
5240
5240
|
tmp_0 = emptyList();
|
|
5241
5241
|
} else {
|
|
5242
|
-
var tmp1_safe_receiver = schemaObject.
|
|
5242
|
+
var tmp1_safe_receiver = schemaObject.a32();
|
|
5243
5243
|
var tmp_1;
|
|
5244
5244
|
if (tmp1_safe_receiver == null) {
|
|
5245
5245
|
tmp_1 = null;
|
|
@@ -5254,7 +5254,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5254
5254
|
} else {
|
|
5255
5255
|
// Inline function 'kotlin.takeIf' call
|
|
5256
5256
|
var tmp_3;
|
|
5257
|
-
if (!(tmp2_safe_receiver.
|
|
5257
|
+
if (!(tmp2_safe_receiver.z31() == null)) {
|
|
5258
5258
|
tmp_3 = tmp2_safe_receiver;
|
|
5259
5259
|
} else {
|
|
5260
5260
|
tmp_3 = null;
|
|
@@ -5274,7 +5274,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5274
5274
|
}
|
|
5275
5275
|
tmp = tmp_0;
|
|
5276
5276
|
} else if (!(oneOf == null) || !(anyOf == null)) {
|
|
5277
|
-
var tmp_5 = toDescriptionAnnotationList(schemaObject.
|
|
5277
|
+
var tmp_5 = toDescriptionAnnotationList(schemaObject.u31());
|
|
5278
5278
|
var tmp_6 = new DefinitionIdentifier(sanitize(name));
|
|
5279
5279
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5280
5280
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
@@ -5328,11 +5328,11 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5328
5328
|
addAll(destination_0, list);
|
|
5329
5329
|
}
|
|
5330
5330
|
tmp = plus_0(tmp_8, destination_0);
|
|
5331
|
-
} else if (!(schemaObject.
|
|
5332
|
-
var tmp_10 = toDescriptionAnnotationList(schemaObject.
|
|
5331
|
+
} else if (!(schemaObject.y31() == null)) {
|
|
5332
|
+
var tmp_10 = toDescriptionAnnotationList(schemaObject.u31());
|
|
5333
5333
|
var tmp_11 = new DefinitionIdentifier(sanitize(name));
|
|
5334
5334
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5335
|
-
var tmp0_elvis_lhs = schemaObject.
|
|
5335
|
+
var tmp0_elvis_lhs = schemaObject.y31();
|
|
5336
5336
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5337
5337
|
var tmp0_0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
5338
5338
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -5349,14 +5349,14 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5349
5349
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
5350
5350
|
while (_iterator__ex2g4s_2.u()) {
|
|
5351
5351
|
var e = _iterator__ex2g4s_2.v();
|
|
5352
|
-
var key = e.
|
|
5352
|
+
var key = e.op_1;
|
|
5353
5353
|
if (set.x(key)) {
|
|
5354
5354
|
list_1.x(e);
|
|
5355
5355
|
}
|
|
5356
5356
|
}
|
|
5357
5357
|
var tmp_12 = listOf(new Type(null, tmp_10, tmp_11, new Shape(list_1), emptyList()));
|
|
5358
5358
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5359
|
-
var tmp0_1 = ensureNotNull(schemaObject.
|
|
5359
|
+
var tmp0_1 = ensureNotNull(schemaObject.y31());
|
|
5360
5360
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5361
5361
|
var destination_2 = ArrayList_init_$Create$_0();
|
|
5362
5362
|
var _iterator__ex2g4s_3 = tmp0_1.t();
|
|
@@ -5365,12 +5365,12 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5365
5365
|
var tmp_13;
|
|
5366
5366
|
if (isInterface(element_1, Reference)) {
|
|
5367
5367
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5368
|
-
var tmp0_elvis_lhs_0 = resolveSchemaRef_0(_this__u8e3s4, element_1).
|
|
5368
|
+
var tmp0_elvis_lhs_0 = resolveSchemaRef_0(_this__u8e3s4, element_1).gf_1.z31();
|
|
5369
5369
|
tmp_13 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
5370
5370
|
} else {
|
|
5371
5371
|
if (isInterface(element_1, Schema)) {
|
|
5372
5372
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5373
|
-
var tmp0_elvis_lhs_1 = element_1.
|
|
5373
|
+
var tmp0_elvis_lhs_1 = element_1.z31();
|
|
5374
5374
|
tmp_13 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
5375
5375
|
} else {
|
|
5376
5376
|
noWhenBranchMatchedException();
|
|
@@ -5395,20 +5395,20 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5395
5395
|
addAll(destination_2, list_3);
|
|
5396
5396
|
}
|
|
5397
5397
|
tmp = plus_0(tmp_12, destination_2);
|
|
5398
|
-
} else if (!(schemaObject.
|
|
5398
|
+
} else if (!(schemaObject.w31() == null)) {
|
|
5399
5399
|
// Inline function 'kotlin.collections.map' call
|
|
5400
|
-
var this_1 = ensureNotNull(schemaObject.
|
|
5400
|
+
var this_1 = ensureNotNull(schemaObject.w31());
|
|
5401
5401
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5402
5402
|
var destination_4 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
5403
5403
|
var _iterator__ex2g4s_5 = this_1.t();
|
|
5404
5404
|
while (_iterator__ex2g4s_5.u()) {
|
|
5405
5405
|
var item_0 = _iterator__ex2g4s_5.v();
|
|
5406
|
-
var tmp$ret$33 = item_0.
|
|
5406
|
+
var tmp$ret$33 = item_0.j1g();
|
|
5407
5407
|
destination_4.x(tmp$ret$33);
|
|
5408
5408
|
}
|
|
5409
5409
|
// Inline function 'kotlin.let' call
|
|
5410
5410
|
var it = toSet(destination_4);
|
|
5411
|
-
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.
|
|
5411
|
+
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.u31()), new DefinitionIdentifier(name), it));
|
|
5412
5412
|
} else {
|
|
5413
5413
|
var tmp5_subject = get_primitiveType_0(schemaObject);
|
|
5414
5414
|
var tmp_14;
|
|
@@ -5417,7 +5417,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5417
5417
|
case 5:
|
|
5418
5418
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5419
5419
|
|
|
5420
|
-
var tmp0_elvis_lhs_2 = schemaObject.
|
|
5420
|
+
var tmp0_elvis_lhs_2 = schemaObject.z31();
|
|
5421
5421
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5422
5422
|
|
|
5423
5423
|
var tmp0_3 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
@@ -5438,11 +5438,11 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5438
5438
|
}
|
|
5439
5439
|
|
|
5440
5440
|
var fields = destination_5;
|
|
5441
|
-
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.
|
|
5441
|
+
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.u31()), new DefinitionIdentifier(name), new Shape(toField_4(_this__u8e3s4, schemaObject, name)), emptyList()));
|
|
5442
5442
|
tmp_14 = plus_0(schema, fields);
|
|
5443
5443
|
break;
|
|
5444
5444
|
case 4:
|
|
5445
|
-
var tmp6_safe_receiver = schemaObject.
|
|
5445
|
+
var tmp6_safe_receiver = schemaObject.x31();
|
|
5446
5446
|
var tmp_15;
|
|
5447
5447
|
if (tmp6_safe_receiver == null) {
|
|
5448
5448
|
tmp_15 = null;
|
|
@@ -5485,7 +5485,7 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5485
5485
|
var element = _iterator__ex2g4s.v();
|
|
5486
5486
|
// Inline function 'kotlin.collections.component2' call
|
|
5487
5487
|
var mediaObject = element.o1();
|
|
5488
|
-
var schema = mediaObject.
|
|
5488
|
+
var schema = mediaObject.e32();
|
|
5489
5489
|
var tmp;
|
|
5490
5490
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
5491
5491
|
var tmp0_subject = get_primitiveType_0(schema);
|
|
@@ -5496,7 +5496,7 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5496
5496
|
tmp_0 = flatten_0(_this__u8e3s4, schema, className([name, _StatusCode___get_value__impl__we50mu(statusCode), 'ResponseBody']));
|
|
5497
5497
|
break;
|
|
5498
5498
|
case 4:
|
|
5499
|
-
var tmp1_safe_receiver = schema.
|
|
5499
|
+
var tmp1_safe_receiver = schema.x31();
|
|
5500
5500
|
var tmp_1;
|
|
5501
5501
|
if (tmp1_safe_receiver == null) {
|
|
5502
5502
|
tmp_1 = null;
|
|
@@ -5524,8 +5524,8 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5524
5524
|
return destination;
|
|
5525
5525
|
}
|
|
5526
5526
|
function resolveResponse_0(_this__u8e3s4, reference) {
|
|
5527
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5528
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5527
|
+
var tmp0_safe_receiver = _this__u8e3s4.q34();
|
|
5528
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h1f();
|
|
5529
5529
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s2(getReference(reference));
|
|
5530
5530
|
var tmp;
|
|
5531
5531
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5548,7 +5548,7 @@ function resolveResponse_0(_this__u8e3s4, reference) {
|
|
|
5548
5548
|
var tmp_1;
|
|
5549
5549
|
if (tmp3_elvis_lhs == null) {
|
|
5550
5550
|
// Inline function 'kotlin.error' call
|
|
5551
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5551
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.t31());
|
|
5552
5552
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5553
5553
|
} else {
|
|
5554
5554
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5556,8 +5556,8 @@ function resolveResponse_0(_this__u8e3s4, reference) {
|
|
|
5556
5556
|
return tmp_1;
|
|
5557
5557
|
}
|
|
5558
5558
|
function resolveParameter_0(_this__u8e3s4, reference) {
|
|
5559
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5560
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5559
|
+
var tmp0_safe_receiver = _this__u8e3s4.q34();
|
|
5560
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l1g();
|
|
5561
5561
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s2(getReference(reference));
|
|
5562
5562
|
var tmp;
|
|
5563
5563
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5581,13 +5581,13 @@ function resolveParameter_0(_this__u8e3s4, reference) {
|
|
|
5581
5581
|
function get_required(_this__u8e3s4) {
|
|
5582
5582
|
var tmp;
|
|
5583
5583
|
if (_this__u8e3s4 instanceof OpenAPIV30Parameter) {
|
|
5584
|
-
tmp = _this__u8e3s4.
|
|
5584
|
+
tmp = _this__u8e3s4.h3h_1;
|
|
5585
5585
|
} else {
|
|
5586
5586
|
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
5587
|
-
tmp = _this__u8e3s4.
|
|
5587
|
+
tmp = _this__u8e3s4.v3n_1;
|
|
5588
5588
|
} else {
|
|
5589
5589
|
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
5590
|
-
tmp = _this__u8e3s4.
|
|
5590
|
+
tmp = _this__u8e3s4.a3y_1;
|
|
5591
5591
|
} else {
|
|
5592
5592
|
tmp = null;
|
|
5593
5593
|
}
|
|
@@ -5598,13 +5598,13 @@ function get_required(_this__u8e3s4) {
|
|
|
5598
5598
|
function get_description(_this__u8e3s4) {
|
|
5599
5599
|
var tmp;
|
|
5600
5600
|
if (_this__u8e3s4 instanceof OpenAPIV30Parameter) {
|
|
5601
|
-
tmp = _this__u8e3s4.
|
|
5601
|
+
tmp = _this__u8e3s4.g3h_1;
|
|
5602
5602
|
} else {
|
|
5603
5603
|
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
5604
|
-
tmp = _this__u8e3s4.
|
|
5604
|
+
tmp = _this__u8e3s4.u3n_1;
|
|
5605
5605
|
} else {
|
|
5606
5606
|
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
5607
|
-
tmp = _this__u8e3s4.
|
|
5607
|
+
tmp = _this__u8e3s4.z3x_1;
|
|
5608
5608
|
} else {
|
|
5609
5609
|
tmp = null;
|
|
5610
5610
|
}
|
|
@@ -5613,8 +5613,8 @@ function get_description(_this__u8e3s4) {
|
|
|
5613
5613
|
return tmp;
|
|
5614
5614
|
}
|
|
5615
5615
|
function resolveRequestBody(_this__u8e3s4, reference) {
|
|
5616
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5617
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5616
|
+
var tmp0_safe_receiver = _this__u8e3s4.q34();
|
|
5617
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j3f();
|
|
5618
5618
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s2(getReference(reference));
|
|
5619
5619
|
var tmp;
|
|
5620
5620
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5637,7 +5637,7 @@ function resolveRequestBody(_this__u8e3s4, reference) {
|
|
|
5637
5637
|
var tmp_1;
|
|
5638
5638
|
if (tmp3_elvis_lhs == null) {
|
|
5639
5639
|
// Inline function 'kotlin.error' call
|
|
5640
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5640
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.t31());
|
|
5641
5641
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5642
5642
|
} else {
|
|
5643
5643
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5645,8 +5645,8 @@ function resolveRequestBody(_this__u8e3s4, reference) {
|
|
|
5645
5645
|
return tmp_1;
|
|
5646
5646
|
}
|
|
5647
5647
|
function resolveSchemaRef_0(_this__u8e3s4, reference) {
|
|
5648
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5649
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5648
|
+
var tmp0_safe_receiver = _this__u8e3s4.q34();
|
|
5649
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i3f();
|
|
5650
5650
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s2(getReference(reference));
|
|
5651
5651
|
var tmp;
|
|
5652
5652
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5669,7 +5669,7 @@ function resolveSchemaRef_0(_this__u8e3s4, reference) {
|
|
|
5669
5669
|
var tmp_1;
|
|
5670
5670
|
if (tmp3_elvis_lhs == null) {
|
|
5671
5671
|
// Inline function 'kotlin.error' call
|
|
5672
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5672
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.t31());
|
|
5673
5673
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5674
5674
|
} else {
|
|
5675
5675
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5735,13 +5735,13 @@ function toPrimitive_1(_this__u8e3s4) {
|
|
|
5735
5735
|
var tmp;
|
|
5736
5736
|
switch (tmp0_subject == null ? -1 : tmp0_subject.e3_1) {
|
|
5737
5737
|
case 0:
|
|
5738
|
-
tmp = !(_this__u8e3s4.
|
|
5738
|
+
tmp = !(_this__u8e3s4.c32() == null) ? new String_0(_RegExp___init__impl__p22noo(ensureNotNull(_this__u8e3s4.c32()))) : _this__u8e3s4.b32() === 'binary' ? Bytes_instance : new String_0(null);
|
|
5739
5739
|
break;
|
|
5740
5740
|
case 2:
|
|
5741
|
-
tmp = new Integer(_this__u8e3s4.
|
|
5741
|
+
tmp = new Integer(_this__u8e3s4.b32() === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
5742
5742
|
break;
|
|
5743
5743
|
case 1:
|
|
5744
|
-
tmp = new Number_0(_this__u8e3s4.
|
|
5744
|
+
tmp = new Number_0(_this__u8e3s4.b32() === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
5745
5745
|
break;
|
|
5746
5746
|
case 3:
|
|
5747
5747
|
tmp = Boolean_instance;
|
|
@@ -5755,10 +5755,10 @@ function toPrimitive_1(_this__u8e3s4) {
|
|
|
5755
5755
|
return tmp;
|
|
5756
5756
|
}
|
|
5757
5757
|
function toLinkInfo_0(_this__u8e3s4, name) {
|
|
5758
|
-
var tmp = _this__u8e3s4.
|
|
5759
|
-
var tmp_0 = _this__u8e3s4.
|
|
5758
|
+
var tmp = _this__u8e3s4.k32();
|
|
5759
|
+
var tmp_0 = _this__u8e3s4.j32();
|
|
5760
5760
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5761
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
5761
|
+
var tmp0_elvis_lhs = _this__u8e3s4.l1g();
|
|
5762
5762
|
// Inline function 'kotlin.collections.mapValues' call
|
|
5763
5763
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
5764
5764
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
@@ -5772,11 +5772,11 @@ function toLinkInfo_0(_this__u8e3s4, name) {
|
|
|
5772
5772
|
destination.v2(tmp_1, tmp$ret$5);
|
|
5773
5773
|
}
|
|
5774
5774
|
var tmp_2 = destination;
|
|
5775
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5775
|
+
var tmp0_safe_receiver = _this__u8e3s4.l32();
|
|
5776
5776
|
var tmp_3 = tmp0_safe_receiver == null ? null : asLinkExpression(tmp0_safe_receiver);
|
|
5777
|
-
var tmp_4 = _this__u8e3s4.
|
|
5778
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
5779
|
-
return new LinkInfo(name, tmp, tmp_0, tmp_2, tmp_3, tmp_4, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5777
|
+
var tmp_4 = _this__u8e3s4.u31();
|
|
5778
|
+
var tmp1_safe_receiver = _this__u8e3s4.m32();
|
|
5779
|
+
return new LinkInfo(name, tmp, tmp_0, tmp_2, tmp_3, tmp_4, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q32_1);
|
|
5780
5780
|
}
|
|
5781
5781
|
function resolve_5(_this__u8e3s4, linkOrReference) {
|
|
5782
5782
|
var tmp;
|
|
@@ -5794,13 +5794,13 @@ function resolve_5(_this__u8e3s4, linkOrReference) {
|
|
|
5794
5794
|
function get_required_0(_this__u8e3s4) {
|
|
5795
5795
|
var tmp;
|
|
5796
5796
|
if (_this__u8e3s4 instanceof OpenAPIV30Header) {
|
|
5797
|
-
tmp = _this__u8e3s4.
|
|
5797
|
+
tmp = _this__u8e3s4.f3k_1;
|
|
5798
5798
|
} else {
|
|
5799
5799
|
if (_this__u8e3s4 instanceof OpenAPIV31Header) {
|
|
5800
|
-
tmp = _this__u8e3s4.
|
|
5800
|
+
tmp = _this__u8e3s4.c3r_1;
|
|
5801
5801
|
} else {
|
|
5802
5802
|
if (_this__u8e3s4 instanceof OpenAPIV32Header) {
|
|
5803
|
-
tmp = _this__u8e3s4.
|
|
5803
|
+
tmp = _this__u8e3s4.h41_1;
|
|
5804
5804
|
} else {
|
|
5805
5805
|
tmp = null;
|
|
5806
5806
|
}
|
|
@@ -5811,13 +5811,13 @@ function get_required_0(_this__u8e3s4) {
|
|
|
5811
5811
|
function get_schema(_this__u8e3s4) {
|
|
5812
5812
|
var tmp;
|
|
5813
5813
|
if (_this__u8e3s4 instanceof OpenAPIV30Header) {
|
|
5814
|
-
tmp = _this__u8e3s4.
|
|
5814
|
+
tmp = _this__u8e3s4.l3k_1;
|
|
5815
5815
|
} else {
|
|
5816
5816
|
if (_this__u8e3s4 instanceof OpenAPIV31Header) {
|
|
5817
|
-
tmp = _this__u8e3s4.
|
|
5817
|
+
tmp = _this__u8e3s4.i3r_1;
|
|
5818
5818
|
} else {
|
|
5819
5819
|
if (_this__u8e3s4 instanceof OpenAPIV32Header) {
|
|
5820
|
-
tmp = _this__u8e3s4.
|
|
5820
|
+
tmp = _this__u8e3s4.n41_1;
|
|
5821
5821
|
} else {
|
|
5822
5822
|
tmp = null;
|
|
5823
5823
|
}
|
|
@@ -5826,8 +5826,8 @@ function get_schema(_this__u8e3s4) {
|
|
|
5826
5826
|
return tmp;
|
|
5827
5827
|
}
|
|
5828
5828
|
function resolveHeader_0(_this__u8e3s4, reference) {
|
|
5829
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5830
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5829
|
+
var tmp0_safe_receiver = _this__u8e3s4.q34();
|
|
5830
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f1f();
|
|
5831
5831
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s2(getReference(reference));
|
|
5832
5832
|
var tmp;
|
|
5833
5833
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5850,7 +5850,7 @@ function resolveHeader_0(_this__u8e3s4, reference) {
|
|
|
5850
5850
|
var tmp_1;
|
|
5851
5851
|
if (tmp3_elvis_lhs == null) {
|
|
5852
5852
|
// Inline function 'kotlin.error' call
|
|
5853
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5853
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.t31());
|
|
5854
5854
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5855
5855
|
} else {
|
|
5856
5856
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5866,7 +5866,7 @@ function toV30_0(_this__u8e3s4) {
|
|
|
5866
5866
|
function get_oneOf(_this__u8e3s4) {
|
|
5867
5867
|
var tmp;
|
|
5868
5868
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5869
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
5869
|
+
var tmp1_safe_receiver = _this__u8e3s4.q3f_1;
|
|
5870
5870
|
var tmp_0;
|
|
5871
5871
|
if (tmp1_safe_receiver == null) {
|
|
5872
5872
|
tmp_0 = null;
|
|
@@ -5885,7 +5885,7 @@ function get_oneOf(_this__u8e3s4) {
|
|
|
5885
5885
|
tmp = tmp_0;
|
|
5886
5886
|
} else {
|
|
5887
5887
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5888
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
5888
|
+
var tmp2_safe_receiver = _this__u8e3s4.c3p_1;
|
|
5889
5889
|
var tmp_1;
|
|
5890
5890
|
if (tmp2_safe_receiver == null) {
|
|
5891
5891
|
tmp_1 = null;
|
|
@@ -5904,7 +5904,7 @@ function get_oneOf(_this__u8e3s4) {
|
|
|
5904
5904
|
tmp = tmp_1;
|
|
5905
5905
|
} else {
|
|
5906
5906
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5907
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
5907
|
+
var tmp3_safe_receiver = _this__u8e3s4.h3z_1;
|
|
5908
5908
|
var tmp_2;
|
|
5909
5909
|
if (tmp3_safe_receiver == null) {
|
|
5910
5910
|
tmp_2 = null;
|
|
@@ -5931,7 +5931,7 @@ function get_oneOf(_this__u8e3s4) {
|
|
|
5931
5931
|
function get_anyOf(_this__u8e3s4) {
|
|
5932
5932
|
var tmp;
|
|
5933
5933
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5934
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
5934
|
+
var tmp1_safe_receiver = _this__u8e3s4.r3f_1;
|
|
5935
5935
|
var tmp_0;
|
|
5936
5936
|
if (tmp1_safe_receiver == null) {
|
|
5937
5937
|
tmp_0 = null;
|
|
@@ -5950,7 +5950,7 @@ function get_anyOf(_this__u8e3s4) {
|
|
|
5950
5950
|
tmp = tmp_0;
|
|
5951
5951
|
} else {
|
|
5952
5952
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5953
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
5953
|
+
var tmp2_safe_receiver = _this__u8e3s4.d3p_1;
|
|
5954
5954
|
var tmp_1;
|
|
5955
5955
|
if (tmp2_safe_receiver == null) {
|
|
5956
5956
|
tmp_1 = null;
|
|
@@ -5969,7 +5969,7 @@ function get_anyOf(_this__u8e3s4) {
|
|
|
5969
5969
|
tmp = tmp_1;
|
|
5970
5970
|
} else {
|
|
5971
5971
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5972
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
5972
|
+
var tmp3_safe_receiver = _this__u8e3s4.i3z_1;
|
|
5973
5973
|
var tmp_2;
|
|
5974
5974
|
if (tmp3_safe_receiver == null) {
|
|
5975
5975
|
tmp_2 = null;
|
|
@@ -5999,7 +5999,7 @@ function resolve_6(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
5999
5999
|
tmp = schemaOrReferenceOrBoolean;
|
|
6000
6000
|
} else {
|
|
6001
6001
|
if (isInterface(schemaOrReferenceOrBoolean, Reference)) {
|
|
6002
|
-
tmp = resolveSchemaRef_0(_this__u8e3s4, schemaOrReferenceOrBoolean).
|
|
6002
|
+
tmp = resolveSchemaRef_0(_this__u8e3s4, schemaOrReferenceOrBoolean).gf_1;
|
|
6003
6003
|
} else {
|
|
6004
6004
|
if (isInterface(schemaOrReferenceOrBoolean, BooleanValue)) {
|
|
6005
6005
|
// Inline function 'kotlin.TODO' call
|
|
@@ -6014,7 +6014,7 @@ function resolve_6(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
6014
6014
|
}
|
|
6015
6015
|
function toField_4(_this__u8e3s4, schema, name) {
|
|
6016
6016
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
6017
|
-
var tmp0_elvis_lhs = schema.
|
|
6017
|
+
var tmp0_elvis_lhs = schema.z31();
|
|
6018
6018
|
// Inline function 'kotlin.collections.map' call
|
|
6019
6019
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
6020
6020
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -6027,16 +6027,16 @@ function toField_4(_this__u8e3s4, schema, name) {
|
|
|
6027
6027
|
var key = item.n1();
|
|
6028
6028
|
// Inline function 'kotlin.collections.component2' call
|
|
6029
6029
|
var value = item.o1();
|
|
6030
|
-
var tmp0_safe_receiver = schema.
|
|
6030
|
+
var tmp0_safe_receiver = schema.b1u();
|
|
6031
6031
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i1(key);
|
|
6032
6032
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
6033
6033
|
var tmp;
|
|
6034
6034
|
if (isInterface(value, Schema)) {
|
|
6035
6035
|
// Inline function 'kotlin.let' call
|
|
6036
|
-
var reference = !(value.
|
|
6036
|
+
var reference = !(value.w31() == 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]));
|
|
6037
6037
|
var tmp1_identifier = new FieldIdentifier(key);
|
|
6038
|
-
var tmp2_annotations = toDescriptionAnnotationList(value.
|
|
6039
|
-
var tmp0_safe_receiver_0 = value.
|
|
6038
|
+
var tmp2_annotations = toDescriptionAnnotationList(value.u31());
|
|
6039
|
+
var tmp0_safe_receiver_0 = value.v31();
|
|
6040
6040
|
var tmp3_defaultValue = tmp0_safe_receiver_0 == null ? null : toDefaultValue(tmp0_safe_receiver_0, reference);
|
|
6041
6041
|
tmp = new Field(tmp2_annotations, tmp1_identifier, reference, tmp3_defaultValue);
|
|
6042
6042
|
} else {
|
|
@@ -6060,8 +6060,8 @@ function asLinkExpression(_this__u8e3s4) {
|
|
|
6060
6060
|
return tmp1_elvis_lhs == null ? toString(_this__u8e3s4) : tmp1_elvis_lhs;
|
|
6061
6061
|
}
|
|
6062
6062
|
function resolveLink(_this__u8e3s4, reference) {
|
|
6063
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
6064
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
6063
|
+
var tmp0_safe_receiver = _this__u8e3s4.q34();
|
|
6064
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d32();
|
|
6065
6065
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s2(getReference(reference));
|
|
6066
6066
|
var tmp;
|
|
6067
6067
|
if (tmp2_safe_receiver == null) {
|
|
@@ -6084,7 +6084,7 @@ function resolveLink(_this__u8e3s4, reference) {
|
|
|
6084
6084
|
var tmp_1;
|
|
6085
6085
|
if (tmp3_elvis_lhs == null) {
|
|
6086
6086
|
// Inline function 'kotlin.error' call
|
|
6087
|
-
var message = 'Cannot resolve link ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
6087
|
+
var message = 'Cannot resolve link ref: ' + Ref__toString_impl_irb7zi(reference.t31());
|
|
6088
6088
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
6089
6089
|
} else {
|
|
6090
6090
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -6132,16 +6132,16 @@ function toCommon_1(_this__u8e3s4) {
|
|
|
6132
6132
|
}
|
|
6133
6133
|
function parseParameters$lambda_0($this_parseParameters) {
|
|
6134
6134
|
return function ($this$flatMapRequests) {
|
|
6135
|
-
var parameters = plus_0(resolveParameters_0($this_parseParameters, $this$flatMapRequests.
|
|
6136
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
6137
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
6135
|
+
var parameters = plus_0(resolveParameters_0($this_parseParameters, $this$flatMapRequests.c48_1.l1g()), resolveParameters_0($this_parseParameters, $this$flatMapRequests.e48_1.l1g()));
|
|
6136
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.e48_1);
|
|
6137
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.b48_1) + $this$flatMapRequests.d48_1.d3_1 : tmp0_elvis_lhs;
|
|
6138
6138
|
// Inline function 'kotlin.collections.flatMap' call
|
|
6139
6139
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
6140
6140
|
var destination = ArrayList_init_$Create$_0();
|
|
6141
6141
|
var _iterator__ex2g4s = parameters.t();
|
|
6142
6142
|
while (_iterator__ex2g4s.u()) {
|
|
6143
6143
|
var element = _iterator__ex2g4s.v();
|
|
6144
|
-
var tmp0_safe_receiver = element.
|
|
6144
|
+
var tmp0_safe_receiver = element.e32();
|
|
6145
6145
|
var tmp;
|
|
6146
6146
|
if (tmp0_safe_receiver == null) {
|
|
6147
6147
|
tmp = null;
|
|
@@ -6158,9 +6158,9 @@ function parseParameters$lambda_0($this_parseParameters) {
|
|
|
6158
6158
|
}
|
|
6159
6159
|
function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
6160
6160
|
return function ($this$flatMapRequests) {
|
|
6161
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
6162
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
6163
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
6161
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.e48_1);
|
|
6162
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.b48_1) + $this$flatMapRequests.d48_1.d3_1 : tmp0_elvis_lhs;
|
|
6163
|
+
var tmp1_safe_receiver = $this$flatMapRequests.e48_1.l32();
|
|
6164
6164
|
var tmp;
|
|
6165
6165
|
if (tmp1_safe_receiver == null) {
|
|
6166
6166
|
tmp = null;
|
|
@@ -6170,7 +6170,7 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
6170
6170
|
}
|
|
6171
6171
|
var tmp2_safe_receiver = tmp;
|
|
6172
6172
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
6173
|
-
var tmp0_elvis_lhs_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
6173
|
+
var tmp0_elvis_lhs_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.j1g();
|
|
6174
6174
|
// Inline function 'kotlin.collections.flatMap' call
|
|
6175
6175
|
var tmp0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
6176
6176
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -6181,7 +6181,7 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
6181
6181
|
var element = _iterator__ex2g4s.v();
|
|
6182
6182
|
// Inline function 'kotlin.collections.component2' call
|
|
6183
6183
|
var mediaObject = element.o1();
|
|
6184
|
-
var schema = mediaObject.
|
|
6184
|
+
var schema = mediaObject.e32();
|
|
6185
6185
|
var tmp_0;
|
|
6186
6186
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
6187
6187
|
var tmp0_subject = get_primitiveType_0(schema);
|
|
@@ -6192,7 +6192,7 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
6192
6192
|
tmp_1 = flatten_0($this_parseRequestBody, schema, className([name, 'RequestBody']));
|
|
6193
6193
|
break;
|
|
6194
6194
|
case 4:
|
|
6195
|
-
var tmp1_safe_receiver_0 = schema.
|
|
6195
|
+
var tmp1_safe_receiver_0 = schema.x31();
|
|
6196
6196
|
var tmp_2;
|
|
6197
6197
|
if (tmp1_safe_receiver_0 == null) {
|
|
6198
6198
|
tmp_2 = null;
|
|
@@ -6232,15 +6232,15 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
6232
6232
|
}
|
|
6233
6233
|
function parseResponseBody$lambda_0($this_parseResponseBody) {
|
|
6234
6234
|
return function ($this$flatMapResponses) {
|
|
6235
|
-
var tmp0_elvis_lhs = toName($this$flatMapResponses.
|
|
6236
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
6237
|
-
var res = $this$flatMapResponses.
|
|
6235
|
+
var tmp0_elvis_lhs = toName($this$flatMapResponses.i48_1);
|
|
6236
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.f48_1) + $this$flatMapResponses.h48_1.d3_1 : tmp0_elvis_lhs;
|
|
6237
|
+
var res = $this$flatMapResponses.k48_1;
|
|
6238
6238
|
var tmp;
|
|
6239
6239
|
if (isInterface(res, Reference)) {
|
|
6240
|
-
tmp = flatMapResponse($this_parseResponseBody, resolveResponse_0($this_parseResponseBody, res).
|
|
6240
|
+
tmp = flatMapResponse($this_parseResponseBody, resolveResponse_0($this_parseResponseBody, res).gf_1, name, $this$flatMapResponses.j48_1);
|
|
6241
6241
|
} else {
|
|
6242
6242
|
if (isInterface(res, Response_0)) {
|
|
6243
|
-
tmp = flatMapResponse($this_parseResponseBody, res, name, $this$flatMapResponses.
|
|
6243
|
+
tmp = flatMapResponse($this_parseResponseBody, res, name, $this$flatMapResponses.j48_1);
|
|
6244
6244
|
} else {
|
|
6245
6245
|
noWhenBranchMatchedException();
|
|
6246
6246
|
}
|