@flock/wirespec 0.22.5 → 0.22.6
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 +8 -8
- package/clikt-clikt-mordant.mjs +79 -79
- package/clikt-clikt.mjs +1364 -1363
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +436 -436
- package/kotlin-kotlin-stdlib.mjs +192 -191
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10204 -10204
- package/kotlin-rgxgen.mjs +1771 -1771
- package/kotlinx-io-kotlinx-io-core.mjs +425 -425
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1824 -1824
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1509 -1509
- package/mordant-mordant.mjs +1246 -1246
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +5661 -5333
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +171 -187
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +138 -149
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +147 -160
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +356 -370
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +165 -175
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +187 -313
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +79 -79
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +194 -194
- package/wirespec-src-converter-asyncapi.mjs +545 -545
- package/wirespec-src-converter-avro.mjs +544 -544
- package/wirespec-src-converter-common.mjs +11 -11
- package/wirespec-src-converter-graphql.mjs +942 -942
- package/wirespec-src-converter-openapi.mjs +453 -453
- package/wirespec-src-ide-lsp.mjs +1359 -1359
- package/wirespec-src-plugin-arguments.mjs +153 -157
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +139 -142
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-extensions.mjs +1631 -1114
- package/wirespec-src-plugin-extensions.mjs.map +1 -1
- package/wirespec-src-plugin-npm.mjs +27 -27
- package/wirespec-src-tools-generator.mjs +17 -17
|
@@ -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.z19_1;
|
|
253
253
|
var tmp_0;
|
|
254
254
|
if (t instanceof Number_0) {
|
|
255
255
|
var tmp_1;
|
|
256
|
-
switch (t.
|
|
256
|
+
switch (t.c1a_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.h1a_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.j3f();
|
|
329
329
|
break;
|
|
330
330
|
case 1:
|
|
331
|
-
tmp = _this__u8e3s4.
|
|
331
|
+
tmp = _this__u8e3s4.l3f();
|
|
332
332
|
break;
|
|
333
333
|
case 2:
|
|
334
|
-
tmp = _this__u8e3s4.
|
|
334
|
+
tmp = _this__u8e3s4.k3f();
|
|
335
335
|
break;
|
|
336
336
|
case 3:
|
|
337
|
-
tmp = _this__u8e3s4.
|
|
337
|
+
tmp = _this__u8e3s4.m3f();
|
|
338
338
|
break;
|
|
339
339
|
case 4:
|
|
340
|
-
tmp = _this__u8e3s4.
|
|
340
|
+
tmp = _this__u8e3s4.n3f();
|
|
341
341
|
break;
|
|
342
342
|
case 5:
|
|
343
|
-
tmp = _this__u8e3s4.
|
|
343
|
+
tmp = _this__u8e3s4.o3f();
|
|
344
344
|
break;
|
|
345
345
|
case 6:
|
|
346
|
-
tmp = _this__u8e3s4.
|
|
346
|
+
tmp = _this__u8e3s4.p3f();
|
|
347
347
|
break;
|
|
348
348
|
case 7:
|
|
349
|
-
tmp = _this__u8e3s4.
|
|
349
|
+
tmp = _this__u8e3s4.q3f();
|
|
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.o3b();
|
|
362
362
|
var tmp;
|
|
363
363
|
if (tmp0_safe_receiver == null) {
|
|
364
364
|
tmp = null;
|
|
@@ -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.o3d();
|
|
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,13 +413,13 @@ 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().o3a_1;
|
|
417
417
|
// Inline function 'kotlin.collections.component2' call
|
|
418
418
|
var pathItem = element.o1();
|
|
419
419
|
// Inline function 'kotlin.collections.map' call
|
|
420
420
|
var this_0 = toOperationList(pathItem);
|
|
421
421
|
// Inline function 'kotlin.collections.mapTo' call
|
|
422
|
-
var destination_0 = ArrayList_init_$Create$(this_0.
|
|
422
|
+
var destination_0 = ArrayList_init_$Create$(this_0.c1());
|
|
423
423
|
// Inline function 'kotlin.collections.iterator' call
|
|
424
424
|
var _iterator__ex2g4s_0 = this_0.m1().t();
|
|
425
425
|
while (_iterator__ex2g4s_0.u()) {
|
|
@@ -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.f4h_1 = path;
|
|
450
|
+
this.g4h_1 = pathItem;
|
|
451
|
+
this.h4h_1 = method;
|
|
452
|
+
this.i4h_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.f4h_1) + ', pathItem=' + toString(this.g4h_1) + ', method=' + this.h4h_1.toString() + ', operation=' + toString(this.i4h_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.f4h_1);
|
|
459
|
+
result = imul(result, 31) + hashCode(this.g4h_1) | 0;
|
|
460
|
+
result = imul(result, 31) + this.h4h_1.hashCode() | 0;
|
|
461
|
+
result = imul(result, 31) + hashCode(this.i4h_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.f4h_1 === other.f4h_1))
|
|
470
470
|
return false;
|
|
471
|
-
if (!equals(this.
|
|
471
|
+
if (!equals(this.g4h_1, other.g4h_1))
|
|
472
472
|
return false;
|
|
473
|
-
if (!this.
|
|
473
|
+
if (!this.h4h_1.equals(other.h4h_1))
|
|
474
474
|
return false;
|
|
475
|
-
if (!equals(this.
|
|
475
|
+
if (!equals(this.i4h_1, other.i4h_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.o3d();
|
|
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().o3a_1;
|
|
492
492
|
// Inline function 'kotlin.collections.component2' call
|
|
493
493
|
var pathItem = element.o1();
|
|
494
494
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -504,17 +504,17 @@ 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.f1h();
|
|
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
|
|
511
|
-
var destination_1 = ArrayList_init_$Create$(this_0.
|
|
511
|
+
var destination_1 = ArrayList_init_$Create$(this_0.c1());
|
|
512
512
|
// Inline function 'kotlin.collections.iterator' call
|
|
513
513
|
var _iterator__ex2g4s_1 = this_0.m1().t();
|
|
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().s3a_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.j4h_1 = path;
|
|
542
|
+
this.k4h_1 = pathItem;
|
|
543
|
+
this.l4h_1 = method;
|
|
544
|
+
this.m4h_1 = operation;
|
|
545
|
+
this.n4h_1 = statusCode;
|
|
546
|
+
this.o4h_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.j4h_1) + ', pathItem=' + toString(this.k4h_1) + ', method=' + this.l4h_1.toString() + ', operation=' + toString(this.m4h_1) + ', statusCode=' + StatusCode__toString_impl_6caewy(this.n4h_1) + ', response=' + toString(this.o4h_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.j4h_1);
|
|
553
|
+
result = imul(result, 31) + hashCode(this.k4h_1) | 0;
|
|
554
|
+
result = imul(result, 31) + this.l4h_1.hashCode() | 0;
|
|
555
|
+
result = imul(result, 31) + hashCode(this.m4h_1) | 0;
|
|
556
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.n4h_1) | 0;
|
|
557
|
+
result = imul(result, 31) + hashCode(this.o4h_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.j4h_1 === other.j4h_1))
|
|
566
566
|
return false;
|
|
567
|
-
if (!equals(this.
|
|
567
|
+
if (!equals(this.k4h_1, other.k4h_1))
|
|
568
568
|
return false;
|
|
569
|
-
if (!this.
|
|
569
|
+
if (!this.l4h_1.equals(other.l4h_1))
|
|
570
570
|
return false;
|
|
571
|
-
if (!equals(this.
|
|
571
|
+
if (!equals(this.m4h_1, other.m4h_1))
|
|
572
572
|
return false;
|
|
573
|
-
if (!(this.
|
|
573
|
+
if (!(this.n4h_1 === other.n4h_1))
|
|
574
574
|
return false;
|
|
575
|
-
if (!equals(this.
|
|
575
|
+
if (!equals(this.o4h_1, other.o4h_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.x3a()), ['/']);
|
|
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.x3a());
|
|
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.j2n_1 = true;
|
|
611
|
+
$this$Json.h2n_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.m1a_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.n1a_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.o1a_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.p1a_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.s1a_1;
|
|
687
687
|
}
|
|
688
688
|
function toSchemaDefault(_this__u8e3s4) {
|
|
689
689
|
_init_properties_Utils_kt__jo07cx();
|
|
@@ -739,7 +739,7 @@ function resolveEndpointNameCollisions(_this__u8e3s4) {
|
|
|
739
739
|
tmp_0 = false;
|
|
740
740
|
}
|
|
741
741
|
if (tmp_0) {
|
|
742
|
-
tmp = item_0.
|
|
742
|
+
tmp = item_0.n1e(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.p4h_1 = name;
|
|
790
|
+
this.q4h_1 = operationId;
|
|
791
|
+
this.r4h_1 = operationRef;
|
|
792
|
+
this.s4h_1 = parameters;
|
|
793
|
+
this.t4h_1 = requestBody;
|
|
794
|
+
this.u4h_1 = description;
|
|
795
|
+
this.v4h_1 = serverUrl;
|
|
796
796
|
}
|
|
797
797
|
protoOf(LinkInfo).toString = function () {
|
|
798
|
-
return 'LinkInfo(name=' + this.
|
|
798
|
+
return 'LinkInfo(name=' + this.p4h_1 + ', operationId=' + this.q4h_1 + ', operationRef=' + this.r4h_1 + ', parameters=' + toString(this.s4h_1) + ', requestBody=' + this.t4h_1 + ', description=' + this.u4h_1 + ', serverUrl=' + this.v4h_1 + ')';
|
|
799
799
|
};
|
|
800
800
|
protoOf(LinkInfo).hashCode = function () {
|
|
801
|
-
var result = getStringHashCode(this.
|
|
802
|
-
result = imul(result, 31) + (this.
|
|
803
|
-
result = imul(result, 31) + (this.
|
|
804
|
-
result = imul(result, 31) + hashCode(this.
|
|
805
|
-
result = imul(result, 31) + (this.
|
|
806
|
-
result = imul(result, 31) + (this.
|
|
807
|
-
result = imul(result, 31) + (this.
|
|
801
|
+
var result = getStringHashCode(this.p4h_1);
|
|
802
|
+
result = imul(result, 31) + (this.q4h_1 == null ? 0 : getStringHashCode(this.q4h_1)) | 0;
|
|
803
|
+
result = imul(result, 31) + (this.r4h_1 == null ? 0 : getStringHashCode(this.r4h_1)) | 0;
|
|
804
|
+
result = imul(result, 31) + hashCode(this.s4h_1) | 0;
|
|
805
|
+
result = imul(result, 31) + (this.t4h_1 == null ? 0 : getStringHashCode(this.t4h_1)) | 0;
|
|
806
|
+
result = imul(result, 31) + (this.u4h_1 == null ? 0 : getStringHashCode(this.u4h_1)) | 0;
|
|
807
|
+
result = imul(result, 31) + (this.v4h_1 == null ? 0 : getStringHashCode(this.v4h_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.p4h_1 === other.p4h_1))
|
|
816
816
|
return false;
|
|
817
|
-
if (!(this.
|
|
817
|
+
if (!(this.q4h_1 == other.q4h_1))
|
|
818
818
|
return false;
|
|
819
|
-
if (!(this.
|
|
819
|
+
if (!(this.r4h_1 == other.r4h_1))
|
|
820
820
|
return false;
|
|
821
|
-
if (!equals(this.
|
|
821
|
+
if (!equals(this.s4h_1, other.s4h_1))
|
|
822
822
|
return false;
|
|
823
|
-
if (!(this.
|
|
823
|
+
if (!(this.t4h_1 == other.t4h_1))
|
|
824
824
|
return false;
|
|
825
|
-
if (!(this.
|
|
825
|
+
if (!(this.u4h_1 == other.u4h_1))
|
|
826
826
|
return false;
|
|
827
|
-
if (!(this.
|
|
827
|
+
if (!(this.v4h_1 == other.v4h_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.m1a_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.p4h_1))]);
|
|
863
|
+
var tmp0_safe_receiver = _this__u8e3s4.q4h_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.r4h_1;
|
|
873
873
|
if (tmp1_safe_receiver == null)
|
|
874
874
|
null;
|
|
875
875
|
else {
|
|
@@ -879,11 +879,11 @@ 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.s4h_1.r()) {
|
|
883
883
|
// Inline function 'kotlin.collections.map' call
|
|
884
|
-
var this_0 = _this__u8e3s4.
|
|
884
|
+
var this_0 = _this__u8e3s4.s4h_1;
|
|
885
885
|
// Inline function 'kotlin.collections.mapTo' call
|
|
886
|
-
var destination = ArrayList_init_$Create$(this_0.
|
|
886
|
+
var destination = ArrayList_init_$Create$(this_0.c1());
|
|
887
887
|
// Inline function 'kotlin.collections.iterator' call
|
|
888
888
|
var _iterator__ex2g4s = this_0.m1().t();
|
|
889
889
|
while (_iterator__ex2g4s.u()) {
|
|
@@ -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.t4h_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.u4h_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.v4h_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.n1a_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.n1a_1, 'operationId'), singleParam(_this__u8e3s4.n1a_1, 'operationRef'), dictParam(_this__u8e3s4.n1a_1, 'parameters'), singleParam(_this__u8e3s4.n1a_1, 'requestBody'), singleParam(_this__u8e3s4.n1a_1, 'description'), singleParam(_this__u8e3s4.n1a_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.o1a_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.p1a_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.s1a_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.o1a_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.p1a_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.q1a_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.p1a_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.o1a_1, tmp0_safe_receiver_0.s1a_1);
|
|
1024
1024
|
}
|
|
1025
1025
|
var tmp0_safe_receiver_1 = tmp_2;
|
|
1026
1026
|
if (tmp0_safe_receiver_1 == null)
|
|
@@ -1070,7 +1070,7 @@ 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.j2n_1 = true;
|
|
1074
1074
|
return Unit_instance;
|
|
1075
1075
|
}
|
|
1076
1076
|
function className$lambda(it) {
|
|
@@ -1103,7 +1103,7 @@ 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.ms_1.
|
|
1106
|
+
var type = element_0.ms_1.z19_1;
|
|
1107
1107
|
var tmp;
|
|
1108
1108
|
if (equals(type, Boolean_instance)) {
|
|
1109
1109
|
tmp = to(element_0.ls_1.o1(), new OpenAPIV20Schema(VOID, OpenAPIV20Type_BOOLEAN_getInstance()));
|
|
@@ -1114,28 +1114,28 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1114
1114
|
if (type instanceof Integer) {
|
|
1115
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.i1a_1;
|
|
1118
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f1a_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.i1a_1;
|
|
1121
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.g1a_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
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.d1a_1;
|
|
1129
|
+
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.f1a_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.d1a_1;
|
|
1132
|
+
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.g1a_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
1137
|
var tmp_2 = element_0.ls_1.o1();
|
|
1138
|
-
var pattern = type.
|
|
1138
|
+
var pattern = type.k1a_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) {
|
|
@@ -1322,7 +1322,7 @@ function emitPaths($this, $receiver, logger) {
|
|
|
1322
1322
|
}
|
|
1323
1323
|
// Inline function 'kotlin.collections.map' call
|
|
1324
1324
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1325
|
-
var destination_1 = ArrayList_init_$Create$(destination_0.
|
|
1325
|
+
var destination_1 = ArrayList_init_$Create$(destination_0.c1());
|
|
1326
1326
|
// Inline function 'kotlin.collections.iterator' call
|
|
1327
1327
|
var _iterator__ex2g4s_1 = destination_0.m1().t();
|
|
1328
1328
|
while (_iterator__ex2g4s_1.u()) {
|
|
@@ -1378,7 +1378,7 @@ function toProperties($this, $receiver) {
|
|
|
1378
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.a3h(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;
|
|
@@ -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.k3g_1;
|
|
1623
1623
|
} else {
|
|
1624
1624
|
noWhenBranchMatchedException();
|
|
1625
1625
|
}
|
|
@@ -1642,10 +1642,10 @@ function toSchemaOrReference($this, $receiver) {
|
|
|
1642
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.x19_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.z19_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.z19_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.z19_1;
|
|
1727
1727
|
var tmp_0;
|
|
1728
1728
|
if (t instanceof String_0) {
|
|
1729
|
-
var p = t.
|
|
1729
|
+
var p = t.k1a_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.z19_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.d1a_1;
|
|
1754
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f1a_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.i1a_1;
|
|
1759
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.f1a_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.z19_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.d1a_1;
|
|
1778
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g1a_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.i1a_1;
|
|
1783
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.g1a_1;
|
|
1784
1784
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
1785
1785
|
} else {
|
|
1786
1786
|
tmp_0 = null;
|
|
@@ -1798,7 +1798,7 @@ function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
|
1798
1798
|
tmp = '{' + it.mr_1.o1() + '}';
|
|
1799
1799
|
} else {
|
|
1800
1800
|
if (it instanceof Literal) {
|
|
1801
|
-
tmp = it.
|
|
1801
|
+
tmp = it.a1b_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.w4h_1 = FileExtension_JSON_getInstance();
|
|
1811
|
+
this.x4h_1 = true;
|
|
1812
1812
|
}
|
|
1813
1813
|
protoOf(OpenAPIV2Emitter).wp = function () {
|
|
1814
|
-
return this.
|
|
1814
|
+
return this.w4h_1;
|
|
1815
1815
|
};
|
|
1816
1816
|
protoOf(OpenAPIV2Emitter).vp = function () {
|
|
1817
|
-
return this.
|
|
1817
|
+
return this.x4h_1;
|
|
1818
1818
|
};
|
|
1819
1819
|
protoOf(OpenAPIV2Emitter).to = function (ast, logger) {
|
|
1820
1820
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
@@ -1832,21 +1832,21 @@ protoOf(OpenAPIV2Emitter).to = function (ast, logger) {
|
|
|
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().w4h_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().y4h(it, logger);
|
|
1839
1839
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
1840
|
-
var this_1 = tmp0_0.
|
|
1840
|
+
var this_1 = tmp0_0.g25();
|
|
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.l2m(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).y4h = 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.z4h((new OpenAPIV2(jsonDefault($strict))).i3d(it)));
|
|
1866
1866
|
};
|
|
1867
1867
|
}
|
|
1868
1868
|
function OpenAPIV2Parser() {
|
|
1869
1869
|
}
|
|
1870
|
-
protoOf(OpenAPIV2Parser).
|
|
1870
|
+
protoOf(OpenAPIV2Parser).p31 = function (moduleContent, strict) {
|
|
1871
1871
|
return parseOpenApi(moduleContent, OpenAPIV2Parser$parse$lambda(strict));
|
|
1872
1872
|
};
|
|
1873
|
-
protoOf(OpenAPIV2Parser).
|
|
1873
|
+
protoOf(OpenAPIV2Parser).z4h = 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.o3d();
|
|
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().o3a_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.j1i()), resolveParameters(_this__u8e3s4, operation.j1i()));
|
|
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.g3i_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.h3i_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.l3d();
|
|
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.a3i_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,11 +2050,11 @@ 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.f1h();
|
|
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
|
|
2057
|
-
var destination_8 = LinkedHashMap_init_$Create$(mapCapacity(this_2.
|
|
2057
|
+
var destination_8 = LinkedHashMap_init_$Create$(mapCapacity(this_2.c1()));
|
|
2058
2058
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
2059
2059
|
var _iterator__ex2g4s_8 = this_2.m1().t();
|
|
2060
2060
|
while (_iterator__ex2g4s_8.u()) {
|
|
@@ -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().s3a_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.m3d();
|
|
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,16 +2094,16 @@ 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.y3a());
|
|
2098
2098
|
var tmp4_status = _StatusCode___get_value__impl__we50mu(status);
|
|
2099
|
-
var tmp0_safe_receiver = res.
|
|
2099
|
+
var tmp0_safe_receiver = res.d1h();
|
|
2100
2100
|
var tmp_6;
|
|
2101
2101
|
if (tmp0_safe_receiver == null) {
|
|
2102
2102
|
tmp_6 = null;
|
|
2103
2103
|
} else {
|
|
2104
2104
|
// Inline function 'kotlin.collections.map' call
|
|
2105
2105
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2106
|
-
var destination_11 = ArrayList_init_$Create$(tmp0_safe_receiver.
|
|
2106
|
+
var destination_11 = ArrayList_init_$Create$(tmp0_safe_receiver.c1());
|
|
2107
2107
|
// Inline function 'kotlin.collections.iterator' call
|
|
2108
2108
|
var _iterator__ex2g4s_11 = tmp0_safe_receiver.m1().t();
|
|
2109
2109
|
while (_iterator__ex2g4s_11.u()) {
|
|
@@ -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.c3j_1;
|
|
2127
2127
|
var tmp_7;
|
|
2128
2128
|
if (tmp2_safe_receiver_0 == null) {
|
|
2129
2129
|
tmp_7 = null;
|
|
@@ -2160,7 +2160,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
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.y3a()), 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.n3d();
|
|
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.gf_1.
|
|
2218
|
+
var tmp0_subject = element_0.gf_1.e3b();
|
|
2219
2219
|
var tmp_0;
|
|
2220
2220
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
2221
2221
|
tmp_0 = true;
|
|
@@ -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.b3i_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.z3h_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.g3h_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.x3h_1 == null)) {
|
|
2368
|
+
tmp = new Custom(sanitize(className([name, 'Parameter', schema.b3i_1])), isNullable);
|
|
2369
2369
|
} else {
|
|
2370
|
-
var tmp1_subject = schema.
|
|
2370
|
+
var tmp1_subject = schema.h3h_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.i3h_1;
|
|
2384
2384
|
var tmp_1;
|
|
2385
2385
|
if (tmp2_safe_receiver == null) {
|
|
2386
2386
|
tmp_1 = null;
|
|
@@ -2434,8 +2434,8 @@ 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.b3i_1);
|
|
2438
|
+
var tmp1_annotations = toDescriptionAnnotationList(parameter.f3h_1);
|
|
2439
2439
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
2440
2440
|
}
|
|
2441
2441
|
function toReference(_this__u8e3s4, reference, isNullable) {
|
|
@@ -2443,8 +2443,8 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2443
2443
|
var referencingObject = _destruct__k2r9zo.ze();
|
|
2444
2444
|
var schema = _destruct__k2r9zo.af();
|
|
2445
2445
|
var tmp;
|
|
2446
|
-
if (exists(schema.
|
|
2447
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2446
|
+
if (exists(schema.e3b())) {
|
|
2447
|
+
var additionalProperties = ensureNotNull(schema.e3b());
|
|
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.a3b() == 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.b3b();
|
|
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.x3a());
|
|
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.
|
|
2505
|
-
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2506
|
-
var tmp_6 = first(ensureNotNull(schema.
|
|
2504
|
+
var tmp0_safe_receiver = schema.c3b();
|
|
2505
|
+
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c1()) === 1) {
|
|
2506
|
+
var tmp_6 = first(ensureNotNull(schema.c3b()));
|
|
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.d3b() == null;
|
|
2513
2513
|
} else {
|
|
2514
2514
|
tmp_4 = false;
|
|
2515
2515
|
}
|
|
2516
2516
|
if (tmp_4) {
|
|
2517
|
-
tmp_3 = schema.
|
|
2517
|
+
tmp_3 = schema.a3b() == 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.b3b() == null;
|
|
2528
2528
|
} else {
|
|
2529
2529
|
tmp_1 = false;
|
|
2530
2530
|
}
|
|
2531
2531
|
if (tmp_1) {
|
|
2532
|
-
tmp_0 = schema.
|
|
2532
|
+
tmp_0 = schema.e3b() == 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.c3b()));
|
|
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.e3b() == null)) {
|
|
2541
|
+
var additionalProperties = ensureNotNull(schema.e3b());
|
|
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.d3b() == 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.a3b() == null)) {
|
|
2575
2575
|
var tmp_11;
|
|
2576
|
-
if (!(schema.
|
|
2576
|
+
if (!(schema.e3b() == 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.e3b() == 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.e3b();
|
|
2603
2603
|
if (!(tmp_15 == null) ? isInterface(tmp_15, BooleanValue) : false) {
|
|
2604
2604
|
var tmp_16;
|
|
2605
|
-
if (!(schema.
|
|
2605
|
+
if (!(schema.e3b() == 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.e3b() == 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.b3b();
|
|
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.l3j_1);
|
|
2682
2682
|
var tmp_0;
|
|
2683
|
-
if (v20.
|
|
2684
|
-
var tmp2_safe_receiver = v20.
|
|
2683
|
+
if (v20.m3j_1.e3_1 === 4) {
|
|
2684
|
+
var tmp2_safe_receiver = v20.o3j_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.w3f_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.e3b())) {
|
|
2773
|
+
var tmp0_subject = schemaObject.e3b();
|
|
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.e3b();
|
|
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.d3b() == 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.c3b() == null)) {
|
|
2813
|
+
var tmp_5 = toDescriptionAnnotationList(schemaObject.y3a());
|
|
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.c3b();
|
|
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
|
|
@@ -2847,7 +2847,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
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.c3b());
|
|
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.d3b();
|
|
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.a3b() == null)) {
|
|
2898
2898
|
// Inline function 'kotlin.collections.map' call
|
|
2899
|
-
var this_0 = ensureNotNull(schemaObject.
|
|
2899
|
+
var this_0 = ensureNotNull(schemaObject.a3b());
|
|
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.h1i();
|
|
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.y3a()), 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.d3b();
|
|
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.y3a()), 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.b3b();
|
|
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.j1i();
|
|
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.x3a());
|
|
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.b1i();
|
|
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.g3b() == null) ? new String_0(_RegExp___init__impl__p22noo(ensureNotNull(_this__u8e3s4.g3b()))) : _this__u8e3s4.f3b() === '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.f3b() === '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.f3b() === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
3003
3003
|
break;
|
|
3004
3004
|
case 3:
|
|
3005
3005
|
tmp = Boolean_instance;
|
|
@@ -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.n3d();
|
|
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.x3a());
|
|
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.f1h();
|
|
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.x3a());
|
|
3117
3117
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
3118
3118
|
} else {
|
|
3119
3119
|
tmp = tmp1_elvis_lhs;
|
|
@@ -3141,11 +3141,11 @@ 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.d3b();
|
|
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
|
|
3148
|
-
var destination = ArrayList_init_$Create$(this_0.
|
|
3148
|
+
var destination = ArrayList_init_$Create$(this_0.c1());
|
|
3149
3149
|
// Inline function 'kotlin.collections.iterator' call
|
|
3150
3150
|
var _iterator__ex2g4s = this_0.m1().t();
|
|
3151
3151
|
while (_iterator__ex2g4s.u()) {
|
|
@@ -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.z1v();
|
|
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.a3b() == 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.z3a();
|
|
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.g4h_1.j1i()), resolveParameters($this_parseParameters, $this$flatMapRequests.i4h_1.j1i()));
|
|
3187
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.i4h_1);
|
|
3188
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.f4h_1) + $this$flatMapRequests.h4h_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.a3i_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.b3i_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.g4h_1.j1i()), resolveParameters($this_parseRequestBody, $this$flatMapRequests.i4h_1.j1i()));
|
|
3223
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.i4h_1);
|
|
3224
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.f4h_1) + $this$flatMapRequests.h4h_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.x3h_1 == null)) {
|
|
3233
|
+
var tmp_0 = toDescriptionAnnotationList(element.f3h_1);
|
|
3234
|
+
var tmp_1 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.b3i_1])));
|
|
3235
3235
|
// Inline function 'kotlin.collections.map' call
|
|
3236
|
-
var this_0 = ensureNotNull(element.
|
|
3236
|
+
var this_0 = ensureNotNull(element.x3h_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.h1i();
|
|
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.i4h_1.j1i();
|
|
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.a3i_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.b3b();
|
|
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.o4h_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.c3j_1;
|
|
3345
|
+
var tmp1_elvis_lhs = toName($this$flatMapResponses.m4h_1);
|
|
3346
|
+
var name = tmp1_elvis_lhs == null ? toName_0($this$flatMapResponses.j4h_1) + $this$flatMapResponses.l4h_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.n4h_1), 'ResponseBody']));
|
|
3355
3355
|
break;
|
|
3356
3356
|
case 4:
|
|
3357
|
-
var tmp4_safe_receiver = schema.
|
|
3357
|
+
var tmp4_safe_receiver = schema.b3b();
|
|
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.n4h_1), 'ResponseBody']));
|
|
3364
3364
|
}
|
|
3365
3365
|
|
|
3366
3366
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -3461,7 +3461,7 @@ function emitPaths_0($this, $receiver, logger) {
|
|
|
3461
3461
|
}
|
|
3462
3462
|
// Inline function 'kotlin.collections.map' call
|
|
3463
3463
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3464
|
-
var destination_1 = ArrayList_init_$Create$(destination_0.
|
|
3464
|
+
var destination_1 = ArrayList_init_$Create$(destination_0.c1());
|
|
3465
3465
|
// Inline function 'kotlin.collections.iterator' call
|
|
3466
3466
|
var _iterator__ex2g4s_1 = destination_0.m1().t();
|
|
3467
3467
|
while (_iterator__ex2g4s_1.u()) {
|
|
@@ -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.ms_1.
|
|
3516
|
+
var type = $receiver.ms_1.z19_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.i1a_1;
|
|
3521
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f1a_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.i1a_1;
|
|
3524
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.g1a_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.d1a_1;
|
|
3531
|
+
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.f1a_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.d1a_1;
|
|
3534
|
+
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.g1a_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.k1a_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) {
|
|
@@ -3851,7 +3851,7 @@ function emit_6($this, $receiver) {
|
|
|
3851
3851
|
}
|
|
3852
3852
|
// Inline function 'kotlin.collections.map' call
|
|
3853
3853
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3854
|
-
var destination_5 = ArrayList_init_$Create$(destination_4.
|
|
3854
|
+
var destination_5 = ArrayList_init_$Create$(destination_4.c1());
|
|
3855
3855
|
// Inline function 'kotlin.collections.iterator' call
|
|
3856
3856
|
var _iterator__ex2g4s_6 = destination_4.m1().t();
|
|
3857
3857
|
while (_iterator__ex2g4s_6.u()) {
|
|
@@ -3942,11 +3942,11 @@ 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.p4h_1;
|
|
3946
3946
|
// Inline function 'kotlin.collections.mapValues' call
|
|
3947
|
-
var this_0 = element.
|
|
3947
|
+
var this_0 = element.s4h_1;
|
|
3948
3948
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
3949
|
-
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.
|
|
3949
|
+
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.c1()));
|
|
3950
3950
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3951
3951
|
var _iterator__ex2g4s_0 = this_0.m1().t();
|
|
3952
3952
|
while (_iterator__ex2g4s_0.u()) {
|
|
@@ -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.t4h_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.r4h_1, element.q4h_1, tmp_1, tmp_2, element.u4h_1);
|
|
3976
3976
|
byName.v2(tmp2, value);
|
|
3977
3977
|
}
|
|
3978
3978
|
return new OpenAPIV30Links(toSet(byName.m1()));
|
|
@@ -4003,7 +4003,7 @@ function emitSchema($this, $receiver) {
|
|
|
4003
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.e3q(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;
|
|
@@ -4023,7 +4023,7 @@ function emitHeader_0($this, $receiver, description) {
|
|
|
4023
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.x19_1));
|
|
4027
4027
|
} else {
|
|
4028
4028
|
if ($receiver instanceof Primitive) {
|
|
4029
4029
|
var tmp1_schema = emitSchema_0($this, $receiver);
|
|
@@ -4060,10 +4060,10 @@ function emitSchema_0($this, $receiver) {
|
|
|
4060
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.x19_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.z19_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);
|
|
@@ -4120,10 +4120,10 @@ function emit_7($this, $receiver) {
|
|
|
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.z19_1;
|
|
4124
4124
|
var tmp_0;
|
|
4125
4125
|
if (t instanceof String_0) {
|
|
4126
|
-
var p = t.
|
|
4126
|
+
var p = t.k1a_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.z19_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.d1a_1;
|
|
4151
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f1a_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.i1a_1;
|
|
4156
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.f1a_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.z19_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.d1a_1;
|
|
4175
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g1a_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.i1a_1;
|
|
4180
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.g1a_1;
|
|
4181
4181
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
4182
4182
|
} else {
|
|
4183
4183
|
tmp_0 = null;
|
|
@@ -4195,7 +4195,7 @@ function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
|
4195
4195
|
tmp = '{' + it.mr_1.o1() + '}';
|
|
4196
4196
|
} else {
|
|
4197
4197
|
if (it instanceof Literal) {
|
|
4198
|
-
tmp = it.
|
|
4198
|
+
tmp = it.a1b_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.a4i_1 = FileExtension_JSON_getInstance();
|
|
4208
|
+
this.b4i_1 = true;
|
|
4209
4209
|
}
|
|
4210
4210
|
protoOf(OpenAPIV3Emitter).wp = function () {
|
|
4211
|
-
return this.
|
|
4211
|
+
return this.a4i_1;
|
|
4212
4212
|
};
|
|
4213
4213
|
protoOf(OpenAPIV3Emitter).vp = function () {
|
|
4214
|
-
return this.
|
|
4214
|
+
return this.b4i_1;
|
|
4215
4215
|
};
|
|
4216
4216
|
protoOf(OpenAPIV3Emitter).to = function (ast, logger) {
|
|
4217
4217
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
@@ -4229,24 +4229,24 @@ protoOf(OpenAPIV3Emitter).to = function (ast, logger) {
|
|
|
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().a4i_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().c4i(it, null, logger);
|
|
4236
4236
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
4237
|
-
var this_1 = tmp0_0.
|
|
4237
|
+
var this_1 = tmp0_0.g25();
|
|
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.l2m(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).c4i = function (statements, options, logger) {
|
|
4247
|
+
var tmp1_elvis_lhs = options == null ? null : options.d4i_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.e4i_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.f4i((new OpenAPIV3(jsonDefault($strict))).i3d(it)));
|
|
4264
4264
|
};
|
|
4265
4265
|
}
|
|
4266
4266
|
function OpenAPIV3Parser() {
|
|
4267
4267
|
}
|
|
4268
|
-
protoOf(OpenAPIV3Parser).
|
|
4268
|
+
protoOf(OpenAPIV3Parser).p31 = function (moduleContent, strict) {
|
|
4269
4269
|
return parseOpenApi(moduleContent, OpenAPIV3Parser$parse$lambda(strict));
|
|
4270
4270
|
};
|
|
4271
|
-
protoOf(OpenAPIV3Parser).
|
|
4271
|
+
protoOf(OpenAPIV3Parser).f4i = 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.o3d();
|
|
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,13 +4314,13 @@ 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().o3a_1;
|
|
4318
4318
|
// Inline function 'kotlin.collections.component2' call
|
|
4319
4319
|
var pathItem = element.o1();
|
|
4320
4320
|
// Inline function 'kotlin.collections.map' call
|
|
4321
4321
|
var this_0 = toOperationList(pathItem);
|
|
4322
4322
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4323
|
-
var destination_0 = ArrayList_init_$Create$(this_0.
|
|
4323
|
+
var destination_0 = ArrayList_init_$Create$(this_0.c1());
|
|
4324
4324
|
// Inline function 'kotlin.collections.iterator' call
|
|
4325
4325
|
var _iterator__ex2g4s_0 = this_0.m1().t();
|
|
4326
4326
|
while (_iterator__ex2g4s_0.u()) {
|
|
@@ -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.j1i()), resolveParameters_0(_this__u8e3s4, operation.j1i()));
|
|
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.p3b();
|
|
4380
4380
|
var tmp;
|
|
4381
4381
|
if (tmp2_safe_receiver == null) {
|
|
4382
4382
|
tmp = null;
|
|
@@ -4391,23 +4391,23 @@ 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.h1i();
|
|
4395
4395
|
var tmp_1;
|
|
4396
4396
|
if (tmp0_safe_receiver == null) {
|
|
4397
4397
|
tmp_1 = null;
|
|
4398
4398
|
} else {
|
|
4399
4399
|
// Inline function 'kotlin.collections.map' call
|
|
4400
4400
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4401
|
-
var destination_5 = ArrayList_init_$Create$(tmp0_safe_receiver.
|
|
4401
|
+
var destination_5 = ArrayList_init_$Create$(tmp0_safe_receiver.c1());
|
|
4402
4402
|
// Inline function 'kotlin.collections.iterator' call
|
|
4403
4403
|
var _iterator__ex2g4s_5 = tmp0_safe_receiver.m1().t();
|
|
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().m3b_1;
|
|
4408
4408
|
// Inline function 'kotlin.collections.component2' call
|
|
4409
4409
|
var mediaObject = item_2.o1();
|
|
4410
|
-
var schema = mediaObject.
|
|
4410
|
+
var schema = mediaObject.i3b();
|
|
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.f1h();
|
|
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().s3a_1;
|
|
4455
4455
|
// Inline function 'kotlin.collections.component2' call
|
|
4456
4456
|
var res = element_2.o1();
|
|
4457
4457
|
// Inline function 'kotlin.let' call
|
|
@@ -4460,16 +4460,16 @@ 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.y3a()), toLinkAnnotationList(_this__u8e3s4, response.h3b()));
|
|
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.d1h();
|
|
4466
4466
|
var tmp_5;
|
|
4467
4467
|
if (tmp0_safe_receiver_0 == null) {
|
|
4468
4468
|
tmp_5 = null;
|
|
4469
4469
|
} else {
|
|
4470
4470
|
// Inline function 'kotlin.collections.map' call
|
|
4471
4471
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4472
|
-
var destination_7 = ArrayList_init_$Create$(tmp0_safe_receiver_0.
|
|
4472
|
+
var destination_7 = ArrayList_init_$Create$(tmp0_safe_receiver_0.c1());
|
|
4473
4473
|
// Inline function 'kotlin.collections.iterator' call
|
|
4474
4474
|
var _iterator__ex2g4s_7 = tmp0_safe_receiver_0.m1().t();
|
|
4475
4475
|
while (_iterator__ex2g4s_7.u()) {
|
|
@@ -4488,16 +4488,16 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4488
4488
|
} else {
|
|
4489
4489
|
// Inline function 'kotlin.collections.map' call
|
|
4490
4490
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4491
|
-
var destination_8 = ArrayList_init_$Create$(content.
|
|
4491
|
+
var destination_8 = ArrayList_init_$Create$(content.c1());
|
|
4492
4492
|
// Inline function 'kotlin.collections.iterator' call
|
|
4493
4493
|
var _iterator__ex2g4s_8 = content.m1().t();
|
|
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().m3b_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.i3b();
|
|
4501
4501
|
var tmp_6;
|
|
4502
4502
|
if (tmp0_safe_receiver_1 == null) {
|
|
4503
4503
|
tmp_6 = null;
|
|
@@ -4508,16 +4508,16 @@ 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.y3a()), toLinkAnnotationList(_this__u8e3s4, response.h3b()));
|
|
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.d1h();
|
|
4514
4514
|
var tmp_7;
|
|
4515
4515
|
if (tmp3_safe_receiver_0 == null) {
|
|
4516
4516
|
tmp_7 = null;
|
|
4517
4517
|
} else {
|
|
4518
4518
|
// Inline function 'kotlin.collections.map' call
|
|
4519
4519
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4520
|
-
var destination_9 = ArrayList_init_$Create$(tmp3_safe_receiver_0.
|
|
4520
|
+
var destination_9 = ArrayList_init_$Create$(tmp3_safe_receiver_0.c1());
|
|
4521
4521
|
// Inline function 'kotlin.collections.iterator' call
|
|
4522
4522
|
var _iterator__ex2g4s_9 = tmp3_safe_receiver_0.m1().t();
|
|
4523
4523
|
while (_iterator__ex2g4s_9.u()) {
|
|
@@ -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.i3b();
|
|
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.y3a()), 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.u3d();
|
|
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.m3o();
|
|
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.e3b();
|
|
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.i3b();
|
|
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.u3q_1;
|
|
4761
4761
|
} else {
|
|
4762
4762
|
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
4763
|
-
tmp = valueOf(_this__u8e3s4.
|
|
4763
|
+
tmp = valueOf(_this__u8e3s4.i3x_1.d3_1);
|
|
4764
4764
|
} else {
|
|
4765
4765
|
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
4766
|
-
tmp = valueOf(_this__u8e3s4.
|
|
4766
|
+
tmp = valueOf(_this__u8e3s4.n47_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.i3b();
|
|
4780
4780
|
var tmp;
|
|
4781
4781
|
if (!(s == null) ? isInterface(s, Reference) : false) {
|
|
4782
4782
|
tmp = toReference_1(_this__u8e3s4, s, isNullable);
|
|
@@ -4817,8 +4817,8 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4817
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.e3b())) {
|
|
4821
|
+
var additionalProperties = ensureNotNull(schema.e3b());
|
|
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.a3b() == 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.b3b();
|
|
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.x3a());
|
|
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.b3b();
|
|
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.e3b() == null)) {
|
|
4889
|
+
var additionalProperties = ensureNotNull(schema.e3b());
|
|
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.d3b() == 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.a3b() == null)) {
|
|
4922
4922
|
// Inline function 'kotlin.let' call
|
|
4923
4923
|
var it = new Custom(sanitize(name), isNullable);
|
|
4924
|
-
tmp = !(schema.
|
|
4924
|
+
tmp = !(schema.e3b() == 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.e3b() == 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.e3b();
|
|
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.e3b() == 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.e3b() == 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.b3b();
|
|
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);
|
|
@@ -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.h3s_1;
|
|
5003
5003
|
} else {
|
|
5004
5004
|
if (_this__u8e3s4 instanceof OpenAPIV31Response) {
|
|
5005
|
-
tmp = _this__u8e3s4.
|
|
5005
|
+
tmp = _this__u8e3s4.p3x_1;
|
|
5006
5006
|
} else {
|
|
5007
5007
|
if (_this__u8e3s4 instanceof OpenAPIV32Response) {
|
|
5008
|
-
tmp = _this__u8e3s4.
|
|
5008
|
+
tmp = _this__u8e3s4.u47_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.y3a());
|
|
5059
5059
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
5060
5060
|
}
|
|
5061
5061
|
function resolve_3(_this__u8e3s4, headerOrReference) {
|
|
@@ -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.r3o_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.k3y_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.a40_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.p48_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.f4a_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.y3o_1;
|
|
5130
5130
|
var tmp_0;
|
|
5131
5131
|
if (t instanceof OpenAPIV30SingleType) {
|
|
5132
|
-
tmp_0 = t.
|
|
5132
|
+
tmp_0 = t.p3r_1;
|
|
5133
5133
|
} else {
|
|
5134
5134
|
if (t instanceof OpenAPIV30TypeArray) {
|
|
5135
|
-
var tmp0 = t.
|
|
5135
|
+
var tmp0 = t.u3t_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.k3y_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.b40_1);
|
|
5165
5165
|
} else {
|
|
5166
5166
|
if (t_0 instanceof OpenAPIV31TypeArray) {
|
|
5167
|
-
var tmp0_0 = t_0.
|
|
5167
|
+
var tmp0_0 = t_0.a40_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.p48_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.g4a_1);
|
|
5198
5198
|
} else {
|
|
5199
5199
|
if (t_1 instanceof OpenAPIV32TypeArray) {
|
|
5200
|
-
var tmp0_1 = t_1.
|
|
5200
|
+
var tmp0_1 = t_1.f4a_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.e3b())) {
|
|
5237
|
+
var tmp0_subject = schemaObject.e3b();
|
|
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.e3b();
|
|
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.d3b() == 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.y3a());
|
|
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.c3b() == null)) {
|
|
5332
|
+
var tmp_10 = toDescriptionAnnotationList(schemaObject.y3a());
|
|
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.c3b();
|
|
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
|
|
@@ -5356,7 +5356,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
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.c3b());
|
|
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).gf_1.
|
|
5368
|
+
var tmp0_elvis_lhs_0 = resolveSchemaRef_0(_this__u8e3s4, element_1).gf_1.d3b();
|
|
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.d3b();
|
|
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.a3b() == null)) {
|
|
5399
5399
|
// Inline function 'kotlin.collections.map' call
|
|
5400
|
-
var this_1 = ensureNotNull(schemaObject.
|
|
5400
|
+
var this_1 = ensureNotNull(schemaObject.a3b());
|
|
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.h1i();
|
|
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.y3a()), 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.d3b();
|
|
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.y3a()), 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.b3b();
|
|
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.i3b();
|
|
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.b3b();
|
|
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.u3d();
|
|
5528
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f1h();
|
|
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.x3a());
|
|
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.u3d();
|
|
5560
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j1i();
|
|
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.l3q_1;
|
|
5585
5585
|
} else {
|
|
5586
5586
|
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
5587
|
-
tmp = _this__u8e3s4.
|
|
5587
|
+
tmp = _this__u8e3s4.z3w_1;
|
|
5588
5588
|
} else {
|
|
5589
5589
|
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
5590
|
-
tmp = _this__u8e3s4.
|
|
5590
|
+
tmp = _this__u8e3s4.e47_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.k3q_1;
|
|
5602
5602
|
} else {
|
|
5603
5603
|
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
5604
|
-
tmp = _this__u8e3s4.
|
|
5604
|
+
tmp = _this__u8e3s4.y3w_1;
|
|
5605
5605
|
} else {
|
|
5606
5606
|
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
5607
|
-
tmp = _this__u8e3s4.
|
|
5607
|
+
tmp = _this__u8e3s4.d47_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.u3d();
|
|
5617
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n3o();
|
|
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.x3a());
|
|
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.u3d();
|
|
5649
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m3o();
|
|
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.x3a());
|
|
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.g3b() == null) ? new String_0(_RegExp___init__impl__p22noo(ensureNotNull(_this__u8e3s4.g3b()))) : _this__u8e3s4.f3b() === '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.f3b() === '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.f3b() === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
5745
5745
|
break;
|
|
5746
5746
|
case 3:
|
|
5747
5747
|
tmp = Boolean_instance;
|
|
@@ -5755,14 +5755,14 @@ 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.o3b();
|
|
5759
|
+
var tmp_0 = _this__u8e3s4.n3b();
|
|
5760
5760
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5761
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
5761
|
+
var tmp0_elvis_lhs = _this__u8e3s4.j1i();
|
|
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
|
|
5765
|
-
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.
|
|
5765
|
+
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.c1()));
|
|
5766
5766
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
5767
5767
|
var _iterator__ex2g4s = this_0.m1().t();
|
|
5768
5768
|
while (_iterator__ex2g4s.u()) {
|
|
@@ -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.p3b();
|
|
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.y3a();
|
|
5778
|
+
var tmp1_safe_receiver = _this__u8e3s4.q3b();
|
|
5779
|
+
return new LinkInfo(name, tmp, tmp_0, tmp_2, tmp_3, tmp_4, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u3b_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.j3t_1;
|
|
5798
5798
|
} else {
|
|
5799
5799
|
if (_this__u8e3s4 instanceof OpenAPIV31Header) {
|
|
5800
|
-
tmp = _this__u8e3s4.
|
|
5800
|
+
tmp = _this__u8e3s4.g40_1;
|
|
5801
5801
|
} else {
|
|
5802
5802
|
if (_this__u8e3s4 instanceof OpenAPIV32Header) {
|
|
5803
|
-
tmp = _this__u8e3s4.
|
|
5803
|
+
tmp = _this__u8e3s4.l4a_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.p3t_1;
|
|
5815
5815
|
} else {
|
|
5816
5816
|
if (_this__u8e3s4 instanceof OpenAPIV31Header) {
|
|
5817
|
-
tmp = _this__u8e3s4.
|
|
5817
|
+
tmp = _this__u8e3s4.m40_1;
|
|
5818
5818
|
} else {
|
|
5819
5819
|
if (_this__u8e3s4 instanceof OpenAPIV32Header) {
|
|
5820
|
-
tmp = _this__u8e3s4.
|
|
5820
|
+
tmp = _this__u8e3s4.r4a_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.u3d();
|
|
5830
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d1h();
|
|
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.x3a());
|
|
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.u3o_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.g3y_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.l48_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.v3o_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.h3y_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.m48_1;
|
|
5973
5973
|
var tmp_2;
|
|
5974
5974
|
if (tmp3_safe_receiver == null) {
|
|
5975
5975
|
tmp_2 = null;
|
|
@@ -6014,11 +6014,11 @@ 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.d3b();
|
|
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
|
|
6021
|
-
var destination = ArrayList_init_$Create$(this_0.
|
|
6021
|
+
var destination = ArrayList_init_$Create$(this_0.c1());
|
|
6022
6022
|
// Inline function 'kotlin.collections.iterator' call
|
|
6023
6023
|
var _iterator__ex2g4s = this_0.m1().t();
|
|
6024
6024
|
while (_iterator__ex2g4s.u()) {
|
|
@@ -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.z1v();
|
|
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.a3b() == 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.y3a());
|
|
6039
|
+
var tmp0_safe_receiver_0 = value.z3a();
|
|
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.u3d();
|
|
6064
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h3b();
|
|
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.x3a());
|
|
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.g4h_1.j1i()), resolveParameters_0($this_parseParameters, $this$flatMapRequests.i4h_1.j1i()));
|
|
6136
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.i4h_1);
|
|
6137
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.f4h_1) + $this$flatMapRequests.h4h_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.i3b();
|
|
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.i4h_1);
|
|
6162
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.f4h_1) + $this$flatMapRequests.h4h_1.d3_1 : tmp0_elvis_lhs;
|
|
6163
|
+
var tmp1_safe_receiver = $this$flatMapRequests.i4h_1.p3b();
|
|
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.h1i();
|
|
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.i3b();
|
|
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.b3b();
|
|
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.m4h_1);
|
|
6236
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.j4h_1) + $this$flatMapResponses.l4h_1.d3_1 : tmp0_elvis_lhs;
|
|
6237
|
+
var res = $this$flatMapResponses.o4h_1;
|
|
6238
6238
|
var tmp;
|
|
6239
6239
|
if (isInterface(res, Reference)) {
|
|
6240
|
-
tmp = flatMapResponse($this_parseResponseBody, resolveResponse_0($this_parseResponseBody, res).gf_1, name, $this$flatMapResponses.
|
|
6240
|
+
tmp = flatMapResponse($this_parseResponseBody, resolveResponse_0($this_parseResponseBody, res).gf_1, name, $this$flatMapResponses.n4h_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.n4h_1);
|
|
6244
6244
|
} else {
|
|
6245
6245
|
noWhenBranchMatchedException();
|
|
6246
6246
|
}
|